Open catauggie opened 1 year ago
Hello! A bit delayed, but I just tested the following and it appears to work. Hope this helps!
$ cd <directory-path>
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install pylatex
$ pip install pdflatex
$ nano test.py
from pylatex import Document, Section, Subsection, Command
from pylatex.utils import italic, NoEscape
from pdflatex import PDFLaTeX
doc = Document('test_limit') doc.append('a dog') doc.generate_pdf('my-pdf')
3. Write out and exit nano
4. From command line
$ python3 test.py
It should write out the following .pdf to `<directory-path>`
[my-pdf.pdf](https://github.com/JelteF/PyLaTeX/files/13190668/my-pdf.pdf)
I did installing pdflatex but it still get error when running code
how to solve this problem?
Try to launch basic simple example from Jupyter Notebook:
Usage
latexmk [options] [filename]
latexmk: error: no such option: --pdf CalledProcessError: Command '['latexmk', '--pdf', '--interaction=nonstopmode', 'C:\Users\ivan\test_limit.tex']' returned non-zero exit status 2.
how could it be solved?