Showing first {{hits.length}} results of {{hits_total}} for {{searchQueryText}}{{hits.length}} results for {{searchQueryText}}

No Search Results

Even though LaTeX provides an extensive set of fonts, you may want to use an an external font you really like and you have already installed system-wide, this is possible with XƎTeX. XeTeX is a TeX typesetting engine using Unicode and supporting modern font technologies such as OpenType (OTF), TrueType (TTF), Graphite, and Apple Advanced Typography (AAT). The corresponding compilers are xetex and xelatex. Contents 1 Introduction 2 Setting fonts for different LaTeX elements 3 Fonts in Overleaf 4 Reference guide 5 Further reading Introduction Times New Roman is one of the most used fonts, if you have this font installed in your system you can use it in your LaTeX document. \documentclass[12pt]{article} \usepackage{fontspec} \setmainfont{Times New Roman} \title{Sample font document} \author{Hubert Farnsworth} \date{this month, 2014} \begin{document} \maketitle This an \textit{example} of document compiled with \textbf{xelatex} compiler. LuaLaTeX should work fine also. \end{document} In this example the document uses the popular Times New Roman font, this font is set by \usemainfont{Times New Roman}. The package fontspec must be imported for this to work.   Open an example in Overleaf Setting fonts for different LaTeX elements Different elements in a LaTeX document are formatted with different fonts, for example in a verbatim environment the text is displayed using a typewriter style. Different font styles can be set for each context: \documentclass[12pt]{article} \usepackage{fontspec} %This would work on a standard latex installation, (your local computer) %----------------------------------------------------------------------- \setromanfont{Times New Roman} \setsansfont{Arial} \setmonofont[Color={0019D4}]{Courier New} %----------------------------------------------------------------------- \title{Sample font ocument} \author{Hubert Farnsworth} \date{this month, 2014} \begin{document} \maketitle This an \textit{example} of document compiled with \textbf{xelatex} compiler. If you have to write some code \begin{verbatim} usually this environment is used to display code