Skip to main content

Questions tagged [python]

Python is a general-purpose, interpreted high-level programming language.

Filter by
Sorted by
Tagged with
7 votes
1 answer
163 views

I’d like to have a solution environment that does the following: It writes the contents of the environment to an external file \jobname.py. All the solutions should be in the same file \jobname.py. ...
Colas's user avatar
  • 7,654
3 votes
1 answer
175 views

I have a question . When I use pygments dark style material , I notice that many words are invisible when displaying LaTeX/text source code , since the key/value pairs are all black . These dark ...
YCH817's user avatar
  • 159
0 votes
1 answer
79 views

For some reason, in the code below, LaTeX is overwriting my .py file although I am just trying to call the .py file. Here is the contents of the pycode_batch_noreg.py file: import network3 from ...
Joe's user avatar
  • 9,152
0 votes
0 answers
54 views

I wrote an introduction note about python, which included something like the following ... \usepackage{pythonhighlight} ... the following indentation works in python \begin{python} a=5 if a==4: ...
William Wang's user avatar
3 votes
4 answers
239 views

I’m looking forward to running the memoize package to reduce my compile time, but after several days of research, I’m clueless. This is my first Python rodeo, so I may be missing something that to ...
RosesBouquet's user avatar
0 votes
0 answers
177 views

I’m writing a report in Overleaf, and I want the fonts in my Matplotlib plots (legends, axis labels, and tick labels) to match the font used in my Overleaf document. So I won’t have to squint to see ...
CovetTachi's user avatar
1 vote
1 answer
87 views

So I have some code blocks like the followings \begin{lstlisting}[language=Python, caption={Ejecución de prueba}] altura_lista = altura.tolist() peso_lista = peso.tolist() w, b = train(altura_lista, ...
6Cript's user avatar
  • 11
0 votes
0 answers
380 views

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 ...
astra inclinant's user avatar
0 votes
0 answers
122 views

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 ...
Uwe Brauer's user avatar
0 votes
0 answers
48 views

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 ...
Nate3384's user avatar
  • 381
0 votes
2 answers
85 views

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} \...
Sirjon's user avatar
  • 111
0 votes
0 answers
819 views

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(...
Paine Pice's user avatar
0 votes
0 answers
71 views

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, ...
picgon's user avatar
  • 1
0 votes
1 answer
138 views

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]$')
remusconnor's user avatar
0 votes
1 answer
128 views

I have several pdf images that I have generated with matplotlib. I want to be able to arrange them in an arbitrary grid. For this purpose I have written a python script that in turn writes and runs ...
operator's user avatar
0 votes
0 answers
84 views

I'm writing a document using Python code and I want to make it like IDLE style. With minted, we can custom the environment so that each line of code starts with >>>, however, I want >>&...
trequartista's user avatar
  • 1,930
2 votes
1 answer
869 views

Problem I've made a custom lexer for a pseudocode language in Python (3.11). The file is saved in the same directory as my TeX project. I am using pdflatex to compile my project, and it has the --...
BrightBulb123's user avatar
1 vote
0 answers
162 views

I'm getting an "undefined control sequence" error for \UTFviii@loop whenever I use both the ucs package and the hyperref package under XeLaTeX (and LuaLaTeX). (I understand \UTFviii@loop has ...
Stuart's user avatar
  • 105
0 votes
1 answer
359 views

I am working on automated templates, and I want to use latexmake with luaLaTeX, as suggested in a comment on this question, where I attempted a similar setup with XeLaTeX. However, I am facing ...
Balansoire's user avatar
1 vote
1 answer
448 views

After downloading the Minted and Pygmentize packages for TeXstudio, I am experiencing an error: File 'pygmentize.sty' not found. \begin. Here is the code for my document so far: \documentclass{...
mandjelo's user avatar
0 votes
1 answer
779 views

I'm used to typing typographically correct English quotation marks as follows: ``text goes here" In usual LaTeX documents this will work, no questions asked. When I use Markdown in Jupyter ...
TiMauzi's user avatar
  • 879
2 votes
0 answers
100 views

I am using listings for code formatting and colouring in a document I'm working on, including a lot of Python code. I would like for decorators to be displayed in a specific colour but for the @ ...
Bermudes's user avatar
  • 121
2 votes
1 answer
308 views

I am plotting the following figure using Python and I obtain this render: Here, Python is automatically adding an constant value offset (+9.192682e9) on the y axis to read more easily the data. Now, ...
Clement's user avatar
  • 21
0 votes
1 answer
535 views

I have txt file with table format, I did it in python but now I have to export this table to Latex but I don't know how. I'm not good at all in latex so I'll appreciate if you help me. Thank you!
Hache 99's user avatar
2 votes
1 answer
133 views

pythontex causing error with \subfigure environment. I have to rewrite my dissertation with many figures and subfigures, of which some are plotted with python inside LaTeX (I had to give up the python ...
khaz's user avatar
  • 155

1
2 3 4 5
10