|
Warning: this is an htmlized version!
The original is here, and the conversion rules are here. |
#######
#
# E-scripts on tikz-cd (a.k.a. tikzcd).
#
# Note 1: use the eev commcand (defined in eev.el) and the
# ee alias (in my .zshrc) to execute parts of this file.
# Executing this file as a whole makes no sense.
# An introduction to eev can be found here:
#
# (find-eev-quick-intro)
# http://anggtwu.net/eev-intros/find-eev-quick-intro.html
#
# Note 2: be VERY careful and make sure you understand what
# you're doing.
#
# Note 3: If you use a shell other than zsh things like |&
# and the for loops may not work.
#
# Note 4: I always run as root.
#
# Note 5: some parts are too old and don't work anymore. Some
# never worked.
#
# Note 6: the definitions for the find-xxxfile commands are on my
# .emacs.
#
# Note 7: if you see a strange command check my .zshrc -- it may
# be defined there as a function or an alias.
#
# Note 8: the sections without dates are always older than the
# sections with dates.
#
# This file is at <http://anggtwu.net/e/tikzcd.e>
# or at <http://anggtwu.net/e/tikzcd.e.html>.
# See also <http://anggtwu.net/emacs.html>,
# <http://anggtwu.net/.emacs[.html]>,
# <http://anggtwu.net/.zshrc[.html]>,
# <http://anggtwu.net/escripts.html>,
# and <http://anggtwu.net/>.
#
#######
# «.quiver-git» (to "quiver-git")
# «.adjunction-1» (to "adjunction-1")
# «.quiver-options-in» (to "quiver-options-in")
# (find-angg ".emacs.papers" "tikzcd")
# http://mirrors.ibiblio.org/CTAN/graphics/pgf/contrib/tikz-cd/tikz-cd-doc.pdf
# (find-tlsh "find * | sort | grep tikz-cd")
# (find-tlsh "find * | sort | grep tikz | grep commutative")
# (find-tlsh "find * | sort | grep tikz | grep cd")
# (code-pdf-page "tikzcd" "/usr/local/texlive/2025/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf")
# (code-pdf-text "tikzcd" "/usr/local/texlive/2025/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf")
# (code-c-d "tikzcd" "/usr/local/texlive/2025/texmf-dist/tex/generic/tikz-cd/")
# (find-tikzcdfile "")
# (find-tikzcdpage)
# (find-tikzcdpage 1 "1 Getting started")
# (find-tikzcdpage 2 "1.1 Creating a diagram")
# (find-tikzcdpage 2 "1.2 Inserting arrows")
# (find-tikzcdpage 3 "1.3 Changing arrow tips")
# (find-tikzcdpage 4 "1.4 Alternative syntax for arrows")
# (find-tikzcdpage 5 "1.5 Usage in plain TEX")
# (find-tikzcdpage 5 "1.6 Usage in ConTEXt")
# (find-tikzcdpage 5 "2 Controlling the appearance of diagrams")
# (find-tikzcdpage 5 "in the path /tikz/commutative diagrams")
# (find-tikzcdtext 5 "in the path /tikz/commutative diagrams")
# (find-tikzcdpage 6 "2.1 General options")
# (find-tikzcdpage 7 "2.2 Global options for arrows")
# (find-tikzcdpage 8 "2.3 Absolute placement of arrows")
# (find-tikzcdpage 8 "name=U")
# (find-tikzcdtext 8 "name=U")
# (find-tikzcdpage 8 "|[alias=Z]|")
# (find-tikzcdtext 8 "|[alias=Z]|")
# (find-tikzcdpage 9 "2.4 Phantom arrows")
# (find-tikzcdpage 9 "2.5 Fine-tuning the placement of arrows")
# (find-tikzcdpage 9 "shift left=")
# (find-tikzcdtext 9 "shift left=")
# (find-tikzcdpage 10 "2.6 Three-dimensional diagrams")
# (find-tikzcdpage 11 "2.7 Options for labels")
# (find-tikzcdpage 11 "3 Advanced usage")
# (find-tikzcdpage 12 "3.1 Internals of tikzcd and the arrow commands")
# (find-tikzcdpage 12 "3.2 Tweaking to paths")
# (find-tikzcdpage 13 "3.3 Drawing diagrams directly with TikZ")
# (find-tikzcdpage 13 "[commutative diagrams/every diagram]")
# (find-tikzcdtext 13 "[commutative diagrams/every diagram]")
# (find-tikzcdpage 13 "3.4 Issues with active characters")
# (find-tikzcdpage 14 "ampersand replacement=\\&")
# (find-tikzcdtext 14 "ampersand replacement=\\&")
# (find-tikzcdpage 14 "4 Additional goodies")
# (find-tikzcdpage 14 "4.1 The asymmetrical rectangle shape")
# (find-tikzcdpage 15 "4.2 Reading font parameters")
# (find-tikzcdpage 15 "4.3 Computer Modern arrow tips")
# (find-tikzcdpage 15 "4.4 Glyph arrow tips")
# (find-tikzcdpage 16 "[1] James Milne, Guide to commutative diagrams")
# (find-tikzcdtext 16 "[1] James Milne, Guide to commutative diagrams")
# (find-tikzcdpage 17 "Index")
# (find-tikzcdfile)
# (find-tikzcdfile "tikzlibrarycd.code.tex")
# (find-tikzcdfile "tikzlibrarycd.code.tex" "shift left/.style=")
# (find-tikzcdfile "tikzlibrarycd.code.tex" "\\let\\arrow\\tikzcd@arrow")
# (find-tikzcdfile "tikzlibrarycd.code.tex" "\\matrix[")
# (find-tikzcdpage)
# (find-tikzcdtext)
# (find-tikzcdpage 5 "/tikz/commutative diagrams")
# (find-tikzcdtext 5 "/tikz/commutative diagrams")
# (find-tlfile "texmf-dist/tex/generic/tikz-cd/tikzlibrarycd.code.tex" "/tikz/commutative diagrams")
# (find-tlfile "texmf-dist/tex/generic/tikz-cd/")
# (find-google-links "how do i declare a node with absolute coordinates in tikzcd")
https://www.reddit.com/r/LaTeX/comments/12t6ehj/looking_for_an_elegant_way_of_writing_tikzcd/
#####
#
# quiver-git
# 2026jun21
#
#####
# «quiver-git» (to ".quiver-git")
# https://github.com/varkor/quiver
#####
#
# adjunction-1
# 2026jun21
#
#####
# «adjunction-1» (to ".adjunction-1")
\begin{tikzcd}
|[alias=A0]| LA &
|[alias=A1]| A \\
|[alias=A2]| B &
|[alias=A3]| RB \\
|[alias=A4]| \catB &
|[alias=A5]| \catA \\
\arrow [from=A0, to=A1, <-|]
\arrow [from=A0, to=A2, ->]
\arrow [from=A1, to=A3, ->]
\arrow [from=A2, to=A3, |->]
\arrow [from=A4, to=A5, <-, "L", shift left=1]
\arrow [from=A4, to=A5, ->, "R"', shift right=1]
\\
\end{tikzcd}
#####
#
# quiver-options-in
# 2026jun25
#
#####
# «quiver-options-in» (to ".quiver-options-in")
# https://mail.google.com/mail/u/0/#search/tikzpic/QgrcJHsTkKZGGJjMkZTTSVLNkfLgnQCvhFQ
# A question about using "quiver options" in a tikzpicture
# (find-es "pgfkeys" "hashtokens")
Hi Natanael,
Valeria de Paiva told me a few days ago that you helped her with the
diagrams in a book in which she was one of the editors, and I - sort
of - guessed that you wouldn't mind a technical question that is
related to Quiver and quiver.sty...
Here is the short version of the question. Consider these two
diagrams:
--snip--snip--
\begin{tikzcd}
|[alias=A0]| LA &
|[alias=A1]| A \\
|[alias=A2]| B &
|[alias=A3]| RB \\
|[alias=A4]| \catB &
|[alias=A5]| \catA \\
\arrow [from=A0, to=A1, <-|]
\arrow [from=A0, to=A2, ->]
\arrow [from=A1, to=A3, ->]
\arrow [from=A2, to=A3, |->]
\arrow [from=A4, to=A5, <-, "L", shift left=1]
\arrow [from=A4, to=A5, ->, "R"', shift right=1]
\\
\end{tikzcd}
\begin{tikzpicture}
\node [anchor=center] (A0) at (0,-0) {$LA$};
\node [anchor=center] (A1) at (1.28,-0) {$A$};
\node [anchor=center] (A2) at (0,-1.28) {$B$};
\node [anchor=center] (A3) at (1.28,-1.28) {$RB$};
\node [anchor=center] (A4) at (0,-2.24) {$\catB$};
\node [anchor=center] (A5) at (1.28,-2.24) {$\catA$};
\node [anchor=center] (7) at (0,-0.64) {$\phantom{O}$};
\node [anchor=center] (8) at (1.28,-0.64) {$\phantom{O}$};
\draw [<-|] (A0) -- (A1);
\draw [->] (A0) -- (A2);
\draw [->] (A1) -- (A3);
\draw [|->] (A2) -- (A3);
\draw [<->] (7) -- (8);
\draw [<-] (A4) -- (A5) node[midway,above] {$\scriptstyle L$};
\draw [->] (A4) -- (A5) node[midway,below] {$\scriptstyle R$};
\end{tikzpicture}
--snip--snip--
The last two "\arrow"s above use some options that are from Tikz-CD,
like "shift left" and "shift right", but that I learned by using
Quiver...
QUESTION: is there a way to use those options in the "\draw"s of the
second example, or to use \tikzcd@arrow inside a tikzpicture? How?
Thanks in advance, etc...
Eduardo Ochs
https://anggtwu.net/
Disclaimer 1 =(: I am totally _non-fluent_ with Tikz... I made a video -
<https://anggtwu.net/2022-eev-tikz.html> - about Tikz and Emacs in
2022 - but it is very basic...
Disclaimer 2: I am the author of this package for diagrams -
<https://anggtwu.net/dednat6.html#a-big-example> - that as far as I
know only has two users - me and Fernando Lucatelli Nunes... by
default it generates code for Michael Barr's diagxy, but I am working
on a module for it that makes it (also) generate Tikz code. Here is a
way to try it, but it is mostly undocumented...
rm -rfv /tmp/edrx-latex/
mkdir /tmp/edrx-latex/
cd /tmp/edrx-latex/
wget https://anggtwu.net/LATEX/2026diagtikz-test.zip
unzip 2026diagtikz-test.zip
lualatex 2026diagtikz-test.tex
# Local Variables:
# coding: utf-8-unix
# End: