Skip to main content

All Questions

Tagged with
1 vote
1 answer
27 views

LaTeX Minted Package with Pygments in Texifier on MacOS

I have already installed the MacTeX distribution on Mac, but when I used minted package, it throws out the following error: Package minted Error: You must have `pygmentize' installed to use this ...
Julia's user avatar
  • 13
0 votes
0 answers
23 views

Generating PDF Reports with Mathematical Expressions Using Python

I'm working on generating a report that includes numerous mathematical expressions such as matrices, vectors, and equations. I'm planning to use Python for this task. One of the most commonly used ...
Siddhu's user avatar
  • 48
-1 votes
1 answer
61 views

Is there a way to convert latex to pdf only with python? (without having to locally install anything) [duplicate]

I am building a mathematical software with PyQt, and I would like to provide the users with a result written in LaTex and also the compiled version of it in PDF. However, I can't find a way to do so. ...
Lavínia Beghini's user avatar
0 votes
1 answer
35 views

Quarto ignoring LaTeX commands when formatting table

I am rendering a PDF with quarto and python. I want to include a line break in a column header, but the commands are not being processed when the document is compiled. I have tried: import pandas as ...
Nick Crouch's user avatar
0 votes
2 answers
90 views

Replace parts of a text file using a for loop

I'm using the pylatexenc library to parse a LateX file (.tex) into nodes (tuples). For every node that matches a condition, the LateX code corresponding to said node is deleted or replaced. How can I ...
Timothy Roes's user avatar
0 votes
1 answer
40 views

How to Resolve 'ascii' Codec Can't Decode Error When Generating Confluence Document with LaTeX Formulas Containing Cyrillic Characters Using Sphinx?

I am trying to generate a document for Confluence. The source data is an RST document containing LaTeX formulas, which sometimes include Cyrillic characters. Here is my conf.py configuration file: ...
roman's user avatar
  • 55
0 votes
1 answer
57 views

Matplotlib LaTeX preamble not correctly interpreted

I was trying to use a custom LaTeX preamble with matplotlib, but it raises ValueError: Key text.latex.preamble: Could not convert ['\\usepackage{siunitx}' ...] to str For some reason, the \ are ...
mapf's user avatar
  • 2,018
0 votes
1 answer
51 views

Print square root symbol

I'm looking for a way to print square root symbol without any value under it. I'm using python's matplotlib package version 3.9. The code that I'm using to get the symbols is this: def text_to_rgba(s, ...
Hashim's user avatar
  • 97
0 votes
0 answers
28 views

Formatting LaTeX in Dash AG Grid headers and cells in Python

I'm trying to format my headers and cells to LaTeX/Markdown using the single $ inline notation. For example, a header might look like: $\alpha$ = 0.5 While a cell might look like: This is data: $\...
python_loser's user avatar
0 votes
0 answers
24 views

How to remove new line character from Latex template if data is not available

Original question in Tex: https://tex.stackexchange.com/questions/719107/how-to-remove-new-line-character-from-latex-template-if-data-is-not-available?noredirect=1#comment1787948_719107 But I have ...
Crypto Man's user avatar
0 votes
1 answer
78 views

Converting LaTeX expression to PNG files

Currently, my partner and i are compiling a function to convert LaTeX mathematical expressions to PNG files, using Python as the programming language and XeLaTeX as the LaTeX compiler. Here is my code....
Hoàng Nguyễn Thế Hiển 11A2's user avatar
1 vote
1 answer
100 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 stop ...
L_physics's user avatar
0 votes
0 answers
26 views

Counting words in a LaTeX document without code blocks

I have a document that I am writing that involves a lot of code blocks written as : \begin{python} # Some code \end{python} Using the listings package to form this into code blocks. I want to get a ...
bemy's user avatar
  • 11
0 votes
0 answers
34 views

Why does the shape of the DataFrame change when I write in LaTeX?

When I try writing all 3 arguments of the column 'Function' in LaTex, I can only write the 2 former without having the shape of the output vary. These are the different results: error = (pd.DataFrame({...
user24835356's user avatar
2 votes
1 answer
52 views

Trying to display a piecewise function in a matplotlib.pyplot label

Latex works in a latex editor but not as plot label.I am graphing a function using matplotlib.pyplot and I am using latex for the label. I am graphing a piecewise function and I am trying to label it ...
Arthur Conlan's user avatar

15 30 50 per page
1
2 3 4 5
69