
\documentclass{svproc}
\usepackage{url}
\def\UrlFont{\rmfamily}
\usepackage{academicons}
\newcommand{\orcid}[1]{\href{https://orcid.org/#1}{\textcolor[HTML]{A6CE39}{\aiOrcid}}}
\begin{document}
\mainmatter
\title{The title}
%
\titlerunning{abbreviated title}
\author{Ivar Ekeland\inst{1} \and Roger Temam\inst{2}\orcid{0000-0002-5825-931X}}
\institute{XXX University\\
\email{[email protected]},
\and
YYYY University,\\
\email{[email protected]}}
\maketitle % typeset the title of the contribution
\begin{abstract}
The abstract
\keywords{}
\end{abstract}
\section{Section 1}
\begin{thebibliography}{6}
\end{thebibliography}
\end{document}
答案1
您的測試文件無法運作,因為巨集的定義\orcid
包含指令\textcolor
and ,它們由and\href
定義xcolor
hyperref
。因此,你必須加載兩者-xcolor
以及hyperref
適當選擇的選項(如果需要) - 以便\orcid
工作。
此外,請務必使用 XeLaTeX 或 LuaLaTeX 編譯您的文檔,因為這就是必需的透過academicons
包裹。引用該軟體包的使用者指南:“academicons
軟體包提供在 (LA)TEX 中訪問 122 個高品質的線上學術資料圖標,這些圖標包含在免費的院士字體。該套件需要 XƎ(LA)TEX 或 Lua(LA)TEX 引擎來載入院士來自系統的字體,這需要安裝捆綁的academicons.ttf
字體檔案。
以下測試程式碼的簡化形式可以正常編譯。 (但是,我無法判斷圖標中嵌入的超連結是否有效。)
% !TEX TS-program = xelatex %% or: "... = lualatex"
\documentclass{svproc}
% 'svproc.cls' file obtained from https://www.springer.com/gp/authors-editors/conference-proceedings/conference-proceedings-guidelines
\usepackage{xurl}
\def\UrlFont{\rmfamily}
\usepackage{xcolor} % for 'HTML' color model and '\textcolor' macro
\usepackage[colorlinks]{hyperref} % for '\href' macro
% 'academicons' package requires either LuaLaTeX or XeLaTeX
\usepackage{academicons}
\newcommand{\orcid}[1]{\href{orcid.org/#1}{\textcolor[HTML]{A6CE39}{\aiOrcid}}}
\begin{document}
\orcid{0000-0002-5825-931X}
\end{document}