texlive[74231] branches/branch2024.final/Master/texmf-dist: causets

commits+karl at tug.org commits+karl at tug.org
Sun Feb 23 22:14:24 CET 2025


Revision: 74231
          https://tug.org/svn/texlive?view=revision&revision=74231
Author:   karl
Date:     2025-02-23 22:14:24 +0100 (Sun, 23 Feb 2025)
Log Message:
-----------
causets (branch) (23feb25)

Modified Paths:
--------------
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/README.md
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets.pdf
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets.tex
    branches/branch2024.final/Master/texmf-dist/tex/latex/causets/causets.sty

Added Paths:
-----------
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.pdf
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.tex
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.pdf
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.tex

Removed Paths:
-------------
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example1.pdf
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example1.tex
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example2.pdf
    branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example2.tex

Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/README.md
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/README.md	2025-02-23 21:14:07 UTC (rev 74230)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/README.md	2025-02-23 21:14:24 UTC (rev 74231)
@@ -1,5 +1,5 @@
 # The `causets` package
-The LaTeX package `causets` lets you create (Hasse) diagrams of causal sets. Causal sets (causets) are locally finite, partially ordered sets and are consider as a framework for quantum gravity. This package is built on the package `tikz`, which is usually included in the standard LaTeX installations and loaded automatically with `\usepackage{causets}`.
+The LaTeX package `causets` lets you create (Hasse) diagrams of causal sets. Causal sets (causets) are locally finite, partially ordered sets (posets) and are consider as a framework for quantum gravity. This package is built on the package `tikz`, which is usually included in the standard LaTeX installations and loaded automatically with `\usepackage{causets}`.
 
 The diagrams can be used inline with text or mathematical expressions, or they may be included in a TikZ pictures. 
 The three main commands (macros) are 
