Matnlarga ishlov berish
LaTeX Text Formatting
A list of commonly used commands in LaTeX to change the appearance of text in your document.
-
Font Size
-
Font Style
This website provides an overview of basic text formatting commands in LaTeX. Most commands are very straightforward to use. I personally think there will be few usecases to manually adjust the settings of the font, because the environments usually do this job for you automatically, I just included this for completeness.
LaTeX Font Size
-
Changing the font size locally
-
Changing the font size globally
-
Packages for changing font size
Changing the font size locally
When working on a LaTeX document, the easiest way to change the font size is by using these predefined commands:
\Huge
\huge
\LARGE
\Large
\large
\normalsize
\small
\footnotesize
\scriptsize
\tiny
These commands change the font size locally. They can be used in two different ways: We can declare their scope inside a text within curly braces, such as {\huge these words are larger}. We can also create an environment by writing our text inside \begin{huge} and \end{huge} commands.
Sometimes, we might want to consider the line spacing when changing the font size. Ending our commands with a paragraph includes the adjusting of the \baselineskip, which specifies the minimum space between two successive lines in a paragraph. We can add a paragraph using \par command or adding a new line character at the end of the text. Following example shows the line space adjusting:
\begin{huge}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam maximus mauris quis viverra imperdiet.\par
\end{huge}
Do'stlaringiz bilan baham: |