diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-ntheorem.sty | 15 |
1 files changed, 14 insertions, 1 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..9fc3fd7ffd5 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} |