Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

How to adjust my long email address in the personal info in the moderncv? I use:

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{casual}
\moderncvcolor{blue} 
\usepackage[utf8]{inputenx}
\usepackage[russian]{babel}
\usepackage[T1]{fontenc}
\usepackage[scale=0.75]{geometry}
\setlength{\hintscolumnwidth}{2.6cm} 
\firstname{Aaaa}
\familyname{bbbb}
\title{ccc}            
\address{ddd. dddddd-4, d.33. dd.145}{dddddd, dddddd}
\mobile{+e~(eee)~555~eeee}
\phone{+f~(fff)~fff~ffff}
\email{johndoeeeeeee@gmail.com}

Update: Sorry, my mistake. Now, I have put the full length of the personal info. With this full length my email address is not visible. email address

share|improve this question
    
The only problem I can see in your code and the output is that \address{street and number}{postcode city} has two obligatory arguments, everything else works fine, including the e-mail address. What is the problem, specifically? –  doncherry Aug 8 '12 at 13:29
    
I have put update to my question –  Sasha Aug 8 '12 at 13:49
    
I cannot reproduce your problem. With Miktex 2.9 and moderncv.cls 2012/03/26 v1.0 the email address renders just fine. –  hakaze Aug 8 '12 at 14:28
1  
@Sasha the listfiles it not to change something, but to get your versions of the used packages from your logfile. Post the version of moderncv you see there. –  Juri Robl Aug 8 '12 at 16:52
1  
@Sasha OK, on MacTeX 2012 (also TeXlive) I have moderncv.cls 2012/07/30 v1.1.1. This version also produces your problem, i.e. the long email address is missing. –  hakaze Aug 8 '12 at 17:54
show 7 more comments

2 Answers

up vote 3 down vote accepted

This seems to a bug which was introduced by recent fixes:

version 1.1.0 (29 Jul 2012) ...

  • fixed the vertical alignment of the footers, as reported by T. Homa. Footers are now aligned to the bottom and the letter and cv footers are perfectly aligned in the "casual" style.

For now you can revert this behavior by adding the following code block in your preamble:

\makeatletter
\renewcommand*{\makecvfooter}{%
  \setlength{\footerwidth}{0.8\textwidth}%
  \fancypagestyle{plain}{%
    \fancyfoot[c]{%
      \parbox[c]{\footerwidth}{%
        \centering%
        \color{color2}\addressfont%
        \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}%
          \ifthenelse{\equal{\@addresscity}{}}{}{\addtofooter[~--~]{\@addresscity}}\flushfooter\@firstfooterelementtrue\\}% if \addresstreet is defined, \addresscity will always be defined but could be empty
        \ifthenelse{\isundefined{\@mobile}}{}{\addtofooter{\mobilesymbol\@mobile}}%
        \ifthenelse{\isundefined{\@phone}}{}{\addtofooter{\phonesymbol\@phone}}%
        \ifthenelse{\isundefined{\@fax}}{}{\addtofooter{\faxsymbol\@fax}}%
        \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%
        \ifthenelse{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}%
        \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}%
        %\ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\flushfooter}%
        \flushfooter % restores old behavior
        }}}%
  \pagestyle{plain}}
\makeatother

EDIT: The bug will is fixed in an upcoming update of moderncv. Meanwhile use the answer provided by @Xavier which is more advanced than my brute force fix.

share|improve this answer
    
Thank you very much! It works perfectly now! I see I need to read and learn more about LaTeX. Thanks for your great help. –  Sasha Aug 9 '12 at 3:05
    
I also informed Xavier Danaux, the package author of moderncv, about this problem and our discussion here. –  hakaze Aug 9 '12 at 7:37
    
Ok. Thanks a lot. –  Sasha Aug 11 '12 at 14:33
add comment

Thanks for reporting this bug @hakaze.

The right way to correct the bug is to add

\settowidth{\footerboxwidth}{\usebox{\footerbox}}%

after line 55 of moderncvstylecasual.sty. By forcing \flushfooter as suggested above, you will create another regression bug when the footer was normally flushed as part of the regular routine (e.g., if you only want to show your name and address).

I just released a new version of moderncv correcting this bug on launchpad, and will submit it to CTAN once one of the two maintainers is back from holiday.

share|improve this answer
1  
Hey Xavier, would you mind adding your name to this list for modenrcv entry as you wish? (maybe with a link to launchpad with an icon) Glad to have you around here :). –  percusse Aug 9 '12 at 21:47
    
@percusse Done :) –  Xavier Aug 10 '12 at 0:34
    
Thank you very much! –  percusse Aug 10 '12 at 0:53
add comment

Your Answer

 
discard

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.