-
-
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 undefined when converting reStructuredText to PDF #1327
Comments
I'm surprised this hasn't popped up before as it looks like the current implementation isn't right. If you want a quick fix then change |
That's quite funny; I just came across the same issue myself (though when defining a subtitle using the YAML block). Thanks for the fix. It should be noted that one can simply add |
Rather than depending on KOMA-Script (which provides scrartcl), I
+++ mpickering [Jun 09 14 10:05 ]:
|
Whatever you think: using \subtitle is certainly more elegant, and it might not be much of an issue, since KOMA-Script is even included with BasicTeX. But I'm still very new to TeX. It would, overall, be really nice to have something that provides better PDFs by default in pandoc (and one that didn't trip so often over Unicode), but scrartcl isn't an incredible improvement over the standard article class. |
pandoc 1.12.2.1
|
You need to upgrade to 1.13.2 to get the fix. |
The old code really requires scrartcl from koma-script. Closes #1327.
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.
The following reStructuredText document causes an error (note addition of the subtitle):
The
rst2latex.py
provided by docutils works as expected, thePandoc User's Guide
is generated as a large title, withPandoc Subtitle
below that as a subtitle.Synopsis
is then a top-level header.The issue occurs both with pandoc 1.12 and 1.12.4, installed from gentoo repository.
The text was updated successfully, but these errors were encountered: