texlive[56456] Master/texmf-dist: semtex (27sep20)

commits+karl at tug.org commits+karl at tug.org
Sun Sep 27 23:28:28 CEST 2020


Revision: 56456
          http://tug.org/svn/texlive?view=revision&revision=56456
Author:   karl
Date:     2020-09-27 23:28:27 +0200 (Sun, 27 Sep 2020)
Log Message:
-----------
semtex (27sep20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/semtex/semtex.pdf
    trunk/Master/texmf-dist/doc/latex/semtex/semtex.tex
    trunk/Master/texmf-dist/tex/latex/semtex/semtex.sty

Modified: trunk/Master/texmf-dist/doc/latex/semtex/semtex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/semtex/semtex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/semtex/semtex.tex	2020-09-27 21:28:13 UTC (rev 56455)
+++ trunk/Master/texmf-dist/doc/latex/semtex/semtex.tex	2020-09-27 21:28:27 UTC (rev 56456)
@@ -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 at gmail.com}{sorsted at gmail.com})}
 
@@ -167,63 +167,4 @@
 }
 \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

Modified: trunk/Master/texmf-dist/tex/latex/semtex/semtex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/semtex/semtex.sty	2020-09-27 21:28:13 UTC (rev 56455)
+++ trunk/Master/texmf-dist/tex/latex/semtex/semtex.sty	2020-09-27 21:28:27 UTC (rev 56456)
@@ -1,5 +1,5 @@
 \RequirePackage{xparse}
-\ProvidesExplPackage{semtex}{2020/09/10}{0.2}{}
+\ProvidesExplPackage{semtex}{2020/09/27}{0.44}{}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %																%
@@ -33,53 +33,4 @@
 
 \cs_set:Npn\SemantexLeft { \mathopen{}\mathclose\bgroup\left }
 
-\cs_set:Npn\SemantexRight { \aftergroup\egroup\right }
-
-\tl_set:Nn\SemantexDelimiterSize{}
-
-\DeclareDocumentCommand\SemantexParentheses { mmmm }
-{
-	\str_case:nnF { #1 } % This is where \big,\Big, etc. go.
-	{
-		{ normal } {
-			\group_begin:
-			\tl_clear:N \SemantexDelimiterSize
-			\str_if_eq:nnF { #2 } { . } { \mathopen #2 }
-			#4
-			\str_if_eq:nnF { #3 } { . } { \mathclose #3 }
-			\group_end:
-		}
-		{ auto } {
-			\group_begin:
-			\tl_set_eq:NN \SemantexDelimiterSize \middle
-			\SemantexLeft #2
-			#4
-			\SemantexRight #3
-			\group_end:
-		}
-		{ * } {
-			\group_begin:
-			\tl_set_eq:NN \SemantexDelimiterSize \middle
-			\SemantexLeft #2
-			#4
-			\SemantexRight #3
-			\group_end:
-		}
-	}
-	{
-		\group_begin:
-		\tl_set_eq:NN\SemantexDelimiterSize #1
-		\mathopen #1 #2
-		#4
-		\mathclose #1 #3
-		\group_end:
-	}
-}
-
-\DeclareDocumentCommand\SemantexNoParentheses { m }
-{
-	\group_begin:
-	\tl_clear:N\SemantexDelimiterSize
-	#1
-	\group_end:
-}
\ No newline at end of file
+\cs_set:Npn\SemantexRight { \aftergroup\egroup\right }
\ No newline at end of file



More information about the tex-live-commits mailing list.