If you need this info in HTML too, duplicate the content (or single-source/reuse it using the include directive), and then use the only directive so it appears only in the HTML:
.. only:: html On Tue, Dec 20, 2016 at 6:40 AM, Warren Block <[email protected]> wrote: > On Mon, 19 Dec 2016, Peter Burdine wrote: > > Yes, that is exactly why it is setup that way. Remember that it is only >> part of the solution. The latex code still needs to in the preamble or a >> style file and you need to overwrite the correct entry in the >> latex_elements dict. >> >> This is only for latex output so none of this information is in .rst >> files. I am not sure what you meant by "Can this be used to control the >> order of Sphinx-generated elements". >> > > The hope was that it would allow putting a section of copyright and > trademark information before the table of contents, yet still being able to > write that section in rst for consistency with the rest of the document and > being able to generate both HTML and PDF output from it. > > But no, it appears not. > > On Dec 19, 2016 5:03 PM, "Warren Block" <[email protected]> wrote: >> On Thu, 15 Dec 2016, Peter Burdine wrote: >> >> Then I define the following for the front matter (note that some of >> these are commands defined in the preamble or other included .tex/.sty >> file): >> >> latex_contents = r''' >> \setupHeadFootForFrontMatter >> \formattoc >> \maketitle >> \signaturepage >> \revisionhistory >> \tableofcontents >> \clearpage >> \listoffigures >> \clearpage >> \listoftables >> \clearpage >> \setupHeadFootForText >> \pagenumbering{arabic} >> \pagestyle{plain} >> ''' >> >> >> Can this be used to control the order of Sphinx-generated elements, like >> to put a copyright page before the table of contents? (That can be done by >> editing the generated .tex file, moving the call to \tableofcontents, but >> that's ugly.) >> > > -- > 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. > -- 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.
