diff options
author | Karl Berry <karl@freefriends.org> | 2021-02-18 22:20:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-02-18 22:20:50 +0000 |
commit | 4220324e99226b427519e0380034f951f67a011f (patch) | |
tree | cb991a317a2a496a06ca35e186b5769a1647fb00 /Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty | |
parent | 8c0263c4dae81b4fb2e0bb547d3954699856108b (diff) |
lwarp (18feb21)
git-svn-id: svn://tug.org/texlive/branches/branch2020@57791 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty index 0bf7e1aa03a..5096a264f66 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty @@ -16,7 +16,20 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. -\DeclareOption{thref}{} +\DeclareOption{thref}{ + \AtEndDocument{ + \PackageWarningNoLine{lwarp}{% + Lwarp uses cleveref, which takes over ntheorem's\MessageBreak + referencing, including + \protect\label \space and \protect\thref.\MessageBreak + Cleveref does not accept ntheorem's optional\MessageBreak + argument for \protect\label, so it will appear\MessageBreak + in the text. It is recommended to remove the\MessageBreak + thref option, \protect\usepackage{cleveref} instead,\MessageBreak + and remove any trailing optional arguments for \protect\label% + }% + } +} \newbool{LWR@ntheoremmarks} \boolfalse{LWR@ntheoremmarks} @@ -180,7 +193,10 @@ \newcommand{\LWR@inctheorem}{% \addtocounter{LWR@thisautoid}{1}% \LWR@stoppars% -\LWR@htmltag{a id="\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}"}\LWR@htmltag{/a}% +\LWR@htmltag{% + a id=\textquotedbl\LWR@print@mbox{autoid-\arabic{LWR@thisautoid}}\textquotedbl% +}% +\LWR@htmltag{/a}% \LWR@startpars% } \gdef\newtheoremstyle#1#2#3{% |