-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdiagram.template.tex
More file actions
66 lines (55 loc) · 1.81 KB
/
diagram.template.tex
File metadata and controls
66 lines (55 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
\documentclass[varwidth=\maxdimen,multi=page,12pt]{standalone}
\usepackage{pgfplots}
\usepackage{xcolor}
\usepackage{tikz-cd}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsopn}
\usepackage{mathpazo}
\usepackage[T1]{fontenc}
\usetikzlibrary{calc}
\usetikzlibrary{fit}
\usetikzlibrary{decorations.pathmorphing}
\ExplSyntaxOn
\NewDocumentCommand{\definealphabet}{mmmm}
{% #1 = prefix, #2 = command, #3 = start, #4 = end
\int_step_inline:nnn { `#3 } { `#4 }
{
\cs_new_protected:cpx { #1 \char_generate:nn { ##1 }{ 11 } }
{
\exp_not:N #2 { \char_generate:nn { ##1 } { 11 } }
}
}
}
\ExplSyntaxOff
\definecolor{accent}{HTML}{c15cff}
\definecolor{accent2}{HTML}{c59efd}
\color{white}
\tikzset{curve/.style={settings={#1},to path={(\tikztostart)
.. controls ($(\tikztostart)!\pv{pos}!(\tikztotarget)!\pv{height}!270:(\tikztotarget)$)
and ($(\tikztostart)!1-\pv{pos}!(\tikztotarget)!\pv{height}!270:(\tikztotarget)$)
.. (\tikztotarget)\tikztonodes}},
settings/.code={\tikzset{quiver/.cd,#1}
\def\pv##1{\pgfkeysvalueof{/tikz/quiver/##1}}},
quiver/.cd,pos/.initial=0.35,height/.initial=0}
\tikzset{tail reversed/.code={\pgfsetarrowsstart{tikzcd to}}}
\tikzset{2tail/.code={\pgfsetarrowsstart{Implies[reversed]}}}
\tikzset{2tail reversed/.code={\pgfsetarrowsstart{Implies}}}
\tikzset{no body/.style={/tikz/dash pattern=on 0 off 1mm}}
\tikzset{
lies over/.style = {
|-{Triangle[open, length=1.875mm, width=1.875mm]}
},
category over/.style = {
-{Triangle[open, length=1.875mm, width=1.875mm]}
},
3cell/.style={-,preaction={draw,Rightarrow}},
2cell/.style={double=transparent,-Implies},
Rightarrow/.style={double equal sign distance, >={Implies}, ->},
commutative diagrams/background color=transparent
}
\begin{document}
\begin{page}
__BODY__
\end{page}
\end{document}