Antonio Valentino schrieb:
> Hi list,
> I'm trying to put a small logo in headings of my PDF manual.
> After some attempt I solved adding the following in my conf.py:
>
> latex_elements = {
> 'preamble': r'''\newcommand{\pyHeaderFamily}{\sffamily\bfseries}
> \fancypagestyle{normal}{ \fancyhf{}
> \fancyfoot[LE,RO]{{\pyHeaderFamily \thepage}}
> \fancyfoot[LO]{{\pyHeaderFamily \nouppercase{\rightmark}}}
> \fancyfoot[RE]{{\pyHeaderFamily \nouppercase{\leftmark}}}
> \fancyhead[LE,RO]{{\pyHeaderFamily \title,
> \releasename\space\version}}
> \renewcommand{\headrulewidth}{0.4pt}
> \renewcommand{\footrulewidth}{0.4pt}
> % changes
> \fancyhead[LO,RE]{{\includegraphics[height=0.5cm]{header_logo.jpeg}}}
> }
> ''',
> }
>
> The problem is that "header_logo.jpeg" is not copied to built/latex
> folder (from _static).
> Which is the best way to handle this?
I've now added a latex_additional_files config value to copy additional
files like your logo.
> Another question for LaTeX gurus:
> the solution posted above seems to be suboptimal since I replicated the
> \fancypagestyle{normal} definition (from sphinx.sty) adding a little
> change at the end. Is there a better solution to get he same result?
I don't think so...
Georg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---