texlive[73165] Master/texmf-dist: lisp-on-tex (19dec24)

commits+karl at tug.org commits+karl at tug.org
Thu Dec 19 21:42:46 CET 2024


Revision: 73165
          https://tug.org/svn/texlive?view=revision&revision=73165
Author:   karl
Date:     2024-12-19 21:42:46 +0100 (Thu, 19 Dec 2024)
Log Message:
-----------
lisp-on-tex (19dec24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/README.md
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/div2.pdf
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fact.pdf
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fpnummodule-mandelbrot.pdf
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/nqueen.pdf
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/rocket.pdf
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/showfont.pdf
    trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty
    trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/
    trunk/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf

Modified: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lisp-on-tex/README.md	2024-12-19 20:42:30 UTC (rev 73164)
+++ trunk/Master/texmf-dist/doc/latex/lisp-on-tex/README.md	2024-12-19 20:42:46 UTC (rev 73165)
@@ -190,6 +190,13 @@
 (\intTOstring :42) % '42'
 ```
 
+`\stringTOint` : Convert a string to integer
+******************************************************
+
+```
+(\stringTOint '42') % :42
+```
+
 `\group` : Grouping.
 *******************************
 
@@ -557,6 +564,11 @@
 
 ## CHANGELOG ##
 
+Dec. 18, 2024 : 2.1
+*************************
+
+* Add \stringTOint function, thanks for @homologic
+
 Oct. 25, 2015 : 2.0
 *************************
 
@@ -594,4 +606,4 @@
 ************************************************
 HAKUTA Shizuya <hak7a3 at live.jp>
 
-https://bitbucket.org/hak7a3/lisp-on-tex/
+https://github.com/hak7a3/lisp-on-tex

Modified: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/div2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fact.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fpnummodule-mandelbrot.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/nqueen.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/rocket.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/examples/showfont.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf	2024-12-19 20:42:30 UTC (rev 73164)
+++ trunk/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf	2024-12-19 20:42:46 UTC (rev 73165)

Property changes on: trunk/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty	2024-12-19 20:42:30 UTC (rev 73164)
+++ trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty	2024-12-19 20:42:46 UTC (rev 73165)
@@ -1,5 +1,5 @@
 % wrapper for l3regex
-\RequirePackage{l3regex}
+\RequirePackage{expl3}
 
 % \regex_match:nnTF
 \@lisp at env@add at global\regMatch{\@tlabel at func{\@lisp at func@check at args{2}{\@lisp at regex@match}}}

Modified: trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty	2024-12-19 20:42:30 UTC (rev 73164)
+++ trunk/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty	2024-12-19 20:42:46 UTC (rev 73165)
@@ -23,6 +23,12 @@
 \@lisp at env@add at global\intTOstring{\@tlabel at func{\@lisp at func@check at args{1}{\@conv at intTOstr}}}
 \def\@conv at intTOstr#1\@tlabel at int#2{\gdef#1{\@tlabel at string{#2}}}
 
+%% STRING2INT : string -> int
+%% (\stringTOint 'i') -> i
+
+\@lisp at env@add at global\stringTOint{\@tlabel at func{\@lisp at func@check at args{1}{\@conv at strTOint}}}
+\def\@conv at strTOint#1\@tlabel at string#2{\gdef#1{\@tlabel at int{#2}}}
+
 %% IMMEDIATEWRITE : () -> ()
 %% It outputs the output buffer immediately.
 %% It cause error if the buffer is incomplete.



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