-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for use of ConTeXt writer to generate PDFs #2463
Comments
This could be done. It's a bit more complex than with +++ Andrew Dunning [Oct 19 15 08:00 ]:
|
Brilliant. I'll see what can be done to improve the ConTeXt template. |
@adunning I've added a section "ConTeXt variables" to the README. So, if you improve the ConTeXt template (e.g. adding a linkcolor variable and perhaps changing the default away from that garish blue), you can document variables there. |
Thank you! Will update the README after you evaluate https://github.com/jgm/pandoc-templates/pull/138 (I have also written the ConTeXt list to see whether I can get additional scrutiny for this). |
Are there any plans to add a few tests for ConTeXt? |
+++ Ophir Lifshitz [Oct 20 15 09:44 ]:
There are tests for context. You mean tests for PDF |
Yes, that's what I meant. Sorry, I didn't realize there weren't even tests for LaTeX PDF generation. |
It's a bit difficult to write tests for PDF gen, +++ Ophir Lifshitz [Oct 20 15 10:28 ]:
|
@jgm Its possible to some testing of PDF's including whether or not two docs are a visual match (no matter what the binary blobs look like. One tool that does this is |
In the search for a more lightweight and reliable method to generate PDFs in parallel to LaTeX (#1839), it occurs to me that ConTeXt offers a solution that is mostly implemented already. I assume that allowing the use of something like
pandoc x.md -o x.pdf -t context
to generate a PDF without the accompanyinglog
andtuc
files would be straightforward (this gives the errorcannot produce pdf output with context writer
under 1.15.1.1).For someone who simply wants a decent PDF without any fiddling, this has the advantages that the download is ca. 200 MB, in the same range as BasicTeX, but one doesn't have to worry about missing packages (also included in TeX Live); one doesn't have to worry about Unicode; and the default page layout has margins closer to what a user of MS Word would expect in comparison to the
article
document class (though less ideal from a design perspective).The text was updated successfully, but these errors were encountered: