diff --git a/CHANGELOG b/CHANGELOG index 8821ef4..ac07105 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -8,6 +8,9 @@ version 1.1.0 (xx Jul 2012) (LauLaTeX or XeLaTeX). - tweaked the \subsectionfill of the "banking" style to distribute extra space evenly between leaders. + - added two options to change the "Enclosure" string used for the letter + enclosure: either specify another string as optional argument to \enclosure, + or redefine \enclname (as suggested by D. Wille). version 1.0.0 (26 Mar 2012) - added commands to generate letters for every resume style: \recipient, \date, diff --git a/examples/template-es.pdf b/examples/template-es.pdf index ac34cbb..c495488 100644 Binary files a/examples/template-es.pdf and b/examples/template-es.pdf differ diff --git a/examples/template-zh.pdf b/examples/template-zh.pdf index fd88592..40f476e 100644 Binary files a/examples/template-zh.pdf and b/examples/template-zh.pdf differ diff --git a/examples/template.pdf b/examples/template.pdf index 6ff2c36..99ed473 100644 Binary files a/examples/template.pdf and b/examples/template.pdf differ diff --git a/examples/template.tex b/examples/template.tex index 3ac525a..092c871 100644 --- a/examples/template.tex +++ b/examples/template.tex @@ -112,7 +112,9 @@ Detailed achievements:% \cvlistdoubleitem{Item 2}{Item 5\cite{book1}} \cvlistdoubleitem{Item 3}{} -% Publications from a BibTeX file without multibib\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}% for BibTeX numerical labels +% Publications from a BibTeX file without multibib +% for numerical labels: \renewcommand{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}} +% to redefine the heading string ("Publications"): \renewcommand{\refname}{Articles} \nocite{*} \bibliographystyle{plain} \bibliography{publications} % 'publications' is the name of a BibTeX file @@ -133,7 +135,7 @@ Detailed achievements:% \date{January 01, 1984} \opening{Dear Sir or Madam,} \closing{Yours faithfully,} -\enclosure{curriculum vit\ae{}} +\enclosure[Attached]{curriculum vit\ae{}} % use an optional argument to use a string other than "Enclosure", or redefine \enclname \makelettertitle Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ullamcorper neque sit amet lectus facilisis sed luctus nisl iaculis. Vivamus at neque arcu, sed tempor quam. Curabitur pharetra tincidunt tincidunt. Morbi volutpat feugiat mauris, quis tempor neque vehicula volutpat. Duis tristique justo vel massa fermentum accumsan. Mauris ante elit, feugiat vestibulum tempor eget, eleifend ac ipsum. Donec scelerisque lobortis ipsum eu vestibulum. Pellentesque vel massa at felis accumsan rhoncus. diff --git a/examples/template_banking_black.pdf b/examples/template_banking_black.pdf index 08eaba1..f8f1399 100644 Binary files a/examples/template_banking_black.pdf and b/examples/template_banking_black.pdf differ diff --git a/examples/template_banking_red.pdf b/examples/template_banking_red.pdf index 2b012b9..a5d79d3 100644 Binary files a/examples/template_banking_red.pdf and b/examples/template_banking_red.pdf differ diff --git a/examples/template_casual_orange.pdf b/examples/template_casual_orange.pdf index dbad862..e35576d 100644 Binary files a/examples/template_casual_orange.pdf and b/examples/template_casual_orange.pdf differ diff --git a/examples/template_classic_green.pdf b/examples/template_classic_green.pdf index 7f911ac..a2621fc 100644 Binary files a/examples/template_classic_green.pdf and b/examples/template_classic_green.pdf differ diff --git a/examples/template_multibib.pdf b/examples/template_multibib.pdf index cc526ca..42c5f0a 100644 Binary files a/examples/template_multibib.pdf and b/examples/template_multibib.pdf differ diff --git a/examples/template_oldstyle_grey.pdf b/examples/template_oldstyle_grey.pdf index 2218cb4..cfc65c1 100644 Binary files a/examples/template_oldstyle_grey.pdf and b/examples/template_oldstyle_grey.pdf differ diff --git a/moderncv.cls b/moderncv.cls index fc7ab3b..026f054 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -196,7 +196,7 @@ \setlength\fboxsep{3\p@} \setlength\fboxrule{.4\p@} -% Not required +% not required %\setlength\arraycolsep{5\p@} %\setlength\tabcolsep{6\p@} %\setlength\arrayrulewidth{.4\p@} @@ -250,6 +250,10 @@ % fonts \AtBeginDocument{\normalfont\color{color0}} +% strings for internationalisation +\newcommand*{\refname}{Publications} +\newcommand*{\enclname}{Enclosure} + % makes the footer (normally used both for the resume and the letter) % usage: \makefooter \newcommand*{\makefooter}{}% @@ -366,7 +370,6 @@ {\href{mailto:#2}{#1}}} % thebibliography environment, for use with BibTeX and possibly multibib -\newcommand*{\refname}{Publications} \newlength{\bibindent} \setlength{\bibindent}{1.5em} % bibliography item label @@ -434,22 +437,25 @@ \renewcommand*{\date}[1]{\def\@date{#1}} \newcommand*{\opening}[1]{\def\@opening{#1}} \newcommand*{\closing}[1]{\def\@closing{#1}} -\newcommand*{\enclosure}[1]{\def\@enclosure{#1}} +\newcommand*{\enclosure}[2][]{% + % if an optional argument is provided, use it to redefine \enclname + \ifthenelse{\equal{#1}{}}{}{\renewcommand*{\enclname}{#1}}% + \def\@enclosure{#2}} % recompute all letter lengths \newcommand*{\recomputeletterlengths}{} % makes the letter title % usage: \makelettertitle -\newcommand*{\makelettertitle}{}% +\newcommand*{\makelettertitle}{} % makes the letter footer % usage: \makeletterfooter -\newcommand*{\makeletterfooter}{\makefooter}% +\newcommand*{\makeletterfooter}{\makefooter} % makes the letter closing % usage: \makeletterclosing -\newcommand*{\makeletterclosing}{}% +\newcommand*{\makeletterclosing}{} \endinput diff --git a/moderncvstylebanking.sty b/moderncvstylebanking.sty index 78c6b41..e63fd57 100644 --- a/moderncvstylebanking.sty +++ b/moderncvstylebanking.sty @@ -275,7 +275,7 @@ \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfill% - {\color{color2}\itshape Enclosure: \@enclosure}}} + {\color{color2}\itshape\enclname: \@enclosure}}} \endinput diff --git a/moderncvstylecasual.sty b/moderncvstylecasual.sty index d004d4c..39c5f80 100644 --- a/moderncvstylecasual.sty +++ b/moderncvstylecasual.sty @@ -167,7 +167,7 @@ \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfil% - {\color{color2}\itshape Enclosure: \@enclosure}}% + {\color{color2}\itshape\enclname: \@enclosure}}% \vfil} diff --git a/moderncvstyleclassic.sty b/moderncvstyleclassic.sty index 251c7d1..09862b1 100644 --- a/moderncvstyleclassic.sty +++ b/moderncvstyleclassic.sty @@ -291,7 +291,7 @@ \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfill% - {\color{color2}\itshape Enclosure: \@enclosure}}} + {\color{color2}\itshape\enclname: \@enclosure}}} \endinput diff --git a/moderncvstyleoldstyle.sty b/moderncvstyleoldstyle.sty index 9cd796d..8e54261 100644 --- a/moderncvstyleoldstyle.sty +++ b/moderncvstyleoldstyle.sty @@ -300,7 +300,7 @@ \ifthenelse{\isundefined{\@enclosure}}{}{% \\% \vfill% - {\color{color2}\itshape{}Enclosure: \@enclosure}}} + {\color{color2}\itshape\enclname: \@enclosure}}} \endinput