Curricula Vitae / RésumésHow do I add a country line after the address line?

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

How do I add a country line after the address line?

Post by templateuser »

It looks great! Thank you very much. One question: how can I add a line with my country on it (for example after the adress line)?

Thanks in advance!

Yassir

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

How do I add a country line after the address line?

Post by templateuser »

you have to change the line 214 of moderncv.cls as “\newcommand*{\address}[3]{\def\@addressstreet{#1}\def\@addresscity{#2}\def\@addressthird{#3}}” (no quotation marks)

and you have to change the corresponding lines of whichever style file (.sty) you are using. for example, i have changed the line 111 and 268 of moderncvstyleclassic.sty as

Code: Select all

\ifthenelse{\isundefined{\@addressstreet}}{}{\makenewline\addresssymbol\@addressstreet}%
\ifthenelse{\isundefined{\@addresscity}}{}{\makenewline\addresssymbol\@addresscity}%
\ifthenelse{\isundefined{\@addressthird}}{}{\makenewline\addresssymbol\@addressthird}%
this way you will be free to add the third line to the address section. i hope this help

arkadasim
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Re: How do I add a country line after the address line?

Post by templateuser »

Thanks a lot arkadas!

Yasir
Post Reply