Re: [sphinx-dev] Ironing out latexpdf (newbie, getting there..)

30 views
Skip to first unread message

Bernhard Grotz

unread,
Sep 9, 2012, 1:21:55 PM9/9/12
to sphin...@googlegroups.com
Hi,

* chrisharris_bc_ca <char...@gmail.com> [09.09.2012 18:30]:
> Hi, I am starting to learn and use Sphinx for documentation and I have some
> errors that I cannot iron out.
>
> These are the errors all by latexpdf:
>
> 1. 'Chapter' becomes 'Section'. How to ?

This depends on whether you have selected "manual" or "howto" in your project's
``conf.py``-file. Asure you have two lines like::

latex_documents = [
('index', 'output-name.tex', u'project name',
u'author name', 'manual'),
]

> 2. No reference to version anywhere (specifically header/footers).

References to project name and version are inserted automatically when you
choose ``manual`` as latex output format.

> 3. All pages are right-side pages so the header/footer needs to maintain
> right-side alignment.

See above.

> 4. When an email address is contained in a paragraph, then a duplicate of
> this address appears in the footnotes. This is not needed when the email
> text is clear in the paragraph. How to disable this having footnotes via
> [#]_ remain in tact?

Can you post a quick example please?


Greetings,

Bernhard


signature.asc

Chris Harris

unread,
Sep 10, 2012, 1:11:11 PM9/10/12
to sphin...@googlegroups.com
Hi Bernard,

Thank you, I figured most of it out. I decided to keep it as "Chapters" and the other parts were in the templates I found.

So also I did a horrible python thing to remove those auto-footnotes before processing make all-pdf:

regex = re.compile(r"\{(.+)\}\\footnote\{\1\}")
for s in input:
output.write (re.sub(regex, r'{\1}', s))

Cheers
--
Chris Harris <char...@gmail.com>
Reply all
Reply to author
Forward
0 new messages