Skip to content

Commit

Permalink
Don't use \nameref* in LaTeXML build
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Oct 7, 2020
1 parent 0c5fd90 commit 27027b1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,19 @@
%\crefname{equation}{}{}
%\Crefname{equation}{}{}

\ifpdf
\newcommand{\crefnameref}[1]{\cref{#1}~\emph{\nameref*{#1}}}
\newcommand{\Crefnameref}[1]{\Cref{#1}~\emph{\nameref*{#1}}}
\else
% Don't use \nameref* while waiting for LaTeXML issue to get fixed:
% - https://github.com/brucemiller/LaTeXML/issues/1348
% At the same time, there are also problems with the normal \nameref:
% - https://github.com/brucemiller/LaTeXML/issues/1350
% Since the excessive output of \nameref only replaces the need for \cref for some labels,
% we can't rely on just \nameref, meaning we can't use it at all.
\let\crefnameref\cref
\let\Crefnameref\Cref
\fi

% Make all description lists break the line after each key.
% henrikt-ma: Commenting out use of the enumitem package, see above.
Expand Down

0 comments on commit 27027b1

Please sign in to comment.