「 LaTex 」Springer杂志插入ORCID

一.前言:

小白正在投Springer文章,遇“在作者右上角插入ORCID图标”问题,经挣扎后得此经验。成功后如下图:

二.技术实现

1.插入库,代码如下:

\usepackage{tikz,xcolor,hyperref}

2.插入图标,代码如下:

\definecolor{lime}{HTML}{A6CE39}
\DeclareRobustCommand{\orcidicon}{
	\begin{tikzpicture}
	\draw[lime, fill=lime] (0,0) 
	circle [radius=0.16] 
	node[white] {{\fontfamily{qag}\selectfont \tiny ID}};
	\draw[white, fill=white] (-0.0625,0.095) 
	circle [radius=0.007];
	\end{tikzpicture}
	\hspace{-2mm}
}

*官网给的参数设定,可以按需修改。

3.定义编号,代码如下:

\foreach \x in {A, ..., Z}{\expandafter\xdef\csname orcid\x\endcsname{\noexpand\href{https://orcid.org/\csname orcidauthor\x\endcsname
			{\noexpand\orcidicon}}
}

*可能用不上这么多,但不建议改动。

4.建立ORCID调用库,代码如下:

\newcommand{\orcidauthorA}{0000-0002-1707-7122} % For author A
\newcommand{\orcidauthorB}{0000-0001-7246-8612} % For author B
\newcommand{\orcidauthorC}{0000-0002-6416-6320} % For author C

*各位研友可以关注第一个人。

5.作者调用,代码如下:

\author[Author One]{Robot_Starscream\orcidA{}}

三.实例

\documentclass{amsart}

\usepackage{lipsum} % To generate some text for the article via \lipsum

%------------------------------------------------------------------------------
% Code for ORCID iD
%------------------------------------------------------------------------------
\usepackage{tikz,xcolor,hyperref}

% Make Orcid icon
\definecolor{lime}{HTML}{A6CE39}
\DeclareRobustCommand{\orcidicon}{%
	\begin{tikzpicture}
	\draw[lime, fill=lime] (0,0) 
	circle [radius=0.16] 
	node[white] {{\fontfamily{qag}\selectfont \tiny ID}};
	\draw[white, fill=white] (-0.0625,0.095) 
	circle [radius=0.007];
	\end{tikzpicture}
	\hspace{-2mm}
}

\foreach \x in {A, ..., Z}{%
	\expandafter\xdef\csname orcid\x\endcsname{\noexpand\href{https://orcid.org/\csname orcidauthor\x\endcsname}{\noexpand\orcidicon}}
}

% Define the ORCID iD command for each author separately. Here done for two authors.
\newcommand{\orcidauthorA}{0000-0001-5316-8964}
\newcommand{\orcidauthorB}{0000-0002-6963-295X}

\begin{document}

\title{Lorem ipsum dolor sit amet}

% First author
\author[Author One]{Author One\orcidA{}}
% IMPORTANT: specify explicitly the running author name via the option [ ],
% otherwise the ORCID logo will be generated at every occurence of the author name in the pdf file
% at the top of the page. Clearly not what one would like to see.

% Second author
\author[Author Two]{Author Two\orcidB{}}

\maketitle

\begin{abstract}
\lipsum[1] % Generate some random text
\end{abstract}

\section{Lorem ipsum dolor sit amet}

\lipsum % Generate some random text

\end{document}

*亲测有效

扫描二维码关注公众号,回复: 9123814 查看本文章
发布了191 篇原创文章 · 获赞 611 · 访问量 19万+

猜你喜欢

转载自blog.csdn.net/Robot_Starscream/article/details/104221623