-
-
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
Subtitle (from YAML header) not appearing in PDF when converting from markdow #3896
Comments
From the MANUAL:
thus try:
|
Thank You! Saved my life -- several hours of it, anyway. You see, I'm one of them thar UNIX sysadmin types with the requisite 30 years of crotchety experience hacking around in arcane voodoo. I, too, saw that same paragraph in the manual yesterday, and I've spent the intervening hours trying to figure out what the heck a user is supposed to do. Latex docs, stack exchange, and the intertubes at large aren't much help with something this simple -- most latex conversation is between people writing masters theses, and is not specific enough to pandoc. Most of the examples I was able to find involve hacking around in the template, etc. This is the only example I've been able to find that shows how to do this simply using pandoc YAML. It might be worth adding it to that paragraph in the manual. |
Addresses closed issues #4675, #3896, #1327. This renders `\subtitle` using the `etoolbox` package if `\subtitle` is not already defined by the documentclass (as it is in beamer, KOMA, memoir classes). Based on an example from Enrico Gregorio, <https://tex.stackexchange.com/a/50186>. Update list of LaTeX packages. Note that `etoolbox` must be loaded outside the command definition. Putting it inside causes an error if `\title` is placed after `\begin{document}`. It's already loaded on LuaLaTeX/XeLaTeX in any case.
Pandoc: 1.19.2.1, Mac OS X 10.11.6
markdown file (f.md)
Output command
pandoc f.md -o f.pdf
Result
The subtitle is not shown in the PDF
The text was updated successfully, but these errors were encountered: