From a31b3211df4fe9b3714aa092f9b703c155987261 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 27 Sep 2020 21:28:27 +0000 Subject: semtex (27sep20) git-svn-id: svn://tug.org/texlive/trunk@56456 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/semtex/semtex.pdf | Bin 76606 -> 61300 bytes Master/texmf-dist/doc/latex/semtex/semtex.tex | 61 +------------------------- 2 files changed, 1 insertion(+), 60 deletions(-) (limited to 'Master/texmf-dist/doc/latex') diff --git a/Master/texmf-dist/doc/latex/semtex/semtex.pdf b/Master/texmf-dist/doc/latex/semtex/semtex.pdf index 3fe2797582e..6500750b395 100644 Binary files a/Master/texmf-dist/doc/latex/semtex/semtex.pdf and b/Master/texmf-dist/doc/latex/semtex/semtex.pdf differ diff --git a/Master/texmf-dist/doc/latex/semtex/semtex.tex b/Master/texmf-dist/doc/latex/semtex/semtex.tex index 45e64e16da7..e390c4ba237 100644 --- a/Master/texmf-dist/doc/latex/semtex/semtex.tex +++ b/Master/texmf-dist/doc/latex/semtex/semtex.tex @@ -38,7 +38,7 @@ \usepackage[nameinlink]{cleveref} -\title{\texttt{semtex}: For stripped Seman\!\TeX\ documents (v0.2)} +\title{\texttt{semtex}: For stripped Seman\!\TeX\ documents (v0.44)} \date{\today} \author{Sebastian Ørsted (\href{mailto:sorsted@gmail.com}{sorsted@gmail.com})} @@ -167,63 +167,4 @@ Alternatively, you can recreate them yourself by } \end{lstlisting} -\chapter*{Commands for scaled delimiters} - -First and foremost, the package provides the command -\begin{lstlisting} -\SemantexParentheses{@\values\@}{@\@}!\\ - {@\@}{@\@} -\end{lstlisting} -This one writes \ enclosed in the pair of parentheses -and with the size given by the first argument. -Here,~\lstinline!normal! means normal size -parentheses, -and \lstinline!auto! and~\lstinline!*! -mean auto-scaled parentheses using~\lstinline!\SemantexLeft...\SemantexRight!. -If another value is received, that value -is used for the parenthesis size, -so the intended values are~\lstinline!\big!, \lstinline!\Big!, -\lstinline!\bigg!,~\lstinline!\Bigg!: -\begin{LTXexample} -$\SemantexParentheses{normal}{(}{ - )}{\frac{a}{b}}$, -$\SemantexParentheses{auto}{[}{]}{ - \frac{a}{b}}$, -$\SemantexParentheses{\big}{ - \langle}{\rangle}{\frac{a}{b}}$, -$\SemantexParentheses{\Bigg}{\{}{ - \}}{\frac{a}{b}}$, -\end{LTXexample} -The important property of this command -is that inside the~\, you can access -the delimiter size at any point using -the command~\lstinline!\SemantexDelimiterSize!: -\begin{LTXexample} -$\SemantexParentheses{\Bigg}{\{}{\}}{ - \frac{a}{b} - \SemantexDelimiterSize| - \frac{u}{v} -}$ -\end{LTXexample} - -Secondly, the package provides the command -\begin{lstlisting} -\SemantexNoParentheses{@\@} -\end{lstlisting} -This command prints the content with no parentheses, but importantly, it also resets -the command \lstinline!\SemantexDelimiterSize! -to~\lstinline!{}!, i.e.~blank. -This makes the following work: -\begin{LTXexample} -$\SemantexParentheses{\Bigg}{\{}{\}}{ - \frac{a}{b} - \SemantexDelimiterSize| - \SemantexNoParentheses{ - a - \SemantexDelimiterSize| - b - } -}$ -\end{LTXexample} - \end{document} \ No newline at end of file -- cgit v1.2.3