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.tex43
1 files changed, 41 insertions, 2 deletions
diff --git a/macros/latex/contrib/semantex/semantex.tex b/macros/latex/contrib/semantex/semantex.tex
index ca5f0cc8be..a2b7f200f1 100644
--- a/macros/latex/contrib/semantex/semantex.tex
+++ b/macros/latex/contrib/semantex/semantex.tex
@@ -38,7 +38,7 @@
\usepackage[nameinlink]{cleveref}
-\title{Seman\!\TeX: semantic, keyval-based mathematics (v$0.41\beta$)}
+\title{Seman\!\TeX: semantic, keyval-based mathematics (v0.42)}
\date{\today}
\author{Sebastian Ørsted (\href{mailto:sorsted@gmail.com}{sorsted@gmail.com})}
@@ -2357,7 +2357,7 @@ HTML-like syntax, e.g.:
\begin{LTXexample}
$ \GL[order=\vn,field=\vk] $,
$ \Mat[rows=\vm,columns=\vn,
- field=\vk] $,
+ field=\vk] $,
$ \co[d=0,coef=\vR,space=\vX] $
\end{LTXexample}
The \lstinline!parse! routine is a collection of code which is
@@ -2367,6 +2367,15 @@ By default, the parse routine contains no code.
However, you can add code to it using the
key~\mylst!parseoptions={$\<keys\>$}!.
+Even though the \lstinline!parse!~routine is automatically invoked right before rendering, you can also invoke it at any time by force
+using the key~\lstinline!parse!. This will also empty the code from the
+\lstinline!parse!~routine so that it will not be executed twice:
+\begin{LTXexample}
+$ \GL[order=\vn,field=\vk,parse,
+ spar,op] $
+\end{LTXexample}
+(here we used the key~\lstinline!op! from \cref{sec:algebra}).
+
\section{Example: Matrix sets and groups}
Suppose we want to be able to write the group of invertible \( \vn \times \vn \)-matrices with entries in~\( \vk \)
@@ -3426,6 +3435,36 @@ In the following sections, we include the full list.
Invokes the inner return routine.
\item
+ \mylst!leftindexreturn!
+
+ Adds the left indices to the symbol, but not the left argument, if any such exists.
+
+ \item
+ \mylst!rightindexreturn!
+
+ Adds the right indices to the symbol, but not the right argument, if any such exists.
+
+ \item
+ \mylst!indexreturn!
+
+ Adds all indices to the symbol, left and right, but not the argument, if any such exists.
+
+ \item
+ \mylst!leftargreturn!
+
+ Adds the left argument, if any such exists, to the symbol, otherwise does nothing.
+
+ \item
+ \mylst!rightargreturn!
+
+ Adds the right argument, if any such exists, to the symbol, otherwise does nothing.
+
+ \item
+ \mylst!argreturn!
+
+ Adds the argument, if any such exists, to the symbol, otherwise does nothing.
+
+ \item
\mylst!output={$\<Class\>$}!
Sets the output class to~\<Class\>.