maennchen / iona

Document generation from Elixir, using LaTeX. (Alpha: Do not use in production yet.)

Home Page:https://hex.pm/packages/iona

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add binary include option

D4no0 opened this issue · comments

As stated in documentation for additional external files for processing:

When providing a file path, you can also define additional files needed for processing. They will be copied to the temporary directory where processing will take place.

Iona.source(path: "/path/to/document.tex",
            include: ["/path/to/document.bib",
                      "/path/to/documentclass.sty"])

I have an use-case where I can pass the includes only as binary, to avoid creating temporary files on my end, I think an option like the following should be added:

Iona.source(path: "/path/to/document.tex",
            include: [path: "/path/to/document.bib",
                      binary: {binary, "virtualpath/documentname.sty"}])

@D4no0 If I understand this correctly, you propose the dynamically create the given binary while compilation and remove it at the end?

If yes, a PR is welcome :)