Write LaTeX documents
Project description
wunlatex
Library for LaTeX document writing
from pathlib import Path
import wunlatex
import pandas as pd
from matplotlib import pyplot as plt
doc = wunlatex.Document("Test")
df = pd.DataFrame([(1, 2, 3 , 4)], columns=["One", "JJJ", "LKAS", "ONENEE"])
tbl = wunlatex.components.Table("Random Numbers", df)
doc.add_component(tbl)
# Sections within other sections are subsections, then subsubsections etc.
doc.add_component(
wunlatex.components.Section("First", components=[
wunlatex.components.Section("Subsection 1", components=[tbl]),
wunlatex.components.Section("Subsection 2", components=[
wunlatex.components.Section("SubSubSection 3")
])
])
)
fig, ax = plt.subplots()
ax.plot([1, 1], [0, 1])
figname = Path(__file__).parent / "testfig.png"
plt.savefig(figname)
f = wunlatex.components.Figure("Test Fig", path=figname)
doc.add_component(f)
doc.compile(Path(__file__).parent, filename="Testpdf")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wunlatex-0.1.1.tar.gz
(7.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wunlatex-0.1.1.tar.gz.
File metadata
- Download URL: wunlatex-0.1.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.5 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a271f8d043a95b428a8d5704be0bb5fc8566831c341f594fbeba52d42c4f1fb2
|
|
| MD5 |
1bfe30838cce2bd0ea241eeb73113b70
|
|
| BLAKE2b-256 |
e3218f1a4cdef4e849326616d21d8485b14a1f23fb777c5dc4a40eeb6b3edca8
|
File details
Details for the file wunlatex-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wunlatex-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.0 CPython/3.11.5 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a3353a874b4dc211339366a7bf7e5ce18f8e295feb1e50fc46cab493fc3a355
|
|
| MD5 |
9bd9d1e187fd41960b016b5ba9aba35f
|
|
| BLAKE2b-256 |
8d919cf7c076c7f7824a21c249e4b9db7d90735ab78430db78593567dd82f65a
|