Questions tagged [pylatex]

pylatex is a Python library for generating LaTeX code.

Filter by
Sorted by
Tagged with
1
vote
0answers
22 views

Too many subfigures, counter too large in pylatex

I am trying to create a figure that has more than 26 subfigures using pylatex. I understand from other posts such as Counter too long subfigure that the way to fix this in a normal LaTeX editor would ...
0
votes
1answer
57 views

setting different margins for Pylatex sections

I would like to set different margins for different sections of a Pylatex document (incl header, sections and subsections). I'm new to latex I am currently setting my geometry options as follows, ...
1
vote
0answers
69 views

How to add copyright symbol in pyLaTeX? [closed]

I'd like to use the copyright symbol in PyLaTeX. I tried using "\textcopyright" but the \t is being interpreted as a tab, resulting in a .tex file which contains only extcopyright. Is there a way to ...
0
votes
0answers
101 views

Display content in two-column layout in PyLaTeX?

How to use \usepackage{multicol} in PyLaTex? What to write in python? \begin{multicols}{2} Column 1 \columnbreak Column 2 \end{multicols} I have found a way to display content in two-columns using ...
0
votes
1answer
127 views

df.to_latex() table width pylatex

i am using Pylatex in order to generate automatic reports. In order to generate Table from a dataframe i am using the following function: def createTable(doc,df,TableTitle): with doc.create(...
0
votes
0answers
43 views

Using PyLatex to create importable Tex files

Using PyLaTex, I currently I have to use an editor to strip off the "/usepackage{'foo'}" statements from PyLaTex generated external tex files so that my main.py file can open, read and append each ...
1
vote
1answer
149 views

pylatex: how to apply {\centering <x> } around graphic?

I am trying to create the following code with PyLatex: { \centering \includegraphics{image.png} } I am not able to 'group' the \centering command with the curly brackets around the \includegraphics; ...
1
vote
0answers
139 views

How to use a TikZ generated figure as a LaTeX command with parameters?

I have to create a gallery of images with contacts of personalities in LaTeX. For that purpose I'm using a MySQL database so I need to use PyLaTeX to generate my LaTeX file. But there is the issue: I'...
0
votes
1answer
376 views

pylatex Command

I'm using pylatex and I need to attach a logo in the header. I want to use this latex example: \documentclass{article} \usepackage[tmargin=3cm,lmargin=3cm,rmargin=2cm]{geometry} \usepackage{...
1
vote
1answer
253 views

PyLatex - Using Only Table Rather Than Whole Document

I have created a document base on this example. But I want to use only table part rather than whole document. I have spent plenty of time libraries of PyLaTeX. I could not find how I can do.
2
votes
1answer
610 views

Multiple Page PDF Export Issue With pylatex

Multiple page issue: I am trying to export a multiple page pdf and there seems to be an error. I cannot find the source... I suppose that it is because of the text " âchemical exchangeâ " where non ...
1
vote
1answer
340 views

Form Fill Rest of the Page pylatex

I have the following pylatex cod: import pylatex as pl from pylatex.utils import NoEscape from pylatex import Command from pylatex import Package from pylatex import Figure import os videoNumber = 1 ...
3
votes
1answer
628 views

pylatex Change Font

How do I change the font to "helvetica" in pylatex ? I tried it, but this does not worK: doc = pylatex.Document(fontenc = 'helvet')
1
vote
1answer
490 views

How to set the subfigures centered using Pylatex?

I have been using Pylatex package in Python to generate reports in pdf format, but I got a problem in how to set the position of subpictures at a report without to use the full size width of page (...
2
votes
1answer
1k views

How to create an editable field in a pdf using python latex?

I'm looking forward how to insert editable empty fields in the final pdf. In TexStudio I got this simple example of using forms: Multi-line Comment Boxes in Interactive PDFs with LaTeX \documentclass[...
1
vote
1answer
417 views

Using other languages with Pylatex

I'm trying to get hebrew to pring into a pdf using pylatex. In a sample hebrew .tex file that I'm trying to emulate the format of, the header looks like this: %\title{Hebrew document in WriteLatex - ...
2
votes
1answer
267 views

Adding bibliography in pylatex

I am interested in using PyLatex to automatize a table with several entries in such a way that I don't need to go through it manually every time that I need to change or add an entry. In the last ...
2
votes
1answer
1k views

pylatex: is it possible to only create LaTeX fragments, not complete documents?

I would like to use pylatex to create only fragments of LaTeX (i.e., give a nice math-style format to a numpy array) for inclusion into another doc (i.e., Jupyter notebook). It is easy to embed LaTeX ...
0
votes
2answers
2k views

Options in documentclass in pylatex

I do not understand the documentation of pylatex. I'm using pylatex. How do I change the page orientation and font size?
3
votes
2answers
4k views

how to print a data frame from pandas using pylatex

I have a Pandas DataFrame Object. I want to print it in a PDF file with pylatex. How should I do it?