Replies: 4 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Please find below a small example.
The typesetting doesn't finish, I think. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the example. As far as I understand, Turtle creates a Tkinter canvas for drawing, which is shown in its own window. There is no way for LaTeX to know that the Python code creates an image which you want to include in the document. The code could look something like this (not tested) \documentclass{article}
\usepackage{pyluatex}
\usepackage{graphicx}
\usepackage{epstopdf}
\begin{document}
\begin{pythonq}
import turtle
... your code ...
turtle.getscreen().getcanvas().postscript(file='image.eps')
\end{pythonq}
\includegraphics{image}
\end{document} |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint, but the typesetting doesn't finish with the following code.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I found an example for using
Matplotlib
together withpyluatex
. Does there exists a way to print the result of a turtle figure ?Beta Was this translation helpful? Give feedback.
All reactions