Skip to content

Commit 14fef07

Browse files
committed
Finished version v1.3
- All sizes are now scaled w.r.t. the normal size - Bug fix of the event outline (got its own style key) - Bug fixed package options, now single word options only - Updated the package manual and the examples
1 parent 0dea58a commit 14fef07

File tree

10 files changed

+327
-303
lines changed

10 files changed

+327
-303
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ The three main commands (macros) are
1313
```
1414

1515
For a full documentation, please see causets.pdf.
16+
The documentation includes some examples.
17+
More examples are included at
18+
https://github.com/c-minz/LaTeX-causets/tree/main/examples
1619

1720
## Bug reports
1821
Problems with the package are reported here:

causet_tikz_example1.pdf

52 Bytes
Binary file not shown.

causet_tikz_example1.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
\documentclass[tikz]{standalone}
2-
\usepackage[permutation,huge,neon]{causets}
2+
\usepackage[permutation,larger,neon]{causets}
33
\usetikzlibrary{fit,shapes.geometric}
44
\begin{document}
55
\begin{tikzpicture}

causet_tikz_example2.pdf

713 Bytes
Binary file not shown.

causet_tikz_example2.tex

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
\documentclass[tikz]{standalone}
2-
\usepackage[blue]{causets}
2+
\usepackage[black]{causets}
33
\usetikzlibrary{fit,shapes.geometric}
44
% Set colours and style:
55
\colorlet{future colour}{green!50!black}
66
\colorlet{past colour}{yellow!50!orange!80!black}
77
\colorlet{anywhere colour}{red!80!black}
88
\tikzset{prob arrow/.style={line width=1.5pt}}
99
% Define some helper functions:
10+
\def\defCevents#1#2#3{\xdef\Ea{#1}\xdef\Eb{#2}\xdef\Ec{#3}}
11+
\def\defDevents#1#2#3#4{\expandafter\defCevents#1#2#3\xdef\Ed{#4}}
1012
\newcommand*{\semiopaque}[1]{% Adds a transparency group.
1113
\begin{scope}[transparency group, opacity=0.5]
1214
#1
@@ -36,16 +38,20 @@
3638
\node (C1) at ( 0, 0) {\pcauset{1}};
3739
\node (C12) at (-4*\xstep, 1*\ystep) {\pcauset{1,2}};
3840
\node (C21) at ( 4*\xstep, 1*\ystep) {\pcauset{2,1}};
39-
\foreach \CPoint/\CXPos/\CPerm in {C123/-8/{{1,2,3}}, C132/-4/{{1,3,2}}, C312/0/{{3,1,2}}, C213/4/{{2,1,3}}, C321/8/{{3,2,1}}}
40-
\node (\CPoint) at (\CXPos*\xstep, 2*\ystep) {\expandafter\pcauset\CPerm};
41-
\foreach \CPoint/\CXPos/\CPerm in {C1234/-15/{{1,2,3,4}}, C1243/-13/{{1,2,4,3}}, C1423/-11/{{1,4,2,3}}, C1324/-9/{{1,3,2,4}}, C1432/-7/{{1,4,3,2}}, C4123/-5/{{4,1,2,3}}, C4132/-3/{{4,1,3,2}}, C3124/-1/{{3,1,2,4}}, C3412/1/{{3,4,1,2}}, C3142/3/{{3,1,4,2}}, C4312/5/{{4,3,1,2}}, C2134/7/{{2,1,3,4}}, C2143/9/{{2,1,4,3}}, C4213/11/{{4,2,1,3}}, C3214/13/{{3,2,1,4}}, C4321/15/{{4,3,2,1}}}
42-
\node (\CPoint) at (\CXPos*\xstep, 3.75*\ystep) {\expandafter\pcauset\CPerm};
41+
\foreach \perm [count=\i from 0] in {123, 132, 312, 213, 321}{%
42+
\expandafter\defCevents\perm
43+
\node (C\perm) at (4*\i*\xstep-8*\xstep, 2*\ystep) {\pcauset{\Ea,\Eb,\Ec}};
44+
}
45+
\foreach \perm [count=\i from 0] in {1234, 1243, 1423, 1324, 1432, 4123, 4132, 3124, 3412, 3142, 4312, 2134, 2143, 4213, 3214, 4321}{%
46+
\expandafter\defDevents\perm
47+
\node (C\perm) at (2*\i*\xstep-15*\xstep, 3.75*\ystep) {\pcauset{\Ea,\Eb,\Ec,\Ed}};
48+
}
4349
\end{scope}
4450
% Add graph edges for expandings ...
4551
% ... to the past (additionally):
4652
\begin{scope}[past colour]
47-
\foreach \StartPoint/\EndPoint in {C12/C213, C123/C3124, C123/C2134, C132/C1243, C132/C3142, C132/C2143, C312/C1423, C312/C4213, C213/C1324, C213/C3124, C213/C3214, C321/C1432, C321/C4132, C21/C132}
48-
\semiopaque{\drawprobarrow{\StartPoint}{}{\EndPoint}};
53+
\foreach \perma/\permb in {12/213, 123/3124, 123/2134, 132/1243, 132/3142, 132/2143, 312/1423, 312/4213, 213/1324, 213/3124, 213/3214, 321/1432, 321/4132, 21/132}
54+
\semiopaque{\drawprobarrow{C\perma}{}{C\permb}};
4955
\end{scope}
5056
% ... to anywhere (additionally, further):
5157
\begin{scope}[anywhere colour]
@@ -87,7 +93,7 @@
8793
% Add legend:
8894
\node[above left, align=left, draw, inner sep=3ex, fill=gray!05]
8995
at (15*\xstep, 0)
90-
{Expanding into\\
96+
{Expanding towards\\
9197
\bfseries\color{future colour}\legendsymbol{0}\ the future\\
9298
\bfseries\color{past colour}\legendsymbol{1}\ + the past\\
9399
\bfseries\color{anywhere colour}\legendsymbol{1}\ + anywhere};

causets.pdf

3.88 KB
Binary file not shown.

0 commit comments

Comments
 (0)