TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to have 3 lines for address with moderncv style. So I've added this lines in my file


\address{Street }{town}{Country}

but nothing has changed. Can anybody tell me how can I do?

share|improve this question
up vote 2 down vote accepted

The easiest solution is to simply use multi-line arguments, i.e. \address{Street}{Town\\Country}.

Your definition doesn't work, because \address only stores the information. The actual printing is done by the \maketitle command, which is redefined in the corresponding .sty file, i.e. moderncvthemeclassic.sty.

share|improve this answer
Sorry but this doesn't work. I get this error message "!Argument of \@firstoftow has an extra" – Hamed Dec 2 '12 at 19:44
I would correct here, using multi-line arguments is allowed only for the first one \address{Street\\Town}{Country} – Hamed Oct 1 '15 at 11:27

The latest version of moderncv actually takes 3 arguments for the address. But your question would still apply if you needed a fourth line.

As Ilya says, the \address command only does storing of the components of the address in some variables for later use. He suggests writing something like


but that does not work, producing the error

! Argument of \@firstoftwo has an extra }.

The way moderncvstyleclassic prints the address involves a series of tests on its arguments with \ifthenelse. The error above occurs because, including \\ in the string confuses this test.

The package etoolbox provides more robust commands to do similar tests, in particular it has an \ifstrempty command that will not breakdown on a string containing \\.

One can patch the title making command of moderncvstyleclassic so that the third argument of \address is allowed to contain \\ as follows:



Here is a small document showing thi working:

Sample output






\address{street and number}{postcode city}{county\\ country}



share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.