Hi,
At preamble part, The "@" sign is not expanded.
Please use \makeatletter before that like following:
'preamble': r'''
\makeatletter
\renewcommand{\maketitle}{
\begin{titlepage}
\noindent \Huge \@date \par
\end{titlepage}
}
\makeatother''',
Thanks,
Takeshi KOMIYA
2016年12月16日金曜日 8時41分56秒 UTC+9 Warren Block:
>
> On Thu, 15 Dec 2016, Warren Block wrote:
>
> > Is there an actual, complete example that shows the magical mix of files
> and
> > latex commands to produce a modified cover sheet? A trivial example
> would be
> > fine.
> >
> > It appears that \maketitle needs to be redefined, but my attempts at
> that
> > fail with TeX errors. Or I could define my own and set 'maketitle' in
> > latex_elements in conf.py. Maybe. So far, none of the examples I have
> found
> > show an actual, complete, working example.
> >
> > Given that this is the only way to create a custom cover page with the
> > default Sphinx configuration, such an example should be part of the
> Sphinx
> > docs.
> >
> > I am using Sphinx 1.4.8.
>
> At this point, I have discovered that redefining \maketitle results in
> the parameters/variables not be expanded. From conf.py:
>
> 'preamble': r'''
> \renewcommand{\maketitle}{
> \begin{titlepage}
> \noindent \Huge \@date \par
> \end{titlepage}
> }'''
>
> produces a title page with the word "date" rather than the date. The
> values are defined in the .tex file, but not expanded. Defining a new
> title routine and setting it as 'maketitle' has the same behavior.
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.