Mi dem pylualatex Paket gibt es eine neue Möglichkeit, Python und LaTeX miteinander zu „verheiraten“. Das Besondere an diesem Paket ist, dass es keine zwei Durchläufe benötigt, sondern nur einen einzigen.

%!TEX TS-program = Arara
% arara: lualatex: {shell: yes}

\documentclass{article}

\usepackage[executable=python.exe,localimports=false]{pyluatex} 

\begin{document}

\py{2**2**2}

\end{document}

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined.

Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website

See also: Original Source by Uwe Ziegenhagen

Note: The copyright belongs to the blog author and the blog. For the license, please see the linked original source blog.