diff options
author | Norbert Preining <norbert@preining.info> | 2023-12-31 03:03:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-12-31 03:03:08 +0000 |
commit | 5acd803fa16526d48d5c8e990dc509df22d856b7 (patch) | |
tree | c3ed1afd62a406b906debf826d6f4648e3317e76 /macros/latex/contrib/orcidlink | |
parent | fb8f0178a957d045f6b876e11ab2beb02d1ac08a (diff) |
CTAN sync 202312310303
Diffstat (limited to 'macros/latex/contrib/orcidlink')
-rw-r--r-- | macros/latex/contrib/orcidlink/README.md | 10 | ||||
-rw-r--r-- | macros/latex/contrib/orcidlink/orcidlink.dtx | 25 | ||||
-rw-r--r-- | macros/latex/contrib/orcidlink/orcidlink.ins | 4 | ||||
-rw-r--r-- | macros/latex/contrib/orcidlink/orcidlink.pdf | bin | 176940 -> 180848 bytes |
4 files changed, 30 insertions, 9 deletions
diff --git a/macros/latex/contrib/orcidlink/README.md b/macros/latex/contrib/orcidlink/README.md index 6b0100438a..272e3f9bee 100644 --- a/macros/latex/contrib/orcidlink/README.md +++ b/macros/latex/contrib/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/macros/latex/contrib/orcidlink/orcidlink.dtx b/macros/latex/contrib/orcidlink/orcidlink.dtx index 219fb44268..e096f502f6 100644 --- a/macros/latex/contrib/orcidlink/orcidlink.dtx +++ b/macros/latex/contrib/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/macros/latex/contrib/orcidlink/orcidlink.ins b/macros/latex/contrib/orcidlink/orcidlink.ins index dcdd43c005..201841f638 100644 --- a/macros/latex/contrib/orcidlink/orcidlink.ins +++ b/macros/latex/contrib/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/macros/latex/contrib/orcidlink/orcidlink.pdf b/macros/latex/contrib/orcidlink/orcidlink.pdf Binary files differindex 49a8daa112..25ba75e856 100644 --- a/macros/latex/contrib/orcidlink/orcidlink.pdf +++ b/macros/latex/contrib/orcidlink/orcidlink.pdf |