![如何在曲线简历模板中包含谷歌学术和研究门等学术图标](https://linux22.com/image/393487/%E5%A6%82%E4%BD%95%E5%9C%A8%E6%9B%B2%E7%BA%BF%E7%AE%80%E5%8E%86%E6%A8%A1%E6%9D%BF%E4%B8%AD%E5%8C%85%E5%90%AB%E8%B0%B7%E6%AD%8C%E5%AD%A6%E6%9C%AF%E5%92%8C%E7%A0%94%E7%A9%B6%E9%97%A8%E7%AD%89%E5%AD%A6%E6%9C%AF%E5%9B%BE%E6%A0%87.png)
我正在使用 overleaf 中提供的 CV 模板,使用类curve
。
在此模板fontawesome
包中可以运行但是在使用时academicons
显示错误。
mwe.tex
:
\documentclass[a4paper,skipsamekey,11pt,british]{curve}
\usepackage{settings}
\ifxetexorluatex
\usepackage{fontspec}
\setmainfont[Ligatures=TeX,SmallCapsFeatures={Letters=SmallCaps,LetterSpace=5}]{Charis SIL}
\setsansfont[Ligatures=TeX]{Fira Sans}
\setmonofont{Inconsolata}
\else
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[tracking=smallcaps]{microtype}
\usepackage{fbb}
\usepackage[type1]{cabin}
\usepackage[varqu,varl]{zi4}
\useosf
\fi
\usepackage{csquotes}
\addbibresource{own-bib.bib}
\myname{Lim}{Lian\bibnamedelima Tze}
\includecomment{fullonly}
\leftheader{%
{\LARGE\bfseries\sffamily Lim Lian Tze, Ph.D.}
\makefield{\faEnvelopeO}{\texttt{[email protected]}}
\makefield{\faTwitter}{\texttt{@liantze}}
\makefield{\faGlobe}{\url{http://liantze.penguinattack.org/}}
\makefield{\faLinkedinSquare}
{\url{http://www.linkedin.com/in/limliantze/}}
}
\rightheader{~}
\title{Curriculum Vitae}
\begin{document}
\makeheaders[c]
\end{document}
settings.sty
:
\RequirePackage{silence}
\WarningsOff[longtable]
\WarningsOff[array]
\usepackage{ifxetex,ifluatex}
\newif\ifxetexorluatex
\ifxetex
\xetexorluatextrue
\else
\ifluatex
\xetexorluatextrue
\else
\xetexorluatexfalse
\fi
\fi
\RequirePackage{graphicx}
\RequirePackage[hyphens]{url}
\RequirePackage[main=british]{babel}
\raggedright
\RequirePackage{fontawesome}
\newcommand{\smallcaps}[1]{\textsc{\lowercase{#1}}}
\RequirePackage[a4paper,nohead,nofoot,hmargin=2.25cm,vmargin=2cm]{geometry}
\RequirePackage{relsize}
\RequirePackage[dvipsnames,svgnames]{xcolor}
\RequirePackage{tikz}
\usetikzlibrary{shapes,shadows}
\RequirePackage{comment}
\definecolor{SwishLineColour}{HTML}{88AC0B}
\definecolor{MarkerColour}{HTML}{B6073F}
% If you're not a researcher nor an academic, you probably don't need biblatex; delete this line.
\RequirePackage[backend=biber,bibstyle=apa,sorting=ymdnt,uniquename=init,maxnames=7,defernumbers=true]{biblatex}
\DeclareLanguageMapping{british}{british-apa}
%% Added 17 Jan 2018 from https://tex.stackexchange.com/a/140641/226 and https://tex.stackexchange.com/a/46879/226
\DeclareSortingScheme{ymdnt}{
\sort{
\field{presort}
}
\sort[final]{
\field{sortkey}
}
\sort[direction=descending]{
\field[strside=left,strwidth=4]{sortyear}
\field[strside=left,strwidth=4]{year}
\literal{9999}
}
\sort[direction=descending]{
\field[padside=left,padwidth=2,padchar=0]{month}
\literal{00}
}
\sort[direction=descending]{
\field[padside=left,padwidth=2,padchar=0]{day}
\literal{00}
}
\sort{
\field{sortname}
\field{author}
\field{editor}
\field{translator}
\field{sorttitle}
\field{title}
}
\sort{
\field{sorttitle}
\field{title}
}
}
\RequirePackage{tikz}
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,text=white,fill=MarkerColour!80!black,font=\sffamily\scriptsize\bfseries,inner sep=1pt,text height=1.35ex,minimum width=1.5em,text centered] (char) {#1};}}
\newcounter{bibitem}
\AtBeginBibliography{\setcounter{bibitem}{1}}
\AtEveryBibitem{\makebox[2.5em][l]{\circled{\thebibitem}\stepcounter{bibitem}}}
% \renewcommand{\bibfont}{\small}
\setlength{\bibitemsep}{1.5ex}
\setlength{\bibhang}{2.7em}
\NewBibliographyString{retrieved}
\NewBibliographyString{from}
\DefineBibliographyStrings{british}{
from = {\textcolor{MarkerColour!80!black}{\faLink}},
retrieved = {}
}
\headerscale{1}
%\setlength{\headerspace}{6pt}
\rubricfont{\Large\bfseries\sffamily}
\setlength{\rubricspace}{2pt}
%\setlength{\rubricafterspace}{-9pt}
\setlength{\rubricafterspace}{-3pt}
\setlength{\subrubricspace}{3pt}
\setlength{\subrubricbeforespace}{4pt}
\def\@@rubrichead#1{%
\begin{tikzpicture}[baseline]%\
\shade[left color=SwishLineColour!60!white, right color=white] rectangle (\@almosttextwidth,2.5pt);
\node[font={\@rubricfont},inner sep=0pt,text ragged,anchor=south west,text depth=.5ex,text height=1.5ex] at (1pt,2pt) {#1};
\end{tikzpicture}%
\vspace\rubricspace%
}
\subrubricfont{\large\bfseries\sffamily}
\subrubricalignment{l}
\newcommand{\makefield}[2]{\makebox[1.5em]{\color{MarkerColour!80!black}#1} #2\hspace{2em}}
\keyalignment{r}
\rubricalignment{l}
\renewcommand{\arraystretch}{1.25}
\urlstyle{tt}
\newcommand{\prefixmarker}[1]{\def\@prefixmarker{#1}}
\def\@prefixmarker{\relscale{.9}\faBookmark}
\prefix{%
\hspace*{-1ex}
\color{MarkerColour!80!black}\@prefixmarker%
\hspace*{1ex}%
}
\newcommand{\makerubrichead}[1]{\vskip\baselineskip\@@rubrichead{#1}}
\defbibheading{subbibliography}{\vskip\subrubricbeforespace{\@subrubricfont\hspace{3pt}#1}\par}
\defbibfilter{booksandchapters}{%
( type=book or type=incollection )
}
\newcommand{\myname}[2]{%
\def\@mylastname{#1}%
\def\@myfirstname{#2}%
}
\renewcommand*{\mkbibnamefamily}[1]{%
\ifboolexpr{ test {\ifdefstrequal{\namepartfamily}{\@mylastname}}
and
test {\ifdefstrequal{\namepartgiven}{\@myfirstname}}}
{\textbf{#1}}%
{#1}%
}
\renewcommand*{\mkbibnamegiven}[1]{%
\ifboolexpr{ test {\ifdefstrequal{\namepartfamily}{\@mylastname}}
and
test {\ifdefstrequal{\namepartgiven}{\@myfirstname}}}
{\textbf{#1}}%
{#1}%
}
\RequirePackage[colorlinks=true,allcolors=black,breaklinks=true]{hyperref}
答案1
嗯,通常你必须添加\usepackage{academicons}
才能使用学者. (顺便说一句:使用academicons
意味着您必须使用lualatex
或进行编译xelatex
。)
然后您可以访问几个图标,例如:
DOI: \aiDoi % <========================================================
Googlescholar: \aiGoogleScholar
ResearchGate: \aiResearchGate % <=======================================
或
\makefield{\aiGoogleScholar}{\url{http://liantze.penguinattack.org/}}
% ^^^^^^^^^^^^^^^^
在个人信息领域。
我不能说这是否也能在 overleaf 中工作,我没有使用过该在线编译器。请自己测试一下。
使用您给出的settings.sty
和以下简历代码
\documentclass[a4paper,skipsamekey,11pt,british]{curve}
\usepackage{settings} % <======================================
\ifxetexorluatex
\usepackage{fontspec}
%\setmainfont[Ligatures=TeX,SmallCapsFeatures={Letters=SmallCaps,LetterSpace=5}]{Charis SIL}
%\setsansfont[Ligatures=TeX]{Fira Sans}
%\setmonofont{Inconsolata}
\else
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[tracking=smallcaps]{microtype}
\usepackage{fbb}
\usepackage[type1]{cabin}
\usepackage[varqu,varl]{zi4}
\useosf
\fi
\usepackage{csquotes}
\usepackage{academicons} % <============================================
\addbibresource{own-bib.bib}
\myname{Lim}{Lian\bibnamedelima Tze}
\includecomment{fullonly}
\leftheader{%
{\LARGE\bfseries\sffamily Lim Lian Tze, Ph.D.}
\makefield{\faEnvelopeO}{\texttt{[email protected]}}
\makefield{\faTwitter}{\texttt{@liantze}}
\makefield{\aiGoogleScholar}{\url{http://liantze.penguinattack.org/}} % \faGlobe
% ^^^^^^^^^^^^^^^^
\makefield{\faLinkedinSquare}
{\url{http://www.linkedin.com/in/limliantze/}}
}
\rightheader{~}
\title{Curriculum Vitae}
\begin{document}
\makeheaders[c]
DOI: \aiDoi % <========================================================
Googlescholar: \aiGoogleScholar
ResearchGate: \aiResearchGate % <=======================================
\end{document}
使用当前的 MiKTeX 2.9 得到以下结果:
编译为lualatex
。请注意,我评论了您使用的字体,因为我的系统上没有安装它。