-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support for PDF output #26
Comments
Nice! I haven't even considered adding PDF support at all so far. I'm not sure I understand option 1 and 2. So bear with me ... One of the two options is probably that Also, the link format can be change within PAX based on the format if needed. |
Both option 1 and 2 would use Pandoc behind the scenes, but option 2 would be more forwards-compatible if PDF output were ever implemented in some other way, with some other PDF generator. The only difference between options 1 and 2 is the name of the As for specific output formats, Pandoc can generate much more than just PDF, in particular epub, so that would be something to keep in mind if we were to add a
Indeed, I have been using v1 links, which are directly usable in LaTeX's |
Thanks for the clarification. I think As to where anchors go, it's a simple change in |
I think it would be good to expose
(defvar *pandoc-metadata-block*
'(("title" "MGL-PAX Manual") ; or ("title" . "MGL-PAX Manual")
("author" "Gábor Melis")
;; ...
)) This would make it easier for users to replace certain parts of a block than if it were one string. By default, though, the variable would be If conditionalizing the output is as simple as Callers of |
This all sounds very reasonable to me. And yes, I think this would be a great feature. |
I have managed to generate quite acceptable PDF output from MGL-PAX documentation by feeding its Markdown output to Pandoc with a Lua filter that I wrote. In particular, the filter rewrites the links generated by MGL-PAX into appropriate LaTeX labels and phantomsections, so that clicking on them within the PDF jumps to the right place.
If PDF support is a desired feature for MGL-PAX, I can think of three ways to proceed:
:PDF
format toPAX:DOCUMENT
and accept that the only practical way to get PDF output is by relying on Pandoc.:PANDOC-PDF
or:PANDOC
formats toPAX:DOCUMENT
, where the specific output format in the latter case is specified elsewhere.contrib/
directory where we add the Lua filter that I wrote so that users wishing to generate PDF output with Pandoc can benefit from it.What are your thoughts?
The text was updated successfully, but these errors were encountered: