summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/semantex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-12 03:00:50 +0000
committerNorbert Preining <norbert@preining.info>2021-06-12 03:00:50 +0000
commit73dcf554624f325ec90d02815c36d92a33c2667f (patch)
tree73c5f88e9a5aab31e07fef81cfe0144439d1d6aa /macros/latex/contrib/semantex
parentd6b2eaba6fe47c24603040934903c73535ff09ba (diff)
CTAN sync 202106120300
Diffstat (limited to 'macros/latex/contrib/semantex')
-rw-r--r--macros/latex/contrib/semantex/semantex.pdfbin371132 -> 370872 bytes
-rw-r--r--macros/latex/contrib/semantex/semantex.sty2
-rw-r--r--macros/latex/contrib/semantex/semantex.tex10
3 files changed, 7 insertions, 5 deletions
diff --git a/macros/latex/contrib/semantex/semantex.pdf b/macros/latex/contrib/semantex/semantex.pdf
index 7cf9755983..fb7f1fbfdf 100644
--- a/macros/latex/contrib/semantex/semantex.pdf
+++ b/macros/latex/contrib/semantex/semantex.pdf
Binary files differ
diff --git a/macros/latex/contrib/semantex/semantex.sty b/macros/latex/contrib/semantex/semantex.sty
index 3e7e1422b2..0031ccf854 100644
--- a/macros/latex/contrib/semantex/semantex.sty
+++ b/macros/latex/contrib/semantex/semantex.sty
@@ -1,5 +1,5 @@
\RequirePackage{xparse,l3keys2e,leftindex,semtex}
-\ProvidesExplPackage{semantex}{2021/06/10}{0.500}{}
+\ProvidesExplPackage{semantex}{2021/06/10}{0.501}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
diff --git a/macros/latex/contrib/semantex/semantex.tex b/macros/latex/contrib/semantex/semantex.tex
index 2bf168eb0f..2d257f95ae 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.500)}
+\title{Seman\!\TeX: semantic, keyval-based mathematics (v0.501)}
\date{\today}
\author{Sebastian Ørsted (\href{mailto:sorsted@gmail.com}{sorsted@gmail.com})}
@@ -1731,10 +1731,10 @@ $\RHom{\vX,\vY}$
}
Imagine we want to do cohomology with coefficients in some ring~\( \vR \).
-It is common to write this as~\( \co{*}{\vX,coef=\vR} \)
+It is common to write this as~\( \co[*]{\vX,coef=\vR} \)
with a semicolon instead of a comma. This can be implemented, too, with the syntax
\begin{LTXexample}
-$\co{*}{\vX,coef=\vR}$
+$\co[*]{\vX,coef=\vR}$
\end{LTXexample}
This shows that arguments of functions also support keyval syntax.
To define argument keys,
@@ -1748,11 +1748,13 @@ keys (at least those taking values) are actually turned off
by default, so we shall have to turn them on first:
\begin{lstlisting}
\SetupClass\MyVar{
- arg keyval=true, % this turns keyval syntax in arguments on
define arg keys[1]={
{coef}{ other sep={;}{#1} },
},
}
+\SetupObject\co{
+ arg keyval=true,
+}
\end{lstlisting}
The key \lstinline!other sep! is a key that controls the separator
between the current argument and the previous argument (it will only be printed if there was a previous argument). By default, this separator is a comma. So in the syntax~\lstinline!\co{*}{\vX,coef=\vR}!,