store2be / pape-rs

A Latex template to PDF generation web service written in Rust.
https://store2be.github.io/pape-rs/
MIT License
75 stars 4 forks source link

Explain difference of pape-rs to similar projects #39

Open peterfication opened 7 years ago

peterfication commented 7 years ago

Just a short google:

tomhoule commented 7 years ago
tomhoule commented 7 years ago

The most advanced seems to be clsi-sharelatex, since it supports assets and different backends, including xelatex, but it's not stateless (requires MySQL).

peterfication commented 7 years ago

I like the handling of assets of clsi-sharelatex:

{
    "compile": {
        "options": {
            // Which compiler to use. Can be latex, pdflatex, xelatex or lualatex
            "compiler": "lualatex",
            // How many seconds to wait before killing the process. Default is 60.
            "timeout": 40 
        },
        // The main file to run LaTeX on
        "rootResourcePath": "main.tex", 
        // An array of files to include in the compilation. May have either the content
        // passed directly, or a URL where it can be downloaded.
        "resources": [{
            "path": "main.tex",
            "content": "\\documentclass{article}\n\\begin{document}\nHello World\n\\end{document}"
        }, {
            "path": "image.png",
            "url": "www.example.com/image.png",
            "modified": 123456789 // Unix time since epoch
        }]
    }
}
tomhoule commented 7 years ago

They have the opposite approach to ours for the "entrypoint". In this example the output will be called main.pdf (there doesn't seem to be any way to configure that from the latex CLI).

edit: The more explicit specification for asset paths and name may not be a bad idea.