首页 > 解决方案 > 无法编译乳胶文件

问题描述

无法编译需要额外乳胶库的我的简历的旧文档。有人可以推荐一个应该处理它的 tex 变体。

试过乳胶

! Fatal Package fontspec Error: The fontspec package requires either XeTeX or
(fontspec)                      LuaTeX.

卢泰克斯

! Undefined control sequence.
l.1 \documentclass
                [a4paper,10pt]{article}

赛特克斯

I can't find the format file `xetex.fmt'!

乳胶代码

\documentclass[a4paper,10pt]{article}

%A Few Useful Packages
\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
% an alternative to Layaureo can be ** \usepackage{fullpage} **
\usepackage{supertabular}               %for Grades
\usepackage{titlesec}                   %custom \section
\usepackage{supertabular}

%Styling Itemizations
\usepackage{enumitem}
\setlist{nolistsep}
\setitemize[1]{labelindent=\parindent, label=$\triangleright$}

%Setup hyperref package, and colours for links
\usepackage{hyperref}
\definecolor{linkcolour}{rgb}{0,0.2,0.6}
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour, linkcolor=linkcolour}

%FONTS
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin}

\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule]
\titlespacing{\section}{0pt}{3pt}{3pt}
%Tweak a bit the top margin
\addtolength{\voffset}{-1.3cm}

标签: latex

解决方案


使用 xelatex 编译工作正常


推荐阅读