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/orcidlink.dtx | |
parent | fb8f0178a957d045f6b876e11ab2beb02d1ac08a (diff) |
CTAN sync 202312310303
Diffstat (limited to 'macros/latex/contrib/orcidlink/orcidlink.dtx')
-rw-r--r-- | macros/latex/contrib/orcidlink/orcidlink.dtx | 25 |
1 files changed, 21 insertions, 4 deletions
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}; |