texlive[51532] Master/texmf-dist: amscdx (2jul19)

commits+karl at tug.org commits+karl at tug.org
Tue Jul 2 22:58:41 CEST 2019


Revision: 51532
          http://tug.org/svn/texlive?view=revision&revision=51532
Author:   karl
Date:     2019-07-02 22:58:41 +0200 (Tue, 02 Jul 2019)
Log Message:
-----------
amscdx (2jul19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/amscdx/amscdx.pdf
    trunk/Master/texmf-dist/source/latex/amscdx/amscdx.dtx
    trunk/Master/texmf-dist/source/latex/amscdx/amscdx.ins
    trunk/Master/texmf-dist/tex/latex/amscdx/amscdx.sty

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

Modified: trunk/Master/texmf-dist/source/latex/amscdx/amscdx.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/amscdx/amscdx.dtx	2019-07-02 20:58:25 UTC (rev 51531)
+++ trunk/Master/texmf-dist/source/latex/amscdx/amscdx.dtx	2019-07-02 20:58:41 UTC (rev 51532)
@@ -22,7 +22,8 @@
 %\iffalse
 %<*driver>
 \documentclass{amsdtx}
-\usepackage{amscdx,amsmath,xcolor,calc,graphicx}
+\usepackage{amscdx}
+\usepackage{amsmath,calc}
 \GetFileInfo{amscdx.sty}
 %    Dummy citation to avoid error in an example.
 \bibcite{fre:cichon}{C}
@@ -127,7 +128,22 @@
 %  will only work if the state of the \verb+\CDfat+ flag be false. If both
 %  \verb+\CDfat+ and \verb+\CDash+ are true, the \verb+CDfat+ flag takes
 %  precedence.
-% 
+%
+%  \subsection*{Dependencies}
+%
+%  \begin{itemize}
+%  \item the \verb+xcolor+ package, for the color;
+%  \item the \verb+graphics+ package, if you want vertical dashed arrows, 
+%		as this uses the \verb+\rotatebox+ command.
+%  \end{itemize}
+%  These are now required within the package.
+%
+%  \subsection*{Option}
+%  The package takes one option: \verb+lyx+, to be issued if you use it
+%  in LyX. Place, in the preamble, the command \verb+\usepackage[lyx]{amscdx}+.
+%  This forces a \verb+\renewenvironment{CD}+ to be called instead of 
+%  \verb+\newenvironment{CD}+, as \verb+CD+ is already defined.
+%
 %  A demonstration of some of the new capabilities (yes, this looks tacky):
 %   \begin{equation}
 %   \CDfattrue
@@ -134,12 +150,12 @@
 %   \CDlor{green}
 %   \begin{CD}
 %   \text{Left header}  @.  \text{Right header}  \\
-%   TL  @>\text{Atop}>{\hspace{4cm}}>  TR  \\
+%   TL \CDfatfalse\CDashtrue @Z\text{Atop}Z{\hspace{4cm}}Z  TR  \\
 %   \CDfatfalse @X\text{Left}X{N_x}X 
 %   \CDfatfalse \CDashtrue  
 %      \CDlor{brown} @A{\scriptsize\begin{array}{r}\text{Right}\\
 %                   \text{column}\end{array}}A{N^x}A \\
-%   ML  \CDfatfalse \CDashtrue \CDlor{lime} @<{xyz}<{pqr}<  MR  \\
+%   ML  \CDfatfalse \CDashtrue \CDlor{lime} @<{xyzxyzxyz}<{pqr}<  MR  \\
 %   \CDlor{red} @A{M^2}A\scriptsize\begin{array}{l}\text{Left}\\
 %                    \text{column}\end{array}A  @V+V{N_y}V  \\
 %   BL  \CDlor{purple}  @Z\text{above}Z\text{below}Z  BR  \\
@@ -151,12 +167,12 @@
 % \CDlor{green}
 % \begin{CD}
 % \text{Left header}  @.  \text{Right header}  \\
-% TL  @>\text{Atop}>{\hspace{4cm}}>  TR  \\
+% TL \CDfatfalse\CDashtrue @Z\text{Atop}Z{\hspace{4cm}}Z  TR  \\
 % \CDfatfalse @X\text{Left}X{N_x}X 
 % \CDfatfalse \CDashtrue  
 %    \CDlor{brown} @A{\scriptsize\begin{array}{r}\text{Right}\\
 %                \text{column}\end{array}}A{N^x}A \\
-% ML  \CDfatfalse \CDashtrue \CDlor{lime} @<{xyz}<{pqr}<  MR  \\
+% ML  \CDfatfalse \CDashtrue \CDlor{lime} @<{xyzxyzxyz}<{pqr}<  MR  \\
 % \CDlor{red} @A{M^2}A\scriptsize\begin{array}{l}\text{Left}\\
 %                \text{column}\end{array}A  @V+V{N_y}V  \\
 %  BL  \CDlor{purple}  @Z\text{above}Z\text{below}Z  BR  \\
@@ -172,10 +188,19 @@
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
 [1994/12/01]% LaTeX date must December 1994 or later
-\ProvidesPackage{amscdx}[2019/06/04 v2.1x AMS Commutative Diagrams]
+\ProvidesPackage{amscdx}[2019/07/02 v2.2x AMS Commutative Diagrams]
 %    \end{macrocode}
 %    \begin{macrocode}
+
+\newif\iflyx\lyxfalse
+\DeclareOption{lyx}{\lyxtrue}
+
+\DeclareOption*{}
+\ProcessOptions*\relax
+
 \RequirePackage{amsgen}
+\RequirePackage{xcolor}
+\RequirePackage{graphicx}
 %    \end{macrocode}
 %      Better not to redefine \verb|\math at cr| if it is already defined,
 %      because for CD use only we want to omit the part of the code
@@ -253,20 +278,20 @@
     \mkern-6mu\mathord\Rightarrow$}
 %
 \def\rightdasharrowfill@#1{%
