Closed aviks closed 4 years ago
I hoped no one would have ever opened this issue... :sob:
The problem is that the *TeX compilers without thes style files is pretty useless, and entering in the business of managing them is not very entertaining
The problem is that the *TeX compilers without thes style files is pretty useless, and entering in the business of managing them is not very entertaining
True. But for a start, here is what pandoc says it needs, and I think that would be sufficient for the majority of our needs:
When using LaTeX, the following packages need to be available (they are included with all recent versions of TeX Live): amsfonts, amsmath, lm, unicode-math, ifxetex, ifluatex, listings (if the --listings option is used), fancyvrb, longtable, booktabs, graphicx (if the document contains images), hyperref, xcolor, ulem, geometry (with the geometry variable set), setspace (with linestretch), and babel (with lang). The use of xelatex or lualatex as the PDF engine requires fontspec. xelatex uses polyglossia (with lang), xecjk, and bidi (with the dir variable set). If the mathspec variable is set, xelatex will use mathspec instead of unicode-math. The upquote and microtype packages are used if available, and csquotes will be used for typography if the csquotes variable or metadata field is set to a true value. The natbib, biblatex, bibtex, and biber packages can optionally be used for citation rendering. The following packages will be used to improve output quality if present, but pandoc does not require them to be present: upquote (for straight quotes in verbatim environments), microtype (for better spacing adjustments), parskip (for better inter-paragraph spaces), xurl (for better line breaks in URLs), bookmark (for better PDF bookmarks), and footnotehyper or footnote (to allow footnotes in tables).
There is an R package called TinyTeX which does this, I think. Might be worth looking into.
I think it is best for pandoc to depend on a system provided latex. Does TinyTeX work on all platforms?
Is TinyTeX sufficient for pandoc?
Having read a bit more about TinyTeX, it certainly looks like the way to proceed. It uses tlmgr
to download any other tex packages.
It may be some work to get it to live inside the Julia artifacts - but perhaps can help a lot of other packages if we can it going.
perhaps can help a lot of other packages if we can it going.
Documenter and Weave are the two biggest potentials clients for this.
TinyTeX looks straightforward to work with. It basically is a wrapper around tlmgr
which it uses to then bootstrap the distribution. They basically have a unix and windows script.
It may not be too difficult to package this up for BB. We should use the upstream provided binaries.
Yeah, I have it mostly working. Should be able to get it out for testing over the weekend
Do you have a WIP repo or PR somewhere?
Do you have a WIP repo or PR somewhere?
Ah, I see I left people hanging with my previous comment, sorry. Soon after that comment, Michael Hatherly published Tectonic.jl which pretty much does what I was planning to do with TinyTex. It's not binary-built, but is still a self contained install. So I'd suggest using that. I'll close this issue.
It's not binary-built, but is still a self contained install.
1673
Ah, well, the world moves too fast for me, it seems. I stand corrected. Thanks Fredrik!
This may be difficult (or even impossible) but worth trying?
The minimal system would probably include a working
pdflatex