Проблема с Fontin при использовании Texmaker с Xelatex или Lualatex - PullRequest
0 голосов
/ 30 октября 2019

У меня проблема с настройкой fontin с помощью пакета fontspec. Я использую Texmaker с установленным XelaTex или LualuTex. Я пытался также с компилятором Texstudio, но у меня та же ошибка. Когда я запускаю программу, у меня появляется следующая ошибка:

**! Undefined control sequence.
\__fontspec_init_ttc:n #1->\str_if_eq:eeT
{\str_lower_case:f {\l__fontspec_e...
l.28 {Fontin.otf}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.**

Здесь ниже вы можете найти пример:

\documentclass[a4paper,10pt]{article}
\usepackage[top=-3in, bottom= 1.0in, left=1.25in, right=1.25in]{geometry}
\usepackage{marvosym}
\usepackage{fontspec}                   %for loading fonts
\usepackage{xunicode,xltxtra,url,parskip}   %other packages for formatting
\RequirePackage{color,graphicx}
\usepackage[usenames,dvipsnames]{xcolor}
\usepackage[big]{layaureo}              %better formatting of the A4 page
\usepackage{supertabular}               %for Grades
\usepackage{titlesec}                   %custom \section
\urlstyle{same}
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0, 0, 0}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}

\defaultfontfeatures{Mapping=tex-text}

\setmainfont[
SmallCapsFont = Fontin-SmallCaps.otf,
BoldFont = Fontin-Bold.otf,
ItalicFont = Fontin-Italic.otf
]
{Fontin.otf}

\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{-10pt}{1pt}{3pt}
\hyphenation{im-pre-se}

%-------------WATERMARK TEST [**not part of a CV**]---------------
\usepackage[absolute]{textpos}

\setlength{\TPHorizModule}{30 mm}
\setlength{\TPVertModule}{-30 mm}
\textblockorigin{-25mm}{0.5\paperheight}
\setlength{\parindent}{0pt}

\usepackage{enumitem}
\setlist[itemize]{leftmargin=*}
\parsep=0in

%--------------------BEGIN DOCUMENT----------------------
\begin{document}

\pagestyle{empty} % non-numbered pages

\font\fb=''[cmr10]'' %for use with \LaTeX command

%--------------------TITLE-------------


\par{\centering
    {\Huge Hello \textsc{Hello}
    }\par}

 %--------------------SECTIONS-----------------------------------
 \section{Personal Data}

 \end{document}
...