TeX - LaTeX Asked by Charuka Herath on August 23, 2021
I am using LaTeX inside a Docker container to generate a PDF. As per the result the PDF generates successfully. But making targets did not complete. The error is as below.
My dockerFile is as follows.
FROM python:3
ADD pdf-generator.py /
RUN pip install boto3
RUN pip install sqs-polling
RUN pip install PyMySQL
RUN pip install PyLaTeX
RUN pip install pdflatex
# RUN pip install latexmk.py
RUN apt-get update
&& apt-get install -y
texlive-full
biber
latexmk
&& apt-get clean
&& rm -rf /var/lib/apt/lists/*
CMD [ "python","-u","./pdf-generator.py" ]
My code is as follows.
with open(texFile) as file:
tex= file.read()
# Generate PDF here
doc = Document('output')
doc.append(NoEscape(tex))
doc.packages.append(Package('graphicx'))
doc.generate_pdf(clean_tex=False)
Can someone help me with this issue?
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP