Settings Document Font Sizes
\documentclass[options]{class}For example, the article class supports 10pt, 11pt and 12pt for the main document text:\documentclass[11pt]{article}
\documentclass[options]{class}
For example, the article class supports 10pt, 11pt and 12pt for the main document text:
\documentclass[11pt]{article}
Customizing Latex Heading / Section Font Style And Body Font Family Style / Font Face Style / Font Type Style
You can set up the use of sans font as a default in a LaTeX document by using the command:
\renewcommand{\familydefault}{\sfdefault}
Similarly, for using roman font / serif font as a default:
\renewcommand{\familydefault}{\rmdefault}
Similarly, for using typewriter font / monospace font as a default:
\renewcommand{\familydefault}{\ttdefault}
Customizing Latex Font Family Style / Font Face Style / Font Type Style
\renewcommand\bfdefault{bc}
\renewcommand\rmdefault{garamondx}
\renewcommand\mddefault{mc}
\renewcommand\sfdefault{phv}
Font Family List
pag = Avant Garde
fvs = Bitstream Vera Sans
pbk = Bookman
bch = Charter
ccr = Computer Concrete
cmr = Computer Modern = Serif
cmss = Computer Modern Sans Serif = Sans Serif
cmtt = Computer Modern Typewriter = Typewriter / Monospace
pcr = Courier = Typewriter / Monospace
phv = Helvetica = Sans Serif
fi4 = Inconsolata
lmr = Latin Modern
lmss = Latin Modern Sans
lmtt = Latin Modern Typewriter
pnc = New Century Schoolbook
ppl = Palatino
ptm = Times
uncl = Uncial
put = Utopia
pzc = Zapf Chancery
Format Font Style In Bold For Entire Document
\renewcommand{\seriesdefault}{bx}
Format Font To Standard Main Document Font
\textnormal{text normal}
or
{\normalfont text normal}
Format Font For A Part Of Our Document 1
If we need to use a certain font family only for a part of our document, we can write it in a text command.
\textrm{Serif Font Family}
\textsf{Sans Serif Font Family}
\texttt{Monospaced Font Family}
Format Font For A Part Of Our Document 2
If we need to use a certain font family only for a part of our document, we can write it in a text declaration form/text switches, which is often useful. This form takes no arguments, as in {\rmfamily text}. The scope of the declaration form lasts until the next type style command or the end of the current group.
\rmfamily
Serif Font Family
\sffamily
Sans Serif Font Family
\ttfamily
Monospaced Font Family
or you can use like this following foms:
{\rmfamily Serif Font Family}
{\sffamily Sans Serif Font Family}
{\ttfamily Monospaced Font Family}
Format Font Shape For A Part Of Our Document
for italic shape
\textit{Italic}
or
{\itshape Italic}
for slanted shape
\textsl{Slanted}
or
{\slshape Slanted}
Format Font Weight For A Part Of Our Document
to print in bold characters
\textbf{Bold}
or
\bfseries
Format Font Emphasizing For A Part Of Our Document
to print in emphasize or italic characters
\emph{emphasised text}
Changing Letter Case
LaTeX provides the option to change the letter case of a piece of text to lower or upper case: \lowercase and \uppercase are the commands for the job.
\uppercase{text}
\lowercase{TEXT}
Changing Underline
to print in underline characters using underline command
\underline{text}
Changing SuperScript And SubScript
to print in subscript and superscript characters using subscript and superscript command
\textsubscript{text}
\textsuperscript{th}
Notes
Notice that in the sans serif font family, italic and slanted fonts are the same. Some font families don’t have a format or some font shape form. If that is the case, these previous commands produce the form that is available.
Bibliography
https://latexref.xyz/
https://latex-tutorial.com/
https://www.dickinson.edu/ ( university )
https://www.overleaf.com/
https://www.scijournal.org/
https://tug.org/
Tidak ada komentar:
Posting Komentar