aslushnikov / latex-online

Online latex compiler. You give it a link, it gives you PDF
http://latexonline.cc
MIT License
497 stars 89 forks source link

Feature request: Allow additional files in compile url #6

Closed Toflar closed 10 years ago

Toflar commented 10 years ago

Hey,

Very cool work, thanks a lot! I know I can use the git compile feature for latex conversion with includes but sometimes this just seems to tedious. Especially when you dynamically generate content or only have one include it's just too much work to set up a git repository etc.

Would it be a big issue to add POST request handling for additional files so I can request latex to add 100 images and/or includes? :)

curl \
  --form tex=@tex.tex \
  --form includeFile[]=@logo.jpg \
  --form includeFile[]=@another_tex.tex \
  --form includeFile[]=@a/file/in/a/subdirectory/file.jpg \
  http://latex.aslushnikov.com/compile

Usage within the tex.tex would simply be

\includegraphics[width=2cm]{logo.jpg}
\include{another_tex.tex}
\includegraphics[width=2cm]{a/file/in/a/subdirectory/file.jpg}
aslushnikov commented 10 years ago

Hey @Toflar,

Check out laton script - it allows you to compile a set of local files. Does it work for you?

Toflar commented 10 years ago

Totally missed the tarball feature! That's all I needed! :)