-    \m at th\setboxz at h{$#1\,\relbar\,$}\ht\z@\z@
+    \m at th\setboxz at h{$#1\:\relbar\:$}\ht\z@\z@
     $#1\copy\z@\mkern-6mu\cleaders
     \hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill
-    \mkern-6mu\mathord\rightarrow$}
+    \mkern-2mu\mathord\rightarrow$}
 \def\leftdasharrowfill@#1{%
-    \m at th\setboxz at h{$#1\,\relbar\,$}\ht\z@\z@
-    $#1\mathord\leftarrow\mkern-6mu\cleaders%
+    \m at th\setboxz at h{$#1\:\relbar\:$}\ht\z@\z@
+    $#1\mathord\leftarrow\mkern-2mu\cleaders%
     \hbox{$#1\mkern-2mu\copy\z@\mkern-2mu$}\hfill
     \mkern-6mu\box\z@$}
   \def\leftrightdasharrowfill@#1{%
-    \m at th\setboxz at h{$#1\,\relbar\,$}\ht\z@\z@
-    $#1\mathord\leftarrow\mkern-6mu\cleaders
+    \m at th\setboxz at h{$#1\:\relbar\:$}\ht\z@\z@
+    $#1\mathord\leftarrow\mkern-2mu\cleaders
     \hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill
-    \mkern-6mu\mathord\rightarrow$}
+    \mkern-2mu\mathord\rightarrow$}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -332,7 +357,8 @@
 %      Added \verb|\restore at math@cr\default at tag| to fix line numbering
 %      problems, 7-JUN-1991. Suggested by I.~Zakharevich.
 %    \begin{macrocode}
-\newenvironment{CD}{%
+\iflyx\else\newenvironment{CD}{}{}\fi
+\renewenvironment{CD}{%
   \CDat
   \bgroup\relax\iffalse{\fi\let\ampersand@&\iffalse}\fi
   \CD at true\vcenter\bgroup\let\\\math at cr\restore at math@cr\default at tag
@@ -429,7 +455,7 @@
 \atdef@ A#1A#2A{\CD at check{A..A..A}{\color{\dye@}\llap{$\m at th\vcenter{\hbox
   {$\scriptstyle#1$}}$}
   \ifCDfat \Big\Uparrow \else 
-  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\mathop-\mathop-\mkern-2mu\rightarrow$}}} 
+  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\relbar\:\relbar\mkern-2mu\rightarrow$}}} 
   \else \Big\uparrow \fi \fi
   \rlap{$\m at th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}
 %
