There was a question on tex.sx about the practical use of Lua in LaTeX. One example is getmap.sty
!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
% compile with pdflatex -shell-escape \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{graphicx} \usepackage{filecontents} % use overwrite while optimizing the image \usepackage[overwrite,mode=gm]{getmap} \begin{document} \begin{filecontents*}{berlin.epl} &path=weight:5|color:purple|enc:_xq_IcgrpA?AFE@?^BFE@A^U@CLQXEZU?gCR?B?DBF@@?vA?D?D?BAHE@JBN@JLGFCG[DC~C?@?F?R?vA?p@iB@i@Fe@JWRSTOf@Gh@C^A?e@?gE?w@r@?lB@hA?`@??M?aA?]dI??O?O?Cn@cBfBeF|AeEHNVNBc@H@H_AEwA?OAMNA@N \end{filecontents*} \getmap[file=berlin, language=de, xsize=400, ysize=600, markers={&markers=size:mid|label:H|color:green|Berlin, Hbf &markers=label:B|color:blue|Brandenburger Tor, Berlin}, pathfile={berlin.epl}]{} \includegraphics[width=6cm]{berlin} \end{document} |