texlive[56320] Master/texmf-dist: stricttex (10sep20)

commits+karl at tug.org commits+karl at tug.org
Fri Sep 11 22:51:24 CEST 2020


Revision: 56320
          http://tug.org/svn/texlive?view=revision&revision=56320
Author:   karl
Date:     2020-09-11 22:51:24 +0200 (Fri, 11 Sep 2020)
Log Message:
-----------
stricttex (10sep20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/stricttex/stricttex.pdf
    trunk/Master/texmf-dist/doc/lualatex/stricttex/stricttex.tex
    trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua
    trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty

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

Modified: trunk/Master/texmf-dist/doc/lualatex/stricttex/stricttex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/stricttex/stricttex.tex	2020-09-11 20:51:09 UTC (rev 56319)
+++ trunk/Master/texmf-dist/doc/lualatex/stricttex/stricttex.tex	2020-09-11 20:51:24 UTC (rev 56320)
@@ -29,7 +29,7 @@
 
 \newcommand\strctttex{\texttt{stricttex}\xspace}
 
-\title{\strctttex\ -- strictly balanced brackets and numbers in command names (v0.1$\beta$)}
+\title{\strctttex\ -- strictly balanced brackets and numbers in command names (v0.2$\beta$)}
 \date{\today}
 \author{Sebastian \O rsted (\href{mailto:sorsted at gmail.com}{sorsted at gmail.com})}
 
@@ -45,7 +45,7 @@
 \noindent 
 The \strctttex package is a small, Lua\LaTeX-only package providing you with three, sometimes useful features:
 \begin{itemize}
-	\item It allows you to make brackets \lstinline![...]! ``strict'', meaning that each~`\lstinline![!
+	\item It allows you to make brackets \lstinline![...]! ``strict'', meaning that each~\lstinline![!
 	must be balanced by a~\lstinline!]!.
 	\item It allows you to use numbers in command names, so
 	that you can do stuff like~\lstinline!\newcommand\pi12{\pi_{12}}!.

Modified: trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua	2020-09-11 20:51:09 UTC (rev 56319)
+++ trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.lua	2020-09-11 20:51:24 UTC (rev 56320)
@@ -95,20 +95,20 @@
 end
 
 stricttexReplacePrimes = function(str)
-	str = str:gsub("'",'symbolPRIME')
+	str = str:gsub('\'','symbolPRIME')
 	return str
 end
 
+
 stricttexFormatNumbersAndPrimes = function(str)
-	local p, q = str:find("\\%a+[%d']")
+	local p, q = str:find('\\%a+[%d\']')
 	if p then
 		while true do
-			local r,s = str:sub(q,-1):find("[%w']+") -- ^ in the beginning did not work
-			local newstring = stricttexReplaceNumbersByLetters( str:sub(q,q+s-1) )
-			mewstring = stricttexReplacePrimes( newstring )
+			local r,s = str:sub(q,-1):find('[%w\']+') -- ^ in the beginning did not work
+			local newstring = stricttexReplaceNumbersByLetters( stricttexReplacePrimes( str:sub(q,q+s-1) ) )
 			local l = string.len(newstring)
 			str = str:sub(1, q-1) .. newstring .. str:sub(q+s,-1)
-			local t = str:sub(q+l,-1):find("\\%a+[%d']")
+			local t = str:sub(q+l,-1):find('\\%a+[%d\']')
 			if t then
 				q = q + l + t - 1
 			else

Modified: trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty	2020-09-11 20:51:09 UTC (rev 56319)
+++ trunk/Master/texmf-dist/tex/lualatex/stricttex/stricttex.sty	2020-09-11 20:51:24 UTC (rev 56320)
@@ -1,4 +1,4 @@
-\ProvidesExplPackage{stricttex}{2020/07/28}{0.1beta}{}
+\ProvidesExplPackage{stricttex}{2020/09/08}{0.2beta}{}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %																				%



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