I want to use arial font, but it doesn't generate any document. I'm using Texpad software. I tried with helvet
package, but it doesn't work. Here's my code, maybe I'm not right. Can you help me?
\documentclass[10pt, a4paper]{article}
\usepackage{fontspec}
\setmainfont{Arial}
\usepackage{lipsum}
\usepackage[ampersand]{easylist}
\begin{document}
\tableofcontents
\newpage
\section{TITLE}
\section{TITLE}
\subsection{Subtitle}
\subsection{Subtitle}
\section{TITLE}
\lipsum
\subsection{Subtitle}
\subsection{Subtitle}
\subsubsection{Title}
\begin{easylist}
& Title
& Title
&& Subtitle
&&& Title
& Title
\end{easylist}
\subsubsection{Title}
\subsection{Subtitle}
\section{TITLE}
\subsection{Subtitle}
\subsubsection{Title}
\end{document}
Best Answer
Your code works perfectly for me but it must be compiled by
XeTeX
, not withpdflatex
. Note also that you must have that True Type Font (.ttf) available in your system.To obtain the default sans serif font with
pdflatex
, basically you only need add this line to the preamble, without any package:To use the helvetica font as the default font with
pdflatex
you can add these lines:Please note that you cannot use
\usepackage{fontspec}
withpdflatex
.Tip: Go to http://www.tug.dk/FontCatalogue/sansseriffonts.html for many other options.