diff options
author | Norbert Preining <norbert@preining.info> | 2020-09-28 03:04:08 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-09-28 03:04:08 +0000 |
commit | 34310603e5253ef5742542e3f0123b341a70ee20 (patch) | |
tree | 51076d298e97a9c86619db3ada2af17e81c074d1 /macros/latex/contrib/semtex/semtex.tex | |
parent | ac0ae0fcbd5ee121e6b9134cced71d961e30ed68 (diff) |
CTAN sync 202009280304
Diffstat (limited to 'macros/latex/contrib/semtex/semtex.tex')
-rw-r--r-- | macros/latex/contrib/semtex/semtex.tex | 61 |
1 files changed, 1 insertions, 60 deletions
diff --git a/macros/latex/contrib/semtex/semtex.tex b/macros/latex/contrib/semtex/semtex.tex index 45e64e16da..e390c4ba23 100644 --- a/macros/latex/contrib/semtex/semtex.tex +++ b/macros/latex/contrib/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\<normal|auto|*|{\textit{other}}\>@}{@\<left parenthesis\>@}!\\ - {@\<right parenthesis\>@}{@\<content\>@} -\end{lstlisting} -This one writes \<content\> 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~\<content\>, 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{@\<content\>@} -\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 |