I finally managed to do it without changing the code, thanks to the latex_preamble option.
I am injecting in the latex file my latex options to be able to render a PDF
that looks french
and compiles well on my environment.
latex_preamble = open('my-options.tex').read()
I have attached an example for people that want to do the same kind of
thing.
It was a bit tricky because Sphinx defines the "at" command which is already
defined by other packages
needed, so I had to rename the command with some \expandafter.
Nevertheless, I think the header created for the latex file makes some
assumptions, like:
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
It would be nice if we could configure them through conf.py as well.
Regards
Tarek
On Tue, Sep 2, 2008 at 11:57 AM, Tarek Ziadé <[EMAIL PROTECTED]> wrote:
> Hi,
>
> In order to make the latex build work with my Tex environment under Mac OS
> X, which is a correct environment many people have I believe,
> I had to slightly change latexwriter.py, to include ucs:
>
> HEADER = '''
> ...
> \usepackage{ucs}
> ...
> '''
>
> I think this can be added safely by default there.
>
> by the way, maybe this part could use a customisable template ? (so pdf
> output can be customized some more)
>
> Regards
> Tarek
>
>
> --
> Tarek Ziadé | Association AfPy | www.afpy.org
> Blog FR | http://programmation-python.org
> Blog EN | http://tarekziade.wordpress.com/
>
--
Tarek Ziadé | Association AfPy | www.afpy.org
Blog FR | http://programmation-python.org
Blog EN | http://tarekziade.wordpress.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
options.tex
Description: TeX document