@@ -13,10 +13,13 @@
 ```
 
 For a full documentation, please see causets.pdf.
-The documentation includes some examples.
-More examples are included at
-https://github.com/c-minz/LaTeX-causets/tree/main/examples
+This documentation includes some examples.
 
+More diagram examples with corresponding LaTeX macros are listed in the [catalogue of finite posets on the project website](https://c-minz.github.io/projects/poset_diagrams).
+
+[Go to the PrOSET editor](https://c-minz.github.io/assets/html/proset-editor.html) (a free online tool) to create and modify diagrams visually before exporting them as LaTeX macros.
+
+
 ## Bug reports
 Problems with the package are reported here:
 https://github.com/c-minz/LaTeX-causets/issues
@@ -24,7 +27,6 @@
 If you find a bug, please report it by including:
 * Comprehensive problem description - including error or warning messages (if any).
 * Minimal test file that shows the problem.
-* Used drivers/programs with version informations.
 * Version information about used packages and programs.
 * Please no other files than the minimal test file (*.tex).
 
@@ -32,8 +34,9 @@
   C. Minz
   christoph{dot}minz[AT]gmail{dot}com
 
+
 ## License and distribution
-Copyright 2020-2023 by C. Minz
+Copyright 2020-2025 by C. Minz
 
 This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this licence or (at your option) any later version.
 The latest version of this licence is in
@@ -44,9 +47,9 @@
 The current maintainer of this work is C. Minz.
 https://github.com/c-minz
 
-**Current package version: v1.4 (2023/03/06)**
+**Current package version: v1.5 (2024/02/24)**
 
 CTAN location: /graphics/pgf/contrib/causets/
 
 
-This work consists of the files causets.sty, causets.tex, causets.pdf, causet_tikz_example1.tex, causet_tikz_example1.pdf, causet_tikz_example2.tex, causet_tikz_example2.pdf
+This work consists of the files causets.sty, causets.tex, causets.pdf, causets_example1.tex, causets_example1.pdf, causets_example2.tex, causets_example2.pdf

Deleted: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example1.pdf
===================================================================
(Binary files differ)

Deleted: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example1.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example1.tex	2025-02-23 21:14:07 UTC (rev 74230)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example1.tex	2025-02-23 21:14:24 UTC (rev 74231)
@@ -1,23 +0,0 @@
-\documentclass[tikz]{standalone}
-\usepackage[permutation,larger,neon]{causets}
-\usetikzlibrary{fit,shapes.geometric}
-\begin{document}
-\begin{tikzpicture}
-	% Create causet, shifted in x- and y-direction:
-	\begin{scope}[xshift=3cm, yshift=-1cm]
-		\tikzcausetsset{offset=-2}
-		\drawpcauset{5,2,7,3,6,1,4}
-		\draw[red, double] (0, 0) circle[radius=0.1];
-	\end{scope}
-	% Mark the maximal elements (future infinity):
-	\node[draw=blue, inner sep=1pt, thick, ellipse, fit=(E2) (E4) (E5)] (Finf) {};
-	% Add labels on top:
-	\node[draw=blue, right, align=right] (FinfLabel) at (4.8, -0.5) {maximal events / \\ (future infinity)};
-	\node[draw=red] (centerLabel) at (0.5, -0.5) {centre};
-	\node[draw=green!50!black] (myEventLabel) at (5.5, -2.5) {event (E0)};
-	% Draw arrows from the labels to the references:
-	\draw[ultra thick, blue, ->] (FinfLabel) -- (Finf);
-	\draw[ultra thick, red, ->] (centerLabel) -- (3, -1);  % centre was shifted by the scope
-	\draw[ultra thick, green!50!black, ->] (myEventLabel) -- (E0);
-\end{tikzpicture}
-\end{document}

Deleted: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example2.pdf
===================================================================
(Binary files differ)

Deleted: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example2.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example2.tex	2025-02-23 21:14:07 UTC (rev 74230)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causet_tikz_example2.tex	2025-02-23 21:14:24 UTC (rev 74231)
@@ -1,101 +0,0 @@
-\documentclass[tikz]{standalone}
-\usepackage[black]{causets}
-\usetikzlibrary{fit,shapes.geometric}
-% Set colours and style:
-\colorlet{future colour}{green!50!black}
-\colorlet{past colour}{yellow!50!orange!80!black}
-\colorlet{anywhere colour}{red!80!black}
-\tikzset{prob arrow/.style={line width=1.5pt}}
-% Define some helper functions:
-\def\defCevents#1#2#3{\xdef\Ea{#1}\xdef\Eb{#2}\xdef\Ec{#3}}
-\def\defDevents#1#2#3#4{\expandafter\defCevents#1#2#3\xdef\Ed{#4}}
-\newcommand*{\semiopaque}[1]{% Adds a transparency group.
-\begin{scope}[transparency group, opacity=0.5]
-	#1
-\end{scope}
-}
-\newcommand*{\drawprobarrow}[4][]{% Draws a (probability) arrow.
-\draw[prob arrow] (#2) -- node[sloped, midway, below, #1] {$#3$} (#4);
-}
-\newcommand{\drawlegendsymbol}{% Draws the symbol for a legend entry.
-\draw[prob arrow] (0,0) -- +(10pt, 6pt);
-}
-\newcommand{\legendsymbol}[1]{% Creates the legend symbol.
-\begin{tikzpicture}
-	\ifnum#1=0
-		\drawlegendsymbol
-	\else
-		\semiopaque{\drawlegendsymbol}
-	\fi
-\end{tikzpicture}
-}
-\begin{document}
-\begin{tikzpicture}[-stealth]
-	\def\ystep{2.0cm}
-	\def\xstep{0.52cm}
-	% Create nodes of all causets with 1 to 4 events:
-	\begin{scope}[nodes={draw, thin, circle, minimum size=1.02cm}]
-		\node (C1) at ( 0,  0) {\pcauset{1}};
-		\node (C12) at (-4*\xstep,  1*\ystep) {\pcauset{1,2}};
-		\node (C21) at ( 4*\xstep,  1*\ystep) {\pcauset{2,1}};
-		\foreach \perm [count=\i from 0] in {123, 132, 312, 213, 321}{%
-			\expandafter\defCevents\perm
-			\node (C\perm) at (4*\i*\xstep-8*\xstep, 2*\ystep) {\pcauset{\Ea,\Eb,\Ec}};
-		}
-		\foreach \perm [count=\i from 0] in {1234, 1243, 1423, 1324, 1432, 4123, 4132, 3124, 3412, 3142, 4312, 2134, 2143, 4213, 3214, 4321}{%
-			\expandafter\defDevents\perm
-			\node (C\perm) at (2*\i*\xstep-15*\xstep, 3.75*\ystep) {\pcauset{\Ea,\Eb,\Ec,\Ed}};
-		}
-	\end{scope}
-	% Add graph edges for expandings ...
-	% ... to the past (additionally):
-	\begin{scope}[past colour]
-		\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}
-			\semiopaque{\drawprobarrow{C\perma}{}{C\permb}};
-	\end{scope}
-	% ... to anywhere (additionally, further):
-	\begin{scope}[anywhere colour]
-		\semiopaque{\drawprobarrow{C123}{}{C1324}};
-	\end{scope}
-	% ... to the future:
-	\begin{scope}[prob arrow, future colour]
-		\drawprobarrow{C1}{p_{12}}{C12}
-		\drawprobarrow{C12}{p_{123}}{C123}
-		\drawprobarrow{C123}{p_{1234}}{C1234}
-		\drawprobarrow[near end]{C123}{p_{1243}}{C1243}
-		\drawprobarrow[near end]{C123}{p_{1423}}{C1423}
-		\drawprobarrow[near start, above]{C123}{p_{4123}}{C4123}
-		\drawprobarrow[above]{C12}{p_{132}}{C132}
-		\drawprobarrow[near end]{C132}{p_{1342}}{C1423}
-		\drawprobarrow[near end]{C132}{p_{1324}}{C1324}
-		\drawprobarrow[midway, above]{C132}{p_{1432}}{C1432}
-		\drawprobarrow[near start]{C132}{p_{4132}}{C4132}
-		\drawprobarrow[near start, above]{C12}{p_{312}}{C312}
-		\drawprobarrow[near end]{C312}{p_{3124}}{C3124}
-		\drawprobarrow[near end]{C312}{p_{3412}}{C3412}
-		\drawprobarrow[near end]{C312}{p_{3142}}{C3142}
-		\drawprobarrow[near start]{C312}{p_{4312}}{C4312}
-		\drawprobarrow{C1}{p_{21}}{C21}
-		\drawprobarrow[near start, above]{C21}{p_{231}}{C312}
-		\drawprobarrow[near start]{C312}{p_{2341}}{C4123}
-		\drawprobarrow[near end]{C312}{p_{2431}}{C4132}
-		\drawprobarrow{C21}{p_{213}}{C213}
-		\drawprobarrow[above]{C213}{p_{2134}}{C2134}
-		\drawprobarrow[near start]{C213}{p_{2413}}{C3142}
-		\drawprobarrow[near end]{C213}{p_{2143}}{C2143}
-		\drawprobarrow[near end]{C213}{p_{4213}}{C4213}
-		\drawprobarrow{C21}{p_{321}}{C321}
-		\drawprobarrow[near start, above]{C321}{p_{3421}}{C4312}
-		\drawprobarrow[near end]{C321}{p_{3241}}{C4213}
-		\drawprobarrow[near end]{C321}{p_{3214}}{C3214}
-		\drawprobarrow{C321}{p_{4321}}{C4321}
-	\end{scope}
-	% Add legend:
-	\node[above left, align=left, draw, inner sep=3ex, fill=gray!05]
-		at (15*\xstep, 0)
-		{Expanding towards\\
-		 \bfseries\color{future colour}\legendsymbol{0}\ the future\\
-		 \bfseries\color{past colour}\legendsymbol{1}\ + the past\\
-		 \bfseries\color{anywhere colour}\legendsymbol{1}\ + anywhere};
-\end{tikzpicture}
-\end{document}

Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets.pdf
===================================================================
(Binary files differ)

Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets.tex	2025-02-23 21:14:07 UTC (rev 74230)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets.tex	2025-02-23 21:14:24 UTC (rev 74231)
@@ -1,3 +1,5 @@
+%% Copyright 2020-2025 by C. Minz
+% Current package version: v1.5 (2025/02/24).
 \documentclass[12pt]{article}
 \usepackage[a4paper, left = 2.5cm, right = 2.5cm, top = 2.5cm, bottom = 2.5cm]{geometry}
 \usepackage[english]{babel}
@@ -29,20 +31,20 @@
 \fancyfoot[R]{\sffamily \thepage}
 \usepackage{hyperref} % cross references
 \hypersetup{%
-	bookmarksopen = true, %
-	bookmarksopenlevel = 0, %
-	bookmarksnumbered = true, %
-	pdftitle = {{Package documentation: causets}}, %
-	pdfauthor = {{Christoph Minz}}, %
-	pdfstartpage = 1, %
-	pdfstartview = {FitH}, %
-	breaklinks = false, %
-	colorlinks = true, %
-	linkcolor = black!50!blue, %
-	citecolor = black, %
-	filecolor = black, %
-	menucolor = black, %
-	urlcolor = black!25!blue %
+  bookmarksopen = true, %
+  bookmarksopenlevel = 0, %
+  bookmarksnumbered = true, %
+  pdftitle = {{Package documentation: causets}}, %
+  pdfauthor = {{Christoph Minz}}, %
+  pdfstartpage = 1, %
+  pdfstartview = {FitH}, %
+  breaklinks = false, %
+  colorlinks = true, %
+  linkcolor = black!50!blue, %
+  citecolor = black, %
+  filecolor = black, %
+  menucolor = black, %
+  urlcolor = black!25!blue %
 }
 \addto\extrasenglish{%
   \renewcommand{\sectionautorefname}{Sec.}%
@@ -53,25 +55,25 @@
 \usepackage{multirow} % spanning multiple rows
 \usepackage{listings} % code environments
 \lstset{
-	backgroundcolor=\color{yellow!50!black!10},
-	basicstyle=\ttfamily\footnotesize,
-	breakatwhitespace=true,
-	breaklines=true,
-	captionpos=b,
-	commentstyle=\color{green!50!black!50!gray},
-	keepspaces=true,
-	keywordstyle={},
-	language=TeX,
-	numbers=left,
-	numbersep=5pt,
-	numberstyle=\scriptsize\color{black!35},
-	rulecolor=\color{black},
-	showspaces=false,
-	showstringspaces=false,
-	showtabs=false,
-	stepnumber=1,
-	stringstyle=\color{purple!50!black},
-	tabsize=2
+  backgroundcolor=\color{yellow!50!black!10},
+  basicstyle=\ttfamily\footnotesize,
+  breakatwhitespace=true,
+  breaklines=true,
+  captionpos=b,
+  commentstyle=\color{green!50!black!50!gray},
+  keepspaces=true,
+  keywordstyle={},
+  language=TeX,
+  numbers=left,
+  numbersep=5pt,
+  numberstyle=\scriptsize\color{black!35},
+  rulecolor=\color{black},
+  showspaces=false,
+  showstringspaces=false,
+  showtabs=false,
+  stepnumber=1,
+  stringstyle=\color{purple!50!black},
+  tabsize=2
 }
 
 \usepackage{amsmath}
@@ -78,74 +80,84 @@
 \usepackage[external]{causets}
 
 \newcommand*{\PH}[1][value]{{\small\itshape$\langle$#1$\rangle$}} % placeholder
+\newcommand*{\LaTeXML}{{\LaTeX}ML}
 
 \usetikzlibrary{tikzmark}
 \newcommand*{\versioncauset}[3][-1.03cm]{%
 \tikzmark{#2}%
 \tikz[remember picture, overlay]%
-	\path (pic cs:#2) -- ++(-1cm, 0.5em) -- ++(#1, 0) node {#3};%
+  \path (pic cs:#2) -- ++(-1cm, 0.5em) -- ++(#1, 0) node {#3};%
 }% \versioncauset
 
-\title{{\small package}\\[0.5cm] \huge causets \\[0.2cm]{\small version 1.4\\[0.5cm]}}
+\title{{\small package}\\[0.5cm]%
+\huge causets\\[0.2cm]%
+{\small version 1.5\\[0.5cm]}}
 \author{Christoph Minz}
-\date{6 March 2023}
+\date{2025/02/24}
 
 \begin{document}
 
-{\sffamily\maketitle}
+{\sffamily\maketitle
 
+\vspace{-2em}
 \begin{center}
-\large
-$\displaystyle
-	\tikzcausetsset{large}
-	\left\{
-		\pcauset[name=3Antichain_large]{3,2,1},
-		\pcauset[name=2ChainUnion1Chain_large]{3,1,2},
-		\pcauset[name=Wedge_large]{2,1,3},
-		\pcauset[name=Vee_large]{1,3,2},
-		\pcauset[name=3Chain_large]{1,2,3}
-	\right\}
-$
-\\
-$\displaystyle
-	\tikzcausetsset{large}
-	\causetsDrawLabelstrue
-	\left\{
-		\pcauset[name=3Antichain_largelabeled]{3,2,1},
-		\pcauset[name=2ChainUnion1Chain_largelabeled]{3,1,2},
-		\pcauset[name=Wedge_largelabeled]{2,1,3},
-		\pcauset[name=Vee_largelabeled]{1,3,2},
-		\pcauset[name=3Chain_largelabeled]{1,2,3}
-	\right\}
-$
-\\
-$\displaystyle
-	\tikzcausetsset{large}
-	\causetsDrawPermutationtrue
-	\left\{
-		\pcauset[name=3Antichain_largeperm]{3,2,1},
-		\pcauset[name=2ChainUnion1Chain_largeperm]{3,1,2},
-		\pcauset[name=Wedge_largeperm]{2,1,3},
-		\pcauset[name=Vee_largeperm]{1,3,2},
-		\pcauset[name=3Chain_largeperm]{1,2,3}
-	\right\}
-$
+--- supported with the \href{https://c-minz.github.io/assets/html/proset-editor.html}{PrOSET editor} online ---
 \end{center}
+}
+
+
+\begin{center}\tikzcausetsset{large}
+$$
+  \left\{
+    \pcauset[name=3Antichain_large]{3,2,1},
+    \pcauset[name=2ChainUnion1Chain_large]{3,1,2},
+    \pcauset[name=Wedge_large]{2,1,3},
+    \pcauset[name=Vee_large]{1,3,2},
+    \pcauset[name=3Chain_large]{1,2,3}
+  \right\}
+  ,
+\qquad
+  \causetsDrawLabelstrue
+  \left\{
+    \pcauset[name=3Antichain_largelabeled]{3,2,1},
+    \pcauset[name=2ChainUnion1Chain_largelabeled]{3,1,2},
+    \pcauset[name=Wedge_largelabeled]{2,1,3},
+    \pcauset[name=Vee_largelabeled]{1,3,2},
+    \pcauset[name=3Chain_largelabeled]{1,2,3}
+  \right\}
+  ,
+$$
+\\[-1em]
+$$
+  \causetsDrawPermutationtrue
+  \left\{
+    \pcauset[name=3Antichain_largeperm]{3,2,1},
+    \pcauset[name=2ChainUnion1Chain_largeperm]{3,1,2},
+    \pcauset[name=Wedge_largeperm]{2,1,3},
+    \pcauset[name=Vee_largeperm]{1,3,2},
+    \pcauset[name=3Chain_largeperm]{1,2,3}
+  \right\}
+$$
+\end{center}
 \vfill
 
-\section*{What is the purpose of this package?}
-\label{sec:Purpose}
-Causal set theory is a proposed framework for quantum gravity.
-Causal sets (\textbf{causets} for short) are locally finite, partially ordered sets.
-They are commonly represent with Hasse diagrams, where the partial order (standing for the direction of time) increases towards to the top of the page. 
+{\itshape
+The purpose of this package is to typeset partial ordered sets (posets for short) as Hasse diagrams in a style that is particularly suited for causal set theory (a theory of quantum gravity).
+Causal sets (\textbf{causets} for short) are locally finite, partially ordered sets, where the partial order is the causal relation between elements.
+This relation forms a cone structure (light-cones) such that all past and future related elements of an element fall within a lower and upper cone, respectively, opening in 90 degree angles.
 
-This package implements some simple functionality to produce such diagrams for causets by drawing them as TikZ graphics.
-The drawing algorithm makes use of the fact that every finite causet that embeds in $\smash{1 + 1}$ dimensional Minkowski spacetime can be represented by a product of two total orders (2D-orders), where one order can be the total order of the integers labelling the causet elements, while the other is a permutation of the labels\footnote{See \url{https://arxiv.org/abs/0706.0375} and \url{https://arxiv.org/abs/2011.02965} for more details on 2D-orders and causal sets.}.
-The idea is then used as a blueprint to draw diagrams for any generic (finite) causet, so that it becomes easy to draw causets and even use them in mathematical expressions.
+The drawing algorithm (based on TikZ) makes use of the fact that every finite causet that embeds in $\smash{1 + 1}$ dimensional Minkowski spacetime is a product of two total orders (2-order), where one order is taken to be the standard total order of integers labelling all causet elements, while the other is a permutation of the labels\footnote{See \url{https://arxiv.org/abs/0706.0375} and \url{https://arxiv.org/abs/2011.02965} for more details on 2-orders and causal sets.}.
+Such a permutation is the main input for the macros.
+For any higher dimensional poset, there exists a 2-order such that the higher dimensional diagram is obtained by removing links from the 2-order.
+The online tool ``PrOSET editor'' helps to construct any Hasse diagram and export its macro for use in a \LaTeX\ document.
+}
 
 \clearpage
-\section{Introduction - the main commands}
+
+
+\section{The three main commands}
 \label{sec:Introduction}
+
 This package is built on the package \lstinline\xA7tikz\xA7 to draw the diagrams.
 To import the \lstinline\xA7causets\xA7 package into a \LaTeX\ file, write
 \begin{lstlisting}
@@ -170,7 +182,7 @@
 The second command does the same, but removes (restyles) links between event pairs \lstinline\xA7i/j\xA7 as given in the second argument.
 The third command only uses the permutation to position the events, the links have to be explicitly specified by event pairs \lstinline\xA7i/j\xA7 in the second argument.
 
-Any causet that can be embedded in $1 + 1$ dimensional Minkowski spacetime can also be described by the product of two total orders (a 2D-order).
+Any causet that can be embedded in $1 + 1$ dimensional Minkowski spacetime can also be described by the product of two total orders (a 2-order).
 Let the causet elements be labeled by an increasing null coordinate $u$.
 In the first diagram of \autoref{tab:MainCommandsExamples}, the $u$-coordinate axis points upwards on the right hand side.
 The causal relation (partial order) implies a label permutation along the null coordinate $v$ (pointing upwards along the left axis).
@@ -177,28 +189,28 @@
 This permutation is the input of the \lstinline\xA7\pcauset\xA7 command that computes the causal relation from the permutation.
 See example 1 in \autoref{tab:MainCommandsExamples}.
 \begin{table}[h!]
-	\centering
-	\tikzcausetsset{black colors, show permutation}
-	\begin{tabular*}{\textwidth}{lp{0.73\textwidth}c}
-		\toprule
-		\#
-	& command
-	& inline output
-	\\\midrule
-		1
-	& \lstinline\xA7\pcauset{4,7,2,6,1,5,3}\xA7
-	& \pcauset[name=pcausetExample_perm]{4,7,2,6,1,5,3}
-	\\\midrule
-		2
-	& \lstinline\xA7\rcauset{4,7,2,6,1,5,3}{2/5}\xA7
-	& \rcauset[name=rcausetExample_perm]{4,7,2,6,1,5,3}{2/5}
-	\\\midrule
-		3
-	& \lstinline\xA7\causet{4,7,2,6,1,5,3}{1/3,1/5,2/3,2/6,4/5,4/6,4/7}\xA7
-	& \causet[name=causetExample_perm]{4,7,2,6,1,5,3}{1/3,1/5,2/3,2/6,4/5,4/6,4/7}
-	\\\bottomrule
-	\end{tabular*}
-	\caption{\label{tab:MainCommandsExamples} Examples of the three main commands.}
+  \centering
+  \tikzcausetsset{black colors, show permutation}
+  \begin{tabular*}{\textwidth}{lp{0.75\textwidth}c}
+    \toprule
+    \#
+  & command
+  & inline output
+  \\\midrule
+    1
+  & \lstinline\xA7\pcauset{4,7,2,6,1,5,3}\xA7
+  & \pcauset[name=pcausetExample_perm]{4,7,2,6,1,5,3}
+  \\\midrule
+    2
+  & \lstinline\xA7\rcauset{4,7,2,6,1,5,3}{2/5}\xA7
+  & \rcauset[name=rcausetExample_perm]{4,7,2,6,1,5,3}{2/5}
+  \\\midrule
+    3
+  & \lstinline\xA7\causet{4,7,2,6,1,5,3}{1/3,1/5,2/3,2/6,4/5,4/6,4/7}\xA7
+  & \causet[name=causetExample_perm]{4,7,2,6,1,5,3}{1/3,1/5,2/3,2/6,4/5,4/6,4/7}
+  \\\bottomrule
+  \end{tabular*}
+  \caption{\label{tab:MainCommandsExamples} Examples of the three main commands.}
 \end{table}
 
 Every causet that does not embed in $1 + 1$ dimensional Minkowski spacetime can be made embeddable by adding links, for which the \lstinline\xA7\rcauset\xA7 command is defined.
@@ -221,23 +233,23 @@
 \begin{document}
 ...
 \begin{align}
-	S &=
-	\left\{
-		\pcauset{3,2,1}, \pcauset{3,1,2}, \pcauset{2,1,3}, \pcauset{1,3,2}, \pcauset{1,2,3}
-	\right\}.
+  S &=
+  \left\{
+    \pcauset{3,2,1}, \pcauset{3,1,2}, \pcauset{2,1,3}, \pcauset{1,3,2}, \pcauset{1,2,3}
+  \right\}.
 \end{align}
 \end{lstlisting}
 %\vspace{-1ex}
 \begin{align}
-	S &=
-	\left\{
-		\pcauset[name=3Antichain]{3,2,1},
-		\pcauset[name=2ChainUnion1Chain]{3,1,2},
-		\pcauset[name=Wedge]{2,1,3},
-		\pcauset[name=Vee]{1,3,2},
-		\pcauset[name=3Chain]{1,2,3}
-	\right\}
-	.
+  S &=
+  \left\{
+    \pcauset[name=3Antichain]{3,2,1},
+    \pcauset[name=2ChainUnion1Chain]{3,1,2},
+    \pcauset[name=Wedge]{2,1,3},
+    \pcauset[name=Vee]{1,3,2},
+    \pcauset[name=3Chain]{1,2,3}
+  \right\}
+  .
 \end{align}
 
 Of course, a given causet might have more than one representing permutation, so that any of those permutations may be used.
@@ -256,7 +268,7 @@
 \pcauset{20,18,16,14,12,10,8, 1,7,6,5,4,3,2, 9,11,13,15,17,19}
 \end{lstlisting}
 \begin{center}
-	\pcauset[black colors, permutation, name=DotsExample_perm]{20,18,16,...,8,1,7,6,...,2,9,11,...,19}
+  \pcauset[black colors, permutation, name=DotsExample_perm]{20,18,16,...,8,1,7,6,...,2,9,11,...,19}
 \end{center}
 
 In an optional argument, the main commands accepts any causets or TikZ keys to change the style of the causet.
@@ -265,15 +277,31 @@
 \pcauset[blue colors]{2,4,5,1,3}
 \end{lstlisting}
 
+Example diagrams together with their \LaTeX\ macros are included on the project website \url{https://c-minz.github.io/projects/poset_diagrams}.
+To help create and modify poset diagrams visually, I developed the PrOSET editor as an online tool, which exports the result as \LaTeX\ macros (and other data formats): \\
+\url{https://c-minz.github.io/assets/html/proset-editor.html}
+
+Whenever you use this package to compose a publication to be uploaded to the arXiv, or a document that may be converted to XML or HTML with \LaTeXML, this package provides special support.
+To replace the diagram figures especially for screen readers, add a short description with the key \lstinline\xA7alt={\xA7\PH\lstinline\xA7}\xA7 in the optional argument.
+For example, the code
+\begin{lstlisting}
+\pcauset[alt={N}]{2,4,1,3},
+\pcauset[alt={union of an N and a 2-chain}]{5,6,2,4,1,3}
+\end{lstlisting}
+adds ``N'' as alternative text for \pcauset[name=N, alt={N}]{2,4,1,3}, and ``union of an N and a 2-chain'' as description for \pcauset[name=N_2-chain, alt={union of an N and a 2-chain}]{5,6,2,4,1,3}.
+If no alternative text is specified, the default value ``causet'' is used (which is set in the style \lstinline\xA7every causet\xA7).
+
+
 \section{Package options}
 \label{sec:PackageOptions}
+
 Each of the package options can either be specified in square brackets when declaring the package (option applies globally) or be changed with a macro at any point in the document (option applies to the local scope).
 
-If no options are used, an output like \rcauset[name=Options_rcauset]{4,2,7,6,1,5,3}{2/5} is obtained with the code
+If no options are used, an output like \rcauset[name=Options_rcauset, alt={3-crown with doubled top right}]{4,2,7,6,1,5,3}{2/5} is obtained with the code
 \begin{lstlisting}
 \usepackage{causets}
 ... \begin{document} ...
-\rcauset{4,2,7,6,1,5,3}{2/5}
+\rcauset[alt={3-crown with doubled top right}]{4,2,7,6,1,5,3}{2/5}
 \end{lstlisting}
 
 The options -- given in the following table -- are passed to the \lstinline\xA7causets\xA7 package as optional parameter and can be combined.
@@ -285,205 +313,208 @@
 If not specified otherwise, any package option also works with the command \lstinline\xA7\causet\xA7.
 
 \begin{longtable}{p{0.63\textwidth}p{0.14\textwidth}p{0.14\textwidth}}
-	\toprule
-	Package option & \lstinline\xA7\pcauset\xA7 & \lstinline\xA7\rcauset\xA7
-	\\\midrule
-	\endfirsthead
+  \toprule
+  Package option & \lstinline\xA7\pcauset\xA7 & \lstinline\xA7\rcauset\xA7
+  \\\midrule
+  \endfirsthead
 
-	\multicolumn{3}{c}{\footnotesize \textit{continued from the previous page}}
-	\\\midrule
-	Package option & \lstinline\xA7\pcauset\xA7 & \lstinline\xA7\rcauset\xA7
-	\\\midrule
-	\endhead
+  \multicolumn{3}{c}{\footnotesize \textit{continued from the previous page}}
+  \\\midrule
+  Package option & \lstinline\xA7\pcauset\xA7 & \lstinline\xA7\rcauset\xA7
+  \\\midrule
+  \endhead
 
-	\midrule
-	\multicolumn{3}{c}{\footnotesize \textit{continued on the next page}}
-	\endfoot
+  \midrule
+  \multicolumn{3}{c}{\footnotesize \textit{continued on the next page}}
+  \endfoot
 
-	\endlastfoot
+  \endlastfoot
 
-	\lstinline\xA7\usepackage[permutation]{causets}\xA7 shows permutations
+  \lstinline\xA7\usepackage[permutation]{causets}\xA7 shows permutations
 & \multirow{3}{5em}{%
-	\causetsDrawPermutationtrue \pcauset[name=Options_pcauset_perm]{4,2,7,6,1,5,3}}
+  \causetsDrawPermutationtrue \pcauset[name=Options_pcauset_perm]{4,2,7,6,1,5,3}}
 & \multirow{3}{5em}{%
-	\causetsDrawPermutationtrue \rcauset[name=Options_rcauset_perm]{4,2,7,6,1,5,3}{2/5}}
+  \causetsDrawPermutationtrue \rcauset[name=Options_rcauset_perm]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\causetsDrawPermutationtrue\xA7 activates this option)
+  (\lstinline\xA7\causetsDrawPermutationtrue\xA7 activates this option)
 \\
-	(\lstinline\xA7\causetsDrawPermutationfalse\xA7 deactivates this option)
-\\\pagebreak%\midrule
-	\lstinline\xA7\usepackage[permutation, uunlabeled]{causets}\xA7
+  (\lstinline\xA7\causetsDrawPermutationfalse\xA7 deactivates this option)
+\\\midrule
+  \lstinline\xA7\usepackage[permutation, uunlabeled]{causets}\xA7
 & \multirow{4}{5em}{%
-	\causetsDrawPermutationtrue \causetsDrawULabelsfalse \pcauset[name=Options_pcauset_permv]{4,2,7,6,1,5,3}}
+  \causetsDrawPermutationtrue \causetsDrawULabelsfalse \pcauset[name=Options_pcauset_permv]{4,2,7,6,1,5,3}}
 & \multirow{4}{5em}{%
-	\causetsDrawPermutationtrue \causetsDrawULabelsfalse \rcauset[name=Options_rcauset_permv]{4,2,7,6,1,5,3}{2/5}}
+  \causetsDrawPermutationtrue \causetsDrawULabelsfalse \rcauset[name=Options_rcauset_permv]{4,2,7,6,1,5,3}{2/5}}
 \\
-	shows permutations without u-labels
+  shows permutations without u-labels
 \\
-	(\lstinline\xA7\causetsDrawULabelstrue\xA7 activates u-labels)
+  (\lstinline\xA7\causetsDrawULabelstrue\xA7 activates u-labels)
 \\
-	(\lstinline\xA7\causetsDrawULabelsfalse\xA7 deactivates u-labels)
+  (\lstinline\xA7\causetsDrawULabelsfalse\xA7 deactivates u-labels)
 \\\midrule
-	\lstinline\xA7\usepackage[permutation, vunlabeled]{causets}\xA7
+  \lstinline\xA7\usepackage[permutation, vunlabeled]{causets}\xA7
 & \multirow{4}{5em}{%
-	\causetsDrawPermutationtrue \causetsDrawVLabelsfalse \pcauset[name=Options_pcauset_permu]{4,2,7,6,1,5,3}}
+  \causetsDrawPermutationtrue \causetsDrawVLabelsfalse \pcauset[name=Options_pcauset_permu]{4,2,7,6,1,5,3}}
 & \multirow{4}{5em}{%
-	\causetsDrawPermutationtrue \causetsDrawVLabelsfalse \rcauset[name=Options_rcauset_permu]{4,2,7,6,1,5,3}{2/5}}
+  \causetsDrawPermutationtrue \causetsDrawVLabelsfalse \rcauset[name=Options_rcauset_permu]{4,2,7,6,1,5,3}{2/5}}
 \\
-	shows permutations without v-labels
+  shows permutations without v-labels
 \\
-	(\lstinline\xA7\causetsDrawVLabelstrue\xA7 activates v-labels)
+  (\lstinline\xA7\causetsDrawVLabelstrue\xA7 activates v-labels)
 \\
-	(\lstinline\xA7\causetsDrawVLabelsfalse\xA7 deactivates v-labels)
+  (\lstinline\xA7\causetsDrawVLabelsfalse\xA7 deactivates v-labels)
 \\\midrule\midrule
-	\lstinline\xA7\usepackage[labeled]{causets}\xA7 shows labeled events
+  \lstinline\xA7\usepackage[labeled]{causets}\xA7 shows labeled events
 & \multirow{3}{5em}{%
-	\causetsDrawLabelstrue \pcauset[name=Options_pcauset_labeled]{4,2,7,6,1,5,3}}
+  \causetsDrawLabelstrue \pcauset[name=Options_pcauset_labeled]{4,2,7,6,1,5,3}}
 & \multirow{3}{5em}{%
-	\causetsDrawLabelstrue \rcauset[name=Options_rcauset_labeled]{4,2,7,6,1,5,3}{2/5}}
+  \causetsDrawLabelstrue \rcauset[name=Options_rcauset_labeled]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\causetsDrawLabelstrue\xA7 activates labels)
+  (\lstinline\xA7\causetsDrawLabelstrue\xA7 activates labels)
 \\
-	(\lstinline\xA7\causetsDrawLabelsfalse\xA7 deactivates labels)
+  (\lstinline\xA7\causetsDrawLabelsfalse\xA7 deactivates labels)
 \\\midrule\midrule
-	\lstinline\xA7\usepackage[continuous]{causets}\xA7 allows links to cross over events. Link interruptions (default) only affect the \lstinline\xA7\causet\xA7 command and ``restyled'' links of \lstinline\xA7\rcauset\xA7, but not the examples of shown on the right.
+  \lstinline\xA7\usepackage[continuous]{causets}\xA7 allows links to cross over events.
+  Link interruptions (default) only affect the \lstinline\xA7\causet\xA7 command and ``restyled'' links of \lstinline\xA7\rcauset\xA7, but not the examples shown on the right.
 & \multirow{6}{5em}{%
-	\causetsBreakLinkstrue \pcauset[name=Options_pcauset_continuous]{4,2,7,6,1,5,3}}
+  \causetsBreakLinkstrue \pcauset[name=Options_pcauset_continuous]{4,2,7,6,1,5,3}}
 & \multirow{6}{5em}{%
-	\causetsBreakLinkstrue \rcauset[name=Options_rcauset_continuous]{4,2,7,6,1,5,3}{2/5}}
+  \causetsBreakLinkstrue \rcauset[name=Options_rcauset_continuous]{4,2,7,6,1,5,3}{2/5}}
 \\
-	Details on interrupted (broken) links are given below this table.
+  Details on interrupted (broken) links are given below this table.
 \\\midrule
-	\lstinline\xA7\usepackage[caps]{causets}\xA7 sets caps as link tips
+  \lstinline\xA7\usepackage[caps]{causets}\xA7 sets caps as link tips
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset_caps, cap links]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_caps, cap links]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset_caps, cap links]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_caps, cap links]{4,2,7,6,1,5,3}{2/5}}
 \\
 \\\midrule
-	\lstinline\xA7\usepackage[arrows]{causets}\xA7 sets arrows (rounded stealth) as link tips
+  \lstinline\xA7\usepackage[arrows]{causets}\xA7 sets arrows (rounded stealth) as link tips
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset_arrows, arrow links]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_arrows, arrow links]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset_arrows, arrow links]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_arrows, arrow links]{4,2,7,6,1,5,3}{2/5}}
 \\\midrule
-	\lstinline\xA7\usepackage[unlinked]{causets}\xA7 does not draw links
+  \lstinline\xA7\usepackage[unlinked]{causets}\xA7 does not draw links
 & \multirow{3}{5em}{%
-	\causetsDrawLinksfalse \pcauset[name=Options_pcauset_unlinked]{4,2,7,6,1,5,3}}
+  \causetsDrawLinksfalse \pcauset[name=Options_pcauset_unlinked]{4,2,7,6,1,5,3}}
 & \multirow{3}{5em}{%
-	\causetsDrawLinksfalse \rcauset[name=Options_rcauset_unlinked]{4,2,7,6,1,5,3}{2/5}}
+  \causetsDrawLinksfalse \rcauset[name=Options_rcauset_unlinked]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\causetsDrawLinkstrue\xA7 actives links)
+  (\lstinline\xA7\causetsDrawLinkstrue\xA7 actives links)
 \\
-	(\lstinline\xA7\causetsDrawLinksfalse\xA7 deactivates links)
-\\\midrule\midrule
-	\lstinline\xA7\usepackage[tiny]{causets}\xA7 for tiny diagrams
+  (\lstinline\xA7\causetsDrawLinksfalse\xA7 deactivates links)
+\\\pagebreak%\midrule
+  \lstinline\xA7\usepackage[tiny]{causets}\xA7 for tiny diagrams
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset_tiny, tiny]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_tiny, tiny]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset_tiny, tiny]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_tiny, tiny]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{tiny}\xA7 sets tiny sizes)
+  (\lstinline\xA7\tikzcausetsset{tiny}\xA7 sets tiny sizes)
 \\\midrule
-	\lstinline\xA7\usepackage[smaller]{causets}\xA7 for very small diagrams
+  \lstinline\xA7\usepackage[smaller]{causets}\xA7 for very small diagrams
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset_verysmall, very small]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_verysmall, very small]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset_verysmall, very small]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_verysmall, very small]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{very small}\xA7 sets very small sizes)
+  (\lstinline\xA7\tikzcausetsset{very small}\xA7 sets very small sizes)
 \\\midrule
-	\lstinline\xA7\usepackage[small]{causets}\xA7 for small diagrams
+  \lstinline\xA7\usepackage[small]{causets}\xA7 for small diagrams
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset_small, small]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_small, small]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset_small, small]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_small, small]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{small}\xA7 sets small sizes)
-\\\pagebreak%\midrule
-	For comparison, here are the normal sized causets.
+  (\lstinline\xA7\tikzcausetsset{small}\xA7 sets small sizes)
+\\\midrule
+  For comparison, here are the normal sized causets.
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset, normal]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset, normal]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset, normal]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset, normal]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{normal}\xA7 sets normal sizes)
+  (\lstinline\xA7\tikzcausetsset{normal}\xA7 sets normal sizes)
 \\\midrule
-	\lstinline\xA7\usepackage[large]{causets}\xA7 for large diagrams
+  \lstinline\xA7\usepackage[large]{causets}\xA7 for large diagrams
 & \multirow{3}{5em}{%
-	\pcauset[name=Options_pcauset_large, large]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_large, large]{4,2,7,6,1,5,3}}
 & \multirow{3}{5em}{%
-	\rcauset[name=Options_rcauset_large, large]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_large, large]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{large}\xA7 sets large sizes)
+  (\lstinline\xA7\tikzcausetsset{large}\xA7 sets large sizes)
 \\[1.3em]\midrule
-	\lstinline\xA7\usepackage[larger]{causets}\xA7 for very large diagrams
+  \lstinline\xA7\usepackage[larger]{causets}\xA7 for very large diagrams
 & \multirow{3}{5em}{%
-	\pcauset[name=Options_pcauset_verylarge, very large]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_verylarge, very large]{4,2,7,6,1,5,3}}
 & \multirow{3}{5em}{%
-	\rcauset[name=Options_rcauset_verylarge, very large]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_verylarge, very large]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{very large}\xA7 sets very large sizes)
+  (\lstinline\xA7\tikzcausetsset{very large}\xA7 sets very large sizes)
 \\[2.1em]\midrule
-	\lstinline\xA7\usepackage[huge]{causets}\xA7 for huge diagrams
+  \lstinline\xA7\usepackage[huge]{causets}\xA7 for huge diagrams
 & \multirow{4}{5em}{%
-	\pcauset[name=Options_pcauset_huge, huge]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_huge, huge]{4,2,7,6,1,5,3}}
 \\
-	(\lstinline\xA7\tikzcausetsset{huge}\xA7 sets huge sizes)
+  (\lstinline\xA7\tikzcausetsset{huge}\xA7 sets huge sizes)
 \\
-	Details on size options are given in \autoref{sec:Sizes}.
+  Details on size options are given in \autoref{sec:Sizes}.
 \\[2.5em]\midrule\midrule
-	\lstinline\xA7\usepackage[black]{causets}\xA7 for black and white causets
+  \lstinline\xA7\usepackage[black]{causets}\xA7 for black and white causets
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset_black, black colors]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_black, black colors]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset_black, black colors]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_black, black colors]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{black colors}\xA7 activates the option)
+  (\lstinline\xA7\tikzcausetsset{black colors}\xA7 activates the option)
 \\\midrule
-	\lstinline\xA7\usepackage[gray]{causets}\xA7 for grey scale causets (default)
+  \lstinline\xA7\usepackage[gray]{causets}\xA7 for grey scale causets (default)
 & \multirow{3}{5em}{%
-	\pcauset[name=Options_pcauset_gray, gray colors]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_gray, gray colors]{4,2,7,6,1,5,3}}
 & \multirow{3}{5em}{%
-	\rcauset[name=Options_rcauset_gray, gray colors]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_gray, gray colors]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{gray colors}\xA7 activates the option)
+  (\lstinline\xA7\tikzcausetsset{gray colors}\xA7 activates the option)
 \\\midrule
-	\lstinline\xA7\usepackage[blue]{causets}\xA7 for blue causets
+  \lstinline\xA7\usepackage[blue]{causets}\xA7 for blue causets
 & \multirow{2}{5em}{%
-	\pcauset[name=Options_pcauset_blue, blue colors]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_blue, blue colors]{4,2,7,6,1,5,3}}
 & \multirow{2}{5em}{%
-	\rcauset[name=Options_rcauset_blue, blue colors]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_blue, blue colors]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{blue colors}\xA7 activates the option)
+  (\lstinline\xA7\tikzcausetsset{blue colors}\xA7 activates the option)
 \\\midrule
-	\lstinline\xA7\usepackage[neon]{causets}\xA7 for brightly coloured causets
+  \lstinline\xA7\usepackage[neon]{causets}\xA7 for brightly colored causets
 & \multirow{3}{5em}{%
-	\pcauset[name=Options_pcauset_neon, neon colors]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_neon, neon colors]{4,2,7,6,1,5,3}}
 & \multirow{3}{5em}{%
-	\rcauset[name=Options_rcauset_neon, neon colors]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_neon, neon colors]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\tikzcausetsset{neon colors}\xA7 activates the option)
+  (\lstinline\xA7\tikzcausetsset{neon colors}\xA7 activates the option)
 \\
-	Details on colour options are given in \autoref{sec:Colors}.
-\\\midrule\midrule
-	\lstinline\xA7\usepackage[spatial]{causets}\xA7 shows dashed lines between spatially separated events (which is a secondary partial order for the causets drawn with \lstinline\xA7\pcauset\xA7). This option only affects the \lstinline\xA7\pcauset\xA7 and \lstinline\xA7\rcauset\xA7 commands, but not the \lstinline\xA7\causet\xA7 command.
+  Details on color options are given in \autoref{sec:Colors}.
+\\\midrule%\midrule
+  \lstinline\xA7\usepackage[spatial]{causets}\xA7 shows dashed lines between spatially separated events (which is a secondary partial order for the causets drawn with \lstinline\xA7\pcauset\xA7).
+  This option only affects the \lstinline\xA7\pcauset\xA7 and \lstinline\xA7\rcauset\xA7 commands, but not the \lstinline\xA7\causet\xA7 command.
 & \multirow{7}{5em}{%
-	\pcauset[name=Options_pcauset_spatial, spatially linked]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset_spatial, spatially linked]{4,2,7,6,1,5,3}}
 & \multirow{7}{5em}{%
-	\rcauset[name=Options_rcauset_spatial, spatially linked]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset_spatial, spatially linked]{4,2,7,6,1,5,3}{2/5}}
 \\
-	(\lstinline\xA7\causetsDrawSpatialLinkstrue\xA7 activates the option)
+  (\lstinline\xA7\causetsDrawSpatialLinkstrue\xA7 activates the option)
 \\
-	(\lstinline\xA7\causetsDrawSpatialLinksfalse\xA7 deactivates the option)
+  (\lstinline\xA7\causetsDrawSpatialLinksfalse\xA7 deactivates the option)
 \\\midrule
-	\lstinline\xA7\usepackage[external]{causets}\xA7 loads the \lstinline\xA7external\xA7 library, sets the external file name prefix to ``\lstinline\xA7causets/\xA7'', and enables the use of causet names for the external file names. (This feature has to be loaded as option in the preamble not later in the document.)
+  \lstinline\xA7\usepackage[external]{causets}\xA7 loads the \lstinline\xA7external\xA7 library, sets the external file name prefix to ``\lstinline\xA7causets/\xA7'', and enables the use of causet names for the external file names.
+  (This feature has to be loaded as option in the preamble not later in the document.)
 & \multirow{6}{5em}{%
-	\pcauset[name=Options_pcauset]{4,2,7,6,1,5,3}}
+  \pcauset[name=Options_pcauset]{4,2,7,6,1,5,3}}
 & \multirow{6}{5em}{%
-	\rcauset[name=Options_rcauset]{4,2,7,6,1,5,3}{2/5}}
+  \rcauset[name=Options_rcauset]{4,2,7,6,1,5,3}{2/5}}
 \\
-	For details on externalization of causets, see \autoref{sec:ExternalCausets}.
+  For details on externalization of causets, see \autoref{sec:ExternalCausets}.
 \\\bottomrule
 \end{longtable}
 
@@ -495,61 +526,111 @@
 This causet has one event (0) in the centre that is linked to events -3 and 3 but not to events -6 and 6, while a link (blue) from -6 to 6 crosses over it.
 \begin{lstlisting}
 \usepackage[larger]{causets}
-\tikzcausetsset{labels={right, position=east}}
+\tikzcausetsset{labels={right, at=east}}
 ... \begin{document} ...
 \causet[brokenly linked]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1} {-7/-6,-7/4,-6/-4,-6/6/blue!50!cyan,-5/-4,-5/-3,-4/-2,-4/7, -3/-2,-3/0,-2/1,-1/0,-1/2,0/1,0/3,2/3,2/4,3/5,4/5,4/6,6/7}
 \causet[continuously linked]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1} {-7/-6,-7/4,-6/-4,-6/6/blue!50!cyan,-5/-4,-5/-3,-4/-2,-4/7, -3/-2,-3/0,-2/1,-1/0,-1/2,0/1,0/3,2/3,2/4,3/5,4/5,4/6,6/7}
 \end{lstlisting}
 \begin{center}
-	\causet[name=BrokenlyLinkedExample_verylarge, very large, labels={right, at=east}]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1}{-7/-6,-7/4,-6/-4,-6/6/blue!50!cyan,-5/-4,-5/-3,-4/-2,-4/7,-3/-2,-3/0,-2/1,-1/0,-1/2,0/1,0/3,2/3,2/4,3/5,4/5,4/6,6/7}
-	\hspace{1.5cm}
-	\causet[name=ContinuouslyLinkedExample_verylarge, very large, labels={right, at=east}, continuously linked]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1}{-7/-6,-7/4,-6/-4,-6/6/blue!50!cyan,-5/-4,-5/-3,-4/-2,-4/7,-3/-2,-3/0,-2/1,-1/0,-1/2,0/1,0/3,2/3,2/4,3/5,4/5,4/6,6/7}
+  \causet[name=BrokenlyLinkedExample_verylarge, very large, labels={right, at=east}]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1}{-7/-6,-7/4,-6/-4,-6/6/blue!50!cyan,-5/-4,-5/-3,-4/-2,-4/7,-3/-2,-3/0,-2/1,-1/0,-1/2,0/1,0/3,2/3,2/4,3/5,4/5,4/6,6/7}
+  \hspace{1.5cm}
+  \causet[name=ContinuouslyLinkedExample_verylarge, very large, labels={right, at=east}, continuously linked]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1}{-7/-6,-7/4,-6/-4,-6/6/blue!50!cyan,-5/-4,-5/-3,-4/-2,-4/7,-3/-2,-3/0,-2/1,-1/0,-1/2,0/1,0/3,2/3,2/4,3/5,4/5,4/6,6/7}
 \end{center}
-Note that the links are drawn in the order given by the second argument. 
+Note that the links are drawn in the order given by the second argument.
 Similar results are obtained with the following \lstinline\xA7\rcauset\xA7 commands (since version 1.4) 
 \begin{lstlisting}
 \rcauset[brokenly linked]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1} {-7/-3,-6/0,-5/4,-4/5,0/6,3/7,-6/6/blue!50!cyan}
 \rcauset[continuously linked]{-1,2,-5,-7,4,-3,-6,0,6,3,-4,7,5,-2,1} {-7/-3,-6/0,-5/4,-4/5,0/6,3/7,-6/6/blue!50!cyan}
 \end{lstlisting}
-where all pairs of integers in the second argument are links to be removed (by default, get the local style \lstinline\xA7draw=none\xA7). 
-All links with a local style specified (here the last link only) are drawn in the order they appear after all automatic links have been drawn. 
-Local styles are explained in \autoref{sec:LocalStyles} in more detail. 
+where all pairs of integers in the second argument are links to be removed (by default, get the local style \lstinline\xA7draw=none\xA7).
+All links with a local style specified (here the last link only) are drawn in the order they appear after all automatic links have been drawn.
+Local styles are explained in \autoref{sec:LocalStyles} in more detail.
 
-All main commands, the short hand macros (see \autoref{sec:ShortHandMacros}), and the command \lstinline\xA7\causetfile\xA7 (see \autoref{sec:ExternalCausets}) add a small padding to the left and right of the diagram for a better spacing within text and mathematical expressions. 
-The padding is adjustable with \lstinline\xA7padding=\xA7\PH\ and stored in the macro \lstinline\xA7\causets at Padding\xA7 (by default, it is \lstinline\xA7\thinspace\xA7). 
+All main commands, the short hand macros (see \autoref{sec:ShortHandMacros}), and the command \lstinline\xA7\causetfile\xA7 (see \autoref{sec:ExternalCausets}) add a small padding to the left and right of the diagram for a better spacing within text and mathematical expressions.
+The padding is adjustable with \lstinline\xA7padding=\xA7\PH\ and stored in the macro \lstinline\xA7\causets at Padding\xA7 (by default, it is \lstinline\xA7\thinspace\xA7).
 
-\section{Short hand macros}
+
+\section{Changing the options for individual diagrams}
 \label{sec:ShortHandMacros}
-The permutations and labels for causets can be switched on globally with the package options \lstinline\xA7permutation\xA7 and \lstinline\xA7labeled\xA7, or at any point in the document with the switches \\
-\lstinline\xA7\causetsDrawPermutationtrue\xA7 (same as the command \lstinline\xA7\tikzcausetsset{show permutation}\xA7) and \lstinline\xA7\causetsDrawLabelstrue\xA7 (or \lstinline\xA7\tikzcausetsset{labeled}\xA7), respectively.
 
-To show only single causets with either of these options, there exist short hand macros for all three main commands.
-Each main command can be followed by a capital letter \lstinline\xA7P\xA7 (to show the permutation only), \lstinline\xA7L\xA7 (to show event labels only), or \lstinline\xA7X\xA7 (to show both).
-\begin{lstlisting}
-Causets with permutations (and labels) \pcausetP{4,1,2,3}, \pcausetX{1,2,3,4}, \pcausetL{1,2,4,3}, and without any \pcauset{2,4,1,3}.
-\end{lstlisting}
-Causets with permutations (and labels) \pcausetP[name=Macro_P]{4,1,2,3}, \pcausetX[name=Macro_X]{1,2,3,4}, \pcausetL[name=Macro_L]{1,2,4,3}, and without any \pcauset[name=Macro]{2,4,1,3}.
+Most of the package options introduced in the section before are also defined as keys that can be specified in the optional argument of the three main macros \lstinline\xA7\pcauset\xA7, \lstinline\xA7\rcauset\xA7 and \lstinline\xA7\causet\xA7.
 
-These results are also obtained by using the optional parameter, for example:
+Additionally, the package has short hand macros to switch on labels, the permutation grid, or both (\lstinline\xA7\causetsDrawLabelstrue\xA7, \lstinline\xA7\causetsDrawPermutationtrue\xA7, or \lstinline\xA7\tikzcausetsset{ labeled, show permutation}\xA7) to help compile diagrams.
+Since package version 1.5, these short hand macros ending in \lstinline\xA7L\xA7, \lstinline\xA7P\xA7 and \lstinline\xA7X\xA7 are depreciated, because diagrams can now be designed and exported to \LaTeX\ macros with the \href{https://c-minz.github.io/assets/html/proset-editor.html}{PrOSET editor}.
+To use these short hand macros nevertheless, add the following lines to the preamble after importing the package with \lstinline\xA7\usepackage{causets}\xA7:
 \begin{lstlisting}
-Causets with permutations (and labels) \pcauset[permutation]{4,1,2,3}, \pcauset[permutation,labeled]{1,2,3,4}, \pcauset[labeled]{1,2,4,3}, and without any \pcauset{2,4,1,3}.
+\providecommand*{\pcausetP}[2][]{%
+{\causetsDrawPermutationtrue\causetsDrawLabelsfalse
+\pcauset[#1]{#2}}}
+\providecommand*{\pcausetL}[2][]{%
+{\causetsDrawPermutationfalse\causetsDrawLabelstrue
+\pcauset[#1]{#2}}}
+\providecommand*{\pcausetX}[2][]{%
+{\causetsDrawPermutationtrue\causetsDrawLabelstrue
+\pcauset[#1]{#2}}}
+\providecommand*{\causetP}[3][]{%
+{\causetsDrawPermutationtrue\causetsDrawLabelsfalse
+\causet[#1]{#2}{#3}}}
+\providecommand*{\causetL}[3][]{%
+{\causetsDrawPermutationfalse\causetsDrawLabelstrue
+\causet[#1]{#2}{#3}}}
+\providecommand*{\causetX}[3][]{%
+{\causetsDrawPermutationtrue\causetsDrawLabelstrue
+\causet[#1]{#2}{#3}}}
+\providecommand*{\rcausetP}[3][]{%
+{\causetsDrawPermutationtrue\causetsDrawLabelsfalse
+\rcauset[#1]{#2}{#3}}}
+\providecommand*{\rcausetL}[3][]{%
+{\causetsDrawPermutationfalse\causetsDrawLabelstrue
+\rcauset[#1]{#2}{#3}}}
+\providecommand*{\rcausetX}[3][]{%
+{\causetsDrawPermutationtrue\causetsDrawLabelstrue
+\rcauset[#1]{#2}{#3}}}
 \end{lstlisting}
 
-There are a few short hand macros for small common causets as shown here.
-\begin{lstlisting}
-\causetFence{1}, \causetFence{2}, \ldots, \causetFence{10},
-\causetCrown{1}, \causetCrown{2}, \ldots, \causetCrown{10}
-\end{lstlisting}
-\causetFence[name=2Chain]{1}, \causetFence[name=2Fence]{2}, \ldots, \causetFence[name=10Fence]{10},
-\causetCrown[name=2Chain]{1}, \causetCrown[name=2Crown]{2}, \ldots, \causetCrown[name=10Crown]{10}
+To add labels or the permutation grid to a diagram, specify the respective option in the optional argument of the macro:
+\begin{table}[h!]
+  \centering
+  \begin{tabular*}{\textwidth}{p{0.35\textwidth}p{0.60\textwidth}}
+    \toprule
+    command with options
+  & functionality
+  \\\midrule
+    \lstinline\xA7\pcauset[labeled]{1,2,4,3}\xA7
+  & Draws a diagram of a 2-order from a permutation (here 1,2,4,3) and shows labels for the elements (\lstinline\xA7\causetsDrawLabelstrue\xA7). The output for this example is \pcauset[name=Macro_L, labeled]{1,2,4,3}.
+  \\
+    \lstinline\xA7\rcauset[labeled]{...}{...}\xA7
+  & Similar for a 2-order with removed links.
+  \\
+    \lstinline\xA7\causet[labeled]{...}{...}\xA7
+  & Similar for a generic diagram.
+  \\\midrule
+    \lstinline\xA7\pcauset[permutation]{4,1,2,3}\xA7
+  & Draws a diagram of a 2-order from a permutation (here 4,1,2,3) and shows the permutation grid (\lstinline\xA7\causetsDrawPermutationtrue\xA7). The output for this example is \pcauset[name=Macro_P, permutation]{4,1,2,3}.
+  \\
+    \lstinline\xA7\rcauset[permutation]{...}{...}\xA7
+  & Similar for a 2-order with removed links.
+  \\
+    \lstinline\xA7\causet[permutation]{...}{...}\xA7
+  & Similar for a generic diagram.
+  \\\midrule
+    \multicolumn{2}{l}{These options can be combined (also with other style keys, see below).}
+  \\\bottomrule
+  \end{tabular*}
+  \caption{\label{tab:MainCommandsWithOptions} Main commands with options.}
+\end{table}
 
+The short hand macros \lstinline\xA7\causetFence\xA7 and \lstinline\xA7\causetCrown\xA7 have been removed in version 1.5, since diagrams of fences, crowns, polygons and other posets are supported by the \href{https://c-minz.github.io/assets/html/proset-editor.html}{PrOSET editor} and can be exported as \LaTeX\ macros.
+
+
 \section{Labeling and replacing events (also to represent infinite causets)}
 \label{sec:LabelingReplacing}
+
 Since version v1.3 of the package, it is possible to relabel and replace causet events.
 These features are useful for labelling events arbitrarily, and drawing diagrams of infinite causets using ellipsis.
 
 By default, all events get named and labeled by the integers given in the arguments of the commands.
-For example, \lstinline\xA7\pcausetL{0,2,1}\xA7 creates the diagram \pcausetL{0,2,1} where the event notes are named \lstinline\xA7(E0)\xA7, \lstinline\xA7(E2)\xA7, \lstinline\xA7(E1)\xA7, respectively, while the label nodes have the names \lstinline\xA7(EL0)\xA7, \lstinline\xA7(EL2)\xA7, \lstinline\xA7(EL1)\xA7.
+For example, \lstinline\xA7\pcauset[labeled]{0,2,1}\xA7 creates the diagram \pcauset[labeled]{0,2,1} where the event notes are named \lstinline\xA7(E0)\xA7, \lstinline\xA7(E2)\xA7, \lstinline\xA7(E1)\xA7 (which are always created), respectively, while the label nodes have the names \lstinline\xA7(EL0)\xA7, \lstinline\xA7(EL2)\xA7, \lstinline\xA7(EL1)\xA7 (which are only created with the \lstinline\xA7labeled\xA7 option).
 If the permutation is displayed as well, the $u$- and $v$-coordinate labels are the nodes \lstinline\xA7(EUL\xA7\PH\lstinline\xA7)\xA7 and \lstinline\xA7(EVL\xA7\PH\lstinline\xA7)\xA7, with \PH\ taking on the values $\{0, 2, 1 \}$.
 
 To offset the names of all causet events by an integer amount, use the key-value pair \lstinline\xA7offset=\xA7\PH\ to adjust the naming and labelling of events and get distinct event names, while the same integers are used in the command arguments.
@@ -556,23 +637,23 @@
 Consider the following example.
 \begin{lstlisting}
 \begin{align*}
-	\tikzcausetsset{large}
-	\cdots\quad
-	\pcausetP[offset=-12]{0,2,1,3}\quad\cdots\quad
-	\pcausetL{0,2,1,3}\quad\cdots\quad
-	\pcausetL[offset=12]{0,2,1,3}\quad\cdots
+  \tikzcausetsset{large}
+  \cdots\quad
+  \pcauset[permutation, offset=-12]{0,2,1,3}\quad\cdots\quad
+  \pcauset[labeled]{0,2,1,3}\quad\cdots\quad
+  \pcauset[labeled, offset=12]{0,2,1,3}\quad\cdots
 \end{align*}
 \end{lstlisting}
 \vspace{-1ex}
 \begin{align*}
-	\tikzcausetsset{large}
-	\cdots\quad
-	\pcausetP[name=Diamond_permoffset, offset=-12]{0,2,1,3}\quad\cdots\quad
-	\pcausetL[name=Diamond_labeled]{0,2,1,3}\quad\cdots\quad
-	\pcausetL[name=Diamond_labeledoffset, offset=12]{0,2,1,3}\quad\cdots
+  \tikzcausetsset{large}
+  \cdots\quad
+  \pcauset[name=Diamond_permoffset, permutation, offset=-12]{0,2,1,3}\quad\cdots\quad
+  \pcauset[name=Diamond_labeled, labeled]{0,2,1,3}\quad\cdots\quad
+  \pcauset[name=Diamond_labeledoffset, labeled, offset=12]{0,2,1,3}\quad\cdots
 \end{align*}
-Here, the three commands have the same integer argument \lstinline\xA7{0,2,1,3}\xA7, but the events are named with the specified offsets for the sub-causets, and the labels are adjusted accordingly.
-In this way, it will be possible to address the event (and label) nodes of the sub-causets distinctively within a larger TikZ picture.
+Here, the three commands have the same integer argument \lstinline\xA7{0,2,1,3}\xA7, but the events are named with the specified offsets and the labels are adjusted accordingly.
+In this way, it will be possible to address the event (and label) nodes of the (sub-)causets distinctively within a larger TikZ picture.
 For more details on how to draw causets within a TikZ picture, see \autoref{sec:TikZ}.
 
 When you (only) want to change the labelling of an event to \PH, add a slash and \lstinline\xA7label=\xA7\PH\ directly after the event integer in the first command argument.
@@ -580,46 +661,46 @@
 %\pagebreak
 \begin{lstlisting}
 \begin{align}
-	\text{order-preserving:} &&
-	L_{\mathrm{op}} &=
-	\left\{
-		\pcausetL{1,0,2},
-		\pcausetL{1/label=0,0/label=1,2}
-	\right\}
-	, \\
-	\text{not order-preserving:} &&
-	L_{\mathrm{nop}} &=
-	\left\{
-		\pcauset{1/label=2,0/label=1,2/label=0},
-		\pcausetL{1,0/label=2,2/label=0},
-		\pcausetL{1/label=2,0,2/label=1},
-		\pcauset{1/label=0,0/label=2,2/label=1}
-	\right\}
-	.
+  \text{order-preserving:} &&
+  L_{\mathrm{op}} &=
+  \left\{
+    \pcauset[labeled]{1,0,2},
+    \pcauset[labeled]{1/label=0,0/label=1,2}
+  \right\}
+  , \\
+  \text{not order-preserving:} &&
+  L_{\mathrm{nop}} &=
+  \left\{
+    \pcauset{1/label=2,0/label=1,2/label=0},
+    \pcauset[labeled]{1,0/label=2,2/label=0},
+    \pcauset[labeled]{1/label=2,0,2/label=1},
+    \pcauset{1/label=0,0/label=2,2/label=1}
+  \right\}
+  .
 \end{align}
 \end{lstlisting}
 \vspace{-1ex}
 \begin{align}
-	\text{order-preserving:} &&
-	L_{\mathrm{op}} &=
-	\left\{
-		\pcausetL[name=Wedge_labeled102]{1,0,2},
-		\pcausetL[name=Wedge_labeled012]{1/label=0,0/label=1,2}
-	\right\}
-	, \\
-	\text{not order-preserving:} &&
-	L_{\mathrm{nop}} &=
-	\left\{
-		\pcauset[name=Wedge_labeled210]{1/label=2,0/label=1,2/label=0},
-		\pcausetL[name=Wedge_labeled120]{1,0/label=2,2/label=0},
-		\pcausetL[name=Wedge_labeled201]{1/label=2,0,2/label=1},
-		\pcauset[name=Wedge_labeled021]{1/label=0,0/label=2,2/label=1}
-	\right\}
-	.
+  \text{order-preserving:} &&
+  L_{\mathrm{op}} &=
+  \left\{
+    \pcauset[name=Wedge_labeled102, labeled]{1,0,2},
+    \pcauset[name=Wedge_labeled012, labeled]{1/label=0,0/label=1,2}
+  \right\}
+  , \\
+  \text{not order-preserving:} &&
+  L_{\mathrm{nop}} &=
+  \left\{
+    \pcauset[name=Wedge_labeled210, labeled]{1/label=2,0/label=1,2/label=0},
+    \pcauset[name=Wedge_labeled120, labeled]{1,0/label=2,2/label=0},
+    \pcauset[name=Wedge_labeled201, labeled]{1/label=2,0,2/label=1},
+    \pcauset[name=Wedge_labeled021, labeled]{1/label=0,0/label=2,2/label=1}
+  \right\}
+  .
 \end{align}
 
-The replacing labels can be any text. 
-Longer text labels should be written in a \TeX\ group \lstinline\xA7{...}\xA7. 
+You may use any text as a label.
+Longer text labels should be written in a \TeX\ group \lstinline\xA7{...}\xA7.
 Here is an example
 \begin{lstlisting}
 \pcauset[large]{2/label=$-\infty$,6,5,7,3/label={Text and $maths$},4/label=-1}
@@ -626,7 +707,7 @@
 \end{lstlisting}
 \vspace{-1ex}
 \begin{center}
-	\pcauset[name=RelabeledEventsExample_large, large]{2/label=$-\infty$,6,5,7,3/label={Text and $maths$},4/label=-1}
+  \pcauset[name=RelabeledEventsExample_large, large]{2/label=$-\infty$,6,5,7,3/label={Text and $maths$},4/label=-1}
 \end{center}
 
 Notice that replaced labels will always be visible, even if labels are deactivated (\lstinline\xA7\causetsDrawLabelsfalse\xA7) as in this example.
@@ -641,13 +722,13 @@
 ...
 % Draw infinite causet with ellipsis
 \pcauset[large, replaced labels={below, at=south}, replaced events={text scale=1}]
-	{-2/{label={$\downarrow$ continues infinitely $\downarrow$}, event={\rdots[90]}}, -1,0,1,16,14,15,11,12,13,7,8,9,10, 2/event={\rdots[10]},3,4/event={~},5,6/event={\rdots[-10]}}
+  {-2/{label={$\downarrow$ continues infinitely $\downarrow$}, event={\rdots[90]}}, -1,0,1,16,14,15,11,12,13,7,8,9,10, 2/event={\rdots[10]},3,4/event={~},5,6/event={\rdots[-10]}}
 \end{lstlisting}
 yields the diagram
 \begin{center}
-	\newcommand{\rdots}[1][0]{\rotatebox{#1}{...}}
-	\pcauset[name=ReplacedEventsExample_large, large, replaced labels={below, at=south}, replaced events={text scale=1}]
-	{-2/{label={$\downarrow$ continues infinitely $\downarrow$}, event={\rdots[90]}}, -1,0,1,16,14,15,11,12,13,7,8,9,10, 2/event={\rdots[10]},3,4/event={~},5,6/event={\rdots[-10]}}
+  \newcommand{\rdots}[1][0]{\rotatebox{#1}{...}}
+  \pcauset[name=ReplacedEventsExample_large, large, replaced labels={below, at=south}, replaced events={text scale=1}]
+  {-2/{label={$\downarrow$ continues infinitely $\downarrow$}, event={\rdots[90]}}, -1,0,1,16,14,15,11,12,13,7,8,9,10, 2/event={\rdots[10]},3,4/event={~},5,6/event={\rdots[-10]}}
 \end{center}
 Here, three events are replaced by ellipsis with different rotations, and one event is replaced by an empty node (\lstinline\xA7~\xA7).
 The style of the replaced events is specified via the key \lstinline\xA7replaced labels=\xA7\PH\ -- where \PH\ is \lstinline\xA7{text scale=1}\xA7 in this example.
@@ -658,8 +739,10 @@
 The \lstinline\xA7at\xA7 key holds a coordinate of the event note.
 The default positioning is \lstinline\xA7below left, at=south west\xA7.
 
+
 \section{Changing sizes and fonts (for mathematical expressions)}
 \label{sec:Sizes}
+
 The pre-defined size styles have the following scaling with respect to the normal size:\vspace{-1ex}
 \begin{itemize}\itemsep=-1ex
   \item \lstinline\xA7tiny\xA7 is $\frac{1}{3}$ times the normal size
@@ -676,27 +759,27 @@
 For a (first level) sub-script in a summation, you may use the small size,
 \begin{lstlisting}
 \begin{equation}
-		\sum_{C \in \tikzcausetsset{small}
-			\Bigl\{ \pcauset{1,2,3}, \pcauset{1,3,2,4}, \pcauset{1,4,3,2,5}, \pcauset{1,5,4,3,2,6} \Bigr\}} | C |
-	= \left| \pcauset{1,2,3} \right|
-		+ \left| \pcauset{1,3,2,4} \right|
-		+ \left| \pcauset{1,4,3,2,5} \right|
-		+ \left| \pcauset{1,5,4,3,2,6} \right|
+    \sum_{C \in \tikzcausetsset{small}
+      \Bigl\{ \pcauset{1,2,3}, \pcauset{1,3,2,4}, \pcauset{1,4,3,2,5}, \pcauset{1,5,4,3,2,6} \Bigr\}} | C |
+  = \left| \pcauset{1,2,3} \right|
+    + \left| \pcauset{1,3,2,4} \right|
+    + \left| \pcauset{1,4,3,2,5} \right|
+    + \left| \pcauset{1,5,4,3,2,6} \right|
 \end{equation}
 \end{lstlisting}
 \begin{equation}
-		\sum_{C \in \tikzcausetsset{small}
-			\Bigl\{
-				\pcauset[name=3Chain_small]{1,2,3},
-				\pcauset[name=Diamond_small]{1,3,2,4},
-				\pcauset[name=Pure3Diamond_small]{1,4,3,2,5},
-				\pcauset[name=Pure4Diamond_small]{1,5,4,3,2,6}
-			\Bigr\}}
-		| C |
-	= \left| \pcauset[name=3Chain]{1,2,3} \right|
-		+ \left| \pcauset[name=Diamond]{1,3,2,4} \right|
-		+ \left| \pcauset[name=Pure3Diamond]{1,4,3,2,5} \right|
-		+ \left| \pcauset[name=Pure4Diamond]{1,5,4,3,2,6} \right|
+    \sum_{C \in \tikzcausetsset{small}
+      \Bigl\{
+        \pcauset[name=3Chain_small]{1,2,3},
+        \pcauset[name=Diamond_small]{1,3,2,4},
+        \pcauset[name=Pure3Diamond_small]{1,4,3,2,5},
+        \pcauset[name=Pure4Diamond_small]{1,5,4,3,2,6}
+      \Bigr\}}
+    | C |
+  = \left| \pcauset[name=3Chain]{1,2,3} \right|
+    + \left| \pcauset[name=Diamond]{1,3,2,4} \right|
+    + \left| \pcauset[name=Pure3Diamond]{1,4,3,2,5} \right|
+    + \left| \pcauset[name=Pure4Diamond]{1,5,4,3,2,6} \right|
 \end{equation}
 
 Like any other options, sizes can also be specified in the optional argument of a single causet diagram or with \lstinline\xA7\tikzcausetsset{...}\xA7 for the current scope.
@@ -731,15 +814,17 @@
 
 Below is an example for a diagram drawn with some sizes defined manually:
 \begin{lstlisting}
-\pcausetL[tile size=2ex, event size=1ex, link width=0.3ex, text scale=1]{13,8,14,9,3,15,12,1,6,16,5,11,7,2,10,4}
+\pcauset[labeled, tile size=2ex, event size=1ex, link width=0.3ex, text scale=1]{13,8,14,9,3,15,12,1,6,16,5,11,7,2,10,4}
 \end{lstlisting}
 \begin{center}
-	\pcausetL[name=Example_resized, tile size=2ex, event size=1ex, link width=0.3ex, text scale=1]{13,8,14,9,3,15,12,1,6,16,5,11,7,2,10,4}
+  \pcauset[name=Example_resized, labeled, tile size=2ex, event size=1ex, link width=0.3ex, text scale=1]{13,8,14,9,3,15,12,1,6,16,5,11,7,2,10,4}
 \end{center}
 \vspace{1ex}
 
-\section{Changing colours}
+
+\section{Changing colors}
 \label{sec:Colors}
+
 Colors can be set with the following keys: \vspace{-1ex}
 \begin{itemize}\itemsep=-1ex
   \item \lstinline\xA7region color=\xA7\PH\ (or \lstinline\xA7region color=\xA7\PH) for the frame of the permutation grid
@@ -753,17 +838,19 @@
   \item \lstinline\xA7spatial link color=\xA7\PH\ (or \lstinline\xA7spatial link color=\xA7\PH) for the spatial links.
 \end{itemize}
 When using any of these key-value pairs in an optional arguments of the causet macros, they apply to that diagram.
-To change colours within a scope or the entire document, use the \lstinline\xA7\tikzcausetsset\xA7 macro, for example
+To change colors within a scope or the entire document, use the \lstinline\xA7\tikzcausetsset\xA7 macro, for example
 \begin{lstlisting}
 \tikzcausetsset{event color=purple, link color=cyan}
 \end{lstlisting}
-changes the event colour to purple and the link colour to cyan.
+changes the event color to purple and the link color to cyan.
 
-For the pre-defined colour schemes, use the keys \lstinline\xA7gray colors\xA7 (or \lstinline\xA7gray colors\xA7, default), \lstinline\xA7black colors\xA7 (or \lstinline\xA7black colors\xA7, only black and white), \lstinline\xA7blue colors\xA7 (or \lstinline\xA7blue colors\xA7, blue colour tones), or \lstinline\xA7neon colors\xA7 (or \lstinline\xA7neon colors\xA7, bright colours).
-These keys set all the colours listed above to pre-defined values.
+For the pre-defined color schemes, use the keys \lstinline\xA7gray colors\xA7 (or \lstinline\xA7gray colors\xA7, default), \lstinline\xA7black colors\xA7 (or \lstinline\xA7black colors\xA7, only black and white), \lstinline\xA7blue colors\xA7 (or \lstinline\xA7blue colors\xA7, blue color tones), or \lstinline\xA7neon colors\xA7 (or \lstinline\xA7neon colors\xA7, bright colors).
+These keys set all the colors listed above to pre-defined values.
 
+
 \section{Changing the styles of individual events and links}
 \label{sec:LocalStyles}
+
 The full supported formats of the three main commands are
 \\[1ex]
 \lstinline\xA7\pcauset[\xA7\PH[causet style]\lstinline\xA7]{\xA7\PH[index]\lstinline\xA7/\xA7\PH[event style]\lstinline\xA7,...}\xA7
@@ -773,41 +860,45 @@
 \\[1ex]
 \lstinline\xA7\causet[\xA7\PH[causet style]\lstinline\xA7]{\xA7\PH[index]\lstinline\xA7/\xA7\PH[event style]\lstinline\xA7,...}{\xA7\PH[link from]\lstinline\xA7/\xA7\PH[link to]\lstinline\xA7/\xA7\PH[link style]\lstinline\xA7,...}\xA7
 \\[1ex]
-and similarly for all short hand macros as described in \autoref{sec:ShortHandMacros}. 
-The style values are all optional, where \PH[causet style] is applied to that causet only, \PH[event style] is applied to a single event, and \PH[link style] is applied to a single link. 
+and similarly for all short hand macros as described in \autoref{sec:ShortHandMacros}.
+The style values are all optional, where \PH[causet style] is applied to that causet only, \PH[event style] is applied to a single event, and \PH[link style] is applied to a single link.
 
-The feature to apply styles only to individual events and links is to highlight or modify subsets of a causet, for example, by using different colours: 
+The feature to apply styles only to individual events and links is to highlight or modify subsets of a causet, for example, by using different colors: 
 \begin{lstlisting}
-\rcausetL[large, subset A/.style={red, dotted}, subset B/.style=blue, replaced labels={text scale=1, at=east, right}]{2/{subset A, label=event $a$}, 5/subset B, 1, 3/{subset A, label=$b$, replaced labels=orange}, 4/subset B, 6/subset B}{2/3/subset A, 4/6/subset B, 5/6/subset B}
+\rcauset[labeled, large, subset A/.style={red, dotted}, subset B/.style=blue, replaced labels={text scale=1, at=east, right}]{2/{subset A, label=event $a$}, 5/subset B, 1, 3/{subset A, label=$b$, replaced labels=orange}, 4/subset B, 6/subset B}{2/3/subset A, 4/6/subset B, 5/6/subset B}
 \end{lstlisting}
 \vspace{-1ex}
 \begin{center}
-	\rcausetL[name=Example_locallystyled, large, subset A/.style={red, dotted}, subset B/.style=blue, replaced labels={text scale=1, at=east, right}]{2/{subset A, label=event $a$}, 5/subset B, 1, 3/{subset A, label=$b$, replaced labels=orange}, 4/subset B, 6/subset B}{2/3/subset A, 4/6/subset B, 5/6/subset B}
+  \rcauset[name=Example_locallystyled, labeled, large, subset A/.style={red, dotted}, subset B/.style=blue, replaced labels={text scale=1, at=east, right}]{2/{subset A, label=event $a$}, 5/subset B, 1, 3/{subset A, label=$b$, replaced labels=orange}, 4/subset B, 6/subset B}{2/3/subset A, 4/6/subset B, 5/6/subset B}
 \end{center}
-Note that \lstinline\xA7label=event $a$\xA7 and \lstinline\xA7label=$b$\xA7 adds (replaced) labels $a$ and $b$, respectively, but their style is not affected by \lstinline\xA7subset A\xA7. 
-To change the style of the labels, we have to use the \lstinline\xA7replaced labels\xA7 key, see also \autoref{sec:LabelingReplacing}. 
+Note that \lstinline\xA7label=event $a$\xA7 and \lstinline\xA7label=$b$\xA7 adds (replaced) labels $a$ and $b$, respectively, but their style is not affected by \lstinline\xA7subset A\xA7.
+To change the style of the labels, we have to use the \lstinline\xA7replaced labels\xA7 key, see also \autoref{sec:LabelingReplacing}.
 
+
 \section{Externalisation and standalone causets}
 \label{sec:ExternalCausets}
+
 For any document that contains many (large) causet diagrams or the same causets that are used repeatedly, the compilation time can be reduced by moving the graphics to external files using the externalisation library of TikZ or \lstinline\xA7standalone\xA7 files.
 
-The externalisation feature of TikZ provides the tools to automatically externalise all causet diagrams and only recompile them when they are changed in the document. 
+The externalisation feature of TikZ provides the tools to automatically externalise all causet diagrams and only recompile them when they are changed in the document.
 To enable this feature, use the \lstinline\xA7external\xA7 option when loading the package and make sure that the document is compiled with the flag 
 \begin{lstlisting}
 --shell-escape
 \end{lstlisting}
-The \lstinline\xA7external\xA7 option loads the \lstinline\xA7external\xA7 library, sets the \lstinline\xA7prefix\xA7 to add ``\lstinline\xA7causets/\xA7'' before each external file, and calls \lstinline\xA7\causetsNameExternaltrue\xA7 to use the manually specified names for external file names. 
-Any causet can be manually named by providing the name key-value pair \lstinline\xA7name=\xA7\PH\ in the optional parameter of a causet command. 
+The \lstinline\xA7external\xA7 option loads the \lstinline\xA7external\xA7 library, sets the \lstinline\xA7prefix\xA7 to add ``\lstinline\xA7causets/\xA7'' before each external file, and calls \lstinline\xA7\causetsNameExternaltrue\xA7 to use the manually specified names for external file names.
+Any causet can be manually named by providing the name key-value pair \lstinline\xA7name=\xA7\PH\ in the optional parameter of a causet command.
 As an example, the inline code 
 \begin{lstlisting}
-\pcauset[name=Vee]{1,3,2}
+\pcauset[name=Vee, alt={Vee}]{1,3,2}
 \end{lstlisting}
-yields the causet \pcauset[name=Vee]{1,3,2} and creates an external pdf file with the name \lstinline\xA7causets/Vee.pdf\xA7 relative to the main tex file. 
+yields the causet \pcauset[name=Vee, alt={Vee}]{1,3,2} and creates an external pdf file with the name \lstinline\xA7causets/Vee.pdf\xA7 relative to the main tex file.
+The alternative text \lstinline\xA7alt={\xA7\PH\lstinline\xA7}\xA7 may be the same as name for short names (like here), but the file names are usually shorter.
 
-I recommend to always name causets, even if externalisation is not used. 
-In this way, it is easier to read the source code and switch to externalising at a later point more easily. 
-Note that the name of a causet does not have to be unique (especially if it is used repeatedly throughout the document), but you may give different names to causets with different style options to avoid unwanted overwrites. 
-For a repeated causet in the document, either the same code is repeated, or the \lstinline\xA7\causetfile\xA7 command may be used, for example, \lstinline\xA7\pcauset[name=N]{2,4,1,3}\xA7 can be repeated with \lstinline\xA7\causetfile{N}\xA7 to print the N causet \pcauset[name=N]{2,4,1,3}. 
+I recommend to always name causets, even if externalisation is not used.
+In this way, it is easier to read the source code and switch to externalising at a later point more easily.
+Note that the name of a causet does not have to be unique (especially if it is used repeatedly throughout the document), but you may give different names to causets with different style options to avoid unwanted overwrites.
+For a repeated causet in the document, either use the same code or the \lstinline\xA7\causetfile\xA7 macro.
+For example, \lstinline\xA7\pcauset[name=N]{2,4,1,3}\xA7 can be repeated with \lstinline\xA7\causetfile{N}\xA7 to print the N causet \pcauset[name=N]{2,4,1,3}.
 The macro \lstinline\xA7\causetfile[#1]{#2}\xA7 also accepts one optional argument \lstinline\xA7[#1]\xA7 and expands to
 \begin{lstlisting}
 \causets at Padding%
@@ -814,8 +905,8 @@
 \includegraphics[#1]{\causets at NamePrefix#2}%
 \causets at Padding
 \end{lstlisting}
-To redefine the prefix stored in \lstinline\xA7\causets at NamePrefix\xA7 and also set the \lstinline\xA7external\xA7 library prefix to the same value, use \lstinline\xA7\tikzcausetsset{set prefix=causets/}\xA7. 
-However, to set \lstinline\xA7\causets at NamePrefix\xA7 only for \lstinline\xA7causets\xA7, use \lstinline\xA7name prefix=\xA7\PH. 
+To redefine the prefix stored in \lstinline\xA7\causets at NamePrefix\xA7 and also set the \lstinline\xA7external\xA7 library prefix to the same value, use \lstinline\xA7\tikzcausetsset{set prefix=causets/}\xA7.
+However, to set \lstinline\xA7\causets at NamePrefix\xA7 only for \lstinline\xA7causets\xA7 but not for other TikZ externalisation, use \lstinline\xA7name prefix=\xA7\PH.
 
 If you are already loading the \lstinline\xA7external\xA7 library for other uses, you do not want to use the \lstinline\xA7external\xA7 option, but add the following to the document's preamble: 
 \begin{lstlisting}
@@ -833,9 +924,9 @@
 \tikzexternaldisable
 \tikzexternalenable
 \end{lstlisting}
-Please find further information on the \lstinline\xA7external\xA7 library in the TikZ manual. 
+Please find further information on the \lstinline\xA7external\xA7 library in the TikZ manual.
 
-Graphics may also be moved to standalone tex files manually and included with \lstinline\xA7\causetfile\xA7 or \lstinline\xA7\includegraphics\xA7. 
+Graphics may also be moved to standalone tex files manually and included with \lstinline\xA7\causetfile\xA7 or \lstinline\xA7\includegraphics\xA7.
 For example, create a file named \lstinline\xA7M.tex\xA7 in the directory that was set to \lstinline\xA7name prefix\xA7 (by default, this is ``\lstinline\xA7./\xA7'') with the following code:
 \begin{lstlisting}
 \documentclass[tikz]{standalone}
@@ -844,18 +935,21 @@
 \pcauset{4,2,5,1,3}
 \end{document}
 \end{lstlisting}
-The compiled version \pcauset[name=M]{4,2,5,1,3} is then included with the macro \lstinline\xA7\causetfile{M}\xA7.
+The compiled diagram \pcauset[name=M, alt={M}]{4,2,5,1,3} is then included with the macro \lstinline\xA7\causetfile[alt={M}]{M}\xA7 (where \lstinline\xA7alt\xA7 is directly passed to \lstinline\xA7\includegraphics\xA7 to be processed with \LaTeXML).
 
-More examples on larger standalone graphics are given in \autoref{sec:TikZ}. 
+More examples on larger standalone graphics are given in \autoref{sec:TikZ}.
 
+
 \section{Style changes in detail}
+\label{sec:StyleDetails}
+
 In the optional argument of the causet macros, you may use other TikZ options to change the output of the macros, for example:
 \begin{lstlisting}
 \usepackage{causets}
 ... \begin{document} ...
-A labeled causet with red-framed semi-transparent labels, \pcausetL[labels={draw=red, fill=white, opacity=0.8, inner sep=1pt, scale=1.5}]{2,4,5,1,3}.
+A labeled causet with red-framed semi-transparent labels, \pcauset[labels={draw=red, fill=white, opacity=0.8, inner sep=1pt, scale=1.5}]{2,4,5,1,3}.
 \end{lstlisting}
-A labeled causet with red-framed semi-transparent labels, \pcausetL[name=NDash_redframedlabels, labels={draw=red, fill=white, opacity=0.8, inner sep=1pt, scale=1.5}]{2,4,5,1,3}.
+A labeled causet with red-framed semi-transparent labels, \pcauset[name=NDash_redframedlabels, labels={draw=red, fill=white, opacity=0.8, inner sep=1pt, scale=1.5}]{2,4,5,1,3}.
 
 In the same way, it is possible to modify the existing styles of all parts of the diagrams, which means that the default drawing styles are extended by the options passed as value to these keys: \vspace{-1ex}
 \begin{enumerate}\itemsep=-1ex
@@ -901,8 +995,8 @@
 will generate all causets with square nodes as events and triangle caps on the future (upper) link ends, like \pcauset[name=NDash_rectangleeventslarge, large, events={rectangle}, links={-Triangle Cap[]}]{2,4,5,1,3}.
 \vspace{1ex}
 
-By default, causets are placed such that a pre-defined coordinate point falls on the text baseline, \lstinline\xA7baseline=(baseline point)\xA7. 
-The baseline point is \lstinline\xA7tile size\xA7/$\sqrt{2}$ below the centre of the diagram. 
+By default, causets are placed such that a pre-defined coordinate point falls on the text baseline, \lstinline\xA7baseline=(baseline point)\xA7.
+The baseline point is \lstinline\xA7tile size\xA7/$\sqrt{2}$ below the centre of the diagram.
 You may adjust the baseline as for any TikZ graphic, for example,
 \begin{lstlisting}
 \pcauset[baseline=2mm]{2,4,5,1,3}
@@ -910,20 +1004,22 @@
 places the diagram centre $2\mathrm{mm}$ below the text base, \pcauset[name=NDash_baseline, baseline=2mm]{2,4,5,1,3}.
 \vspace{1ex}
 
+
 \section{Using this package in TikZ pictures}
 \label{sec:TikZ}
+
 Since the package is TikZ based, using a causet within a TikZ picture is simple.
 Each of the three main commands is based on a draw command in TikZ that has the same name but starts with \lstinline\xA7\draw...\xA7.
-The \lstinline\xA7\draw\xA7 macros, however, do not support an optional argument (since this can be specified directly in a TikZ picture) and they also do not have any short hand macros ending in \lstinline\xA7P\xA7, \lstinline\xA7L\xA7 or \lstinline\xA7X\xA7. 
-The \lstinline\xA7\draw...\xA7 do not add extra padding (\lstinline\xA7\causets at Padding\xA7) on the left and right of the graphic either. 
+The \lstinline\xA7\draw\xA7 macros, however, do not support an optional argument (since this can be specified directly in a TikZ picture) and they also do not have any short hand macros ending in \lstinline\xA7P\xA7, \lstinline\xA7L\xA7 or \lstinline\xA7X\xA7.
+The \lstinline\xA7\draw...\xA7 do not add extra padding (\lstinline\xA7\causets at Padding\xA7) on the left and right of the graphic either.
 
 The two following examples are given by external (standalone) TikZ graphics and included with \lstinline\xA7\includegraphics{...}\xA7.
 More details on using causets in standalone files are given in \autoref{sec:ExternalCausets}.
 
 Note that the output of the \lstinline\xA7\draw\xA7 macros has the point (0,0) in the centre, so in order to shift it, we may enclose it in a TikZ scope, for example:
-\lstinputlisting{causet_tikz_example1.tex}
+\lstinputlisting{causets_example1.tex}
 \begin{center}
-	\includegraphics{causet_tikz_example1}
+  \includegraphics{causets_example1}
 \end{center}
 
 Note that this example also shows how to use the event nodes that are generated by the \lstinline\xA7\drawpcauset\xA7 macro.
@@ -931,38 +1027,68 @@
 The causet events, event labels, $u$-axis labels, and $v$-axis lables are the nodes \lstinline\xA7(Ei)\xA7, \lstinline\xA7(ELi)\xA7, \lstinline\xA7(EULi)\xA7, and \lstinline\xA7(EVLi)\xA7, respectively, where $\smash{i \in [ -1, 5 ]}$.
 
 It is also possible to use multiple causets in more complicated graphics, like a tree for example, but note that whenever a causet is actually a text of a node within a TikZ picture (like in the following), we need to use the \lstinline\xA7\pcauset\xA7 (\lstinline\xA7\rcauset\xA7 or \lstinline\xA7\causet\xA7) commands without the \lstinline\xA7draw\xA7 prefix again:
-\lstinputlisting{causet_tikz_example2.tex}
-\hspace{-1.5ex}
-\includegraphics{causet_tikz_example2}
+\lstinputlisting{causets_example2.tex}
+\begin{center}
+  \includegraphics[scale=0.80]{causets_example2}
+  (rescaled to 80\%)
+\end{center}
 
-\noindent
-More examples can be found at \\
-\url{https://github.com/c-minz/LaTeX-causets/tree/main/examples}
+\clearpage
 
-\clearpage
+
 \tikzexternaldisable
+
+
 \section{Release notes}
+\label{sec:ReleaseNotes}
+
+\definecolor{XMLv1.5}{rgb}{0.44,0.12,0.6}
 \tikzcausetsset{large, events={black!30}, links={black!30}, label color={black!40}}
 
+
+\subsection[v1.5 (Butterfly)]{v1.5, 2025-02-24}
+
+\subsubsection{New features}
+
+\begin{itemize}\itemsep=-1ex
+\item \versioncauset{v1-5}{\pcauset{1,5,3,6/{XMLv1.5, label=XML, labels={XMLv1.5, above=1ex, at=north}},2,4}}%
+  Added support for \LaTeXML\ including the key \lstinline\xA7alt={\xA7\PH\lstinline\xA7}\xA7 to define an alternative text representing a diagram for screen readers.
+\item Added references to a supporting online tool, the \href{https://c-minz.github.io/assets/html/proset-editor.html}{PrOSET editor}.
+\end{itemize}
+
+\subsubsection{Modifications and fixes}
+
+\begin{itemize}\itemsep=-1ex
+\item The short hand macros \lstinline\xA7\pcausetL\xA7, \lstinline\xA7\pcausetP\xA7, \lstinline\xA7\pcausetX\xA7, \lstinline\xA7\rcausetL\xA7, \lstinline\xA7\rcausetP\xA7, \\\lstinline\xA7\rcausetX\xA7, \lstinline\xA7\causetL\xA7, \lstinline\xA7\causetP\xA7 and \lstinline\xA7\causetX\xA7 are now depreciated.\\
+Write \lstinline\xA7\pcauset[labeled]\xA7, \lstinline\xA7\pcauset[permutation]\xA7, \lstinline\xA7\pcauset[permutation, labeled]\xA7, etc. instead, or use the PrOSET editor to design diagrams.
+\item Removed the short hand macros \lstinline\xA7\causetFence\xA7 and \lstinline\xA7\causetCrown\xA7.
+\item Corrected typos in the manual.
+\end{itemize}
+
+
 \subsection[v1.4, 2023-03-06 (Vee-Diamond)]{v1.4, 2023-03-06}
+
 \subsubsection{New features}
+
 \begin{itemize}\itemsep=-1ex
 \item \versioncauset{v1-4}{\rcauset[release/.style={black!40!cyan!85}]{1,5/release,3,2,4}{1/5/release}}%
-	Second values in the sequence of the first argument: now modifies the style of individual events, the events are replaced with the key \lstinline\xA7event=\xA7\PH, and the labels are set with \lstinline\xA7label=\xA7\PH. 
-\item Third values in the sequence of the second argument of \lstinline\xA7\causet\xA7 and \lstinline\xA7\rcauset\xA7: to modify the style of individual links. 
+  Second values in the sequence of the first argument: now modifies the style of individual events, the events are replaced with the key \lstinline\xA7event=\xA7\PH, and the labels are set with \lstinline\xA7label=\xA7\PH.
+\item Third values in the sequence of the second argument of \lstinline\xA7\causet\xA7 and \lstinline\xA7\rcauset\xA7: to modify the style of individual links.
 \item Broken links for restyled links of \lstinline\xA7\rcauset\xA7: restyled links can also be drawn between events that would have not been automatically linked, hence these links might now be broken up like the links of \lstinline\xA7\causet\xA7.
 \item New key \lstinline\xA7name=\xA7\PH: to define a name of a causet for easier readability of the tex source code (and to be used as external file name when the corresponding package option has been activated).
 \item New option \lstinline\xA7external\xA7: to load the \lstinline\xA7external\xA7 library of TikZ for automatic externalisation of all diagrams.
-\item New key \lstinline\xA7set prefix=\xA7\PH: to pass a file name prefix that is combined with a causet name for the external files when using \lstinline\xA7external\xA7. 
-\item New key \lstinline\xA7name external=\xA7\PH[bool]: to activate/deactivate using the causet names for external files. 
-\item Main commands: padded by a thin space (adjustable with \lstinline\xA7padding=\xA7\PH) for a better spacing in text and math mode. 
+\item New key \lstinline\xA7set prefix=\xA7\PH: to pass a file name prefix that is combined with a causet name for the external files when using \lstinline\xA7external\xA7.
+\item New key \lstinline\xA7name external=\xA7\PH[bool]: to activate/deactivate using the causet names for external files.
+\item Main commands: padded by a thin space (adjustable with \lstinline\xA7padding=\xA7\PH) for a better spacing in text and math mode.
 \end{itemize}
+
 \subsubsection{Modifications and fixes}
+
 \begin{itemize}\itemsep=-1ex
 \item Third values in the sequence of the first argument: no longer supported.
-\item Spatial links: are now drawn before (so on a lower layer than) links. 
-\item Style \lstinline\xA7arrow links\xA7: the arrow heads are now filled. 
-\item Macro \lstinline\xA7\causetspath\xA7: has been replaced by \lstinline\xA7name prefix=\xA7\PH. 
+\item Spatial links: are now drawn before (so on a lower layer than) links.
+\item Style \lstinline\xA7arrow links\xA7: the arrow heads are now filled.
+\item Macro \lstinline\xA7\causetspath\xA7: has been replaced by \lstinline\xA7name prefix=\xA7\PH.
 \item Short-hand macro \lstinline\xA7\causetCrown\xA7: changed to take a single argument (and the optional style argument) and returns the same output as \lstinline\xA7\causetClosedFence\xA7 used to, which has been removed.
 \end{itemize}
 
@@ -969,54 +1095,65 @@
 \subsection[v1.3.1, 2022-07-27 (Diamond)]{v1.3.1, 2022-07-27}
 \subsubsection{Modifications and fixes}
 \begin{itemize}\itemsep=-1ex
-\item	\versioncauset{v1-3-1}{\pcauset[replaced labels={left=0.5ex, at=west}]{1,3,2,4/label=.3}}%
-	Automatic event labels: now correctly printed when using \lstinline\xA7offset=\xA7\PH.
+\item \versioncauset{v1-3-1}{\pcauset[replaced labels={left=0.5ex, at=west}]{1,3,2,4/label=.3}}%
+  Automatic event labels: now correctly printed when using \lstinline\xA7offset=\xA7\PH.
 \end{itemize}
 
+
 \subsection[v1.3, 2022-05-23 (Da)]{v1.3, 2022-05-23}
+
 \subsubsection{New features}
+
 \begin{itemize}\itemsep=-1ex
 \item %\versioncauset{v1-3}{\pcauset[replaced labels={left=0.5ex, at=west}]{1,4,2,3/label=.3}}%
-	Integer sequences in the arguments: use a permutation of an interval $[ a, b ]$, where $a$ and $b$ do no longer have to be natural numbers but can be any integers ($a \leq b$) including 0 and negative numbers. 
-	These numbers name and label the events of the causet if the respective options are chosen.
-\item Second values in the sequence of the first argument: to change the name and label of events. 
+  Integer sequences in the arguments: use a permutation of an interval $[ a, b ]$, where $a$ and $b$ do no longer have to be natural numbers but can be any integers ($a \leq b$) including 0 and negative numbers.
+  These numbers name and label the events of the causet if the respective options are chosen.
+\item Second values in the sequence of the first argument: to change the name and label of events.
 \item New key \lstinline\xA7offset=\xA7\PH\ (0 by default): to define an integer shift for all events before they are named and labeled.
 \item New style \lstinline\xA7text font=\xA7\PH\ (additionally to \lstinline\xA7text scale=\xA7\PH): to adjust the font style of text (labels), for example, to set the font size to 20pt (and a baseline skip of 24pt), use \lstinline\xA7text font=\fontsize{20}{24}\selectfont\xA7
 \end{itemize}
 
 \subsubsection{Modifications and fixes}
+
 \begin{itemize}\itemsep=-1ex
-\item Size options: all sizes are now scaled with respect to the normal size. 
+\item Size options: all sizes are now scaled with respect to the normal size.
 \item Event style: line thickness of the event outline has been corrected.
 \item Size macros removed: \lstinline\xA7\causetRegionLine\xA7, \lstinline\xA7\causetGridLine\xA7, \lstinline\xA7\causetEventSize\xA7, \\ \lstinline\xA7\causetLinkWidth\xA7, and \lstinline\xA7\causetBrokenLinkGap\xA7.
-	The respective values are now stored in PGF keys and are measured with respect to the size unit (stored in \lstinline\xA7\causetTileSize\xA7).
+  The respective values are now stored in PGF keys and are measured with respect to the size unit (stored in \lstinline\xA7\causetTileSize\xA7).
 \item All package options: reduced to single words.
 \item Permutation for \lstinline\xA7\*causetL...\xA7: now deactivated (if activated previously), by default.
 \item Labels for \lstinline\xA7\*causetP...\xA7: now deactivated (if activated previously), by default.
 \end{itemize}
 
+
 \subsection[v1.2, 2022-02-07 (Vee)]{v1.2, 2022-02-07}
+
 \subsubsection{New features}
+
 \begin{itemize}\itemsep=-1ex
 \item \versioncauset{v1-2}{\pcauset[arrow links]{1,3,2}}%
-	New style \lstinline\xA7at=\xA7\PH: to specify the relative point of events (\lstinline\xA7at=center\xA7\PH, by default) and position relative to this point using TikZ keys \lstinline\xA7left=\xA7\PH, \lstinline\xA7right=\xA7\PH, etc.
-\item New styles \lstinline\xA7cap links\xA7 and \lstinline\xA7arrow links\xA7: add different arrow tips to the start and end of links. 
-\item New styles \lstinline\xA7link starts=\xA7\PH\ and \lstinline\xA7link ends=\xA7\PH: to modify arrow tips to the start and end of links. 
+  New style \lstinline\xA7at=\xA7\PH: to specify the relative point of events (\lstinline\xA7at=\xA7\PH, by default) and position relative to this point using TikZ keys \lstinline\xA7left=\xA7\PH, \lstinline\xA7right=\xA7\PH, etc.
+\item New styles \lstinline\xA7cap links\xA7 and \lstinline\xA7arrow links\xA7: add different arrow tips to the start and end of links.
+\item New styles \lstinline\xA7link starts=\xA7\PH\ and \lstinline\xA7link ends=\xA7\PH: to modify arrow tips to the start and end of links.
 \item Broken links for \lstinline\xA7\causet\xA7: links crossing over unlinked events are broken up now.
-\item New styles \lstinline\xA7link pauses=\xA7\PH\ and \lstinline\xA7link resumes=\xA7\PH: to set the link ending style (arrows) at breaking points. 
+\item New styles \lstinline\xA7link pauses=\xA7\PH\ and \lstinline\xA7link resumes=\xA7\PH: to set the link ending style (arrows) at breaking points.
 \item Spatial links for \lstinline\xA7\rcauset\xA7: spatial links for spacelike separated events are now supported by \lstinline\xA7\rcauset\xA7, too.
 \end{itemize}
 
 \subsubsection{Modifications and fixes}
+
 \begin{itemize}\itemsep=-1ex
-\item Colour option \lstinline\xA7blue\xA7: blue colours are now different shades of blue, gray and black only.
+\item Color option \lstinline\xA7blue\xA7: blue colors are now different shades of blue, gray and black only.
 \end{itemize}
 
+
 \subsection[v1.1, 2020-12-15 (2-Chain)]{v1.1, 2020-12-15}
+
 \subsubsection{New features}
+
 \begin{itemize}\itemsep=-1ex
 \item \versioncauset{v1-1}{\pcauset{1,2}}%
-	All colours, size and style options have been moved to PGF keys in the path
+  All colors, size and style options have been moved to PGF keys in the path
 \begin{lstlisting}
 /tikz/causets/
 \end{lstlisting}
@@ -1023,17 +1160,20 @@
 \end{itemize}
 
 \subsection[v1.0, 2020-11-08 (Singleton)]{v1.0, 2020-11-08}
+
 \begin{itemize}\itemsep=-1ex
 \item \versioncauset{v1-0}{\pcauset{1}}%
-	First release of the package \lstinline\xA7causets\xA7 on CTAN, \url{https://ctan.org/pkg/causets}, including all the main commands.
+  First release of the package \lstinline\xA7causets\xA7 on CTAN, \url{https://ctan.org/pkg/causets}, including all the main commands.
 \end{itemize}
 
 \noindent
-All previous versions of the package can be downloaded at \\
+All previous package versions are at \\
 \url{https://github.com/c-minz/LaTeX-causets/tree/main/previous_versions}
 
+
 \section{Bug reports and package requests}
 \label{sec:PackageDevelopment}
+
 To see reported problems, go to \url{https://github.com/c-minz/LaTeX-causets/issues}
 
 If you have a problem when using the package or you would like to have another feature to be implemented, please write a message to \\

Added: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.pdf
===================================================================
(Binary files differ)

Index: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.pdf
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.pdf	2025-02-23 21:14:07 UTC (rev 74230)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.pdf	2025-02-23 21:14:24 UTC (rev 74231)

Property changes on: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.tex	                        (rev 0)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.tex	2025-02-23 21:14:24 UTC (rev 74231)
@@ -0,0 +1,23 @@
+\documentclass[tikz]{standalone}
+\usepackage[permutation,larger,neon]{causets}
+\usetikzlibrary{fit,shapes.geometric}
+\begin{document}
+\begin{tikzpicture}
+	% Create causet, shifted in x- and y-direction:
+	\begin{scope}[xshift=3cm, yshift=-1cm]
+		\tikzcausetsset{offset=-2}
+		\drawpcauset{5,2,7,3,6,1,4}
+		\draw[red, double] (0, 0) circle[radius=0.1];
+	\end{scope}
+	% Mark the maximal elements (future infinity):
+	\node[draw=blue, inner sep=1pt, thick, ellipse, fit=(E2) (E4) (E5)] (Finf) {};
+	% Add labels on top:
+	\node[draw=blue, right, align=right] (FinfLabel) at (4.8, -0.5) {maximal events / \\ (future infinity)};
+	\node[draw=red] (centerLabel) at (0.5, -0.5) {centre};
+	\node[draw=green!50!black] (myEventLabel) at (5.5, -2.5) {event (E0)};
+	% Draw arrows from the labels to the references:
+	\draw[ultra thick, blue, ->] (FinfLabel) -- (Finf);
+	\draw[ultra thick, red, ->] (centerLabel) -- (3, -1);  % centre was shifted by the scope
+	\draw[ultra thick, green!50!black, ->] (myEventLabel) -- (E0);
+\end{tikzpicture}
+\end{document}


Property changes on: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example1.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.pdf
===================================================================
(Binary files differ)

Index: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.pdf
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.pdf	2025-02-23 21:14:07 UTC (rev 74230)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.pdf	2025-02-23 21:14:24 UTC (rev 74231)

Property changes on: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.tex
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.tex	                        (rev 0)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.tex	2025-02-23 21:14:24 UTC (rev 74231)
@@ -0,0 +1,101 @@
+\documentclass[tikz]{standalone}
+\usepackage[black]{causets}
+\usetikzlibrary{fit,shapes.geometric}
+% Set colours and style:
+\colorlet{future colour}{green!50!black}
+\colorlet{past colour}{yellow!50!orange!80!black}
+\colorlet{anywhere colour}{red!80!black}
+\tikzset{prob arrow/.style={line width=1.5pt}}
+% Define some helper functions:
+\def\defCevents#1#2#3{\xdef\Ea{#1}\xdef\Eb{#2}\xdef\Ec{#3}}
+\def\defDevents#1#2#3#4{\expandafter\defCevents#1#2#3\xdef\Ed{#4}}
+\newcommand*{\semiopaque}[1]{% Adds a transparency group.
+\begin{scope}[transparency group, opacity=0.5]
+	#1
+\end{scope}
+}
+\newcommand*{\drawprobarrow}[4][]{% Draws a (probability) arrow.
+\draw[prob arrow] (#2) -- node[sloped, midway, below, #1] {$#3$} (#4);
+}
+\newcommand{\drawlegendsymbol}{% Draws the symbol for a legend entry.
+\draw[prob arrow] (0,0) -- +(10pt, 6pt);
+}
+\newcommand{\legendsymbol}[1]{% Creates the legend symbol.
+\begin{tikzpicture}
+	\ifnum#1=0
+		\drawlegendsymbol
+	\else
+		\semiopaque{\drawlegendsymbol}
+	\fi
+\end{tikzpicture}
+}
+\begin{document}
+\begin{tikzpicture}[-stealth]
+	\def\ystep{2.0cm}
+	\def\xstep{0.60cm}
+	% Create nodes of all causets with 1 to 4 events:
+	\begin{scope}[nodes={draw, thin, circle, minimum size=1.1cm}]
+		\node (C1) at ( 0,  0) {\pcauset{1}};
+		\node (C12) at (-4*\xstep,  1*\ystep) {\pcauset{1,2}};
+		\node (C21) at ( 4*\xstep,  1*\ystep) {\pcauset{2,1}};
+		\foreach \perm [count=\i from 0] in {123, 132, 312, 213, 321}{%
+			\expandafter\defCevents\perm
+			\node (C\perm) at (4*\i*\xstep-8*\xstep, 2*\ystep) {\pcauset{\Ea,\Eb,\Ec}};
+		}
+		\foreach \perm [count=\i from 0] in {1234, 1243, 1423, 1324, 1432, 4123, 4132, 3124, 3412, 3142, 4312, 2134, 2143, 4213, 3214, 4321}{%
+			\expandafter\defDevents\perm
+			\node (C\perm) at (2*\i*\xstep-15*\xstep, 3.75*\ystep) {\pcauset{\Ea,\Eb,\Ec,\Ed}};
+		}
+	\end{scope}
+	% Add graph edges for expandings ...
+	% ... to the past (additionally):
+	\begin{scope}[past colour]
+		\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}
+			\semiopaque{\drawprobarrow{C\perma}{}{C\permb}};
+	\end{scope}
+	% ... to anywhere (additionally, further):
+	\begin{scope}[anywhere colour]
+		\semiopaque{\drawprobarrow{C123}{}{C1324}};
+	\end{scope}
+	% ... to the future:
+	\begin{scope}[prob arrow, future colour]
+		\drawprobarrow{C1}{p_{12}}{C12}
+		\drawprobarrow{C12}{p_{123}}{C123}
+		\drawprobarrow{C123}{p_{1234}}{C1234}
+		\drawprobarrow[near end]{C123}{p_{1243}}{C1243}
+		\drawprobarrow[near end]{C123}{p_{1423}}{C1423}
+		\drawprobarrow[near start, above]{C123}{p_{4123}}{C4123}
+		\drawprobarrow[above]{C12}{p_{132}}{C132}
+		\drawprobarrow[near end]{C132}{p_{1342}}{C1423}
+		\drawprobarrow[near end]{C132}{p_{1324}}{C1324}
+		\drawprobarrow[midway, above]{C132}{p_{1432}}{C1432}
+		\drawprobarrow[near start]{C132}{p_{4132}}{C4132}
+		\drawprobarrow[near start, above]{C12}{p_{312}}{C312}
+		\drawprobarrow[near end]{C312}{p_{3124}}{C3124}
+		\drawprobarrow[near end]{C312}{p_{3412}}{C3412}
+		\drawprobarrow[near end]{C312}{p_{3142}}{C3142}
+		\drawprobarrow[near start]{C312}{p_{4312}}{C4312}
+		\drawprobarrow{C1}{p_{21}}{C21}
+		\drawprobarrow[near start, above]{C21}{p_{231}}{C312}
+		\drawprobarrow[near start]{C312}{p_{2341}}{C4123}
+		\drawprobarrow[near end]{C312}{p_{2431}}{C4132}
+		\drawprobarrow{C21}{p_{213}}{C213}
+		\drawprobarrow[above]{C213}{p_{2134}}{C2134}
+		\drawprobarrow[near start]{C213}{p_{2413}}{C3142}
+		\drawprobarrow[near end]{C213}{p_{2143}}{C2143}
+		\drawprobarrow[near end]{C213}{p_{4213}}{C4213}
+		\drawprobarrow{C21}{p_{321}}{C321}
+		\drawprobarrow[near start, above]{C321}{p_{3421}}{C4312}
+		\drawprobarrow[near end]{C321}{p_{3241}}{C4213}
+		\drawprobarrow[near end]{C321}{p_{3214}}{C3214}
+		\drawprobarrow{C321}{p_{4321}}{C4321}
+	\end{scope}
+	% Add legend:
+	\node[above left, align=left, draw, inner sep=3ex, fill=gray!05]
+		at (15*\xstep, 0)
+		{Expanding towards\\
+		 \bfseries\color{future colour}\legendsymbol{0}\ the future\\
+		 \bfseries\color{past colour}\legendsymbol{1}\ + the past\\
+		 \bfseries\color{anywhere colour}\legendsymbol{1}\ + anywhere};
+\end{tikzpicture}
+\end{document}


Property changes on: branches/branch2024.final/Master/texmf-dist/doc/latex/causets/causets_example2.tex
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: branches/branch2024.final/Master/texmf-dist/tex/latex/causets/causets.sty
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/latex/causets/causets.sty	2025-02-23 21:14:07 UTC (rev 74230)
+++ branches/branch2024.final/Master/texmf-dist/tex/latex/causets/causets.sty	2025-02-23 21:14:24 UTC (rev 74231)
@@ -1,6 +1,6 @@
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{causets}[2023/03/06 v1.4 Package to draw causal set diagrams]
-%% Copyright 2020-2023 by C. Minz
+\ProvidesPackage{causets}[2025/02/24 v1.5 Package to draw causal set diagrams]
+%% Copyright 2020-2025 by C. Minz
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3
@@ -10,14 +10,14 @@
 %
 % This work has the LPPL maintenance status "maintained".
 % 
-% The current version of this package is 1.4.
+% The current version of this package is 1.5.
 %
 % The current maintainer of this work is C. Minz.
 % https://github.com/c-minz
 %
-% This work consists of the files causets.sty, causets.tex,  
-% causets.pdf, causet_tikz_example1.tex, causet_tikz_example1.pdf, 
-% causet_tikz_example2.tex, causet_tikz_example2.pdf
+% This work consists of the files causets.sty, causets.tex, causets.pdf,
+% causets_example1.tex, causets_example1.pdf, 
+% causets_example2.tex, causets_example2.pdf
 
 \RequirePackage{tikz}
 \usepgflibrary{arrows.meta}
@@ -27,116 +27,117 @@
 \pgfkeys{/tikz/causets/.search also={/tikz}}
 % Size options:
 \tikzcausetsset{%
-	size unit/.store in=\causetTileSize,
-	size unit/.value required,
-	tile size/.store in=\causetTileSize,
-	tile size/.value required,
-	text font/.store in=\causetTextFont,
-	text font/.value required,
-	text scale/.store in=\causetTextScale,
-	text scale/.value required,
-	region line width/.initial=0.07*\causetTileSize,
-	grid line width/.initial=0.04*\causetTileSize,
-	event size/.initial=0.56*\causetTileSize,
-	event outline/.initial=0.04*\causetTileSize,
-	link width/.initial=0.14*\causetTileSize,
-	broken link gap/.initial=0.42*\causetTileSize,
-	tiny/.value forbidden,
-	tiny/.style={%
-		size unit=0.30ex,
-		text font=\tiny,
-		text scale=0.30},
-	very small/.value forbidden,
-	very small/.style={%
-		size unit=0.40ex,
-		text font=\tiny,
-		text scale=0.40},
-	small/.value forbidden,
-	small/.style={%
-		size unit=0.60ex,
-		text font=\scriptsize,
-		text scale=0.43},
-	normal/.value forbidden,
-	normal/.style={%
-		size unit=0.90ex,
-		text font=\footnotesize,
-		text scale=0.56},
-	large/.value forbidden,
-	large/.style={%
-		size unit=1.35ex,
-		text font=\small,
-		text scale=0.75},
-	very large/.value forbidden,
-	very large/.style={%
-		size unit=2.025ex,
-		text font=\normalsize,
-		text scale=1.02},
-	huge/.value forbidden,
-	huge/.style={%
-		size unit=2.70ex,
-		text font=\Large,
-		text scale=0.97}
+  size unit/.store in=\causetTileSize,
+  size unit/.value required,
+  tile size/.store in=\causetTileSize,
+  tile size/.value required,
+  text font/.store in=\causetTextFont,
+  text font/.value required,
+  text scale/.store in=\causetTextScale,
+  text scale/.value required,
+  region line width/.initial=0.07*\causetTileSize,
+  grid line width/.initial=0.04*\causetTileSize,
+  event size/.initial=0.56*\causetTileSize,
+  event outline/.initial=0.04*\causetTileSize,
+  link width/.initial=0.14*\causetTileSize,
+  broken link gap/.initial=0.42*\causetTileSize,
+  tiny/.value forbidden,
+  tiny/.style={%
+    size unit=0.30ex,
+    text font=\tiny,
+    text scale=0.30},
+  very small/.value forbidden,
+  very small/.style={%
+    size unit=0.40ex,
+    text font=\tiny,
+    text scale=0.40},
+  small/.value forbidden,
+  small/.style={%
+    size unit=0.60ex,
+    text font=\scriptsize,
+    text scale=0.43},
+  normal/.value forbidden,
+  normal/.style={%
+    size unit=0.90ex,
+    text font=\footnotesize,
+    text scale=0.56},
+  large/.value forbidden,
+  large/.style={%
+    size unit=1.35ex,
+    text font=\small,
+    text scale=0.75},
+  very large/.value forbidden,
+  very large/.style={%
+    size unit=2.025ex,
+    text font=\normalsize,
+    text scale=1.02},
+  huge/.value forbidden,
+  huge/.style={%
+    size unit=2.70ex,
+    text font=\Large,
+    text scale=0.97}
 }
 % Colour options:
 \tikzcausetsset{%
-	region color/.initial=black!75,
-	grid color/.initial=black!25,
-	tile color/.initial=black!10!white,
-	event color/.initial=black,
-	label color/.initial=black,
-	link color/.initial=black!65!white,
-	spatial link color/.initial=black!50!white,
-	ulabel color/.initial=black!65!white,
-	vlabel color/.initial=black!65!white,
-	black colors/.style={%
-		region color=black,
-		grid color=black,
-		tile color=white,
-		event color=black,
-		label color=black,
-		link color=black,
-		spatial link color=black,
-		ulabel color=black,
-		vlabel color=black},
-	gray colors/.style={%
-		region color=black!75,
-		grid color=black!25,
-		tile color=black!10!white,
-		event color=black,
-		label color=black,
-		link color=black!65!white,
-		spatial link color=black!50!white,
-		ulabel color=black!65!white,
-		vlabel color=black!65!white},
-	blue colors/.style={%
-		region color=black!75,
-		grid color=black!25,
-		tile color=cyan!25!black!25!white,
-		event color=blue!50!black,
-		label color=blue!50!black,
-		link color=cyan!75!black,
-		spatial link color=blue!75!white,
-		ulabel color=black!50,
-		vlabel color=black!50},
-	neon colors/.style={%
-		region color=green,
-		grid color=green,
-		tile color=yellow,
-		event color=blue,
-		label color=blue,
-		link color=cyan,
-		spatial link color=red,
-		ulabel color=magenta,
-		vlabel color=magenta}
+  region color/.initial=black!75,
+  grid color/.initial=black!25,
+  tile color/.initial=black!10!white,
+  event color/.initial=black,
+  label color/.initial=black,
+  link color/.initial=black!65!white,
+  spatial link color/.initial=black!50!white,
+  ulabel color/.initial=black!65!white,
+  vlabel color/.initial=black!65!white,
+  black colors/.style={%
+    region color=black,
+    grid color=black,
+    tile color=white,
+    event color=black,
+    label color=black,
+    link color=black,
+    spatial link color=black,
+    ulabel color=black,
+    vlabel color=black},
+  gray colors/.style={%
+    region color=black!75,
+    grid color=black!25,
+    tile color=black!10!white,
+    event color=black,
+    label color=black,
+    link color=black!65!white,
+    spatial link color=black!50!white,
+    ulabel color=black!65!white,
+    vlabel color=black!65!white},
+  blue colors/.style={%
+    region color=black!75,
+    grid color=black!25,
+    tile color=cyan!25!black!25!white,
+    event color=blue!50!black,
+    label color=blue!50!black,
+    link color=cyan!75!black,
+    spatial link color=blue!75!white,
+    ulabel color=black!50,
+    vlabel color=black!50},
+  neon colors/.style={%
+    region color=green,
+    grid color=green,
+    tile color=yellow,
+    event color=blue,
+    label color=blue,
+    link color=cyan,
+    spatial link color=red,
+    ulabel color=magenta,
+    vlabel color=magenta}
 }
 % Causet modification options:
 \tikzcausetsset{%
-	padding/.store in=\causets at Padding,
-	offset/.store in=\causet at Offset,
-	every causet/.value forbidden,
-	every causet/.style={baseline=(baseline point)},
-	local style/.style={#1},
-	set local style/.style={local style/.expand once={#1}}
+  padding/.store in=\causets at Padding,
+  offset/.store in=\causet at Offset,
+  alt/.estore in=\causetAltText,
+  every causet/.value forbidden,
+  every causet/.style={baseline=(baseline point), alt={causet}},
+  local style/.style={#1},
+  set local style/.style={local style/.expand once={#1}}
 }
 % Graphic component switches:
 \newif\ifcausetsDrawPermutation
@@ -147,106 +148,106 @@
 \newif\ifcausetsDrawULabels
 \newif\ifcausetsDrawVLabels
 \tikzcausetsset{%
-	show permutation/.is if=causetsDrawPermutation,
-	show links/.is if=causetsDrawLinks,
-	break links/.is if=causetsBreakLinks,
-	show spatial links/.is if=causetsDrawSpatialLinks,
-	show labels/.is if=causetsDrawLabels,
-	show ulabels/.is if=causetsDrawULabels,
-	show vlabels/.is if=causetsDrawVLabels,
-	permutation/.code={\causetsDrawPermutationtrue},
-	linked/.code={\causetsDrawLinkstrue},
-	unlinked/.code={\causetsDrawLinksfalse},
-	brokenly linked/.code={\causetsBreakLinkstrue},
-	continuously linked/.code={\causetsBreakLinksfalse},
-	spatially linked/.code={\causetsDrawSpatialLinkstrue},
-	spatially unlinked/.code={\causetsDrawSpatialLinksfalse},
-	labeled/.code={\causetsDrawLabelstrue},
-	unlabeled/.code={\causetsDrawLabelsfalse},
-	labeled u/.code={\causetsDrawULabelstrue},
-	unlabeled u/.code={\causetsDrawULabelsfalse},
-	labeled v/.code={\causetsDrawVLabelstrue},
-	unlabeled v/.code={\causetsDrawVLabelsfalse}
+  show permutation/.is if=causetsDrawPermutation,
+  show links/.is if=causetsDrawLinks,
+  break links/.is if=causetsBreakLinks,
+  show spatial links/.is if=causetsDrawSpatialLinks,
+  show labels/.is if=causetsDrawLabels,
+  show ulabels/.is if=causetsDrawULabels,
+  show vlabels/.is if=causetsDrawVLabels,
+  permutation/.code={\causetsDrawPermutationtrue},
+  linked/.code={\causetsDrawLinkstrue},
+  unlinked/.code={\causetsDrawLinksfalse},
+  brokenly linked/.code={\causetsBreakLinkstrue},
+  continuously linked/.code={\causetsBreakLinksfalse},
+  spatially linked/.code={\causetsDrawSpatialLinkstrue},
+  spatially unlinked/.code={\causetsDrawSpatialLinksfalse},
+  labeled/.code={\causetsDrawLabelstrue},
+  unlabeled/.code={\causetsDrawLabelsfalse},
+  labeled u/.code={\causetsDrawULabelstrue},
+  unlabeled u/.code={\causetsDrawULabelsfalse},
+  labeled v/.code={\causetsDrawVLabelstrue},
+  unlabeled v/.code={\causetsDrawVLabelsfalse}
 }
 % Permutation grid styles:
 \tikzcausetsset{%
-	every region/.value forbidden,
-	every region/.style={color=\pgfkeysvalueof{/tikz/causets/region color}, line width=\pgfkeysvalueof{/tikz/causets/region line width}},
-	region/.style={show permutation, every region/.append style={#1}},
-	every grid/.value forbidden,
-	every grid/.style={color=\pgfkeysvalueof{/tikz/causets/grid color}, line width=\pgfkeysvalueof{/tikz/causets/grid line width}, step=\causetTileSize},
-	grid/.style={show permutation, every grid/.append style={#1}},
-	every tile/.value forbidden,
-	every tile/.style={color=\pgfkeysvalueof{/tikz/causets/tile color}, line width=\pgfkeysvalueof{/tikz/causets/grid line width}, fill},
-	tiles/.style={show permutation, every tile/.append style={#1}}
+  every region/.value forbidden,
+  every region/.style={color=\pgfkeysvalueof{/tikz/causets/region color}, line width=\pgfkeysvalueof{/tikz/causets/region line width}},
+  region/.style={show permutation, every region/.append style={#1}},
+  every grid/.value forbidden,
+  every grid/.style={color=\pgfkeysvalueof{/tikz/causets/grid color}, line width=\pgfkeysvalueof{/tikz/causets/grid line width}, step=\causetTileSize},
+  grid/.style={show permutation, every grid/.append style={#1}},
+  every tile/.value forbidden,
+  every tile/.style={color=\pgfkeysvalueof{/tikz/causets/tile color}, line width=\pgfkeysvalueof{/tikz/causets/grid line width}, fill},
+  tiles/.style={show permutation, every tile/.append style={#1}}
 }
 % Label styles:
 \tikzcausetsset{%
-	every label base/.value forbidden,
-	every label base/.style={text opacity=1, scale=\causetTextScale, font=\causetTextFont, inner sep=0pt},
-	all labels/.style={every label base/.append style={#1}},
-	every label/.value forbidden,
-	every label/.style={every label base, color=\pgfkeysvalueof{/tikz/causets/label color}, below left, at=south west},
-	labels/.style={show labels, every label/.append style={#1}},
-	every ulabel/.value forbidden,
-	every ulabel/.style={every label base, color=\pgfkeysvalueof{/tikz/causets/ulabel color}, right, rotate=-45, inner sep=1pt, align=left},
-	ulabels/.style={show ulabels, every ulabel/.append style={#1}},
-	every vlabel/.value forbidden,
-	every vlabel/.style={every label base, color=\pgfkeysvalueof{/tikz/causets/vlabel color}, left, rotate=45, inner sep=1pt, align=right}, 
-	vlabels/.style={show vlabels, every vlabel/.append style={#1}},
-	every replaced label/.value forbidden,
-	every replaced label/.style={every label},
-	replaced labels/.style={every replaced label/.append style={#1}},
-	at/.initial=center,
-	label/.store in=\causet at EventLabel,
-	label/.value required
+  every label base/.value forbidden,
+  every label base/.style={text opacity=1, scale=\causetTextScale, font=\causetTextFont, inner sep=0pt},
+  all labels/.style={every label base/.append style={#1}},
+  every label/.value forbidden,
+  every label/.style={every label base, color=\pgfkeysvalueof{/tikz/causets/label color}, below left, at=south west},
+  labels/.style={show labels, every label/.append style={#1}},
+  every ulabel/.value forbidden,
+  every ulabel/.style={every label base, color=\pgfkeysvalueof{/tikz/causets/ulabel color}, right, rotate=-45, inner sep=1pt, align=left},
+  ulabels/.style={show ulabels, every ulabel/.append style={#1}},
+  every vlabel/.value forbidden,
+  every vlabel/.style={every label base, color=\pgfkeysvalueof{/tikz/causets/vlabel color}, left, rotate=45, inner sep=1pt, align=right}, 
+  vlabels/.style={show vlabels, every vlabel/.append style={#1}},
+  every replaced label/.value forbidden,
+  every replaced label/.style={every label},
+  replaced labels/.style={every replaced label/.append style={#1}},
+  at/.initial=center,
+  label/.store in=\causet at EventLabel,
+  label/.value required
 }
 % Event styles:
 \tikzcausetsset{%
-	every event/.value forbidden,
-	every event/.style={color=\pgfkeysvalueof{/tikz/causets/event color}, circle, fill, inner sep=0pt, minimum size=\pgfkeysvalueof{/tikz/causets/event size}, line width=\pgfkeysvalueof{/tikz/causets/event outline}},
-	events/.value required,
-	events/.style={every event/.append style={#1}},
-	every replaced event/.value forbidden,
-	every replaced event/.style={every label base, circle, minimum size=\pgfkeysvalueof{/tikz/causets/event size}},
-	replaced events/.value required,
-	replaced events/.style={every replaced event/.append style={#1}},
-	event/.store in=\causet at EventText,
-	event/.value required
+  every event/.value forbidden,
+  every event/.style={color=\pgfkeysvalueof{/tikz/causets/event color}, circle, fill, inner sep=0pt, minimum size=\pgfkeysvalueof{/tikz/causets/event size}, line width=\pgfkeysvalueof{/tikz/causets/event outline}},
+  events/.value required,
+  events/.style={every event/.append style={#1}},
+  every replaced event/.value forbidden,
+  every replaced event/.style={every label base, circle, minimum size=\pgfkeysvalueof{/tikz/causets/event size}},
+  replaced events/.value required,
+  replaced events/.style={every replaced event/.append style={#1}},
+  event/.store in=\causet at EventText,
+  event/.value required
 }
 % Link styles:
 \tikzcausetsset{%
-	Link Start/.tip={},
-	Link Pause/.tip={Triangle Cap[] . Fast Triangle[] . Fast Triangle[]},
-	Link Resume/.tip={Triangle Cap[reversed] . Fast Triangle[reversed] . Fast Triangle[reversed]},
-	Link End/.tip={},
-	every link/.value forbidden,
-	every link/.style={color=\pgfkeysvalueof{/tikz/causets/link color}, line width=\pgfkeysvalueof{/tikz/causets/link width}, {Link Start[]}-{Link End[]}},
-	links/.style={show links, every link/.append style={#1}},
-	link starts/.value required,
-	link starts/.style={Link Start/.tip={#1}},
-	link pauses/.value required,
-	link pauses/.style={Link Pause/.tip={#1}},
-	link resumes/.value required,
-	link resumes/.style={Link Resume/.tip={#1}},
-	link ends/.value required,
-	link ends/.style={Link End/.tip={#1}},
-	cap links/.value forbidden,
-	cap links/.style={link starts={Triangle Cap[reversed]}, link ends={Triangle Cap[]}},
-	arrow links/.value forbidden,
-	arrow links/.style={link ends={Stealth[round, length=4*\pgfkeysvalueof{/tikz/causets/link width}, line width=\pgfkeysvalueof{/tikz/causets/link width}/3]}},
-	every spatial link/.value forbidden,
-	every spatial link/.style={every link, color=\pgfkeysvalueof{/tikz/causets/spatial link color}, dashed},
-	spatial links/.style={show spatial links, every spatial link/.append style={#1}}
+  Link Start/.tip={},
+  Link Pause/.tip={Triangle Cap[] . Fast Triangle[] . Fast Triangle[]},
+  Link Resume/.tip={Triangle Cap[reversed] . Fast Triangle[reversed] . Fast Triangle[reversed]},
+  Link End/.tip={},
+  every link/.value forbidden,
+  every link/.style={color=\pgfkeysvalueof{/tikz/causets/link color}, line width=\pgfkeysvalueof{/tikz/causets/link width}, {Link Start[]}-{Link End[]}},
+  links/.style={show links, every link/.append style={#1}},
+  link starts/.value required,
+  link starts/.style={Link Start/.tip={#1}},
+  link pauses/.value required,
+  link pauses/.style={Link Pause/.tip={#1}},
+  link resumes/.value required,
+  link resumes/.style={Link Resume/.tip={#1}},
+  link ends/.value required,
+  link ends/.style={Link End/.tip={#1}},
+  cap links/.value forbidden,
+  cap links/.style={link starts={Triangle Cap[reversed]}, link ends={Triangle Cap[]}},
+  arrow links/.value forbidden,
+  arrow links/.style={link ends={Stealth[round, length=4*\pgfkeysvalueof{/tikz/causets/link width}, line width=\pgfkeysvalueof{/tikz/causets/link width}/3]}},
+  every spatial link/.value forbidden,
+  every spatial link/.style={every link, color=\pgfkeysvalueof{/tikz/causets/spatial link color}, dashed},
+  spatial links/.style={show spatial links, every spatial link/.append style={#1}}
 }
 % Causet externalisation:
 \newif\ifcausets at External
 \newif\ifcausetsNameExternal
 \tikzcausetsset{%
-	name/.store in=\causet at Name,
-	name prefix/.store in=\causets at NamePrefix,
-	set prefix/.style={name prefix=#1, /tikz/external/prefix=#1},
-	name external/.is if=causetsNameExternal
+  name/.store in=\causet at Name,
+  name prefix/.store in=\causets at NamePrefix,
+  set prefix/.style={name prefix=#1, /tikz/external/prefix=#1},
+  name external/.is if=causetsNameExternal
 }
 
 %% Package options:
@@ -283,9 +284,9 @@
 \DeclareOption*{\PackageWarning{causets}{The package causets does not support the option: \CurrentOption}}
 \ProcessOptions*
 \ifcausets at External
-	\usetikzlibrary{external}%
-	\tikzcausetsset{name prefix=causets/, name external=true}%
-	\tikzexternalize[prefix=causets/]
+  \usetikzlibrary{external}%
+  \tikzcausetsset{name prefix=causets/, name external=true}%
+  \tikzexternalize[prefix=causets/]
 \fi
 
 %% Package functions:
@@ -296,9 +297,9 @@
 \def\causet at Name{}%
 \tikzcausetsset{#1}%
 \ifx\causet at Name\empty%
-	\relax%
+  \relax%
 \else%
-	\expandafter\tikzsetnextfilename\expandafter{\causet at Name}%
+  \expandafter\tikzsetnextfilename\expandafter{\causet at Name}%
 \fi%
 }%
 }
@@ -307,13 +308,13 @@
 % Count the number of events (\causet at N), find the minimal value in the list 
 % argument (\causet at Start), and define baseline point.
 \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
-	\ifnum\causet at i=1
-		\pgfmathparse{int(\causet at E@i)}
-	\else
-		\pgfmathparse{int(min(\causet at Start, \causet at E@i))}
-	\fi
-	\xdef\causet at Start{\pgfmathresult}
-	\xdef\causet at N{\causet at i}
+  \ifnum1=\causet at i
+    \pgfmathparse{int(\causet at E@i)}
+  \else
+    \pgfmathparse{int(min(\causet at Start, \causet at E@i))}
+  \fi
+  \xdef\causet at Start{\pgfmathresult}
+  \xdef\causet at N{\causet at i}
 }
 \pgfmathsetmacro\causet at Start{int(\causet at Start + \causet at Offset)}
 \coordinate (baseline point) at (0, -0.707*\causetTileSize);
@@ -325,14 +326,14 @@
 \pgfmathsetmacro\causet at u{\causet at E@i - \causet at Start}
 \pgfmathsetmacro\causet at v{\causet at i - 1.0}
 \ifcausetsDrawPermutation
-	\path[causets/.cd, every tile] 
-		( \causet at u * \causetTileSize, \causet at v * \causetTileSize ) 
-		rectangle +( \causetTileSize, \causetTileSize );
+  \path[causets/.cd, every tile] 
+    ( \causet at u * \causetTileSize, \causet at v * \causetTileSize ) 
+    rectangle +( \causetTileSize, \causetTileSize );
 \fi
 \pgfmathsetmacro\causet at u{\causet at E@i - \causet at Start + 0.5}
 \pgfmathsetmacro\causet at v{\causet at i - 0.5}
 \node[causets/.cd, #1] (E\causet at E@i) 
-	at ( \causet at u * \causetTileSize, \causet at v * \causetTileSize ) {#2};
+  at ( \causet at u * \causetTileSize, \causet at v * \causetTileSize ) {#2};
 }
 
 \newcommand*{\causets at drawEvents}[1]{%
@@ -339,17 +340,17 @@
 % Draws a permutation tile and defines and draws an event node (E#) on top of 
 % the tile, for each event number # in the list argument.
 \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
-	\ifx\causet at E@i\causet at LocalStyle
-		\causets at drawEvent{}
-	\else
-		\def\causet at EventText{}
-		\tikzcausetsset{set local style=\causet at LocalStyle}
-		\ifx\causet at EventText\empty
-			\causets at drawEvent[every event, set local style=\causet at LocalStyle]{}
-		\else
-			\causets at drawEvent[every replaced event, set local style=\causet at LocalStyle]{\causet at EventText}
-		\fi
-	\fi
+  \ifx\causet at E@i\causet at LocalStyle
+    \causets at drawEvent{}
+  \else
+    \def\causet at EventText{}
+    \tikzcausetsset{set local style=\causet at LocalStyle}
+    \ifx\causet at EventText\empty
+      \causets at drawEvent[every event, set local style=\causet at LocalStyle]{}
+    \else
+      \causets at drawEvent[every replaced event, set local style=\causet at LocalStyle]{\causet at EventText}
+    \fi
+  \fi
 }
 }
 
@@ -356,24 +357,24 @@
 \newcommand*{\causets at drawPermutation}[1]{%
 % Draws the permutation grid and adds the u- and v-coordinate labels.
 \ifcausetsDrawPermutation
-	\draw[causets/.cd, every grid] ( 0, 0 ) 
-		grid ( \causet at N * \causetTileSize, \causet at N * \causetTileSize );
-	\draw[causets/.cd, every region] ( 0, 0 ) 
-		rectangle ( \causet at N * \causetTileSize, \causet at N * \causetTileSize );
-	\foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
-		\pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
-		\ifcausetsDrawULabels
-			\pgfmathsetmacro\causet at u{int(\causet at i + \causet at Start - 1)}
-			\node[causets/.cd, every ulabel] (EUL\causet at E@i) 
-				at ( \causet at i * \causetTileSize - 0.5 * \causetTileSize, 0 ) 
-				{\causet at u};
-		\fi
-		\ifcausetsDrawVLabels
-			\node[causets/.cd, every vlabel] (EVL\causet at E@i) 
-				at ( 0, \causet at i * \causetTileSize - 0.5 * \causetTileSize ) 
-				{\causet at E@i};
-		\fi
-	}
+  \draw[causets/.cd, every grid] ( 0, 0 ) 
+    grid ( \causet at N * \causetTileSize, \causet at N * \causetTileSize );
+  \draw[causets/.cd, every region] ( 0, 0 ) 
+    rectangle ( \causet at N * \causetTileSize, \causet at N * \causetTileSize );
+  \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
+    \pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
+    \ifcausetsDrawULabels
+      \pgfmathsetmacro\causet at u{int(\causet at i + \causet at Start - 1)}
+      \node[causets/.cd, every ulabel] (EUL\causet at E@i) 
+        at ( \causet at i * \causetTileSize - 0.5 * \causetTileSize, 0 ) 
+        {\causet at u};
+    \fi
+    \ifcausetsDrawVLabels
+      \node[causets/.cd, every vlabel] (EVL\causet at E@i) 
+        at ( 0, \causet at i * \causetTileSize - 0.5 * \causetTileSize ) 
+        {\causet at E@i};
+    \fi
+  }
 \fi
 }
 
@@ -381,24 +382,24 @@
 % Draws the spatial links between the events (only for \drawpcauset and 
 % \drawrcauset).
 \ifcausetsDrawSpatialLinks
-	\foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
-		\pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
-		% \causet at Bound stores the lower bound to find spatially linked events.
-		\edef\causet at Bound{\causet at Offset}
-		\foreach \causet at E@j/\causet at LocalStyle [count=\causet at j] in {#1}{%
-			\ifnum\causet at j>\causet at i
-				\pgfmathsetmacro\causet at E@j{int(\causet at E@j + \causet at Offset)}
-				\ifnum\causet at E@j>\causet at Bound
-					\ifnum\causet at E@i>\causet at E@j
-						% Add spatial link and remember new lower bound:
-						\draw[causets/.cd, every spatial link]
-							(E\causet at E@j) -- (E\causet at E@i);
-						\xdef\causet at Bound{\causet at E@j}
-					\fi
-				\fi
-			\fi
-		}
-	}
+  \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
+    \pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
+    % \causet at Bound stores the lower bound to find spatially linked events.
+    \edef\causet at Bound{\causet at Offset}
+    \foreach \causet at E@j/\causet at LocalStyle [count=\causet at j] in {#1}{%
+      \pgfmathgreater{\causet at j}{\causet at i}
+      \ifnum1=\pgfmathresult
+        \pgfmathsetmacro\causet at E@j{int(\causet at E@j + \causet at Offset)}
+        \pgfmathparse{and(\causet at E@j > \causet at Bound, \causet at E@i > \causet at E@j)}
+        \ifnum1=\pgfmathresult
+          % Add spatial link and remember new lower bound:
+          \draw[causets/.cd, every spatial link]
+            (E\causet at E@j) -- (E\causet at E@i);
+          \xdef\causet at Bound{\causet at E@j}
+        \fi
+      \fi
+    }
+  }
 \fi
 }
 
@@ -406,27 +407,27 @@
 % Draws an event label.
 \pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
 \node[causets/.cd, #1] (EL\causet at E@i)
-	at (E\causet at E@i.\pgfkeysvalueof{/tikz/causets/at}) {#2};
+  at (E\causet at E@i.\pgfkeysvalueof{/tikz/causets/at}) {#2};
 }
 
 \newcommand*{\causets at drawEventLabels}[1]{%
 % Adds event labels to the events.
 \foreach \causet at E@i/\causet at LocalStyle in {#1}{%
-	\ifx\causet at E@i\causet at LocalStyle
-		\ifcausetsDrawLabels
-			\causets at drawEventLabel{\causet at E@i}
-		\fi
-	\else
-		\def\causet at EventLabel{}
-		\tikzcausetsset{set local style=\causet at LocalStyle}
-		\ifx\causet at EventLabel\empty
-			\ifcausetsDrawLabels
-				\causets at drawEventLabel{\causet at E@i}
-			\fi
-		\else
-			\causets at drawEventLabel[every replaced label]{\causet at EventLabel}
-		\fi
-	\fi
+  \ifx\causet at E@i\causet at LocalStyle
+    \ifcausetsDrawLabels
+      \causets at drawEventLabel{\causet at E@i}
+    \fi
+  \else
+    \def\causet at EventLabel{}
+    \tikzcausetsset{set local style=\causet at LocalStyle}
+    \ifx\causet at EventLabel\empty
+      \ifcausetsDrawLabels
+        \causets at drawEventLabel{\causet at E@i}
+      \fi
+    \else
+      \causets at drawEventLabel[every replaced label]{\causet at EventLabel}
+    \fi
+  \fi
 }
 }
 
@@ -433,13 +434,13 @@
 \newcommand*{\causets at drawContinuousLinks}[2][]{%
 % Draws the links in full even if they cross over events.
 \foreach \causet at From/\causet at To/\causet at LocalLinkStyle in {#2}{%
-	\ifx\causet at To\causet at LocalLinkStyle
-		\gdef\causet at LocalLinkStyle{#1}
-	\fi
-	\pgfmathsetmacro\causet at From{int(\causet at From + \causet at Offset)}
-	\pgfmathsetmacro\causet at To{int(\causet at To + \causet at Offset)}
-	\draw[causets/.cd, every link, set local style=\causet at LocalLinkStyle]
-		(E\causet at From) -- (E\causet at To);
+  \ifx\causet at To\causet at LocalLinkStyle
+    \gdef\causet at LocalLinkStyle{#1}
+  \fi
+  \pgfmathsetmacro\causet at From{int(\causet at From + \causet at Offset)}
+  \pgfmathsetmacro\causet at To{int(\causet at To + \causet at Offset)}
+  \draw[causets/.cd, every link, set local style=\causet at LocalLinkStyle]
+    (E\causet at From) -- (E\causet at To);
 }
 }
 
@@ -446,71 +447,78 @@
 \newcommand*{\causets at drawBrokenLinks}[3][]{%
 % Tests every link if it crosses over an unlinked event and breaks the link.
 \foreach \causet at From/\causet at To/\causet at LocalLinkStyle in {#3}{%
-	\ifx\causet at To\causet at LocalLinkStyle
-		\gdef\causet at LocalLinkStyle{#1}
-	\fi
-	% In this function, \causet at u and \causet at v store the link distance in 
-	% the u- and in the v-direction, respectively. Since these are coordinate 
-	% differences, they are computed without adding the offset.
-	\pgfmathsetmacro\causet at u{int(\causet at To) - int(\causet at From)}
-	\foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#2}{%
-		\ifnum\causet at E@i=\causet at From
-			\xdef\causet at v{\causet at i}
-		\fi
-		\ifnum\causet at E@i=\causet at To
-			\pgfmathparse{int(\causet at i - \causet at v)}
-			\xdef\causet at v{\pgfmathresult}
-			\breakforeach
-		\fi
-	}
-	% Now add offset to events:
-	\pgfmathsetmacro\causet at From{int(\causet at From + \causet at Offset)}
-	\pgfmathsetmacro\causet at To{int(\causet at To + \causet at Offset)}
-	% In this function, \causet at E@j stores the last breaking point and 
-	% \causet at j the index of \causet at From.
-	\pgfmathsetmacro\causet at E@j{int(\causet at From - 1)}
-	\edef\causet at j{0}
-	\foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#2}{%
-		\pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
-		\ifnum\causet at E@i=\causet at To
-			\edef\causet at j{0}
-			\breakforeach
-		\fi
-		\ifnum\causet at j>0
-			% If the u-/v-coordinate ratio is the same, the event \causet at E@i falls 
-			% along the link and the link needs to break. The ratios are compared 
-			% via cross-multiplication, which is faster and does not cause 
-			% rounding errors:
-			\pgfmathequal{int((\causet at E@i - \causet at From) * \causet at v)}{int(\causet at u * (\causet at i - \causet at j)))}
-			\ifnum\pgfmathresult=1
-				\ifnum\causet at E@j<\causet at From
-					% Link is crossing over another event, so draw the link up to the 
-					% (first) breaking point:
-					\draw[causets/.cd, every link, {Link Start}-{Link Pause}, shorten >=\pgfkeysvalueof{/tikz/causets/broken link gap}, set local style=\causet at LocalLinkStyle]
-						(E\causet at From) -- (E\causet at E@i);
-				\else
-					% Link is crossing over yet another event, so continue from last 
-					% breaking point to next breaking point:
-					\draw[causets/.cd, every link, {Link Resume}-{Link Pause}, shorten <=\pgfkeysvalueof{/tikz/causets/broken link gap}, shorten >=\pgfkeysvalueof{/tikz/causets/broken link gap}, set local style=\causet at LocalLinkStyle]
-						(E\causet at E@j) -- (E\causet at E@i);
-				\fi
-				\xdef\causet at E@j{\causet at E@i}
-			\fi
-		\fi
-		\ifnum\causet at E@i=\causet at From
-			\xdef\causet at j{\causet at i}
-		\fi
-	}
-	\ifnum\causet at E@j>\causet at From
-		% Link did cross over another event, so finish the link from last 
-		% breaking point to final event:
-		\draw[causets/.cd, every link, {Link Resume}-{Link End}, shorten <=\pgfkeysvalueof{/tikz/causets/broken link gap}, set local style=\causet at LocalLinkStyle]
-			(E\causet at E@j) -- (E\causet at To);
-	\else
-		% Link does not cross over another event, so just draw it:
-		\draw[causets/.cd, every link, set local style=\causet at LocalLinkStyle]
-			(E\causet at From) -- (E\causet at To);
-	\fi
+  \ifx\causet at To\causet at LocalLinkStyle
+    \gdef\causet at LocalLinkStyle{#1}
+  \fi
+  % In this function, \causet at u and \causet at v store the link distance in 
+  % the u- and in the v-direction, respectively. Since these are coordinate 
+  % differences, they are computed without adding the offset.
+  \pgfmathsetmacro\causet at u{int(\causet at To) - int(\causet at From)}
+  \def\causet at v{0}
+  \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#2}{%
+    \pgfmathequal{\causet at E@i}{\causet at From}
+    \ifnum1=\pgfmathresult
+      \xdef\causet at v{\causet at i}
+    \fi
+    \pgfmathequal{\causet at E@i}{\causet at To}
+    \ifnum1=\pgfmathresult
+      \pgfmathparse{int(\causet at i - \causet at v)}
+      \xdef\causet at v{\pgfmathresult}
+      \breakforeach
+    \fi
+  }
+  % Now add offset to events:
+  \pgfmathsetmacro\causet at From{int(\causet at From + \causet at Offset)}
+  \pgfmathsetmacro\causet at To{int(\causet at To + \causet at Offset)}
+  % In this function, \causet at E@j stores the last breaking point and 
+  % \causet at j the index of \causet at From.
+  \pgfmathsetmacro\causet at E@j{int(\causet at From - 1)}
+  \edef\causet at j{0}
+  \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#2}{%
+    \pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
+    \pgfmathequal{\causet at E@i}{\causet at To}
+    \ifnum1=\pgfmathresult
+      \edef\causet at j{0}
+      \breakforeach
+    \fi
+    \ifnum0<\causet at j
+      % If the u-/v-coordinate ratio is the same, the event \causet at E@i falls 
+      % along the link and the link needs to break. The ratios are compared 
+      % via cross-multiplication, which is faster and does not cause 
+      % rounding errors:
+      \pgfmathequal{int((\causet at E@i - \causet at From) * \causet at v)}{int(\causet at u * (\causet at i - \causet at j)))}
+      \ifnum1=\pgfmathresult
+        \pgfmathless{\causet at E@j}{\causet at From}
+        \ifnum1=\pgfmathresult
+          % Link is crossing over another event, so draw the link up to the 
+          % (first) breaking point:
+          \draw[causets/.cd, every link, {Link Start}-{Link Pause}, shorten >=\pgfkeysvalueof{/tikz/causets/broken link gap}, set local style=\causet at LocalLinkStyle]
+            (E\causet at From) -- (E\causet at E@i);
+        \else
+          % Link is crossing over yet another event, so continue from last 
+          % breaking point to next breaking point:
+          \draw[causets/.cd, every link, {Link Resume}-{Link Pause}, shorten <=\pgfkeysvalueof{/tikz/causets/broken link gap}, shorten >=\pgfkeysvalueof{/tikz/causets/broken link gap}, set local style=\causet at LocalLinkStyle]
+            (E\causet at E@j) -- (E\causet at E@i);
+        \fi
+        \xdef\causet at E@j{\causet at E@i}
+      \fi
+    \fi
+    \pgfmathequal{\causet at E@i}{\causet at From}
+    \ifnum1=\pgfmathresult
+      \xdef\causet at j{\causet at i}
+    \fi
+  }
+  \pgfmathgreater{\causet at E@j}{\causet at From}
+  \ifnum1=\pgfmathresult
+    % Link did cross over another event, so finish the link from last 
+    % breaking point to final event:
+    \draw[causets/.cd, every link, {Link Resume}-{Link End}, shorten <=\pgfkeysvalueof{/tikz/causets/broken link gap}, set local style=\causet at LocalLinkStyle]
+      (E\causet at E@j) -- (E\causet at To);
+  \else
+    % Link does not cross over another event, so just draw it:
+    \draw[causets/.cd, every link, set local style=\causet at LocalLinkStyle]
+      (E\causet at From) -- (E\causet at To);
+  \fi
 }
 }
 
@@ -518,33 +526,33 @@
 % Draws a causet from a permutation.
 \causets at prepareCauset{#1}
 \begin{scope}[rotate=45]
-	\begin{scope}[xshift=-\causet at N * \causetTileSize / 2, 
-	              yshift=-\causet at N * \causetTileSize / 2]
-		\causets at drawEvents{#1}
-		\causets at drawPermutation{#1}
-		\causets at drawSpatialLinks{#1}
-		\ifcausetsDrawLinks
-			\foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
-				\pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
-				% \causet at Bound stores the upper bound to find linked events.
-				\pgfmathsetmacro\causet at Bound{int(\causet at N + \causet at Start)}
-				\foreach \causet at E@j/\causet at LocalStyle [count=\causet at j] in {#1}{%
-					\ifnum\causet at j>\causet at i
-						\pgfmathsetmacro\causet at E@j{int(\causet at E@j + \causet at Offset)}
-						\ifnum\causet at E@j<\causet at Bound
-							\ifnum\causet at E@i<\causet at E@j
-								% Add link and remember new upper bound:
-								\draw[causets/.cd, every link]
-									(E\causet at E@i) -- (E\causet at E@j);
-								\xdef\causet at Bound{\causet at E@j}
-							\fi
-						\fi
-					\fi
-				}
-			}
-		\fi
-		\causets at drawEventLabels{#1}
-	\end{scope}
+  \begin{scope}[xshift=-\causet at N * \causetTileSize / 2, 
+                yshift=-\causet at N * \causetTileSize / 2]
+    \causets at drawEvents{#1}
+    \causets at drawPermutation{#1}
+    \causets at drawSpatialLinks{#1}
+    \ifcausetsDrawLinks
+      \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
+        \pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
+        % \causet at Bound stores the upper bound to find linked events.
+        \pgfmathsetmacro\causet at Bound{int(\causet at N + \causet at Start)}
+        \foreach \causet at E@j/\causet at LocalStyle [count=\causet at j] in {#1}{%
+          \pgfmathgreater{\causet at j}{\causet at i}
+          \ifnum1=\pgfmathresult
+            \pgfmathsetmacro\causet at E@j{int(\causet at E@j + \causet at Offset)}
+            \pgfmathparse{and(\causet at E@j < \causet at Bound, \causet at E@i < \causet at E@j)}
+            \ifnum1=\pgfmathresult
+              % Add link and remember new upper bound:
+              \draw[causets/.cd, every link]
+                (E\causet at E@i) -- (E\causet at E@j);
+              \xdef\causet at Bound{\causet at E@j}
+            \fi
+          \fi
+        }
+      }
+    \fi
+    \causets at drawEventLabels{#1}
+  \end{scope}
 \end{scope}
 }
 
@@ -552,19 +560,19 @@
 % Draws a causet from a permutation and a link-pair list.
 \causets at prepareCauset{#1}
 \begin{scope}[rotate=45]
-	\begin{scope}[xshift=-\causet at N * \causetTileSize / 2, 
-	              yshift=-\causet at N * \causetTileSize / 2]
-		\causets at drawEvents{#1}
-		\causets at drawPermutation{#1}
-		\ifcausetsDrawLinks
-			\ifcausetsBreakLinks
-				\causets at drawBrokenLinks{#1}{#2}
-			\else
-				\causets at drawContinuousLinks{#2}
-			\fi
-		\fi
-		\causets at drawEventLabels{#1}
-	\end{scope}
+  \begin{scope}[xshift=-\causet at N * \causetTileSize / 2, 
+                yshift=-\causet at N * \causetTileSize / 2]
+    \causets at drawEvents{#1}
+    \causets at drawPermutation{#1}
+    \ifcausetsDrawLinks
+      \ifcausetsBreakLinks
+        \causets at drawBrokenLinks{#1}{#2}
+      \else
+        \causets at drawContinuousLinks{#2}
+      \fi
+    \fi
+    \causets at drawEventLabels{#1}
+  \end{scope}
 \end{scope}
 }
 
@@ -573,62 +581,62 @@
 % list argument (of link-pairs).
 \causets at prepareCauset{#1}
 \begin{scope}[rotate=45]
-	\begin{scope}[xshift=-\causet at N * \causetTileSize / 2, 
-	              yshift=-\causet at N * \causetTileSize / 2]
-		\causets at drawEvents{#1}
-		\causets at drawPermutation{#1}
-		\causets at drawSpatialLinks{#1}
-		% Add omitted links as spatial links:
-		\ifcausetsDrawSpatialLinks
-			\foreach \causet at From/\causet at To/\causet at LocalLinkStyle in {#2}{%
-				\ifx\causet at To\causet at LocalLinkStyle
-					\pgfmathsetmacro\causet at From{int(\causet at From + \causet at Offset)}
-					\pgfmathsetmacro\causet at To{int(\causet at To + \causet at Offset)}
-					\draw[causets/.cd, every spatial link]
-						(E\causet at From) -- (E\causet at To);
-				\fi
-			}
-		\fi
-		\ifcausetsDrawLinks
-			\foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
-				\pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
-				% \causet at Bound stores the upper bound to find linked events.
-				\pgfmathsetmacro\causet at Bound{int(\causet at N + \causet at Start)}
-				\foreach \causet at E@j/\causet at LocalStyle [count=\causet at j] in {#1}{%
-					\ifnum\causet at j>\causet at i
-						\pgfmathsetmacro\causet at E@j{int(\causet at E@j + \causet at Offset)}
-						\ifnum\causet at E@j<\causet at Bound
-							\ifnum\causet at E@i<\causet at E@j
-								% Check second list argument if the link has to be ignored:
-								\global\causet at ItemFoundInListfalse
-								\foreach \causet at From/\causet at To/\causet at LocalLinkStyle in {#2}{%
-									\pgfmathparse{and(int(\causet at From + \causet at Offset) == int(\causet at E@i), int(\causet at To + \causet at Offset) == int(\causet at E@j))}
-									\ifnum\pgfmathresult=1
-										\global\causet at ItemFoundInListtrue
-									\fi
-								}
-								\ifcauset at ItemFoundInList
-									\relax% Skip link as it is included in the second argument.
-								\else
-									% Draw link as it is not included in the second argument:
-									\draw[causets/.cd, every link]
-										(E\causet at E@i) -- (E\causet at E@j);
-								\fi
-								% Remember new upper bound:
-								\xdef\causet at Bound{\causet at E@j}
-							\fi
-						\fi
-					\fi
-				}
-			}
-			\ifcausetsBreakLinks
-				\causets at drawBrokenLinks[draw=none]{#1}{#2}
-			\else
-				\causets at drawContinuousLinks[draw=none]{#2}
-			\fi
-		\fi
-		\causets at drawEventLabels{#1}
-	\end{scope}
+  \begin{scope}[xshift=-\causet at N * \causetTileSize / 2, 
+                yshift=-\causet at N * \causetTileSize / 2]
+    \causets at drawEvents{#1}
+    \causets at drawPermutation{#1}
+    \causets at drawSpatialLinks{#1}
+    % Add omitted links as spatial links:
+    \ifcausetsDrawSpatialLinks
+      \foreach \causet at From/\causet at To/\causet at LocalLinkStyle in {#2}{%
+        \ifx\causet at To\causet at LocalLinkStyle
+          \pgfmathsetmacro\causet at From{int(\causet at From + \causet at Offset)}
+          \pgfmathsetmacro\causet at To{int(\causet at To + \causet at Offset)}
+          \draw[causets/.cd, every spatial link]
+            (E\causet at From) -- (E\causet at To);
+        \fi
+      }
+    \fi
+    \ifcausetsDrawLinks
+      \foreach \causet at E@i/\causet at LocalStyle [count=\causet at i] in {#1}{%
+        \pgfmathsetmacro\causet at E@i{int(\causet at E@i + \causet at Offset)}
+        % \causet at Bound stores the upper bound to find linked events.
+        \pgfmathsetmacro\causet at Bound{int(\causet at N + \causet at Start)}
+        \foreach \causet at E@j/\causet at LocalStyle [count=\causet at j] in {#1}{%
+          \pgfmathgreater{\causet at j}{\causet at i}
+          \ifnum1=\pgfmathresult
+            \pgfmathsetmacro\causet at E@j{int(\causet at E@j + \causet at Offset)}
+            \pgfmathparse{and(\causet at E@j < \causet at Bound, \causet at E@i < \causet at E@j)}
+            \ifnum1=\pgfmathresult
+              % Check second list argument if the link has to be ignored:
+              \global\causet at ItemFoundInListfalse
+              \foreach \causet at From/\causet at To/\causet at LocalLinkStyle in {#2}{%
+                \pgfmathparse{and(int(\causet at From + \causet at Offset) == int(\causet at E@i), int(\causet at To + \causet at Offset) == int(\causet at E@j))}
+                \ifnum1=\pgfmathresult
+                  \global\causet at ItemFoundInListtrue
+                \fi
+              }
+              \ifcauset at ItemFoundInList
+                \relax% Skip link as it is included in the second argument.
+              \else
+                % Draw link as it is not included in the second argument:
+                \draw[causets/.cd, every link]
+                  (E\causet at E@i) -- (E\causet at E@j);
+              \fi
+              % Remember new upper bound:
+              \xdef\causet at Bound{\causet at E@j}
+            \fi
+          \fi
+        }
+      }
+      \ifcausetsBreakLinks
+        \causets at drawBrokenLinks[draw=none]{#1}{#2}
+      \else
+        \causets at drawContinuousLinks[draw=none]{#2}
+      \fi
+    \fi
+    \causets at drawEventLabels{#1}
+  \end{scope}
 \end{scope}
 }
 
@@ -636,7 +644,7 @@
 % Inserts a TikZ picture with a causet, created from a permutation.
 \causets at Padding%
 \ifcausetsNameExternal%
-	\causets at setCausetName{#1}%
+  \causets at setCausetName{#1}%
 \fi%
 \begin{tikzpicture}[causets/.cd, every causet, #1]%
 \drawpcauset{#2}%
@@ -649,7 +657,7 @@
 % link-pair list.
 \causets at Padding%
 \ifcausetsNameExternal%
-	\causets at setCausetName{#1}%
+  \causets at setCausetName{#1}%
 \fi%
 \begin{tikzpicture}[causets/.cd, every causet, #1]%
 \drawcauset{#2}{#3}%
@@ -662,7 +670,7 @@
 % link-pair list of links to remove.
 \causets at Padding%
 \ifcausetsNameExternal%
-	\causets at setCausetName{#1}%
+  \causets at setCausetName{#1}%
 \fi%
 \begin{tikzpicture}[causets/.cd, every causet, #1]%
 \drawrcauset{#2}{#3}%
@@ -670,7 +678,7 @@
 \causets at Padding%
 }
 
-%% Short-hand functions and external causets:
+%% Import an external causets (to repeat it):
 \newcommand*{\causetfile}[2][]{%
 \causets at Padding%
 \includegraphics[#1]{\causets at NamePrefix#2}%
@@ -677,79 +685,23 @@
 \causets at Padding%
 }
 
+%% Short hand macros:
+% DEPRECIATED with v1.5 and will be removed in the future.
 \newcommand*{\pcausetP}[2][]{%
 {\causetsDrawPermutationtrue\causetsDrawLabelsfalse\pcauset[#1]{#2}}}
-
 \newcommand*{\pcausetL}[2][]{%
 {\causetsDrawPermutationfalse\causetsDrawLabelstrue\pcauset[#1]{#2}}}
-
 \newcommand*{\pcausetX}[2][]{%
 {\causetsDrawPermutationtrue\causetsDrawLabelstrue\pcauset[#1]{#2}}}
-	
 \newcommand*{\causetP}[3][]{%
 {\causetsDrawPermutationtrue\causetsDrawLabelsfalse\causet[#1]{#2}{#3}}}
-
 \newcommand*{\causetL}[3][]{%
 {\causetsDrawPermutationfalse\causetsDrawLabelstrue\causet[#1]{#2}{#3}}}
-
 \newcommand*{\causetX}[3][]{%
 {\causetsDrawPermutationtrue\causetsDrawLabelstrue\causet[#1]{#2}{#3}}}
-	
 \newcommand*{\rcausetP}[3][]{%
 {\causetsDrawPermutationtrue\causetsDrawLabelsfalse\rcauset[#1]{#2}{#3}}}
-
 \newcommand*{\rcausetL}[3][]{%
 {\causetsDrawPermutationfalse\causetsDrawLabelstrue\rcauset[#1]{#2}{#3}}}
-
 \newcommand*{\rcausetX}[3][]{%
 {\causetsDrawPermutationtrue\causetsDrawLabelstrue\rcauset[#1]{#2}{#3}}}
-
-\newcommand*{\causetFence}[2][]{%
-\ifcase#2%
-\or%=1
-\pcauset[#1]{1,2}%
-\or%=2
-\pcauset[#1]{3,1,4,2}%
-\or%=3
-\pcauset[#1]{5,3,6,1,4,2}%
-\or%=4
-\pcauset[#1]{7,5,8,3,6,1,4,2}%
-\or%=5
-\pcauset[#1]{9,7,10,5,8,3,6,1,4,2}%
-\or%=6
-\pcauset[#1]{11,9,12,7,10,5,8,3,6,1,4,2}%
-\or%=7
-\pcauset[#1]{13,11,14,9,12,7,10,5,8,3,6,1,4,2}%
-\or%=8
-\pcauset[#1]{15,13,16,11,14,9,12,7,10,5,8,3,6,1,4,2}%
-\or%=9
-\pcauset[#1]{17,15,18,13,16,11,14,9,12,7,10,5,8,3,6,1,4,2}%
-\or%=10
-\pcauset[#1]{19,17,20,15,18,13,16,11,14,9,12,7,10,5,8,3,6,1,4,2}%
-\fi%
-}
-
-\newcommand*{\causetCrown}[2][]{%
-\ifcase#2%
-\or%=1
-\pcauset[#1]{1,2}%
-\or%=2
-\pcauset[#1]{2,1,4,3}%
-\or%=3
-\rcauset[#1]{4,2,6,1,5,3}{2/5}%
-\or%=4
-\rcauset[#1]{6,4,8,2,7,1,5,3}{2/5,4/7}%
-\or%=5
-\rcauset[#1]{8,6,10,4,9,2,7,1,5,3}{2/5,4/7,6/9}%
-\or%=6
-\rcauset[#1]{10,8,12,6,11,4,9,2,7,1,5,3}{2/5,4/7,6/9,8/11}%
-\or%=7
-\rcauset[#1]{12,10,14,8,13,6,11,4,9,2,7,1,5,3}{2/5,4/7,6/9,8/11,10/13}%
-\or%=8
-\rcauset[#1]{14,12,16,10,15,8,13,6,11,4,9,2,7,1,5,3}{2/5,4/7,6/9,8/11,10/13,12/15}%
-\or%=9
-\rcauset[#1]{16,14,18,12,17,10,15,8,13,6,11,4,9,2,7,1,5,3}{2/5,4/7,6/9,8/11,10/13,12/15,14/17}%
-\or%=10
-\rcauset[#1]{18,16,20,14,19,12,17,10,15,8,13,6,11,4,9,2,7,1,5,3}{2/5,4/7,6/9,8/11,10/13,12/15,14/17,16/19}%
-\fi%
-}



More information about the tex-live-commits mailing list.