Awesome-CV icon indicating copy to clipboard operation
Awesome-CV copied to clipboard

How to change the size of font?

Open yao5461 opened this issue 8 years ago • 14 comments

Hi~ I want to make the font size smaller, How? Thanks.

yao5461 avatar Jul 19 '16 08:07 yao5461

\documentclass[11pt, a4paper]{awesome-cv} ... change 11 to 10.

johannesbottcher avatar Jul 19 '16 08:07 johannesbottcher

Thanks! And how to reduce space between sections? I'm a newbie. Thanks!

yao5461 avatar Jul 19 '16 08:07 yao5461

\renewcommand{\acvSectionTopSkip}{0mm}

johannesbottcher avatar Jul 19 '16 08:07 johannesbottcher

@johannesbottcher Does it really change the font size? In my case the font stays the same regardless of whether I choose 10, 11 or 12pt. Only line spacing is affected.

Font sizes seem to be fixed because of how the styles are defined in awesome-cv.cls, for example:

\newcommand*{\paragraphstyle}{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text}}

Changing the font option to \documentclass can't affect cvparagraph environment font size because it is fixed to \fontsize{9pt}{1em}.

It can't change any other font size, for the same reason.

arekolek avatar Aug 30 '16 19:08 arekolek

@arekolek For simple text, yes.

johannesbottcher avatar Aug 30 '16 20:08 johannesbottcher

@johannesbottcher Yet the examples never use any simple text.

arekolek avatar Aug 30 '16 21:08 arekolek

@arekolek If i change 11pt to 10pt in the example CV, i can see more stuff on the page. cvitems uses normal font without any changers.

More stuff on the page is not a real reason to claim the font size has changed. I didn't do a real check. Might just a well be the different baselineskip when no special environment is in charge. If it really is like that, the 11pt needs to be removed from the example because it is misleading. As i said, i never checked. CV-templates aren't any good.

johannesbottcher avatar Aug 30 '16 21:08 johannesbottcher

@johannesbottcher Actually, \cvitems is wrapped inside \descriptionstyle in the examples.

I'm guessing @posquit0 put the 11pt in there to get the line spacing, since it doesn't affect the font size at all.

arekolek avatar Aug 31 '16 12:08 arekolek

checkout my fork at https://github.com/JanHendrikDolling/Awesome-CV You could change the font size and line stretch with the following commands. FYI: I'd only used the cv template.

% font size for different elements \sizesection{16pt} \sizesubsection{12pt} \sizeentrytitle{10pt} \sizeentryposition{8pt} \sizeentrydate{8pt} \sizeentrylocation{9pt} \sizedescription{9pt}

% line stretch \stretchdescription{1.2}

JanHendrikDolling avatar Oct 29 '16 11:10 JanHendrikDolling

@arekolek Hi, I tried to change the font size here but the font size didn't change. \newcommand*{\paragraphstyle}{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text}}

Do you know how to change the front size?

Thanks.

haowenz avatar Nov 21 '16 02:11 haowenz

This will give you an error because \paragraphstyle is already defined. The cvparagraph environment isn't used in the example templates.

There are about 30 styles that can be changed individually. There is no simple switch to make fonts bigger.

That could be done, but it would require many (many) lines of code.

johannesbottcher avatar Nov 21 '16 07:11 johannesbottcher

Coming back to this as I was looking for the same issue, all the settings to be changed are in .cls, as I guess @yao5461 was looking for this, under the "Configuration for Styles - Configure styles for each element" section. Most likely he needed the bullet points configuration, which can be found on the line

\newcommand*{\descriptionstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text} #1}}

where 9pt is the size, knowing that there are 34 different text elements that should be modified accordingly :P

Out of curiosity, wouldn't it be possible to have a dynamic reference for font size? For example in the document the smallest font size is 8pt, if that is defined as x and every other font is defined as x, x+1, x+2 etc just changing the small font size would update everything else...

fguardini avatar Mar 23 '17 16:03 fguardini

Out of curiosity, wouldn't it be possible to have a dynamic reference for font size? For example in the document the smallest font size is 8pt, if that is defined as x and every other font is defined as x, x+1, x+2 etc just changing the small font size would update everything else...

That is the default LaTeX approach, This template handles stuff a bit differently. As i said, many lines of code would need to be changed to allow different font sizes by default. Standard book class provides three different font sizes to choose from, each one needs an extra file of about 200 lines of code.

For a CV, a bit less would be needed. On the other hand, a templates purpose is to set the style and layout. Though a user is able to change some stuff, not everything is possible.

johannesbottcher avatar Mar 23 '17 17:03 johannesbottcher

so ,how to change the size of font

codemongkey avatar Jul 30 '19 18:07 codemongkey

checkout my fork at https://github.com/JanHendrikDolling/Awesome-CV You could change the font size and line stretch with the following commands. FYI: I'd only used the cv template.

% font size for different elements \sizesection{16pt} \sizesubsection{12pt} \sizeentrytitle{10pt} \sizeentryposition{8pt} \sizeentrydate{8pt} \sizeentrylocation{9pt} \sizedescription{9pt}

% line stretch \stretchdescription{1.2}

@JanHendrikDolling where does the \stretchdescription command get placed to take effect? I'm having trouble making this work but I also dont know too much about LaTex syntax. My best guess was somewhere on line 210:

\newcommand*{\descriptionstyle}[1]{{\fontsize{9pt}{1em}\bodyfontlight\upshape\color{text} #1}}

rhecht95 avatar Feb 24 '23 22:02 rhecht95

I haven't used the template for a long time. Try the following line.

JanHendrikDolling avatar Feb 25 '23 22:02 JanHendrikDolling