Skip to content

Commit a3f231d

Browse files
Fix for submission
1 parent eac1cd0 commit a3f231d

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

_extensions/arxiv/_extension.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: ArXiV Template
22
author: Mike Mahoney
3-
version: 0.1.0
3+
version: 0.1.1
44
contributes:
55
formats:
66
common:
@@ -20,13 +20,15 @@ contributes:
2020
# Content to add in header that your format is using
2121
header-includes: |
2222
\usepackage{arxiv}
23+
\usepackage{hyperref}
2324
\usepackage{orcidlink}
2425
\usepackage{amsmath}
2526
\usepackage[T1]{fontenc}
2627
template-partials: ["partials/_authors.tex", "partials/title.tex", "partials/before-body.tex"]
2728
format-resources:
2829
# Add here the resources required for the PDF rendering
2930
- arxiv.sty
31+
- orcidlink.sty
3032
html:
3133
toc: true
3234
# Use a CSL file to style (https://www.zotero.org/styles/)

_extensions/arxiv/orcidlink.sty

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
%%
2+
%% This is file `orcidlink.sty',
3+
%% generated with the docstrip utility.
4+
%%
5+
%% The original source files were:
6+
%%
7+
%% orcidlink.dtx (with options: `package')
8+
%%
9+
%% This is a generated file.
10+
%%
11+
%% Copyright (C) 2020 by Leo C. Stein <[email protected]>
12+
%% --------------------------------------------------------------------------
13+
%% This work may be distributed and/or modified under the
14+
%% conditions of the LaTeX Project Public License, either version 1.3
15+
%% of this license or (at your option) any later version.
16+
%% The latest version of this license is in
17+
%% http://www.latex-project.org/lppl.txt
18+
%% and version 1.3 or later is part of all distributions of LaTeX
19+
%% version 2005/12/01 or later.
20+
%%
21+
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
22+
\ProvidesPackage{orcidlink}
23+
[2021/06/11 v1.0.4 Linked ORCiD logo macro package]
24+
25+
%% All I did was package up Milo's code on TeX.SE,
26+
%% see https://tex.stackexchange.com/a/445583/34063
27+
\RequirePackage{hyperref}
28+
\RequirePackage{tikz}
29+
30+
\ProcessOptions\relax
31+
32+
\usetikzlibrary{svg.path}
33+
34+
\definecolor{orcidlogocol}{HTML}{A6CE39}
35+
\tikzset{
36+
orcidlogo/.pic={
37+
\fill[orcidlogocol] svg{M256,128c0,70.7-57.3,128-128,128C57.3,256,0,198.7,0,128C0,57.3,57.3,0,128,0C198.7,0,256,57.3,256,128z};
38+
\fill[white] svg{M86.3,186.2H70.9V79.1h15.4v48.4V186.2z}
39+
svg{M108.9,79.1h41.6c39.6,0,57,28.3,57,53.6c0,27.5-21.5,53.6-56.8,53.6h-41.8V79.1z M124.3,172.4h24.5c34.9,0,42.9-26.5,42.9-39.7c0-21.5-13.7-39.7-43.7-39.7h-23.7V172.4z}
40+
svg{M88.7,56.8c0,5.5-4.5,10.1-10.1,10.1c-5.6,0-10.1-4.6-10.1-10.1c0-5.6,4.5-10.1,10.1-10.1C84.2,46.7,88.7,51.3,88.7,56.8z};
41+
}
42+
}
43+
44+
%% Reciprocal of the height of the svg whose source is above. The
45+
%% original generates a 256pt high graphic; this macro holds 1/256.
46+
\newcommand{\@OrigHeightRecip}{0.00390625}
47+
48+
%% We will compute the current X height to make the logo the right height
49+
\newlength{\@curXheight}
50+
51+
\DeclareRobustCommand\orcidlink[1]{%
52+
\texorpdfstring{%
53+
\setlength{\@curXheight}{\fontcharht\font`X}%
54+
\href{https://orcid.org/#1}{\XeTeXLinkBox{\mbox{%
55+
\begin{tikzpicture}[yscale=-\@OrigHeightRecip*\@curXheight,
56+
xscale=\@OrigHeightRecip*\@curXheight,transform shape]
57+
\pic{orcidlogo};
58+
\end{tikzpicture}%
59+
}}}}{}}
60+
61+
\endinput
62+
%%
63+
%% End of file `orcidlink.sty'.

0 commit comments

Comments
 (0)