I added to conf.py the following, making sure I copied sphinxmanual.cls 
into my project directory as sphinxbook.cls:

latex_additional_files = ['sphinxbook.cls']

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass 
[howto/manual]).
latex_documents = [
  ('index', 'Filename.tex', u'Title',
   u'Author name', 'book', True),
]

I then edited sphinxbook.cls to replace its \maketitle with something like 
this; tweak to your own satisfaction:

\renewcommand{\maketitle}{%
  \begin{titlingpage}%
    \let\footnotesize\small
    \let\footnoterule\relax
    \rule{\textwidth}{1pt}%
    \ifsphinxpdfoutput
      \begingroup
      % These \defs are required to deal with multi-line authors; it
      % changes \\ to ', ' (comma-space), making it pass muster for
      % generating document info in the PDF file.
      \def\\{, }
      \def\and{and }
      \pdfinfo{
        /Author (\@author)
        /Title (\@title)
      }
      \endgroup
    \fi
    \begin{flushright}%
      \sphinxlogo%
      {\rmfamily\Huge\py@HeaderFamily \@title \par}%
      {\em\LARGE\py@HeaderFamily \py@release \par}
      \vfill
      {\LARGE\py@HeaderFamily
        \begin{tabular}[t]{c}
          \@author
        \end{tabular}
        \par}
      \vfill\vfill
      {\large
       \@date \par
       \vfill
       \py@authoraddress \par
      }%
    \end{flushright}%\par
    \@thanks
    \clearpage
    \null
    \vfill
    \noindent Copyright \copyright\ \the\year\ by \@author.
  \end{titlingpage}%
  \cleardoublepage%
  \setcounter{footnote}{0}%
  \let\thanks\relax\let\maketitle\relax
  %\gdef\@thanks{}\gdef\@author{}\gdef\@title{}
}


On Saturday, December 7, 2013 11:04:56 AM UTC-5, juhasecke wrote:
>
>
>
> Am Samstag, 16. November 2013 13:03:24 UTC+1 schrieb Jan Ulrich Hasecke:
>>
>> Thanks a lot, I was concerned to hear such an answer. ;-)
>>
>>
>> 2013/11/14 Alex Reinhart <[email protected]>
>>
>>> I needed to do this for a project I'm working on. I copied 
>>> sphinxmanual.cls (which is placed in the _build/latex/ directory when you 
>>> build a LaTeX file) and placed it in the root of my project as 
>>> "sphinxbook.cls", and told conf.py to copy that in and use "book" as the 
>>> documentclass.
>>>
>>> The cls file redefines \maketitle with the Sphinx title page, so I 
>>> edited that, added a \clearpage at the end, and then added my copyright 
>>> information on the new page. You can use \vfill on top to push it to the 
>>> bottom of the page.
>>>
>>> Coming back to this. I tried your advice but with no success. Would you 
> mind to send me the conf.py snippets?
>
> TIA
> juh 
>

-- 
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 http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to