Created
January 2, 2020 05:06
-
-
Save Vopaaz/fb5ad4f4bcb4c12ef33a3f8bb245f152 to your computer and use it in GitHub Desktop.
Compile LaTeX online using https://latexonline.cc/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from urllib.parse import quote | |
content = quote(r''' | |
\documentclass{article} | |
\title{Title} | |
\author{Author} | |
\date{\today} | |
\begin{document} | |
\maketitle | |
Content | |
\end{document} | |
''') | |
r = requests.get("https://latexonline.cc/compile?text=" + content) | |
print(r.status_code) | |
with open("res.pdf", "wb") as f: | |
f.write(r.content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment