chupinmaxime / wordcloud

Other
5 stars 1 forks source link

issue with commands in wordcloud #3

Closed mbertucci47 closed 10 months ago

mbertucci47 commented 11 months ago

With texlive on Windows, I get errors when trying to include commands in a wordcloud. For example running lualatex on

\documentclass{article}
\usepackage{wordcloud}

\begin{document}

\wordcloud{(\\LaTeX,10);(test,6)}

% \wordcloud{(LaTeX,10);(test,6)} % works fine

\end{document}

produces in the terminal

This is LuaHBTeX, Version 1.17.0 (TeX Live 2023)
 restricted system commands enabled.
(./document.tex
LaTeX2e <2023-06-01> patch level 1
L3 programming layer <2023-08-11>
 (c:/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(c:/texlive/2023/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2023/texmf-dist/tex/latex/wordcloud/wordcloud.sty
(c:/texlive/2023/texmf-dist/tex/luatex/luamplib/luamplib.sty))
(c:/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-luatex.def)
(./document.aux) (c:/texlive/2023/texmf-dist/tex/latex/base/ts1cmr.fd)
! Undefined control sequence.
\S@10 ->\gdef \tf@size
                       {10}\gdef \sf@size {7}\gdef \ssf@size {5}
l.8 \wordcloud{(\\LaTeX,10);(test,6)}

?

Wordclouds with just plain text work as expected. Apologies if I'm missing something obvious.

chupinmaxime commented 11 months ago

I'm on holiday but I ll look at that. Thanks

chupinmaxime commented 10 months ago

Normally, the last version fixes that (sent to the CTAN). Thanks again.

mbertucci47 commented 10 months ago

Thanks!