summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/revquantum
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-03-15 21:16:12 +0000
committerKarl Berry <karl@freefriends.org>2017-03-15 21:16:12 +0000
commit4338470395169d0b4ebc86b864961cfd61f80d69 (patch)
tree305b67ec8c622a68d60c7f7176934469ba393de4 /Master/texmf-dist/source/latex/revquantum
parent80b2dce1110ea0c9bc2dfeaa992f050dfb65cda5 (diff)
revquantum (15mar17)
git-svn-id: svn://tug.org/texlive/trunk@43505 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/revquantum')
-rw-r--r--Master/texmf-dist/source/latex/revquantum/revquantum.dtx38
1 files changed, 30 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/revquantum/revquantum.dtx b/Master/texmf-dist/source/latex/revquantum/revquantum.dtx
index 32a7e089a36..103ea3b0bf1 100644
--- a/Master/texmf-dist/source/latex/revquantum/revquantum.dtx
+++ b/Master/texmf-dist/source/latex/revquantum/revquantum.dtx
@@ -26,7 +26,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<package>\ProvidesPackage{revquantum}
%<*package>
- [2016/09/21 v0.10 Build script fixes for CTAN submission.]
+ [2017/03/15 v0.11 Misc. fixes and improved installer.]
%</package>
%
%<*driver>
@@ -550,6 +550,7 @@
}{}
\ifthenelse{\boolean{@bibtexhacks}}{
\RequirePackage{letltxmacro}
+ \RequirePackage{etoolbox}
}{}
% \end{macrocode}
@@ -664,17 +665,21 @@
% suggested by egreg} for a rather annoying |{revtex4-1}| bug. In particular,
% we will set up |language={en}| as an alias for |language={english}|, so that
% |{revtex4-1}| will no longer raise |{babel}| errors for the undefined language.
+% As with our unforgivable hacks, we will guard the forgivable hacks with
+% the |[nobibtexhacks]| option.
% \begin{macro}{\ORIGselectlanguage}
% \begin{macrocode}
-\LetLtxMacro{\ORIGselectlanguage}{\selectlanguage}
-\DeclareRobustCommand{\selectlanguage}[1]{%
- \@ifundefined{alias@\string#1}
- {\ORIGselectlanguage{#1}}
- {\begingroup\edef\x{\endgroup
- \noexpand\ORIGselectlanguage{\@nameuse{alias@#1}}}\x}%
-}
+\ifthenelse{\boolean{@bibtexhacks}}{
+ \LetLtxMacro{\ORIGselectlanguage}{\selectlanguage}
+ \DeclareRobustCommand{\selectlanguage}[1]{%
+ \@ifundefined{alias@\string#1}
+ {\ORIGselectlanguage{#1}}
+ {\begingroup\edef\x{\endgroup
+ \noexpand\ORIGselectlanguage{\@nameuse{alias@#1}}}\x}%
+ }
+}{}
% \end{macrocode}
% \end{macro}
@@ -697,6 +702,23 @@
% \end{macrocode}
+% We will also redefine |\doibase| to eat any newlines following it, and to
+% prefer HTTPS to HTTP. This will fix a rather annoying bug where line breaks
+% in the *.bbl source can introduce extraneous spaces into the target of
+% each citation's |\href|.
+
+% \begin{macro}{\doibase}
+% \begin{macrocode}
+
+\ifthenelse{\boolean{@bibtexhacks}}{
+ % Ensure that the \doibase command is defined, just in case.
+ \providecommand{\doibase}{}
+ \renewcommand{\doibase}[1]{https://dx.doi.org/\ifdefempty{#1}{}{#1}}
+}{}
+
+% \end{macrocode}
+% \end{macro}
+
% \subsection{TODO Support} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%