texlive[49201] Master/texmf-dist: tikz-cd (20nov18)

commits+karl at tug.org commits+karl at tug.org
Tue Nov 20 22:50:34 CET 2018


Revision: 49201
          http://tug.org/svn/texlive?view=revision&revision=49201
Author:   karl
Date:     2018-11-20 22:50:34 +0100 (Tue, 20 Nov 2018)
Log Message:
-----------
tikz-cd (20nov18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf
    trunk/Master/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.tex
    trunk/Master/texmf-dist/tex/generic/tikz-cd/tikzlibrarycd.code.tex
    trunk/Master/texmf-dist/tex/latex/tikz-cd/tikz-cd.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/tikz-cd/README.md

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/tikz-cd/README

Deleted: trunk/Master/texmf-dist/doc/latex/tikz-cd/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-cd/README	2018-11-20 01:23:11 UTC (rev 49200)
+++ trunk/Master/texmf-dist/doc/latex/tikz-cd/README	2018-11-20 21:50:34 UTC (rev 49201)
@@ -1,13 +0,0 @@
-tikz-cd -- Commutative diagrams with tikz
-=========================================
-
-The general-purpose drawing package tikz can be used to typeset
-commutative diagrams and other kinds of mathematical pictures,
-generating high-quality results.  The present package facilitates the
-creation of such diagrams by providing a convenient set of macros and
-reasonable default settings.  It also includes an arrow tip library
-closely matching the Computer Modern arrow tips, as well as a general
-mechanism to use the arrow tips from any math font in TikZ graphics.
-
-This software is distributed under the GNU General Public License,
-version 3 or later.

Added: trunk/Master/texmf-dist/doc/latex/tikz-cd/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-cd/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/tikz-cd/README.md	2018-11-20 21:50:34 UTC (rev 49201)
@@ -0,0 +1,16 @@
+tikz-cd — Commutative diagrams with TikZ
+========================================
+
+The general-purpose drawing package [TikZ][pgf] can be used to typeset
+commutative diagrams and other kinds of mathematical pictures,
+generating high-quality results.  This TikZ library facilitates the
+creation of such diagrams by providing a convenient set of macros and
+reasonable default settings.  It can be used in plain TeX, LaTeX and
+ConTeXt.  See [the manual][tikz-cd-doc] for further details and many
+examples.
+
+This software is distributed under the terms of the GNU General Public
+License, version 3 or later.
+
+[pgf]: https://ctan.org/pkg/pgf
+[tikz-cd-doc]: http://mirrors.ctan.org/graphics/pgf/contrib/tikz-cd/tikz-cd-doc.pdf


Property changes on: trunk/Master/texmf-dist/doc/latex/tikz-cd/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.tex	2018-11-20 01:23:11 UTC (rev 49200)
+++ trunk/Master/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.tex	2018-11-20 21:50:34 UTC (rev 49201)
@@ -1,4 +1,4 @@
-% Copyright 2011, 2012, 2014 by Florêncio Neves <florencioneves at gmail.com>
+% Copyright 2011, 2012, 2014, 2018 by Augusto Stoffel
 %
 % This program is free software: you can redistribute it and/or modify
 % it under the terms of the GNU General Public License as published by
@@ -23,6 +23,7 @@
 \def\pgfautoxrefs{1}
 
 \documentclass[a4paper]{ltxdoc}
+\usepackage[hyphens]{url}
 
 \def\xcolorversion{2.00}
 
@@ -178,7 +179,7 @@
 {\Large\bfseries Commutative diagrams with \tikzname}
 
 \vspace{1em}
-{Version 0.9e \qquad October 30, 2014}
+{Version 0.9f \qquad November 19, 2018}
 \end{center}
 
 \vspace{1.5em}
@@ -215,7 +216,7 @@
 \begin{verse}
     \index{tikz-cd@\protect\texttt{tikz-cd} package}%
     \index{Packages and files!tikz-cd@\protect\texttt{tikz-cd}}%
-    |\usepackage{tikz-cd}|
+    |\usepackage{tikz-cd}|%
 \end{verse}
 or load \tikzname{} and then type
 \begin{verse}%
@@ -636,10 +637,10 @@
   \begin{verse}
     |/tikz/commutative diagrams/row sep/|\meta{size}
   \end{verse}
-stores a
-  \meta{value}, then it is read and |/tikz/row sep|=\meta{value} is
-  set.  If the key above is not initialized, then \meta{size} is
-  presumably a dimension, and |/tikz/row sep|=\meta{size} is set.
+  stores a \meta{value}, then it is read and
+  |/tikz/row sep|=\meta{value} is set.  If the key above is not
+  initialized, then \meta{size} is presumed to be a dimension, and
+  |/tikz/row sep|=\meta{size} is set.
 
   The initially available sizes, and their values, are
   the following:
@@ -706,13 +707,10 @@
   cells, which is appropriate for large, displayed diagrams.  The
   present style removes some of this extra white space, and is
   intended for smaller diagrams that should blend with the surrounding
-  text, or very wide material that wouldn't fit on the page otherwise.
+  text, or very wide material that wouldn't fit the page otherwise.
 \end{stylekey}
 
-Keep in mind that while there are some legitimate uses for |{tikzcd}|
-diagrams on inline formulas, standard \LaTeX\ constructs such as
-|\overset| and |\xrigthtarrow| are often sufficient and should be
-preferred.  The picture below shows the (somewhat subtle) difference
+The picture below shows the (somewhat subtle) difference
 between the cramped and the non-cramped styles.
 
 \begin{codeexample}[pre=\minipage{6cm},post=\endminipage]
@@ -721,6 +719,11 @@
 This $A \to B$ is just a formula.
 \end{codeexample}
 
+Keep in mind that while there are some legitimate uses for |{tikzcd}|
+diagrams on inline formulas, standard \LaTeX\ constructs such as
+|\overset| and |\xrigthtarrow| are often sufficient and should be
+preferred.
+
 \begin{key}{/tikz/commutative diagrams/math mode=\meta{boolean}
      (default true)}
    This key determines whether or not the contents of a diagram are
@@ -821,7 +824,8 @@
 matrix a name by using the \verb!|[!\meta{options}\verb!]|! syntax, as
 done for entry $C$ in the example below.  You must be careful not to
 create nodes whose name contains only the characters |l|, |r|, |u|,
-|d| if you want to refer to them using |from| or |to|.
+|d| if you want to refer to them using |from| or |to|.  The following
+illustrates several different uses of these keys.
 
 {\catcode`\|=12
 \begin{codeexample}[]
@@ -967,6 +971,21 @@
 \end{tikzcd}
 \end{codeexample}
 
+\begin{key}{/tikz/commutative diagrams/shorten=\meta{dimension}}
+  This key shortens each end of the arrow by \meta{dimension}.
+
+\begin{codeexample}[]
+\begin{tikzcd}
+  A \arrow[r, shift left]
+    \ar[r, shorten=2mm, shift right]
+    & B
+\end{tikzcd}
+\end{codeexample}
+\end{key}
+
+Note that the ends of an arrow can be shortened individually using
+\tikzname's built-in keys |shorten <| and |shorten >|.
+
 \subsection{Three-dimensional diagrams}
 \label{sec:crossing-over}
 
@@ -1027,6 +1046,20 @@
   This key appends \meta{options} to |every label|.
 \end{key}
 
+\begin{stylekey}{/tikz/commutative diagrams/marking}
+  This style causes the label to be placed over the arrow.  It is
+  useful to decorate arrows using ordinary math symbols.
+
+\begin{codeexample}[]
+\begin{tikzcd}
+  A \arrow[r, "/" marking]
+    \arrow[rd, "\circ" marking]
+    & B \\
+    & C
+\end{tikzcd}
+\end{codeexample}
+\end{stylekey}
+
 \begin{stylekey}{/tikz/commutative diagrams/description}
   This style causes the label to be placed over the arrow, with the
   background filled.  The clearance around the label is determined by
@@ -1393,10 +1426,6 @@
 cases where unusual design choices are made.
 
 \begin{thebibliography}{9}
-% \bibitem{knuth}
-%   Donald Knuth,
-%   \emph{Important message to all users of \TeX}.
-%   Available at \url{http://www-cs-staff.stanford.edu/~uno/cm.html}
 \bibitem{lenders}
   Felix Lenders,
   \emph{Commutative diagrams using \tikzname}.
@@ -1407,7 +1436,7 @@
   Available at \url{http://www.jmilne.org/not/CDGuide.html}.
 \bibitem{pgfman}
   Till Tantau,
-  \emph{The \tikzname{} and \pgfname{} packages:  Manual for version 3.0.0}.
+  \emph{The \tikzname{} and \pgfname{} packages:  Manual for version 3.0.1a}.
   Available at \url{http://mirrors.ctan.org/graphics/pgf/base/doc/pgfmanual.pdf}.
 \end{thebibliography}
 

Modified: trunk/Master/texmf-dist/tex/generic/tikz-cd/tikzlibrarycd.code.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tikz-cd/tikzlibrarycd.code.tex	2018-11-20 01:23:11 UTC (rev 49200)
+++ trunk/Master/texmf-dist/tex/generic/tikz-cd/tikzlibrarycd.code.tex	2018-11-20 21:50:34 UTC (rev 49201)
@@ -1,6 +1,6 @@
-% tikzlibrarycd.code.tex [2014/10/30 v0.9e Commutative diagrams with tikz]
+% tikzlibrarycd.code.tex [2018/11/19 v0.9f Commutative diagrams with TikZ]
 %
-% Copyright 2011, 2012, 2014 by Florêncio Neves <florencioneves at gmail.com>
+% Copyright 2011, 2012, 2014, 2018 by Augusto Stoffel
 %
 % This program is free software: you can redistribute it and/or modify
 % it under the terms of the GNU General Public License as published by
@@ -26,12 +26,23 @@
   labels/.code={\tikzcdset{every label/.append style={#1}}},
   cells/.code={\tikzcdset{every cell/.append style={#1}}},
   diagrams/.code={\tikzcdset{every diagram/.append style={#1}}},
-  execute before arrows/.code={\expandafter\def\expandafter\tikzcd at before@paths at hook\expandafter{\tikzcd at before@paths at hook#1}},
+  execute before arrows/.code={%
+    \expandafter\def%
+    \expandafter\tikzcd at before@paths at hook%
+    \expandafter{\tikzcd at before@paths at hook#1}},
   to/.code={\tikzcd at setarrowend\tikzcd at ar@target{#1}},
   from/.code={\tikzcd at setarrowend\tikzcd at ar@start{#1}},
+  shorten/.style={
+    /tikz/shorten <=#1,
+    /tikz/shorten >=#1},
   description/.style={
     /tikz/anchor=center,
     /tikz/fill=\pgfkeysvalueof{/tikz/commutative diagrams/background color}},
+  marking/.style={
+    /tikz/font=,
+    /tikz/sloped,
+    /tikz/shape=asymmetrical rectangle,
+    /tikz/anchor=center},
   phantom/.style={
     /tikz/draw=none,
     /tikz/commutative diagrams/labels={
@@ -51,7 +62,7 @@
   math mode/.is if=tikzcd at mathmode,
   arrow style/.is choice}
 
-\def\tikzcd at sep#1#2{
+\def\tikzcd at sep#1#2{%
   \pgfkeysifdefined{/tikz/commutative diagrams/#1 sep/#2}%
     {\pgfkeysgetvalue{/tikz/commutative diagrams/#1 sep/#2}\tikzcd at temp%
      \pgfkeysalso{/tikz/#1 sep/.expand once=\tikzcd at temp}}%
@@ -382,13 +393,13 @@
   cache=false,
   bending mode=none,
   parameters={\tikzcd at glyph@len,\tikzcd at glyph@shorten},
-  setup code={
+  setup code={%
     \pgfarrowssettipend{\tikzcd at glyph@len\advance\pgf at x by\tikzcd at glyph@shorten}},
   defaults={
     glyph axis=axis_height,
     glyph length=+0.9ex,
     glyph shorten=+-0.1ex},
-  drawing code={
+  drawing code={%
     \pgfpathrectangle{\pgfpoint{+0pt}{+-1ex}}{\pgfpoint{+\tikzcd at glyph@len}{+2ex}}%
     \pgfusepathqclip%
     \pgftransformxshift{+\tikzcd at glyph@len}%

Modified: trunk/Master/texmf-dist/tex/latex/tikz-cd/tikz-cd.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tikz-cd/tikz-cd.sty	2018-11-20 01:23:11 UTC (rev 49200)
+++ trunk/Master/texmf-dist/tex/latex/tikz-cd/tikz-cd.sty	2018-11-20 21:50:34 UTC (rev 49201)
@@ -1,4 +1,4 @@
-% Copyright 2011, 2012, 2014 by Florêncio Neves <florencioneves at gmail.com>
+% Copyright 2011, 2012, 2014, 2018 by Augusto Stoffel
 %
 % This program is free software: you can redistribute it and/or modify
 % it under the terms of the GNU General Public License as published by
@@ -13,7 +13,7 @@
 % You should have received a copy of the GNU General Public License
 % along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-\ProvidesPackage{tikz-cd}[2014/10/30 v0.9e Commutative diagrams with tikz]
+\ProvidesPackage{tikz-cd}[2018/11/19 v0.9f Commutative diagrams with TikZ]
 \RequirePackage{tikz}[2013/12/13] % pgf version 3.0.0 required
 \usetikzlibrary{cd}
 



More information about the tex-live-commits mailing list