Questions tagged [python]
Python is a general-purpose, interpreted high-level programming language.
455
questions
0
votes
0
answers
14
views
"An associated PostScript font (required by Matplotlib) could not be found for TeX font 'zptmcm7y' in
An associated PostScript font (required by Matplotlib) could not
be found for TeX font 'zptmcm7y' in
'C:/Users/Admin/AppData/Local/MiKTeX/fonts/map/pdftex/pdftex.map';
this problem can often be ...
0
votes
0
answers
70
views
using pylatex but it says no compiler found
So, I'm trying to use python to compile some latex. For this very basic pylatex code:
from pylatex import Document, Section, Subsection, Command
from pylatex.utils import NoEscape
# Create a new ...
0
votes
0
answers
39
views
PDF file generated by Latex, how to extract (matlab/python) source code (verbatim/listings)
This is a bit bizarre. I have to review a bunch of PDF files, generated by Latex (but I don't have access to the source files) and that includes
matlab or python code, that was included with listings ...
0
votes
0
answers
33
views
Can you use latexmk on Overleaf to generate multiple latex files?
I'm trying to shuffle multiple choice exams and choices. I've got python code but want to be able to run it on Overleaf.com. Tried with latexmkrc file below but couldn't generate multiple outputs. You ...
0
votes
0
answers
25
views
package pythonhighlight isnt rendering in LyX 2.3.7
when I use this package in LyX it doesn't render at all without raising any errors.
the same code on overleaf works completely fine and as intended.
here's a picture from lyx of the code itself and ...
1
vote
1
answer
88
views
pgf import in LaTeX not working due to matplotlib axes font
I was plotting as usual and then after saving one of my plots as a pgf and then compiling LaTeX it didn't work anymore. As far as I'm aware of, I didn't change anything it just so happen to top ...
0
votes
2
answers
44
views
Multi-colored and multi-bar grouped charts [duplicate]
I have a Python script that automatically generates LaTeX codes that plot bar charts. An example of the generated code looks like:
\documentclass[border=10pt]{standalone}
\usepackage{pgfplots}
\...
0
votes
1
answer
61
views
Reproducing Python/Programming Code Blocks with modification
I want to be able to reproduce this environment within the context of exam correction.
One clue I found is the usage of the bclogo package.
https://ctan.org/pkg/bclogo
Howerver, I would like to ...
0
votes
0
answers
192
views
Manim Latex error converting to dvi
I'm not able to use Latex on Manim due to an error converting dvi. I saw other post about this and I change my code but it still does not work. Here is my code :
from manim import *
class dvi_error(...
0
votes
0
answers
63
views
Rendering jupyter notebooks to PDF using LaTex generates unwanted characters?
Cross-posting on SO: https://stackoverflow.com/questions/78337970/fix-rendering-issue-when-converting-jupyter-notebooks-to-pdf. I bring this question over TeX sub as it may be also relevant and ...
0
votes
0
answers
36
views
Matplotlib - Latex Premable Package not loading
I want to use LaTeX in the x-label of a plot. I need the label to be \varepsilon with a subscript that is a smaller version of the \parallel symbol. This is what I have tried but it does not work, I ...
1
vote
2
answers
82
views
How to avoid code block splitting over 2 pages with Minted
I was wondering if there is a simple way to insert a page break when a too long Python code has a function splited over 2 pages and won't fit inside current page?
The page break should be placed just ...
0
votes
0
answers
37
views
Link on pdf triggers .sh/.py/.bat
I have been looking for a while for a solution in LaTex. My intention is to create a link inside a PDF generated with LaTex that triggers a .sh/.py/.bat by clicking in the link. Not like \write18, ...
2
votes
1
answer
104
views
Hiding python comments with Listings
I want to include Python code to be formatted with listings but I just want the code neat and compact. No comments shall be printed at all, as well as no empty lines.
The easy way would be to strip ...
0
votes
1
answer
41
views
Unable to write a fraction in JupyterLab
I am trying to write a fraction inside the superscript of a variable (in my case $frac{1}{3}$.
I get a long error:
plt.ylabel('$\\frac{\delta T}{\delta t}$ $[^oR/min]$')