Text Formattingtextformat in moderncv

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

textformat in moderncv

Post by rajini »

Dear all,

Some days ago i started using 'moderncv' (tip from localghost) for job applications. It is really nice. Both my first name as well as second/family name consists of 11 letters (so 22 in total). If i use moderncv+classic my second name is hyphenated. Is there any snippets to avoid this hyphenation such that my second name will appear just below my first name with some vertical space between 1st and 2nd names.
thanks
rajini.

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

textformat in moderncv

Post by Stefan Kottwitz »

You could put your 2nd name into \mbox{...} to suppress hyphenation.

Stefan
LaTeX.org admin
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

textformat in moderncv

Post by rajini »

Hi Stefan,

the default value in moderncvthemeclassic.sty is

Code: Select all

\renewcommand*{\firstnamefont}{\fontsize{34}{36}\sffamily\mdseries\upshape}
As you told, if i put my second name in mbox, second name is not hyphenated. But it runs over the data (address) on the right side.
So i changed the above codes (size reduced!) to

Code: Select all

\renewcommand*{\firstnamefont}{\fontsize{23}{23}\sffamily\mdseries\upshape}
I get everything fine (and it seems okay with reduced font size).
But just to know some details- Why there are two different font sizes (34 and 36) instead of one? In the first code (see above), which font is actually used ?
Rajini.
PS Why my location is shown in my profile?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

textformat in moderncv

Post by Stefan Kottwitz »

rajini wrote:PS Why my location is shown in my profile?
I don't see a location in your profile.

Stefan
LaTeX.org admin
rajini
Posts: 64
Joined: Mon Mar 22, 2010 2:27 pm

Re: textformat in moderncv

Post by rajini »

Sorry, i missed 'not'!
Why my location is not shown in my profile?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

textformat in moderncv

Post by Stefan Kottwitz »

Did you enter the ocation? Go to the User Control Panel, to the Profile tab and enter it in the Location edit box.

Stefan
LaTeX.org admin
Post Reply