texlive[54434] Master/texmf-dist: glosmathtools (20mar20)

commits+karl at tug.org commits+karl at tug.org
Fri Mar 20 22:27:22 CET 2020


Revision: 54434
          http://tug.org/svn/texlive?view=revision&revision=54434
Author:   karl
Date:     2020-03-20 22:27:21 +0100 (Fri, 20 Mar 2020)
Log Message:
-----------
glosmathtools (20mar20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/glosmathtools/README.md
    trunk/Master/texmf-dist/doc/latex/glosmathtools/sample_glosmathtools.pdf
    trunk/Master/texmf-dist/doc/latex/glosmathtools/sample_glosmathtools.tex
    trunk/Master/texmf-dist/tex/latex/glosmathtools/glosmathtools.sty

Modified: trunk/Master/texmf-dist/doc/latex/glosmathtools/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/glosmathtools/README.md	2020-03-20 21:27:05 UTC (rev 54433)
+++ trunk/Master/texmf-dist/doc/latex/glosmathtools/README.md	2020-03-20 21:27:21 UTC (rev 54434)
@@ -23,7 +23,7 @@
 
 ## Version
 
-0.5.1 (2019-08-02)
+0.5.2 (2020-03-20)
 
 ## Author
 

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

Modified: trunk/Master/texmf-dist/doc/latex/glosmathtools/sample_glosmathtools.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/glosmathtools/sample_glosmathtools.tex	2020-03-20 21:27:05 UTC (rev 54433)
+++ trunk/Master/texmf-dist/doc/latex/glosmathtools/sample_glosmathtools.tex	2020-03-20 21:27:21 UTC (rev 54434)
@@ -11,7 +11,8 @@
 \ifxetex\else \usepackage[utf8]{inputenc} \fi
 \usepackage{mathtools,siunitx,amsmath,amsfonts}
 \usepackage{hyperref} % dernier package chargé sauf glosmathtools
-\usepackage[qtmarkupright,singlelineskip]{glosmathtools}
+% option "toc" passé à glossaries : ajout nomenclature dans signets du PDF :
+\usepackage[qtmarkupright,singlelineskip,toc]{glosmathtools}
 %% ===================== preamble ============================================
 %% ------------- glosmathtools -----------------------------------------------
 \makeglossaries% executé en premier
@@ -22,7 +23,7 @@
 \renewcommand*{\glscatnamefmt}[1]{\textbf{#1}} % format des catégories
 %% ------------- ulthese ----------------------------------------------------
 \titre{Documentation et exemple de \texttt{glosmathtools} dans \texttt{ulthese}}
-\soustitre{v0.5.1}
+\soustitre{v0.5.2}
 \auteur{Francis Gagnon}
 %% ============================================================================
 
@@ -58,7 +59,7 @@
 	\item[nodefop] utilisation des opérateurs et accents sans définition
 	\item[{[autres options]}] passés au package \texttt{glossaries}
 \end{description}
-De plus amples informations sont fournies ci-dessous.
+Par exemple, l'option \textbf{toc} du package \texttt{glossaries} peut être ajouté afin d'inclure la nomenclature dans la table des matières. De plus amples informations sont fournies ci-dessous (voir .
 
 \section{Utilisation du package}
 \subsection{Symboles, indices et accentuations}
@@ -71,9 +72,9 @@
 \end{equation}
 Le package peut être chargé avec l'option \texttt{qtmarkupright}. Le caractère \texttt{<">} est alors configuré comme raccourci pour l'écriture d'un indice sans italique en mode \texttt{math} (\texttt{<\_>} pour indice italique) \footnote{ La macro \texttt{\textbackslash qtmark} permet d'insérer le caractère \texttt{<">}. En ISO, les indices représentant l'abréviation d'un mot s'écrivent sans italique, et, celles représentant une variable, en italique.}. 
 
-La macro \texttt{\textbackslash glsvi} permet d'ajouter une variable en indice à une autre variable : \glsvi{T}{k}. Il est aussi possible d'ajouter deux indices séparés par une virgule avec \texttt{\textbackslash glsubs} : \glsubs{D}{w}{a}. En l’occurrence, l'opérateur virgule est ajouté dans la nomenclature, qui doit donc être défini dans le glossaire sous le label \texttt{op.comma}.
+La macro \texttt{\textbackslash glsvi} permet d'ajouter une variable en indice à une autre variable, et \texttt{\textbackslash glsvisub}, une variable indicée à une autre variable : \glsvi{T}{k} et \glsvisub{T}{z}{v}. Finalement, il est possible d'ajouter deux indices séparés par une virgule avec \texttt{\textbackslash glsubs} : \glsubs{D}{w}{a}. En l’occurrence, l'opérateur virgule est ajouté dans la nomenclature, qui doit donc être défini dans le glossaire sous le label \texttt{op.comma}.
 
-Il est aussi possible d'ajouter des accents sur les variables avec la macro \texttt{\textbackslash glsac} : \glsac[dot]{m} et \glsac[bar]{T}. À leur utilisation respective, un opérateur est ajouté dans la nomenclature. Ils doivent donc être définis à leur label respectif. Les accents disponibles sont:
+Des accents peuvent aussi s'ajouter sur les variables avec la macro \texttt{\textbackslash glsac} : \glsac[dot]{m} et \glsac[bar]{T}. À leur utilisation respective, un opérateur est ajouté dans la nomenclature. Ils doivent donc être définis à leur label respectif. Les accents disponibles sont:
 \begin{description} 
 \item[dot] $\dot{\bullet}$ (défini au label \texttt{op.dot})
 \item[ddot] $\ddot{\bullet}$ (défini au label \texttt{op.ddot})
@@ -82,7 +83,7 @@
 \item[vec] $\vec{\bullet}$ (défini au label \texttt{op.vec})
 \item[tilde] $\widetilde{\bullet}$ (défini au label \texttt{op.tilde})
 \end{description}
-De plus, un argument optionnel permet d'ajouter des accents à toutes les macros précédentes : \glsub[bar]{T}{v} et \glsubs[dot]{m}{v}{a}. Il y a deux arguments optionnels dans le cas de \texttt{\textbackslash glsvi} : \glsvi[dot]{m}{k}, \glsvi[][dot]{k}{m} et \glsvi[bar][dot]{T}{m}. Finalement, il est possible d'utiliser les accents sans définition dans la nomenclature avec l'option \texttt{nodefop}.
+De plus, un argument optionnel permet d'ajouter des accents à toutes les macros précédentes : \glsub[bar]{T}{v} et \glsubs[dot]{m}{v}{a}. Il y a deux arguments optionnels dans le cas de \texttt{\textbackslash glsvi} et \texttt{\textbackslash glsvisub} : \glsvi[dot]{m}{k}, \glsvi[bar][dot]{T}{m} et \glsvisub[][dot]{T}{m}{w}. Finalement, il est possible d'utiliser les accents sans définition dans la nomenclature avec l'option \texttt{nodefop}.
 
 \subsection{Langue, abréviations et nomenclature}
 

Modified: trunk/Master/texmf-dist/tex/latex/glosmathtools/glosmathtools.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/glosmathtools/glosmathtools.sty	2020-03-20 21:27:05 UTC (rev 54433)
+++ trunk/Master/texmf-dist/tex/latex/glosmathtools/glosmathtools.sty	2020-03-20 21:27:21 UTC (rev 54434)
@@ -3,7 +3,7 @@
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{glosmathtools}%
 [%
-2019/08/02 v0.5.1 %
+2020/03/20 v0.5.2 %
 Mathematical nomenclature tools based on glossaries package %
 Francis Gagnon %
 ]%
@@ -74,16 +74,6 @@
 	\ensuremath{\glsdisp{#2}{\glosmath at MyGlsMacro{#2}}}%
 }%
 
-% ---------- glsvi -------------------------------------------------------
-% show $a_b$ with link to "a" and variable "b"
-% 4 arguments : 2 mandatory arguments and optional 1st and 2nd argument
-% for adding accent on "a" and "b"
-\newcommand*{\glsvi}[1][]%
-{%
-	\def\glosmath at ArgI{#1}%
-	\glosmath at glsviRelay%
-}%
-
 % ---------- glsub -------------------------------------------------------
 % show $a_b$ with link to "a" and subscript "sub.b"
 % 3 arguments : 2 mandatory arguments and optional 1st argument 
@@ -109,6 +99,26 @@
 	}%
 }%
 
+% ---------- glsvi -------------------------------------------------------
+% show $a_b$ with link to "a" and variable "b"
+% 4 arguments : 2 mandatory arguments and optional 1st and 2nd argument
+% for adding accent on "a" and "b"
+\newcommand*{\glsvi}[1][]%
+{%
+	\def\glosmath at ArgI{#1}%
+	\glosmath at glsviRelay%
+}%
+
+% ---------- glsvisub ----------------------------------------------------
+% show $a_{b_c}$ with link to "a", variable "b" and subscript "sub.c"
+% 4 arguments : 3 mandatory arguments and optional 1st and 2nd argument
+% for adding accent on "a" and "b"
+\newcommand*{\glsvisub}[1][]%
+{%
+	\def\glosmath at ArgI{#1}%
+	\glosmath at glsvisubRelay%
+}%s
+
 % ---------- glslang -----------------------------------------------------
 % show full accronyms definition in specified languages
 \newcommand*{\glslang}[2][]%
@@ -331,11 +341,28 @@
 	\let \glosmath at SecGls \glosmath at MyGlsMacro%
 	\ensuremath{%
 		\glsdisp{#2}{%
-			\glosmath at FirGls{#2}_{\glsdisp{#3}{\glosmath at SecGls{#3}}}%
+			\glosmath at FirGls{#2}_{%
+				\glsdisp{#3}{\glosmath at SecGls{#3}}}%
 		}%
 	}%
 }%
 
+% ---------- glosmath at glsvisubRelay ---------------------------------------
+% relay macro for two optional aguments in the glsvisub macro
+\newcommand*{\glosmath at glsvisubRelay}[4][]%
+{%
+	\expandafter\glosmath at getMyGlsMacro\expandafter{\glosmath at ArgI}%
+	\let \glosmath at FirGls \glosmath at MyGlsMacro%
+	\glosmath at getMyGlsMacro{#1}%
+	\let \glosmath at SecGls \glosmath at MyGlsMacro%
+	\ensuremath{%
+		\glsdisp{#2}{%
+			\glosmath at FirGls{#2}_{%
+				\glsdisp{#3}{\glosmath at SecGls{#3}_{\gls{sub.#4}}}}%
+		}%
+	}%
+}%
+
 % ---------- glosmath at setLone --------------------------------------------
 \newcommand*{\glosmath at setLone}%
 {%



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