编写 Friggeri 简历模板

编写 Friggeri 简历模板

我正在使用这里的 Friggeri 模板:

https://www.latextemplates.com/template/friggeri-resume-cv

当我编译 Friggeri 简历时,我遇到很多错误。

我正在使用 Texstudio 和xelatex编译器。

在包含模板组件(.cls、.tex 等)的文件夹中,还有另一个名为“Fonts”的文件夹,其中包含以下字体:

HelveticaNeue.otf
HelveticaNeueCondensedBold.ttf
HelveticaNeueLight.ttf
HelveticaNeueUltraLight.ttf

我只对文件做了一些更改.cls,但我将在下面提供我拥有的.tex.cls代码。如果您想要未修改的模板,您可以在本文开头的链接中找到它。

.clshttps://pastebin.com/02P1eMBr

.texhttps://pastebin.com/vuKrYrZT

错误如下:

Package keyvalue Error: Unknown option 'vargreek-shape' for package(keyvalue) unicode-math-xetex. \ProcessKeysOptions {unicode-math}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found.
Package fontspec Error: The font "Helvetica Neue Light" cannot be found.
Package fontspec Error: The font "Helvetica Neue Light" cannot be found.
Package fontspec Error: The font "Helvetica Neue Light" cannot be found.
Package fontspec Error: The font "Helvetica Neue Light" cannot be found.
Package fontspec Error: The font "Helvetica Neue Light" cannot be found.
Font TU/HelveticaNeueLight(0)/m/n/10="Helvetica Neue Light:color=4D4D4DFF ;" at 10.0pt not loadable: Metric (TFM) file or installed font not found.
Illegal parameter number in definition of \blx@defformat@d. \ifblank{#3
Illegal parameter number in definition of \blx@defformat@d. \ifblank{#3}{}{#3
Font TU/HelveticaNeueLight(0)/m/n/14.4="Helvetica Neue Light:color=4D4D4DFF ;" at 14.4pt not loadable: Metric (TFM) file or installed font not found. \section{contact}
Font TU/HelveticaNeueLight(0)/m/n/17.28="Helvetica Neue Light:color=4D4D4DFF ;" at 17.28pt not loadable: Metric (TFM) file or installed font not found. \section{education}
Font TU/HelveticaNeueLight(0)/m/n/8="Helvetica Neue Light:color=4D4D4DFF ;" at 8.0pt not loadable: Metric (TFM) file or installed font not found. ...world. I found that it has, in fact, not.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ...world. I found that it has, in fact, not.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ...world. I found that it has, in fact, not.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ...world. I found that it has, in fact, not.}
Font TU/HelveticaNeueLight(2)/m/n/8="Helvetica Neue Light:color=999999FF ;" at 8.0pt not loadable: Metric (TFM) file or installed font not found. ...world. I found that it has, in fact, not.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. {Specialization in Commerce}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. \end{itemize}}
Font TU/HelveticaNeueLight(0)/m/it/10="Helvetica Neue Light:color=4D4D4DFF ;" at 10.0pt not loadable: Metric (TFM) file or installed font not found. \end{itemize}}
Font TU/HelveticaNeueLight(0)/m/it/7="Helvetica Neue Light:color=4D4D4DFF ;" at 7.0pt not loadable: Metric (TFM) file or installed font not found. \end{itemize}}
Font TU/HelveticaNeueLight(0)/m/sc/10="Helvetica Neue Light:color=4D4D4DFF ;" at 10.0pt not loadable: Metric (TFM) file or installed font not found. \end{itemize}}
Font TU/HelveticaNeueLight(0)/m/n/11.99997="Helvetica Neue Light:color=4D4D4D. \end{itemize}}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ...ive" for Analytical Skills and Teamwork.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ...o turn their computers off and on again.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ... the art of filing accurate TPS reports.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ...ucted for my Masters of Commerce degree.}
Package fontspec Error: The font "Helvetica Neue Light" cannot be found. ...sses and presented this at a conference.}
fixltx2e is not required with releases after 2015(fixltx2e) All fixes are now in the LaTeX kernel.
'\DeclareSortingScheme' is deprecated.
No file cv_10.bbl.
Font shape `TU/HelveticaNeueLight(0)/m/it' undefined(Font) using `TU/HelveticaNeueLight(0)/m/n' instead
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
Underfull \hbox (badness 10000) in paragraph
'sorting' option to '\printbibliography' is no longer supported.
Type 'article' not found
Empty bibliography
'sorting' option to '\printbibliography' is no longer supported.
Type 'book' not found
Empty bibliography
'sorting' option to '\printbibliography' is no longer supported.
Type 'inproceedings' not found
Empty bibliography
'sorting' option to '\printbibliography' is no longer supported.
Type 'inproceedings' not found
Keyword 'france' not found
Empty bibliography
'sorting' option to '\printbibliography' is no longer supported.
Type 'misc' not found
Empty bibliography
'sorting' option to '\printbibliography' is no longer supported.
Type 'report' not found
Empty bibliography
Some font shapes were not available, defaults substituted.
There were undefined references.
Please (re)run Biber on the file:(biblatex) cv_10(biblatex) and rerun LaTeX afterwards.

答案1

嗯,这里有几个问题:

  1. 在您的链接中https://www.latextemplates.com/template/friggeri-resume-cv没有包含目录。因此无法找到fonts字体,从而导致出现错误消息...Helvetica...
  2. Friggeri CV 非常老了,并且提到的https://github.com/afriggeri/CV已被删除...
  3. 据我记得,使用的字体 Helvetica Neue(版权等)存在问题。
  4. 导致第一个错误消息的vargreek-shape=unicode包使用的类选项。只需删除此选项即可!unicode-math
  5. 在 Overleaf 上,你可以找到 friggeri-cv 的一个版本,它带有针对软件包unicode-math和其他字体的使用更正的选项,包括一个添加的fonts目录...如果你坚持使用 Friggeri CV,请使用该版本...
  6. 如果可能的话,请不要更改原始*.cls文件,将更改添加到 cv tex 代码的前言中!
  7. fixltx2e不再需要使用当前的TeX 发行版的版本...
  8. 根据您使用的操作系统,您的系统上可能安装了 Helvetica 字体或类似字体。然后找到正确的字体名称并更改类中使用的字体。为此,复制原始文件,将其重命名为,例如,然后my-friggeri-cv.cls搜索以下部分:

    %%%%%%%%%
    % Fonts %
    %%%%%%%%%
    
    \RequirePackage[quiet]{fontspec}
    \RequirePackage[math-style=TeX,vargreek-shape=unicode]{unicode-math}
    
    \newfontfamily\bodyfont[]{Helvetica Neue}
    \newfontfamily\thinfont[]{Helvetica Neue UltraLight}
    \newfontfamily\headingfont[]{Helvetica Neue Condensed Bold}
    
    \defaultfontfeatures{Mapping=tex-text}
    \setmainfont[Mapping=tex-text, Color=textcolor]{Helvetica Neue Light}
    

    删除,vargreek-shape=unicode已经提到的内容并根据需要更改字体名称...不要忘记在您的 cv tex 代码中使用新的个人文档类...

  9. 首先,您需要能够编译 friggeri-cv 的模板示例而不会出现错误。然后复制此模板 cv,将其重命名为my.cv并添加您的更改。如果您仍然遇到无法解决的错误请提出一个新问题,向我们展示 tex 代码导致您的错误(在向我们显示之前请删除个人信息!)。

个人备注:您是否考虑过使用其他不太旧的简历模板?在 ctan 上搜索简历/简历...

相关内容