我想在 .png 文件中添加 orcid 链接。我使用的是 \documentclass[sn-mathphys]{sn-jnl}。我尝试了几种方法,但都不起作用。我希望它看起来像这样:https://link.springer.com/content/pdf/10.1007/s10801-022-01156-9.pdf。先感谢您。
答案1
该orcidlink
包使用命令执行该作业\orcidlink{<ORCiD digits>}
。它将添加带有超链接的符号。
然而,对于用到的sn-jnl
类,加载program
包,这是很多冲突的根源,应该避免。
\disable@package@load{program}{}
这是通过类加载之前的行完成的。
% !TeX TS-program = pdflatex
\makeatletter% do not load the package program <<< added <<<<<<<<<<<<<<<<
\disable@package@load{program}{}
\makeatother
\documentclass[pdflatex,sn-mathphys]{sn-jnl}
\usepackage{orcidlink} % added <<<<<<<<<<<<
\begin{document}
\title[Article Title]{Article Title}
\author[1]{\fnm{First} \sur{Author}\,\orcidlink{0000-0002-0000-0001}} \email{[email protected]}
\author[2]{\fnm{Second} \sur{Author}\,\orcidlink{0000-0002-0000-0002}} \email{[email protected]}
\affil[1]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \city{City}, \postcode{100190}, \state{State}, \country{Country}}}
\affil[2]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \city{City}, \postcode{10587}, \state{State}, \country{Country}}}
\abstract{The abstract serves both as a general introduction to the topic and as a brief, non-technical summary of the main results and their implications. Authors are advised to check the author instructions for the journal they are submitting to for word limits and if structural elements like subheadings, citations, or equations are permitted.}
\keywords{keyword1, Keyword2, Keyword3, Keyword4}
\maketitle
\section{Introduction}
Springer Nature does not impose a strict layout as standard however authors are advised to check the individual requirements for the journal they are planning to submit to as there may be journal-level preferences. When preparing your text please also be aware that some stylistic choices are not supported in full text XML (publication version), including coloured font. These will not be replicated in the typeset article if it is accepted.
\end{document}
另一个选择是使用大卫·卡莱尔的回答
% !TeX TS-program = pdflatex
\documentclass[pdflatex,sn-mathphys]{sn-jnl}
\catcode`\|=12\relax % added <<<<<<<<<<<<<<<<<
\usepackage{orcidlink} % added <<<<<<<<<<<<
\begin{document}
\title[Article Title]{Article Title}
\author[1]{\fnm{First} \sur{Author}\,\orcidlink{0000-0002-0000-0001}} \email{[email protected]}
\author[2]{\fnm{Second} \sur{Author}\,\orcidlink{0000-0002-0000-0002}} \email{[email protected]}
\affil[1]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \city{City}, \postcode{100190}, \state{State}, \country{Country}}}
\affil[2]{\orgdiv{Department}, \orgname{Organization}, \orgaddress{\street{Street}, \city{City}, \postcode{10587}, \state{State}, \country{Country}}}
\abstract{The abstract serves both as a general introduction to the topic and as a brief, non-technical summary of the main results and their implications. Authors are advised to check the author instructions for the journal they are submitting to for word limits and if structural elements like subheadings, citations, or equations are permitted.}
\keywords{keyword1, Keyword2, Keyword3, Keyword4}
\maketitle
\section{Introduction}
Springer Nature does not impose a strict layout as standard however authors are advised to check the individual requirements for the journal they are planning to submit to as there may be journal-level preferences. When preparing your text please also be aware that some stylistic choices are not supported in full text XML (publication version), including coloured font. These will not be replicated in the typeset article if it is accepted.
\end{document}
答案2
尝试使用这个,当然,用你的 orcid 号码替换 xxxx-xxxx-xxxx-xxxx:
\usepackage{iftex}
\usepackage{xcolor}
\ifTUTeX
\RequirePackage{academicons}
\definecolor{orcidlogocol}{HTML}{A6CE39}
\newcommand{\myorcid}{%
\href{https://orcid.org/xxxx-xxxx-xxxx-xxxx}{\textcolor{orcidlogocol}{\aiOrcid}} %
}
\else
\RequirePackage{orcidlink}
\newcommand{\myorcid}{\orcidlink{xxxx-xxxx-xxxx-xxxx}}
\fi