latex
latex copied to clipboard
Python wrappers for calling LaTeX/building LaTeX documents.
fixes issue #37
There are three `SyntaxWarning`s that show up when running using this library. ``` .venv\Lib\site-packages\latex\jinja2.py:28: SyntaxWarning: invalid escape sequence '\B' 'block_start_string': '\BLOCK{', .venv\Lib\site-packages\latex\jinja2.py:30: SyntaxWarning: invalid escape sequence '\V' 'variable_start_string': '\VAR{', .venv\Lib\site-packages\latex\jinja2.py:32:...
It is a drag and also it is no longer maintained
Before this change, 2 errors were produced running pytest: pytest error ``` ??? E latex.exc.LatexBuildError: This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2022/dev/Debian) (preloaded format=xelatex 2023.6.1) 9 DEC 2023 12:40...
Added lualatex based on your code for xelatex. I'm not an expert, but when I tried to do nasty things like using Luas os.execute() or \write18, I did not succeed....
Im getting error when i build PDF from latex file which has # symbol Latex file \newcommand{\clientCompanyAddrs}{#222,Paradise} output with Error
i have multiple latex file so thats a reason. report_base.tex hold multiple latex file. for example. **report_base.tex** contains : ``` \begin{document} \input{\VAR{report_dir}titlepage.tex} \end{document} ``` ==================================================== **titlepage.tex** contains : ``` \section{Project...
This PR Fix #32. Trying to execute the command in the console without `-interaction=batchmode` pdflatex say that the file does not exist. I noticed that in Windows 2016 the temp...
Hello, I used the same code on LInux, Windows 10 and Windows 2016. On Windows 2016 the function build_pdf fails, without any log or output, as shown below for this...
If the escape filter is used for an undefined variable (e.g. `r'\VAR{foo|e}'` with `template.render()`), [latex.escape:61](https://github.com/mbr/latex/blob/f96cb9125b4f570fc2ffc5ae628e2f4069b2f3cf/latex/__init__.py#L61) will raise an error: `TypeError: expected string or bytes-like object`. This PR should fix it.