summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/semantex/semantex.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/semantex/semantex.tex')
-rw-r--r--macros/latex/contrib/semantex/semantex.tex86
1 files changed, 80 insertions, 6 deletions
diff --git a/macros/latex/contrib/semantex/semantex.tex b/macros/latex/contrib/semantex/semantex.tex
index 563be874be..3b2630da08 100644
--- a/macros/latex/contrib/semantex/semantex.tex
+++ b/macros/latex/contrib/semantex/semantex.tex
@@ -42,7 +42,7 @@
\usepackage[nameinlink]{cleveref}
-\title{Seman\!\TeX: semantic, keyval-based mathematics (v0.512)}
+\title{Seman\!\TeX: semantic, keyval-based mathematics (v0.513)}
\date{\today}
\author{Sebastian Ørsted (\href{mailto:sorsted@gmail.com}{sorsted@gmail.com})}
@@ -103,6 +103,10 @@
\usepackage{semantex}
+\SemantexSetup{
+ semtex file=true,
+}
+
\usepackage{expkv}
\NewVariableClass\MyVar[
@@ -2036,7 +2040,7 @@ Tuple-like commands are also possible:
\NewObject\MyVar\tup[left par=(,right par=)] % tuples
\NewObject\MyVar\pcoor[ % projective coordinates
left par={[}, right par={]},
- set arg sep=\mathpunct{:},
+ set arg sep=\mathbin{:},
% changes the argument separator to colon
set arg dots=\dotsb,
% changes what is inserted if you write "..."
@@ -2045,7 +2049,7 @@ Tuple-like commands are also possible:
\NewObject\MyVar\tup[left par=(,right par=)] % tuples
\NewObject\MyVar\pcoor[ % projective coordinates
left par={[}, right par={]},
- set arg sep=\mathpunct{:},
+ set arg sep=\mathbin{:},
% changes the argument separator to colon
set arg dots=\dotsb,
% changes what is inserted if you write "..."
@@ -3350,9 +3354,9 @@ In the following sections, we include the full list.
Increases the \<integer\> by~\( 1 \).
\item
- \mylst!int if ieq TF={$\<integer\num{1}\>$}{$\<integer\num{2}\>$}{$\<if true\>$}{$\<if false\>$}!, \\
- \mylst!int if ieq T={$\<integer\num{1}\>$}{$\<integer\num{2}\>$}{$\<if true\>$}!, \\
- \mylst!int if ieq F={$\<integer\num{1}\>$}{$\<integer\num{2}\>$}{$\<if false\>$}!
+ \mylst!int if eq TF={$\<integer\num{1}\>$}{$\<integer\num{2}\>$}{$\<if true\>$}{$\<if false\>$}!, \\
+ \mylst!int if eq T={$\<integer\num{1}\>$}{$\<integer\num{2}\>$}{$\<if true\>$}!, \\
+ \mylst!int if eq F={$\<integer\num{1}\>$}{$\<integer\num{2}\>$}{$\<if false\>$}!
Checks whether the integers \<integer\num{1}\> and \<integer\num{2}\> are equal,
and runs \<if~true\> or \<if~false\> accordingly.
@@ -3840,11 +3844,21 @@ In the following sections, we include the full list.
\mylst!pre arg={$\<value\>$}!
Sets the pre-argument.
+
+ \item
+ \mylst!pre arg put left={$\<value\>$}!
+
+ Adds to the left of the pre-argument.
\item
\mylst!post arg={$\<value\>$}!
Sets the post-argument.
+
+ \item
+ \mylst!post arg put right={$\<value\>$}!
+
+ Adds to the right of the post-argument.
\item
\mylst!set arg sep={$\<value\>$}!
@@ -3994,11 +4008,21 @@ In the following sections, we include the full list.
\mylst!pre upper={$\<value\>$}!
Sets the pre-upper index.
+
+ \item
+ \mylst!pre upper put left={$\<value\>$}!
+
+ Adds to the left of the pre-upper index.
\item
\mylst!post upper={$\<value\>$}!
Sets the post-upper index.
+
+ \item
+ \mylst!post upper put right={$\<value\>$}!
+
+ Adds to the right of the post-upper index.
\item
\mylst!upper put left={$\<value\>$}!
@@ -4192,11 +4216,21 @@ In the following sections, we include the full list.
\mylst!pre lower={$\<value\>$}!
Sets the pre-lower index.
+
+ \item
+ \mylst!pre lower put left={$\<value\>$}!
+
+ Adds to the left of the pre-lower index.
\item
\mylst!post lower={$\<value\>$}!
Sets the post-lower index.
+
+ \item
+ \mylst!post lower put right={$\<value\>$}!
+
+ Adds to the right of the post-lower index.
\item
\mylst!lower put left={$\<value\>$}!
@@ -4390,11 +4424,21 @@ In the following sections, we include the full list.
\mylst!pre upper left={$\<value\>$}!
Sets the pre-upper left index.
+
+ \item
+ \mylst!pre upper left put left={$\<value\>$}!
+
+ Adds to the left of the pre-upper left index.
\item
\mylst!post upper left={$\<value\>$}!
Sets the post-upper left index.
+
+ \item
+ \mylst!post upper left put right={$\<value\>$}!
+
+ Adds to the right of the post-upper left index.
\item
\mylst!upper left put right={$\<value\>$}!
@@ -4588,11 +4632,21 @@ In the following sections, we include the full list.
\mylst!pre lower left={$\<value\>$}!
Sets the pre-lower left index.
+
+ \item
+ \mylst!pre lower left put left={$\<value\>$}!
+
+ Adds to the left of the pre-lower left index.
\item
\mylst!post lower left={$\<value\>$}!
Sets the post-lower left index.
+
+ \item
+ \mylst!post lower left put right={$\<value\>$}!
+
+ Adds to the right of the post-lower left index.
\item
\mylst!lower left put right={$\<value\>$}!
@@ -4786,11 +4840,21 @@ In the following sections, we include the full list.
\mylst!pre d={$\<value\>$}!
Sets the pre-\lstinline!d!-index.
+
+ \item
+ \mylst!pre d put left={$\<value\>$}!
+
+ Adds to the left of the pre-\lstinline!d!-index.
\item
\mylst!post d={$\<value\>$}!
Sets the post-\lstinline!d!-index.
+
+ \item
+ \mylst!post d put right={$\<value\>$}!
+
+ Adds to the right of the post-\lstinline!d!-index.
\item
\mylst!d put left={$\<value\>$}!
@@ -4983,11 +5047,21 @@ In the following sections, we include the full list.
\mylst!pre i={$\<value\>$}!
Sets the pre-\lstinline!i!-index.
+
+ \item
+ \mylst!pre i put left={$\<value\>$}!
+
+ Adds to the left of the pre-\lstinline!i!-index.
\item
\mylst!post i={$\<value\>$}!
Sets the post-\lstinline!i!-index.
+
+ \item
+ \mylst!post i put right={$\<value\>$}!
+
+ Adds to the right of the post-\lstinline!i!-index.
\item
\mylst!i put left={$\<value\>$}!