I am looking for a way to write latex inside a figure drawn with turtle graphics. It doesn't accept it in the turtle.write() command. Is there another way to do that?
Neither Python nor
turtle have any knowledge of LaTeX. As workaround:
Write a LaTeX file (e.g. with class
standalone) from Python with the desired LaTeX text.
subprocess) the LaTeX file to an image format that is supported by
turtle (probably a bitmap format).
Include the generated image in