texlive[64613] Master/texmf-dist/tex/latex/upmethodology:

commits+karl at tug.org commits+karl at tug.org
Tue Oct 4 21:53:34 CEST 2022


Revision: 64613
          http://tug.org/svn/texlive?view=revision&revision=64613
Author:   karl
Date:     2022-10-04 21:53:34 +0200 (Tue, 04 Oct 2022)
Log Message:
-----------
upmethodology (4oct22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
    trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls
    trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def	2022-10-04 19:53:19 UTC (rev 64612)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def	2022-10-04 19:53:34 UTC (rev 64613)
@@ -1 +1 @@
-\def\UPMVERSION{20220210}
+\def\UPMVERSION{20221004}

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls	2022-10-04 19:53:19 UTC (rev 64612)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls	2022-10-04 19:53:34 UTC (rev 64613)
@@ -17,7 +17,7 @@
 % write to the Free Software Foundation, Inc., 59 Temple Place - Suite
 % 330, Boston, MA 02111-1307, USA.
 
-\global\edef\upm at package@docclazz at ver{2022/02/10}
+\global\edef\upm at package@docclazz at ver{2022/10/04}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{upmethodology-document}[\upm at package@docclazz at ver]

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty	2022-10-04 19:53:19 UTC (rev 64612)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty	2022-10-04 19:53:34 UTC (rev 64613)
@@ -17,7 +17,7 @@
 % write to the Free Software Foundation, Inc., 59 Temple Place - Suite
 % 330, Boston, MA 02111-1307, USA.
 
-\global\edef\upm at package@fmt at ver{2022/02/10}
+\global\edef\upm at package@fmt at ver{2022/10/04}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{upmethodology-fmt}[\upm at package@fmt at ver]
@@ -1270,18 +1270,44 @@
 	\let\upm at item@param\upm at fmt@olditem
 	\let\upm at item@noparam\upm at fmt@olditem
 	\def\item{\@ifnextchar[\upm at item@param\upm at item@noparam}
-	\AtBeginDocument{
+	\newcommand{\overridedescriptionenvironment}{%
 		\message{*** Overriding the 'description' environment. Pass option 'standardlists' for avoiding this override.}
+		% Override the description environment
 		\global\let\description\@undefined
 		\global\let\enddescription\@undefined
 		\global\NewEnviron{description}[1][\upm at fmt@itemizeddescription at separator]{
 			\begin{itemize}%
-			\renewcommand{\upm at item@param}[1][]{\upm at fmt@olditem \upm at fmt@itemizeddescription at desc{##1}{#1}}%
+			\renewcommand{\upm at item@param}[1][]{\upm at fmt@olditem \upm at fmt@itemizeddescription at desc{####1}{##1}}%
 			\renewcommand{\upm at item@noparam}{\upm at fmt@olditem }%
 			\BODY%
 			\end{itemize}%
 		}
 	}
+	\newcommand{\restoredescriptionenvironment}{%
+		\message{*** Restoring the 'description' environment.}
+		\global\let\description\@upm at fmt@overriden at description%
+		\global\let\enddescription\@upm at fmt@overriden at enddescrption%
+	}
+	\AtBeginDocument{
+		% Save the original definition for later restore
+		\global\let\@upm at fmt@overriden at description\description%
+		\global\let\@upm at fmt@overriden at enddescrption\enddescription%
+		\overridedescriptionenvironment%
+		\@ifundefined{printglossary}{}{%
+			\message{*** Overriding the 'printglossary' macro.}
+			\global\let\upm at fmt@printglossary at original\printglossary%
+			\global\newcommand{\upm at fmt@printglossary}[1][]{%
+				\message{*** Evaluating 'printglossary' macro.}%
+				\restoredescriptionenvironment%
+				\upm at fmt@printglossary at original[#1]%
+				\overridedescriptionenvironment%
+			}%
+			\global\let\printglossary\upm at fmt@printglossary%
+		}%
+	}
+\else
+	\newcommand{\overridedescriptionenvironment}{}
+	\newcommand{\restoredescriptionenvironment}{}
 \fi
 
 %----------------------------------------



More information about the tex-live-commits mailing list.