summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/stricttex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-09-09 03:03:16 +0000
committerNorbert Preining <norbert@preining.info>2020-09-09 03:03:16 +0000
commit4b315627efc5a6beb1e6c6ec7a98779f215c75eb (patch)
treecf65539a3758192b9bfbaea63d1962f28ec32a3e /macros/luatex/latex/stricttex
parentbc2d0660f4f460b55009ab4e525f2a0e4cde6187 (diff)
CTAN sync 202009090303
Diffstat (limited to 'macros/luatex/latex/stricttex')
-rw-r--r--macros/luatex/latex/stricttex/stricttex.lua12
-rw-r--r--macros/luatex/latex/stricttex/stricttex.pdfbin55501 -> 55423 bytes
-rw-r--r--macros/luatex/latex/stricttex/stricttex.sty2
-rw-r--r--macros/luatex/latex/stricttex/stricttex.tex4
4 files changed, 9 insertions, 9 deletions
diff --git a/macros/luatex/latex/stricttex/stricttex.lua b/macros/luatex/latex/stricttex/stricttex.lua
index d8dd962141..0533a4683a 100644
--- a/macros/luatex/latex/stricttex/stricttex.lua
+++ b/macros/luatex/latex/stricttex/stricttex.lua
@@ -95,20 +95,20 @@ stricttexFormatNumbers = function(str)
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
diff --git a/macros/luatex/latex/stricttex/stricttex.pdf b/macros/luatex/latex/stricttex/stricttex.pdf
index 4003955e80..6a26547c71 100644
--- a/macros/luatex/latex/stricttex/stricttex.pdf
+++ b/macros/luatex/latex/stricttex/stricttex.pdf
Binary files differ
diff --git a/macros/luatex/latex/stricttex/stricttex.sty b/macros/luatex/latex/stricttex/stricttex.sty
index 8a3e9874dd..e1c0b4599c 100644
--- a/macros/luatex/latex/stricttex/stricttex.sty
+++ b/macros/luatex/latex/stricttex/stricttex.sty
@@ -1,4 +1,4 @@
-\ProvidesExplPackage{stricttex}{2020/07/28}{0.1beta}{}
+\ProvidesExplPackage{stricttex}{2020/09/08}{0.2beta}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
diff --git a/macros/luatex/latex/stricttex/stricttex.tex b/macros/luatex/latex/stricttex/stricttex.tex
index 57242faa5c..53eec0862f 100644
--- a/macros/luatex/latex/stricttex/stricttex.tex
+++ b/macros/luatex/latex/stricttex/stricttex.tex
@@ -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@gmail.com}{sorsted@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}}!.