diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/autonum/autonum.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/autonum/autonum.dtx | 29 |
1 files changed, 26 insertions, 3 deletions
diff --git a/Master/texmf-dist/source/latex/autonum/autonum.dtx b/Master/texmf-dist/source/latex/autonum/autonum.dtx index b1424f0cbd8..43d053fed81 100644 --- a/Master/texmf-dist/source/latex/autonum/autonum.dtx +++ b/Master/texmf-dist/source/latex/autonum/autonum.dtx @@ -85,7 +85,7 @@ and the derived files autonum.ins, %</internal> %<*package> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{autonum}[2013/06/15 v0.3.5 autonum LaTeX package] +\ProvidesPackage{autonum}[2013/10/13 v0.3.6 autonum LaTeX package] \PassOptionsToPackage{hypertexnames=false}{hyperref} \RequirePackage{etoolbox} \RequirePackage{amsmath} @@ -133,6 +133,7 @@ and the derived files autonum.ins, %\changes{v0.3.3}{2013/04/20}{Fix using cleveref inside section.} %\changes{v0.3.4}{2013/04/28}{Gracefully handle deactivating the package.} %\changes{v0.3.5}{2013/06/15}{Support reference commands with optional arguments or stars.} +%\changes{v0.3.6}{2013/10/13}{Fix special characters regression. Fix deactivating the package with TOC and LOF} % % \section{Introduction} % With \LaTeX, the user has to decide manually to not number an equation by adding a star in the math environment. Authors who do not want to think about the numbering during the writing (and maybe they should not), often use the environments without stars. As default, these users get all equations numbered, although there are \href{http://tex.stackexchange.com/q/29267/7323}{different opinions} about what should be numbered. @@ -265,6 +266,8 @@ and the derived files autonum.ins, % % \section{Further Ideas} % \begin{itemize} +% \item For equations with multiple lines, which have a width close to the linewidth, but whose width at the middle/end is not so large, the equation number should not be set below the equation but next to the equation as it is done if the equation is smaller. +% \item Every label and every reference string could be transformed by \cmd{\pdfmdfivesum} if pdftex and inputenc with utf8 are used. This would enable support for all sort of special characters % \item A similar approach could be used for figure and table environments to print a warning, if such an environment is not referenced. With the subfig package, the solution would be harder, as a figure or table may be unreferenced, if all subfloats are referenced. Similarly, a subfloat may be unreferenced, if its parent environment is referenced. So the warning should only be printed if an unreferenced parent environment either does not have any child environment or if there is an unreferenced child environment. % \item A warning could be printed, if another compile is necessary. % \item A "*" could be used instead of a "+". @@ -288,6 +291,7 @@ and the derived files autonum.ins, % \item Joseph Wright % \begin{itemize} % \item created a \href{http://tex.stackexchange.com/a/64271/7323}{correctly working} \cmd{\csxdefaux} what lead to the support of special characters +% \item sent an MWE showing a regression in the support of special characters what lead to its fix % \end{itemize} % \item Jonas Nyrup % \begin{itemize} @@ -323,6 +327,11 @@ and the derived files autonum.ins, % \item Michel Voßkuhle % \begin{itemize} % \item found a bug when using autonum together with the subcaption package due to the missing support of starred reference commands in autonum which lead to its fix +% \item sent an MWE showing a regression in the support of special characters what lead to its fix +% \end{itemize} +% \item Pascal Germroth +% \begin{itemize} +% \item sent an MWE showing a regression in the support of special characters what lead to its fix % \end{itemize} % \end{itemize} % @@ -348,11 +357,16 @@ and the derived files autonum.ins, % \end{macrocode} % The commented and the uncommented lines should do the same. The longer variant has the advantage, that there is no error the first run after the deactivation of the autonum package, as \cmd{\xdef}, read from the aux file, is always a known command, whereas \cmd{\csxdef} might not be known in that case, as with the deactivation of autonum it might happen, that etoolbox is not loaded anymore, too. % \begin{macrocode} -% \csxdef{\detokenize{#1}}{#2}% - \expandafter\string\expandafter\xdef\expandafter\string\csname #1\endcsname{#2}% + \csxdef{\detokenize{#1}}{#2}% }% } % \end{macrocode} +% Do not abort compilation, if the package has been deactivated from the last compilation to the current one and thus \cmd{\csxdef} might have become undefined (as etoolbox might not be loaded anymore). Therefore, add a dummy implementation of \cmd{\csxdef} to the aux file, which gets loaded if the real implementation is not available any longer. +% \begin{macrocode} +\protected@write\@mainaux{}{% + \string\providecommand\string\csxdef[2]{}% +} +% \end{macrocode} %\end{macro} %\begin{macro}{\csxdefall} @@ -785,6 +799,15 @@ and the derived files autonum.ins, }% }% % \end{macrocode} +% Do not abort compilation, if the package has been deactivated from the last compilation to the current one and thus the table of content or the list of figure files might reference the now undefined \cmd{\autonum@processReference} command. Therefore, add a dummy implementation to both files, which gets loaded if the real implementation is not available any longer. The dummy implementation is only written, if the respective files exist (are otherwise used). +% \begin{macrocode} +\addtocontents{toc}{% + \string\providecommand\string\autonum@processReference[2]{}% +} +\addtocontents{lof}{% + \string\providecommand\string\autonum@processReference[2]{}% +} +% \end{macrocode} %\end{macro} %\begin{macro}{\autonum@processReference} |