-
-
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 with LaTeX default template #4675
Comments
Please ask questions this on pandoc-discuss. This tracker is for issues only. (btw, not sure what you're asking anyway... seems like you got it working somehow) |
Hi, sorry if I wasn't clear. My point is that the default.latex template could be improved with : $if(subtitle)$
\makeatletter
\providecommand\subtitle[1]{\renewcommand\@subtitle{#1}}
\providecommand\@subtitle{\@latex@error{No \noexpand\subtitle given}\@ehc}
\makeatother
\subtitle{$subtitle$}
$endif$ instead of $if(subtitle)$
\providecommand{\subtitle}[1]{}
\subtitle{$subtitle$}
$endif$ |
jgm
pushed a commit
that referenced
this issue
Jan 11, 2019
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When I override
\maketitle
using header-include with this code :I get the following error with pandoc 2.2.1:
It works if I use a modified default.latex template with :
I don't know if this code could have any side effect ; I don't understand it well enough. I got it from here.
As for a workaround, putting the
\providecommand
s in header-include works.The text was updated successfully, but these errors were encountered: