diff options
author | Karl Berry <karl@freefriends.org> | 2023-12-31 21:25:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-12-31 21:25:45 +0000 |
commit | af09058b914c57cb2556316dfab10ce6b1d04c48 (patch) | |
tree | 49d177c87f441a0128332145efbe5811899e6a86 /Master | |
parent | 3b46dd044717394178574a6a2890ebf47e263432 (diff) |
orcidlink (31dec23)
git-svn-id: svn://tug.org/texlive/trunk@69253 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/orcidlink/README.md | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf | bin | 176940 -> 180848 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx | 25 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/orcidlink/orcidlink.ins | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty | 11 |
5 files changed, 39 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/orcidlink/README.md b/Master/texmf-dist/doc/latex/orcidlink/README.md index 6b0100438a6..272e3f9bee7 100644 --- a/Master/texmf-dist/doc/latex/orcidlink/README.md +++ b/Master/texmf-dist/doc/latex/orcidlink/README.md @@ -30,8 +30,8 @@ When you want to insert the hyperlinked ORCiD logo, use `\orcidlink{0000-0000-00 This will appear as a clickable hyperlink, and will look like this: ![Author LaTeX render preview image](https://raw.githubusercontent.com/duetosymmetry/orcidlink-LaTeX-command/f03c85cd9fe3e40bec5f51b1319b0e9ab30c2e09/preview.png) -Dependancies ------------- +Dependancies and Compatibility +------------------------------ This package relies on the following packages: - [hyperref](https://www.ctan.org/pkg/hyperref) @@ -39,12 +39,16 @@ This package relies on the following packages: All of these packages are included in the popular [TeX Live](https://www.tug.org/texlive/) distribution, so most users should not have to install anything new. +If you want to pass options to either of these packages, load them +before you load `orcidlink`. Similarly, if you want to specify options +to e.g. `xcolor`, load `xcolor` before loading `tikz` or `orcidlink`. + Credits ------- The original TikZ icon code was created by user [Milo on TeX.SE](https://tex.stackexchange.com/users/128068/milo). This package was created and is maintained by [Leo -C. Stein](http://duetosymmetry.com/), (c) 2019. +C. Stein](http://duetosymmetry.com/), (c) 2019-2023. This material is subject to the [LaTeX Project Public License 1.3c](https://www.ctan.org/license/lppl1.3). diff --git a/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf b/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf Binary files differindex 49a8daa112d..25ba75e856c 100644 --- a/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf +++ b/Master/texmf-dist/doc/latex/orcidlink/orcidlink.pdf diff --git a/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx b/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx index 219fb442680..e096f502f6e 100644 --- a/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx +++ b/Master/texmf-dist/source/latex/orcidlink/orcidlink.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment % -% Copyright (C) 2020 by Leo C. Stein <leo.stein@gmail.com> +% Copyright (C) 2019-2023 by Leo C. Stein <leo.stein@gmail.com> % --------------------------------------------------------------------------- % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 @@ -27,7 +27,7 @@ %<*driver> \documentclass{ltxdoc} \usepackage[dvipsnames]{xcolor} -\usepackage{orcidlink}[2021/03/15] +\usepackage{orcidlink}[2023/12/30] \hypersetup{colorlinks,urlcolor=NavyBlue,citecolor=NavyBlue,linkcolor=NavyBlue,pdfusetitle} \usepackage{graphicx} \EnableCrossrefs @@ -40,7 +40,7 @@ %</driver> % \fi % -% \CheckSum{33} +% \CheckSum{41} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -67,6 +67,8 @@ % scaling ourselves, and using DeclareRobustCommand} % \changes{v1.0.4}{2021/06/11}{Use XeTeXLinkBox to get hyperlink % working correctly with XeTeX. Thanks to Tim Henke for the bug report.} +% \changes{v1.0.5}{2023/12/30}{Turn off TikZ externalization of logos. +% Thanks to github user aquileia for the bug report.} % % \DoNotIndex{\newcommand,\newenvironment} % @@ -111,6 +113,14 @@ % \includegraphics[width=0.5\textwidth]{preview}\newline{} % The macro is used in the author line of this documentation as well. % +% \section{Package Compatibility} +% +% This package relies on \texttt{hyperref} and \texttt{tikz}. If you +% want to pass options to either of these packages, load them +% \emph{before} you load \texttt{orcidlink}. Similarly, if you want +% to specify options to e.g. \texttt{xcolor}, load \texttt{xcolor} +% before loading \texttt{tikz} or \texttt{orcidlink}. +% % \StopEventually{} % % \section{Implementation} @@ -122,7 +132,7 @@ % \begin{macrocode} \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{orcidlink} - [2021/06/11 v1.0.4 Linked ORCiD logo macro package] + [2023/12/30 v1.0.5 Linked ORCiD logo macro package] %% All I did was package up Milo's code on TeX.SE, %% see https://tex.stackexchange.com/a/445583/34063 @@ -150,6 +160,12 @@ %% We will compute the current X height to make the logo the right height \newlength{\@curXheight} +%% Prevent externalization of the ORCiD logo. +\newcommand{\@preventExternalization}{% +\ifcsname tikz@library@external@loaded\endcsname% +\tikzset{external/export next=false}\else\fi% +} + % \end{macrocode} % % \begin{macro}{\orcidlink} @@ -158,6 +174,7 @@ \texorpdfstring{% \setlength{\@curXheight}{\fontcharht\font`X}% \href{https://orcid.org/#1}{\XeTeXLinkBox{\mbox{% +\@preventExternalization% \begin{tikzpicture}[yscale=-\@OrigHeightRecip*\@curXheight, xscale=\@OrigHeightRecip*\@curXheight,transform shape] \pic{orcidlogo}; diff --git a/Master/texmf-dist/source/latex/orcidlink/orcidlink.ins b/Master/texmf-dist/source/latex/orcidlink/orcidlink.ins index dcdd43c005b..201841f6386 100644 --- a/Master/texmf-dist/source/latex/orcidlink/orcidlink.ins +++ b/Master/texmf-dist/source/latex/orcidlink/orcidlink.ins @@ -1,4 +1,4 @@ -%% Copyright (C) 2020 by Leo C. Stein <leo.stein@gmail.com> +%% Copyright (C) 2019-2023 by Leo C. Stein <leo.stein@gmail.com> %% -------------------------------------------------------------------------- %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -25,7 +25,7 @@ This is a generated file. -Copyright (C) 2020 by Leo C. Stein <leo.stein@gmail.com> +Copyright (C) 2019-2023 by Leo C. Stein <leo.stein@gmail.com> -------------------------------------------------------------------------- This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 diff --git a/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty b/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty index cfa2f7fa79f..93191be3eee 100644 --- a/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty +++ b/Master/texmf-dist/tex/latex/orcidlink/orcidlink.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2020 by Leo C. Stein <leo.stein@gmail.com> +%% Copyright (C) 2019-2023 by Leo C. Stein <leo.stein@gmail.com> %% -------------------------------------------------------------------------- %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -20,7 +20,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{orcidlink} - [2021/06/11 v1.0.4 Linked ORCiD logo macro package] + [2023/12/30 v1.0.5 Linked ORCiD logo macro package] %% All I did was package up Milo's code on TeX.SE, %% see https://tex.stackexchange.com/a/445583/34063 @@ -48,10 +48,17 @@ %% We will compute the current X height to make the logo the right height \newlength{\@curXheight} +%% Prevent externalization of the ORCiD logo. +\newcommand{\@preventExternalization}{% +\ifcsname tikz@library@external@loaded\endcsname% +\tikzset{external/export next=false}\else\fi% +} + \DeclareRobustCommand\orcidlink[1]{% \texorpdfstring{% \setlength{\@curXheight}{\fontcharht\font`X}% \href{https://orcid.org/#1}{\XeTeXLinkBox{\mbox{% +\@preventExternalization% \begin{tikzpicture}[yscale=-\@OrigHeightRecip*\@curXheight, xscale=\@OrigHeightRecip*\@curXheight,transform shape] \pic{orcidlogo}; |