diff options
author | Karl Berry <karl@freefriends.org> | 2024-12-19 20:42:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-12-19 20:42:46 +0000 |
commit | 5b9a20a8dddd55bbdc88b0e1562a80a1b74ebae2 (patch) | |
tree | 08dd07383d19523aa1b12c7b24e0acde7b2522c2 | |
parent | 92972acd2862cb3907f75d73dbff8de34259f61b (diff) |
lisp-on-tex (19dec24)
git-svn-id: svn://tug.org/texlive/trunk@73165 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/README.md | 14 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/examples/div2.pdf | bin | 11875 -> 12711 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/examples/fact.pdf | bin | 36632 -> 39893 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/examples/fpnummodule-mandelbrot.pdf | bin | 32295 -> 32301 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/examples/nqueen.pdf | bin | 12971 -> 13805 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/examples/rocket.pdf | bin | 30975 -> 33454 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/examples/showfont.pdf | bin | 13933 -> 15269 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf | bin | 0 -> 247935 bytes | |||
-rw-r--r-- | Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty | 6 |
10 files changed, 20 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/README.md b/Master/texmf-dist/doc/latex/lisp-on-tex/README.md index 045f98aaed0..69dab9b1110 100644 --- a/Master/texmf-dist/doc/latex/lisp-on-tex/README.md +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/README.md @@ -190,6 +190,13 @@ shows that LISP on TeX uses Mark-Sweep GC and the heap size is 5000. (\intTOstring :42) % '42' ``` +`\stringTOint` : Convert a string to integer +****************************************************** + +``` +(\stringTOint '42') % :42 +``` + `\group` : Grouping. ******************************* @@ -557,6 +564,11 @@ of l3regex. Load it by `\usepackage`: ## CHANGELOG ## +Dec. 18, 2024 : 2.1 +************************* + +* Add \stringTOint function, thanks for @homologic + Oct. 25, 2015 : 2.0 ************************* @@ -594,4 +606,4 @@ Modified BSD (see LICENCE) ************************************************ HAKUTA Shizuya <hak7a3@live.jp> -https://bitbucket.org/hak7a3/lisp-on-tex/ +https://github.com/hak7a3/lisp-on-tex diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/div2.pdf b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/div2.pdf Binary files differindex 6cb01f55aaa..a866e6894c0 100644 --- a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/div2.pdf +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/div2.pdf diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fact.pdf b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fact.pdf Binary files differindex 5bb156ab393..3e8f4f2f684 100644 --- a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fact.pdf +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fact.pdf diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fpnummodule-mandelbrot.pdf b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fpnummodule-mandelbrot.pdf Binary files differindex b40e5f7c9b7..3e106c63674 100644 --- a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fpnummodule-mandelbrot.pdf +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/fpnummodule-mandelbrot.pdf diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/nqueen.pdf b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/nqueen.pdf Binary files differindex c605d4212c8..132af8ffa1a 100644 --- a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/nqueen.pdf +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/nqueen.pdf diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/rocket.pdf b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/rocket.pdf Binary files differindex bfff99d340a..7c46764a824 100644 --- a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/rocket.pdf +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/rocket.pdf diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/showfont.pdf b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/showfont.pdf Binary files differindex 13ef7fce56a..05ba13ed938 100644 --- a/Master/texmf-dist/doc/latex/lisp-on-tex/examples/showfont.pdf +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/examples/showfont.pdf diff --git a/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf b/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf Binary files differnew file mode 100644 index 00000000000..5cd14ab14d5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/lisp-on-tex/tug2013/slide.pdf diff --git a/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty b/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty index 03b278d3865..53637d55b43 100644 --- a/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty +++ b/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-mod-l3regex.sty @@ -1,5 +1,5 @@ % wrapper for l3regex -\RequirePackage{l3regex} +\RequirePackage{expl3} % \regex_match:nnTF \@lisp@env@add@global\regMatch{\@tlabel@func{\@lisp@func@check@args{2}{\@lisp@regex@match}}} diff --git a/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty b/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty index 9c0c011a2c3..3d6f79d1c9a 100644 --- a/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty +++ b/Master/texmf-dist/tex/latex/lisp-on-tex/lisp-string.sty @@ -23,6 +23,12 @@ \@lisp@env@add@global\intTOstring{\@tlabel@func{\@lisp@func@check@args{1}{\@conv@intTOstr}}} \def\@conv@intTOstr#1\@tlabel@int#2{\gdef#1{\@tlabel@string{#2}}} +%% STRING2INT : string -> int +%% (\stringTOint 'i') -> i + +\@lisp@env@add@global\stringTOint{\@tlabel@func{\@lisp@func@check@args{1}{\@conv@strTOint}}} +\def\@conv@strTOint#1\@tlabel@string#2{\gdef#1{\@tlabel@int{#2}}} + %% IMMEDIATEWRITE : () -> () %% It outputs the output buffer immediately. %% It cause error if the buffer is incomplete. |