I would like to use Arial Narrow font in LaTeX. But I cannot find the package used to do it.
[Tex/LaTex] LaTeX Arial Narrow font
fonts
Related Solutions
The short answer appears to be: don't do it with pdflatex
. Thanks to Bernard, cfr, and Sigur and I was able to find a solution which I can share.
You can import and use named fonts using the fontspec
package. This package does not work with pdflatex
. I had to switch to xelatex
. Initial tests showed that xelatex
would compile my existing document with only one small error that could be easily fixed.
Here is the commands to import and use those fonts
\usepackage{fontspec}
\fontspec{Bookman Old Style}
\fontspec{Arial Narrow}
\fontspec{Verdana}
\setmainfont{Bookman Old Style}
\setkomafont{section}{\fontspec{Arial Narrow}\fontsize{12}{15}\scshape}
\setkomafont{subsection}{\fontspec{Bookman Old Style}\bfseries\slshape}
\setkomafont{pagehead}{\fontspec{Arial Narrow}\footnotesize\scshape}
\usepackage{titlesec}
\titleformat{\chapter}{\fontspec{Verdana}\bfseries
\fontsize{20pt}{24pt}\centering\selectfont}{}{0em}{}
This worked for the most part except for the small caps (\scshape
) on the section titles. It seems that LaTeX treats small caps as a font, and requires a separate font for that. Most word processors simply simulate this by using a regular capital letter at a smaller size. This would seem like something that LaTeX could do, and maybe it does with the inclusion of yet another obscure package.
Using \fontsize
I was able to specify the size in points of the various header pieces. While the documentation is not clear, aparently sometimes you need to use both the \fontsize
command followed by the \selectfont
command. That was the case for the \titleformat
command. Without the \selectfont
the settings would not appear.
Thanks to Merijn comment and this page, I found a solution :
The .ttf
should be add to the project. And then the use specify in the main file :
example :
\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont[Ligatures=TeX]{Arial.ttf}
\begin{document}
This is the document text;
\end{document}
Best Answer
You can use any font installed on your system with XeLaTeX or LuaLaTeX.