@@ -436,7 +462,7 @@
 \atdef@ V#1V#2V{\CD at check{V..V..V}{\color{\dye@}\llap{$\m at th\vcenter{\hbox
   {$\scriptstyle#1$}}$}
   \ifCDfat \Big\Downarrow \else 
-  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{270}{\clap{$\mkern-8mu\mathop-\mathop-\mkern-2mu\rightarrow$}}} 
+  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{270}{\clap{$\mkern-8mu\relbar\:-\mkern-2mu\rightarrow$}}} 
   \else \Big\downarrow \fi \fi
   \rlap{$\m at th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}
 %
@@ -443,7 +469,7 @@
 \atdef@ X#1X#2X{\CD at check{X..X..X}{\color{\dye@}\llap{$\m at th\vcenter{\hbox
   {$\scriptstyle#1$}}$}
   \ifCDfat \Big\Updownarrow \else 
-  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\leftarrow\mkern-2mu\mathop-\mkern-2mu\rightarrow$}}} 
+  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\leftarrow\mkern-2mu\relbar\mkern-2mu\rightarrow$}}} 
   \else \Big\updownarrow \fi \fi
   \rlap{$\m at th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}
 %
@@ -472,5 +498,5 @@
 \endinput
 %    \end{macrocode}
 %
-% \CheckSum{814}
+% \CheckSum{829}
 % \Finale

Modified: trunk/Master/texmf-dist/source/latex/amscdx/amscdx.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/amscdx/amscdx.ins	2019-07-02 20:58:25 UTC (rev 51531)
+++ trunk/Master/texmf-dist/source/latex/amscdx/amscdx.ins	2019-07-02 20:58:41 UTC (rev 51532)
@@ -12,7 +12,7 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 %% 
-%% The Current Maintainer of this work is the LaTeX3 Project.
+%% The Current Maintainer of this work is Martin Vermeer.
 %%
 %% ====================================================================
 
@@ -37,7 +37,7 @@
 
 This work has the LPPL maintenance status `maintained'.
 
-The Current Maintainer of this work is the LaTeX3 project.
+The Current Maintainer of this work is Martin Vermeer.
 
 \endpreamble
 

Modified: trunk/Master/texmf-dist/tex/latex/amscdx/amscdx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/amscdx/amscdx.sty	2019-07-02 20:58:25 UTC (rev 51531)
+++ trunk/Master/texmf-dist/tex/latex/amscdx/amscdx.sty	2019-07-02 20:58:41 UTC (rev 51532)
@@ -19,12 +19,21 @@
 %% 
 %% This work has the LPPL maintenance status `maintained'.
 %% 
-%% The Current Maintainer of this work is the LaTeX3 project.
+%% The Current Maintainer of this work is Martin Vermeer.
 %% 
 \NeedsTeXFormat{LaTeX2e}% LaTeX 2.09 can't be used (nor non-LaTeX)
 [1994/12/01]% LaTeX date must December 1994 or later
-\ProvidesPackage{amscdx}[2019/06/04 v2.1x AMS Commutative Diagrams]
+\ProvidesPackage{amscdx}[2019/07/02 v2.2x AMS Commutative Diagrams]
+
+\newif\iflyx\lyxfalse
+\DeclareOption{lyx}{\lyxtrue}
+
+\DeclareOption*{}
+\ProcessOptions*\relax
+
 \RequirePackage{amsgen}
