I am using \documentclass{article}
to write an article but I should change its default font size to other standards. How can I change the font size of each title or body underneath of each title? How about some words in the document?
How can I understand that each of commands \small
, \Huge
, etc is equivalent of what font size?
This what I want to have: I have written the font size in front of each section, also I want to left justify the abstract section.
Best Answer
The fontsize commands of LaTeX, e.g.
\small
,\large
, etc. work in relation to the global fontsize of the document. Hence, they change if the font size of the document changes. For a detailed overview seeWhat point (pt) font size are \Large etc.?
In concrete they are used like a switch. For example
You can of course limit the effect of those macros to a group, i.e.
{\small This text is small\par}
. In this case text that follows the group won't be affected. (Note the\par
concluding the group to apply the correct line spacing.)Now, you can change the font size of the document globally by declaring the
10pt
,11pt
or12pt
option while calling the documentclass as:Regarding your example I used the
titlesec
package to patch the sectional headings. The customization of the title and the abstract - note that I added a\keywords
macro - is hand-crafted. A complete code could be: