Fonts & Character Sets ⇒ Font Size in Headings, Abstract, Thanks and other Parts
Font Size in Headings, Abstract, Thanks and other Parts
I want to set font size in pt unit (not Large and ...) for heading, section, subsection, abstract.
However, I have 2 problem with them:
1-\fontsize is not working.
2- some of them have not optional part for setting font size.
can anyone help me?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Font Size in Headings, Abstract, Thanks and other Parts
perhaps you don't use it in the right way. How do you use it, how is your code?farnaz wrote: 1-\fontsize is not working.
Use \fontsize and \selectfont afterward to change the font. This change has effect until the end of the environment or group or another font size changing command. \normalsize returns to the standard size too.farnaz wrote: 2- some of them have not optional part for setting font size
Stefan
Font Size in Headings, Abstract, Thanks and other Parts
Code: Select all
\author{\fontsize{11}{13}...
Or in \section command, I put font size in optional part. However, it does not work:
Code: Select all
\section[12pt]{Kinematic Mode;}
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Font Size in Headings, Abstract, Thanks and other Parts
This works:
Code: Select all
\author{\fontsize{11}{13}\selectfont Author}
Code: Select all
\section[short title]{long title in heading in text}
Code: Select all
\section[Kinematic Mode]{\fontsize{12}{13}\selectfont Kinematic Mode}
Code: Select all
\newcommand{\sectionsize}{\fontsize{12}{13}\selectfont}
And I would go further, redefining the \section command or a related macro instead of using a size command in argument, the heading text, using the titlesec package or redefining macros of the document class.
Stefan
Re: Font Size in Headings, Abstract, Thanks and other Parts
I will try it soon.