+\RequirePackage{xcolor}
+\RequirePackage{graphicx}
 \@ifundefined{math at cr}{%
   \def\math at cr{{\ifnum0=`}\fi
     \@ifstar{\global\@eqpen\@M\math at cr@}%
@@ -73,20 +82,20 @@
     \hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill
     \mkern-6mu\mathord\Rightarrow$}
 \def\rightdasharrowfill@#1{%
-    \m at th\setboxz at h{$#1\,\relbar\,$}\ht\z@\z@
+    \m at th\setboxz at h{$#1\:\relbar\:$}\ht\z@\z@
     $#1\copy\z@\mkern-6mu\cleaders
     \hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill
-    \mkern-6mu\mathord\rightarrow$}
+    \mkern-2mu\mathord\rightarrow$}
 \def\leftdasharrowfill@#1{%
-    \m at th\setboxz at h{$#1\,\relbar\,$}\ht\z@\z@
-    $#1\mathord\leftarrow\mkern-6mu\cleaders%
+    \m at th\setboxz at h{$#1\:\relbar\:$}\ht\z@\z@
+    $#1\mathord\leftarrow\mkern-2mu\cleaders%
     \hbox{$#1\mkern-2mu\copy\z@\mkern-2mu$}\hfill
     \mkern-6mu\box\z@$}
   \def\leftrightdasharrowfill@#1{%
-    \m at th\setboxz at h{$#1\,\relbar\,$}\ht\z@\z@
-    $#1\mathord\leftarrow\mkern-6mu\cleaders
+    \m at th\setboxz at h{$#1\:\relbar\:$}\ht\z@\z@
+    $#1\mathord\leftarrow\mkern-2mu\cleaders
     \hbox{$#1\mkern-2mu\box\z@\mkern-2mu$}\hfill
-    \mkern-6mu\mathord\rightarrow$}
+    \mkern-2mu\mathord\rightarrow$}
 \def\atdef@#1{\expandafter\def\csname\space @\string#1\endcsname}
 \@ifundefined{Iat}{%
   \DeclareRobustCommand{\Iat}{\FN@\at@}
@@ -128,7 +137,8 @@
 \minCDarrowwidth2.5pc
 \newif\ifCD@
 \let\ampersand@\relax
-\newenvironment{CD}{%
+\iflyx\else\newenvironment{CD}{}{}\fi
+\renewenvironment{CD}{%
   \CDat
   \bgroup\relax\iffalse{\fi\let\ampersand@&\iffalse}\fi
   \CD at true\vcenter\bgroup\let\\\math at cr\restore at math@cr\default at tag
@@ -190,19 +200,19 @@
 \atdef@ A#1A#2A{\CD at check{A..A..A}{\color{\dye@}\llap{$\m at th\vcenter{\hbox
   {$\scriptstyle#1$}}$}
   \ifCDfat \Big\Uparrow \else
-  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\mathop-\mathop-\mkern-2mu\rightarrow$}}}
+  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\relbar\:\relbar\mkern-2mu\rightarrow$}}}
   \else \Big\uparrow \fi \fi
   \rlap{$\m at th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}
 \atdef@ V#1V#2V{\CD at check{V..V..V}{\color{\dye@}\llap{$\m at th\vcenter{\hbox
   {$\scriptstyle#1$}}$}
   \ifCDfat \Big\Downarrow \else
-  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{270}{\clap{$\mkern-8mu\mathop-\mathop-\mkern-2mu\rightarrow$}}}
+  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{270}{\clap{$\mkern-8mu\relbar\:-\mkern-2mu\rightarrow$}}}
   \else \Big\downarrow \fi \fi
   \rlap{$\m at th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}
 \atdef@ X#1X#2X{\CD at check{X..X..X}{\color{\dye@}\llap{$\m at th\vcenter{\hbox
   {$\scriptstyle#1$}}$}
   \ifCDfat \Big\Updownarrow \else
-  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\leftarrow\mkern-2mu\mathop-\mkern-2mu\rightarrow$}}}
+  \ifCDash \vphantom{\Bigg\Updownarrow}\text{\rotatebox{90}{\clap{$\mkern8mu\leftarrow\mkern-2mu\relbar\mkern-2mu\rightarrow$}}}
   \else \Big\updownarrow \fi \fi
   \rlap{$\m at th\vcenter{\hbox{$\scriptstyle#2$}}$}&&}}
 \atdef@={\CD at check={\gdef\before@{\dye@}&\color{\before@}\enskip\mathrel



More information about the tex-live-commits mailing list