banner



How To Make Your Text Size 12 In Latex

LaTex is intelligent when it comes to choosing the appropriate font and font size. However, there are instances where you may need to implement a specific font or font size.

This tutorial volition hash out how to work with and change fonts and styling in LaTex documents.

How to Set the Font Size

The easiest style to change the font size in LaTex documents is to utilise pre-defined commands.

The post-obit commands are used to set the font size in LaTex.

  • \tiny – Smallest size between 5 and six points
  • \scriptsize – Ranges between 7 and viii points
  • \footnotesize – Size betwixt eight to 10 points
  • \small – Smaller font with the size of nine to 10.95 points
  • \normalsize – Normal font size betwixt x 12 points
  • \big – Font size between 12 to 14.44 points
  • \Large – Large fonts size ranges from xiv.four to 17.28 points
  • \LARGE – Size ranges between 17.28 to 20.74 points
  • \huge – A large font between 20.74 to 24.88 points
  • \Huge – Massive font in a higher place 24.88 point

Note: The size values above apply to selected documents such as an commodity, book, report, and letter. Other documents such equally memoirs may have varying font sizes.

Examples:

The following code illustrates various font size commands:

\documentclass{article}
\usepackage[utf8] {inputenc}
\begin{document}
Foo bar {\tiny and Hello, world! } \\
Foo bar {\scriptsize and Hello, world! } \\
Foo bar {\footnotesize and Hello, world! } \\
Foo bar {\small and Hello, world! } \\
Foo bar {\normalize and Hello, globe! } \\
Foo bar {\big and Hello, world! } \\
Foo bar {\Big and Hullo, globe! } \\
Foo bar {\Big and Hello, globe! } \\
Foo bar {\huge and How-do-you-do, world! } \\
Foo bar {\Huge and Howdy, earth! } \\
\stop{document}

The rendered font sizes are as follows:

You lot can also use custom LaTex packages. However, that is beyond the telescopic of this article. Therefore, it is not illustrated. Cheque the font size package to learn more.

How to Change Font Family unit in LaTeX

Changing the font family in LaTex is easy. First, use default commands that include:

  • \textrm – Serif font family
  • \texttt – Monospaced font family
  • \textsf – Sans Serif font family

Examples:

The following LaTex lawmaking illustrates various font families:

\documentclass{article}
\usepackage[utf8] {inputenc}
\brainstorm{document}
\huge\textrm{Foo Bar – Serif } \\
\huge\texttt{Foo Bar - Monospaced} \\
\huge\textsf{Foo Bar – Sans Serif}
\terminate{document}

Here is an analogy of the resulting text results:

LaTex also provides you various commands to set up a cake of text to specific text. For example:

\documentclass{commodity}
\usepackage[utf8] {inputenc}
\begin{certificate}

\rmfamily
All the text below this command uses serif font until terminated.
\rmfamily
\newline

\sffamily
This block uses sans serif fonts until here
\ssfamily
\newline

\newline
\ttfamily
Monospaced font family unit goes here until you end it
\ttfamily
\end{document}

The above produces the content shown below:

How to Work With Font Styles in LaTeX

The following are the commands for font styles:

  • \textmd – Medium Text
  • \textbf – Bold Text
  • \textup – Upright Text
  • \textit – Italicized text
  • \textsl – Slanted text
  • \textsc – All caps.

Examples:

The following code shows the usage of font mode commands in LaTex:

\documentclass{article}
\usepackage[utf8] {inputenc}
\usepackage{amsmath}
\begin{document}
\textmd{I am Medium Text} \\
\textbf{I am Bold Text} \\
\textup{I am Upright Text} \\
\textit{I am Italicized Text} \\
\textsl{For me, I am Slanted} \\
\textsc{I am all caps} \\
\terminate{document}

The resulting text is:

Conclusion

This tutorial shows yous how to work with font size, font family, and font style in LaTex documents.

About the author

My name is John and am a boyfriend geek like you. I am passionate about all things computers from Hardware, Operating systems to Programming. My dream is to share my noesis with the earth and help out boyfriend geeks. Follow my content past subscribing to LinuxHint mailing list

How To Make Your Text Size 12 In Latex,

Source: https://linuxhint.com/modify-font-size-latex/

Posted by: reillyweepre.blogspot.com

0 Response to "How To Make Your Text Size 12 In Latex"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel