What does fontspec do?
Configuring fontspec to use the fonts The fontspec package provides a wealth of options for configuring OpenType fonts for use with LuaLaTeX or XƎLaTeX—its excellent documentation contains numerous examples which you can explore to fine-tune the design and typesetting of your documents.
What is Fontspec in LaTeX?
The fontspec package provides an automatic and unified interface for loading fonts in LaTeX. XeTeX and LuaTeX (the latter through the luaotfload package) allows a direct interface to fonts which may be loaded by their name or filename, so no manual font installation is required.
How to use custom font LaTeX?
The easiest way to use it is via XeLaTeX/LuaLaTeX and fontspec .
- Select XeLaTeX/LuaLaTeX as your project’s compiler.
- Load the fontspec package (this allows you to use TTF/OTF fonts directly)
- Set the fonts you need.
- Using a custom font.
What fonts are available in LaTeX?
By default, LaTeX uses Computer Modern, a family of typefaces designed by Donald Knuth for use with TeX. It contains serif, sans serif, and monospaced fonts, each available in several weights and optical sizes.
How do I change to XeLaTeX?
To switch compilers in Overleaf V1 click the Settings icon. By selecting either “XeLaTeX” or “LuaLaTeX” (for Mac you may select “XeTeX”…) in the drop-down list beneath the “LaTeX engine” icon, you will be able to apply all of these changes.
How do you use Inconsolata LaTeX?
LATEX usage To use Inconsolata as your typewriter font, add the line sepackage{inconsolata} (or, equivalently, sepackage{zi4}) to your preamble after any other packages that might load another typewriter font.
Is Computer Modern a good font?
Yes it is! It’s well-designed as a text font, and it has small caps and text figures.
Is LaTeX font sans serif?
The default LaTeX font Computer Modern has serifs. The following commands can be used to change to a font without serifs (sans serif) and vice-versa (serif/roman).
How do you switch to XeLaTeX or LuaLaTeX?
Which TeX should I use?
pdfLaTeX is traditional choice, it is fast and robust. pdfLaTeX works on old TeX distributions like teTeX, TeX Live 2008- and MiKTeX 2.6-. Almost all modern packages support pdfLaTeX best (except PSTricks). XeLaTeX and LuaLaTeX are quite new, both have full support of Unicode and can access fonts installed in the OS.