summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/semantex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-06-11 19:54:32 +0000
committerKarl Berry <karl@freefriends.org>2021-06-11 19:54:32 +0000
commit99ac346ab70f3343dd147a12e9732c80b2fe88e5 (patch)
tree599c1b370c46171e1ff0ca01231693c5108fca44 /Master/texmf-dist/doc/latex/semantex
parent0990ef97af2ea14790855e21f9c26d1db44ef683 (diff)
semantex (11jun21)
git-svn-id: svn://tug.org/texlive/trunk@59561 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/semantex')
-rw-r--r--Master/texmf-dist/doc/latex/semantex/semantex.pdfbin371132 -> 370872 bytes
-rw-r--r--Master/texmf-dist/doc/latex/semantex/semantex.tex10
2 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/semantex/semantex.pdf b/Master/texmf-dist/doc/latex/semantex/semantex.pdf
index 7cf9755983e..fb7f1fbfdf0 100644
--- a/Master/texmf-dist/doc/latex/semantex/semantex.pdf
+++ b/Master/texmf-dist/doc/latex/semantex/semantex.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/semantex/semantex.tex b/Master/texmf-dist/doc/latex/semantex/semantex.tex
index 2bf168eb0f7..2d257f95aef 100644
--- a/Master/texmf-dist/doc/latex/semantex/semantex.tex
+++ b/Master/texmf-dist/doc/latex/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}!,