TeX - LaTeX Asked by Sahoo on June 10, 2021
I wanted to prepare a cover letter for which I downloaded a template from an online website. The LaTeX code is as follows. By default, the date appears to be in right top. How do I bring it to the left? I am new to LaTeX and any help on this would be appreciated.
documentclass{letter}
usepackage{amssymb,amsmath}
usepackage{graphicx}
oddsidemargin=.2in
evensidemargin=.2in
textwidth=5.9in
topmargin=-.5in
textheight=9in
newcommand {qed}{mbox{$Box$}}
renewcommand {iff}{Longleftrightarrow}
newcommand {R}{mathbb{R}}
newcommand {N}{mathbb{N}}
newcommand {Q}{mathbb{Q}}
newcommand {Z}{mathbb{Z}}
newcommand {sub}{mbox{SB}}
begin{document}
begin{letter}{Mathematics Search Committee
Department of Mathematics
University of Somewhere
1234 Math Building
Somewhere, IL, 23456}
opening{Dear Search Committee,}
My research interests include continuous logic and its application to metric structures from analysis and geometry. My thesis work is on the model theory of $R$-trees, which are metric spaces of central importance in geometric group theory. I am currently finishing a paper with my advisor, and expect at least one more paper to result from the contents of my thesis.
closing{Sincerely, }
Sylvia Carlisle
end{letter}
end{document}
One idea is to just flush the date to the left by redefining date
, or actually @date
. (It requites that this is the only place @date
is used.)
documentclass{letter}
usepackage{amssymb,amsmath}
usepackage{graphicx}
oddsidemargin=.2in
evensidemargin=.2in
textwidth=5.9in
topmargin=-.5in
textheight=9in
newcommand {qed}{mbox{$Box$}}
renewcommand {iff}{Longleftrightarrow}
newcommand {R}{mathbb{R}}
newcommand {N}{mathbb{N}}
newcommand {Q}{mathbb{Q}}
newcommand {Z}{mathbb{Z}}
newcommand {sub}{mbox{SB}}
%%%%%%%%%%%%%% New stuff
makeatletter
renewcommanddate[1]{gdef@date{hbox to linewidth{#1hss}}}
makeatother
date{today}
%%%%%%%%%%%%%%
begin{document}
begin{letter}{Mathematics Search Committee
Department of Mathematics
University of Somewhere
1234 Math Building
Somewhere, IL, 23456}
opening{Dear Search Committee,}
My research interests include continuous logic and its application to metric structures from analysis and geometry. My thesis work is on the model theory of $R$-trees, which are metric spaces of central importance in geometric group theory. I am currently finishing a paper with my advisor, and expect at least one more paper to result from the contents of my thesis.
closing{Sincerely, }
Sylvia Carlisle
end{letter}
end{document}
Correct answer by StefanH on June 10, 2021
You can add
date{begin{flushleft}todayend{flushleft}}
below your begin{document}
Hope this helps!
Answered by Purusharth Malik on June 10, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP