Skip to content

Commit

Permalink
add cover image
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui KUBO committed Feb 20, 2014
1 parent 1c16e7b commit 7f5a6ee
Show file tree
Hide file tree
Showing 6 changed files with 88,539 additions and 3 deletions.
Binary file added en/source/_static/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 34 additions & 1 deletion en/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,37 @@
'preamble': r"""
\makeatletter
\renewcommand{\maketitle}{
\begin{titlepage}
\begingroup
\setlength{\unitlength}{1truemm}
\begin{picture}(210,234)(25,38)
\begingroup
\makeatletter
\ifx\svgwidth\undefined
\setlength{\unitlength}{595.27558594bp}
\ifx\svgscale\undefined
\relax
\else
\setlength{\unitlength}{\unitlength * \real{\svgscale}}
\fi
\else
\setlength{\unitlength}{\svgwidth}
\fi
\global\let\svgwidth\undefined
\global\let\svgscale\undefined
\begin{picture}(1,1.4142857)
\put(0,0){\includegraphics[width=\unitlength]{cover.eps}}
\end{picture}
\makeatother
\endgroup
\end{picture}
\endgroup
\@thanks
\end{titlepage}
\let\thanks\relax\let\maketitle\relax
}
% ---- Code block
\usepackage{listings}
\lstset{
Expand Down Expand Up @@ -293,6 +324,8 @@

#latex_docclass = {'manual': 'sbook'}

latex_additional_files = ['images/cover.eps']


# -- Options for manual page output ---------------------------------------

Expand Down Expand Up @@ -363,7 +396,7 @@
#epub_uid = ''

# A tuple containing the cover image and cover page html template filenames.
#epub_cover = ()
epub_cover = ('_static/cover.png', '')

# A sequence of (type, uri, title) tuples for the guide element of content.opf.
#epub_guide = ()
Expand Down
Loading

0 comments on commit 7f5a6ee

Please sign in to comment.