概述
一、前言:
小白正在投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}{expandafterxdefcsname orcidxendcsname{noexpandhref{https://orcid.org/csname orcidauthorxendcsname
{noexpandorcidicon}}
}
*可能用不上这么多,但不建议改动。
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_StarscreamorcidA{}}
三、实例
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}{%
expandafterxdefcsname orcidxendcsname{noexpandhref{https://orcid.org/csname orcidauthorxendcsname}{noexpandorcidicon}}
}
% 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 OneorcidA{}}
% 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 TwoorcidB{}}
maketitle
begin{abstract}
lipsum[1] % Generate some random text
end{abstract}
section{Lorem ipsum dolor sit amet}
lipsum % Generate some random text
end{document}
*亲测有效
最后
以上就是单纯哈密瓜为你收集整理的「 LaTex 」写论文,Springer杂志插入ORCID的全部内容,希望文章能够帮你解决「 LaTex 」写论文,Springer杂志插入ORCID所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复