texlive[74993] Master/texmf-dist: upmethodology (21apr25)

commits+karl at tug.org commits+karl at tug.org
Mon Apr 21 21:16:54 CEST 2025


Revision: 74993
          https://tug.org/svn/texlive?view=revision&revision=74993
Author:   karl
Date:     2025-04-21 21:16:54 +0200 (Mon, 21 Apr 2025)
Log Message:
-----------
upmethodology (21apr25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/upmethodology/Changelog
    trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf
    trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex
    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-document.sty
    trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-extension.sty
    trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
    trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-frontpage.sty
    trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty

Modified: trunk/Master/texmf-dist/doc/latex/upmethodology/Changelog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/upmethodology/Changelog	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/doc/latex/upmethodology/Changelog	2025-04-21 19:16:54 UTC (rev 74993)
@@ -1,15 +1,2 @@
-
-n.n.n / 2025-04-12
-==================
-
-
-
-n.n.n / 2025-04-12
-==================
-
-  * Replace 'tabularx' by 'xltabular'.
-  * Add \figurenote and \addsource for mfigures environment.
-  * Add class options "tablecaptionabove" and "figurecaptionabove".
-  * Add command \upmcaption
 See Github changelog at:
 https://github.com/gallandarakhneorg/tex-upmethodology/commits/master

Modified: trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/doc/latex/upmethodology/upmethodology-doc.tex	2025-04-21 19:16:54 UTC (rev 74993)
@@ -15,6 +15,7 @@
 \incversion{\makedate{23}{03}{2025}}{Add documentation of the algorithms' colors.}{\upmpublic}
 \incversion{\makedate{06}{04}{2025}}{Add macro \texttt{{\textbackslash}upmcaption}.}{\upmpublic}
 \incversion{\makedate{12}{04}{2025}}{Replace \texttt{tabularx} by \texttt{xltabular} and table options \texttt{figurecaptionabove} and \texttt{figurecaptionabove}.}{\upmpublic}
+\incversion{\makedate{20}{04}{2025}}{Extend the internal value definition API.}{\upmpublic}
 
 \addauthorvalidator*[galland at arakhne.org]{St{\'e}phane}{Galland}{Original Author}
 \addauthor*{Frans}{van Dunn\'e}{Reviewer}
@@ -2306,8 +2307,12 @@
 
 The \texttt{upmethodology-frontpage} package is able to use a page layout defined in a document extension (see chapter~\ref{section:document:extension} for details on document extension).
 
-\pagebreak A \LaTeX\ command must be defined in the \texttt{upmext-NAME.cfg} file of the extension. The name of this command (for example \texttt{mylayout}) must be set with the \texttt{{\textbackslash}set} command in the same file:\\
-\texttt{{\textbackslash}Set\{frontpage\}\{mylayout\}}\\
+\pagebreak A \LaTeX\ command must be defined in the \texttt{upmext-NAME.cfg} file of the extension. The name of this command (for example \texttt{mylayout}) must be set with the \texttt{{\textbackslash}set} command in the same file:
+\begin{itemize}
+\item \texttt{{\textbackslash}Set\{frontpage\}\{mylayout\}} - for defining the entire content of the front page.
+\item \texttt{{\textbackslash}Set\{cfrontpage\}\{mycontent\}} - for defining the content of the front page using the white page layout.
+\item \texttt{{\textbackslash}Set\{cfrontpage2\}\{mycontent\}} - for defining the content of the second front page using the white page layout. The second page layout is rendered after the first front page.
+\end{itemize}
 
 \section{Localization}
 
@@ -2386,7 +2391,7 @@
 Additional commands are provided to redefine the \texttt{upmethodology-document} constants:\\
 \texttt{{\textbackslash}Set{[}lang{]}\{variable\_name\}\{value\}}\\
 
-The \texttt{variable\_name} is the name of the value to override. It must be taken in one of the names listed in table~\tabref{documentextension:names:set}. The \texttt{lang} parameter is a language identifier. It is used to restrict the definition to a specific language. If not given, the default language is used instead. The \texttt{image\_name} and \texttt{image\_scale} are the name of the image file and the scaling factor respectively.
+The \texttt{variable\_name} is the name of the value to override. It must be taken in one of the names listed in table~\tabref{documentextension:names:set}. The \texttt{lang} parameter is a language identifier. It is used to restrict the definition to a specific language. If not given, the default language is used instead. If it is given, the value is set only of the current language corresponds to the given \texttt{lang}. The \texttt{image\_name} and \texttt{image\_scale} are the name of the image file and the scaling factor respectively.
 
 \begin{mtable}{\linewidth}{2}{lX}{List of overiddable value names}{documentextension:names:set}
 	\hline
@@ -2411,9 +2416,15 @@
 	\hline
 \end{mtable}
 
-The \texttt{{\textbackslash}Get} command allows you to retrieve the value defined by a \texttt{{\textbackslash}Set}:\\
+The \texttt{{\textbackslash}SetLangDefault} command allows you to define a value for a specific language. It also change the language-independent value for the given variable name: \\
+\texttt{{\textbackslash}SetLangDefault\{language\}\{variable\_name\}\{text\}} \\
+
+The \texttt{{\textbackslash}Get} command allows you to retrieve the value defined by a \texttt{{\textbackslash}Set} for the current language:\\
 \texttt{{\textbackslash}Get\{variable\_name\}} \\
 
+The \texttt{{\textbackslash}GetLang} command allows you to retrieve the value defined by a \texttt{{\textbackslash}Set} or \texttt{{\textbackslash}SetLangDefault} for a specific language:\\
+\texttt{{\textbackslash}GetLang\{language\}\{variable\_name\}} \\
+
 The \texttt{{\textbackslash}Append} command allows you to append text to an existing definition of a value:\\
 \texttt{{\textbackslash}Append\{variable\_name\}\{text to append\}} \\
 

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/UPMVERSION.def	2025-04-21 19:16:54 UTC (rev 74993)
@@ -1 +1 @@
-\def\UPMVERSION{20250412}
+\def\UPMVERSION{20250420}

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.cls	2025-04-21 19:16:54 UTC (rev 74993)
@@ -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{2025/04/12}
+\global\edef\upm at package@docclazz at ver{2025/04/20}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesClass{upmethodology-document}[\upm at package@docclazz at ver]
@@ -216,10 +216,6 @@
 % HEADERS AND FOOTERS
 %----------------------------------------
 
-% TODO REMOVE
-%\def\upm at header@fmt#1{\textsc{\scriptsize #1}}
-%\def\upm at copyright@fmt#1{\textsc{\tiny #1}}
-
 \colorlet{pageheadertext}{gray}
 \colorlet{pageheadersection}{darkgray}
 \colorlet{pagefootertext}{gray}

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.sty	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-document.sty	2025-04-21 19:16:54 UTC (rev 74993)
@@ -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@doc at ver{2025/04/12}
+\global\edef\upm at package@doc at ver{2025/04/20}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{upmethodology-document}[\upm at package@doc at ver]

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-extension.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-extension.sty	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-extension.sty	2025-04-21 19:16:54 UTC (rev 74993)
@@ -18,7 +18,7 @@
 % 330, Boston, MA 02111-1307, USA.
 %
 
-\global\edef\upm at package@ext at ver{2025/04/12}
+\global\edef\upm at package@ext at ver{2025/04/20}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{upmethodology-extension}[\upm at package@ext at ver]
@@ -37,10 +37,14 @@
 % EXTENSION MANAGEMENT
 %----------------------------------------
 
-\newif\ifupm at extension@savealllang\upm at extension@savealllangfalse
+\newif\ifupm at extension@savealllang\upm at extension@savealllangtrue
 
 \newcommand{\Get}[1]{\@nameuse{upmext at extension@value@#1}}
 \newcommand{\GetLang}[2]{\@nameuse{upmext at extension@value@#1@#2}}
+\newcommand{\SetLangDefault}[3]{%
+	\@namedef{upmext at extension@value@#1@#2}{#3}%
+	\@namedef{upmext at extension@value@#2}{#3}%
+}
 
 \newcommand{\upm at extension@Set}[3][\upmcurrentlang]{%
 	% PREDEFINED FRONT PAGE
@@ -61,13 +65,17 @@
 			\gdef\upmext at extension@value at frontpage@custom{#3}%
 		}{}%
 	}{%			
-		\ifthenelse{\equal{\upmcurrentlang}{#1}}{%
-			\message{*** define the extension value #2 ****}%
-			\global\@namedef{upmext at extension@value@#2}{#3}%
-			}{}%
-		\ifupm at extension@savealllang%
-			\global\@namedef{upmext at extension@value@#2@#1}{#3}%
-		\fi
+		\ifthenelse{\equal{#2}{cfrontpage2}}{%
+			\gdef\upmext at extension@value at frontpage@custom at second{#3}%
+		}{%
+			\ifthenelse{\equal{\upmcurrentlang}{#1}}{%
+				\message{*** define the extension value #2 ****}%
+				\global\@namedef{upmext at extension@value@#2}{#3}%
+				}{}%
+			\ifupm at extension@savealllang%
+				\global\@namedef{upmext at extension@value@#2@#1}{#3}%
+			\fi
+		}%
 	}}}%
 }
 \let\Set\upm at extension@Set

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-fmt.sty	2025-04-21 19:16:54 UTC (rev 74993)
@@ -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{2025/04/12}
+\global\edef\upm at package@fmt at ver{2025/04/20}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{upmethodology-fmt}[\upm at package@fmt at ver]

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-frontpage.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-frontpage.sty	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-frontpage.sty	2025-04-21 19:16:54 UTC (rev 74993)
@@ -18,7 +18,7 @@
 % 330, Boston, MA 02111-1307, USA.
 %
 
-\global\edef\upm at package@fp at ver{2025/04/12}
+\global\edef\upm at package@fp at ver{2025/04/20}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{upmethodology-frontpage}[\upm at package@fp at ver]
@@ -211,6 +211,11 @@
 				\begin{titlepage}%
 				\Get{frontpage at custom}%
 				\end{titlepage}%
+				\Ifdefined{frontpage at custom@second}{%
+					\begin{titlepage}%
+					\Get{frontpage at custom@second}%
+					\end{titlepage}%
+				}%
 			}%
 		}%
 	}%

Modified: trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty	2025-04-21 19:16:46 UTC (rev 74992)
+++ trunk/Master/texmf-dist/tex/latex/upmethodology/upmethodology-p-common.sty	2025-04-21 19:16:54 UTC (rev 74993)
@@ -16,7 +16,7 @@
 % 330, Boston, MA 02111-1307, USA.
 %
 
-\global\edef\upm at package@private at doctype@ver{2025/04/12}
+\global\edef\upm at package@private at doctype@ver{2025/04/20}
 
 \NeedsTeXFormat{LaTeX2e}[1995/12/01]
 \ProvidesPackage{upmethodology-p-common}[\upm at package@private at doctype@ver]



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