Python is a general-purpose, interpreted high-level programming language.
7
votes
2answers
745 views
Set fonts in matplotlib graphs equal to tex document
I am writing my PhD in LaTeX and I am generating all my graphical content in Python with the matplotlib package. For my TeX document, I am using a math-supported font -- e.g. Kurier Light Condensed -- ...
12
votes
3answers
563 views
Automatic document update
As many of you I do quite a bit of teaching to make living. The worst part of the semester is usually beginning when I create and upload course Syllabi as well as the end of the semester when I ...
5
votes
4answers
1k views
Generate LaTeX Truth Table with Python Cheetah
While looking for code which can automatically generate truth table in LaTeX I stumbled on this Python generator. It appears that the code can be used from Cheetah's framework. Can anybody point me to ...
10
votes
3answers
2k views
Using Python within LaTeX and accessing its variables
I have used the python package to include Python in my LaTeX document which works fine.
I am trying to access the Python variables/calculations outside of \begin{python} ... \end{python}, without ...
12
votes
1answer
775 views
Embedding python in tikz
I just discovered the python package, and I'm trying to use it in Tikz code. Unfortunately, this doesn't work:
\documentclass[oneside]{memoir}
\usepackage{pgfplots}
\usepackage{python}
...
8
votes
2answers
1k views
How to highlight Python syntax in LaTeX Listings \lstinputlistings command
I am using package listings to import my Python source code into my LaTeX document. I use the command \lstinputlistings. I have a Python source like
class MyClass(Yourclass):
def __init__(self, ...
0
votes
1answer
205 views
DB dump into LaTeX with Python and R?
I have quite a large index. I am planning to create a full-blown DB for it and later export the information to LaTeX. I am comfortable with R and Python so I would like to work with them but I feel ...
2
votes
2answers
750 views
Unable to use python.sty package
When compiling a .tex file that uses python.sty package and contains:
\begin{python}
...
\end{python}
I keep getting an error:
./main.tex:33:I can't find file 'bin/main.py.out' \end{python}
...
