I am using Mac, and following a template .tex file. I have tried to run xelatex myFile.tex
, but I receive the error:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
!
! The font "Adobe Garamond Pro" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H <return>.
!...............................................
l.35 \setmainfont{Adobe Garamond Pro}
I followed the suggestions by Frank Pastor in this previous post (MacOSX: Cannot use garamond font). I also followed advice to download the Fontin package at (http://www.exljbris.com/fontin.html). However, I persist to getting the same error.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Plasmati Graduate CV
% LaTeX Template
% Version 1.0 (24/3/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Alessandro Plasmati (alessandro.plasmati@gmail.com)
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
% This template needs to be compiled with XeLaTeX.
% The main document font is called Fontin and can be downloaded for free
% from here: http://www.exljbris.com/fontin.html
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[a4paper,10pt]{article} % Default font size and paper size
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\section*{\refname}}{}{}{}
\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{
Path = /usr/local/texlive/2015/texmf-dist/fonts/opentype/public/fontawesome/ }
\usepackage{fontawesome}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Adobe Garamond Pro} % Main document font
%\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin} % Main document font
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{xunicode,xltxtra,url,parskip} % Formatting packages
\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors
\usepackage[big]{layaureo} % Margin formatting of the A4 page, an alternative to layaureo can be \usepackage{fullpage}
% To reduce the height of the top margin uncomment: \addtolength{\voffset}{-1.3cm}
\usepackage{hyperref} % Required for adding links and customizing them
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document
\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lfoot{My Name}
\rfoot{Page \thepage \hspace{1pt} of \pageref{LastPage}}
\cfoot{}
\lhead{}
\rhead{}
\chead{}
\begin{document}
Any advice would be helpful for me! I have been troubleshooting for about 2 hours, and while I find similar questions, I am unable to replicate answers and see results.
\defaultfontfeatures{ Path = /usr/local/texlive/2015/texmf-dist/fonts/opentype/public/fontawesome/ }
. Normally,fontspec
knows where to find ` fontawesome`. – Bernard Feb 10 '16 at 21:31FontBook
application (which may have another name in your language) to check or install Adobe Garamond Pro ? You shouldn't a priori have the need to put anything intexmf-local
in order to use such a font withxelatex
. To the contrary, even. The simplest is for this font to be installed via FontBook, for example you should be able to use it in Apple's TextEdit or any other app with a font menu. Thus, checking if the font is intalled or not should be trivial. – user4686 Feb 13 '16 at 7:43