On 2011-12-09, maning sambale wrote:

> I am trying to compile a pdf version for printing of the OSGeo Live
> DVD documentation [0] the sources are available in the svn [1].

> I did the following:

> 1. Modified the conf.py for latex generation.
> 2. Created a separate index.rst as the source of the toctree since the
> default index.rst doesn't have a logical ordering of rst files.
> 3. Run make latex and pdflatext textfile.tex

> So far, I get good results, however some issues are:

> 1.  Running pdflatex, I get lots of errors for gif and png images like this:
>  LaTeX Error: Unknown graphics extension: .gif.
...

GIF images are not supported by LaTeX. You need to convert them to PNG and
reference the png version in the source.


> 2. Images doesn't align similar to the html output. See this html [2]
> and this pdf image [3]

Neither alignment nor size is guaranteed to be equal in different output
media in all cases.

> 3.  The project and osgeo logo are large and always on the last page of the
> preceding project page.  Unlike in the html where it is on the
> upper-right corner.  See this [4] and this [5]

To guarantee equal size, the size must be specified in "real" units (cm, pt,
inch) not in relative units (em, px). If there is no size specified for a
bitmap image, the size in the end document depends on the resolution (px per
inch) wich is configurable (while setting a fixed size in the source is
easier).


> What I want is to modify the rst files (and avoid tex munging if
> possible) so that I can push my changes to svn.

Try whether PNG images and specifying the size in the source already solve
your problems.

BTW: For scalable (vector) images, you need separate formats for HTML
(SVG) and LaTeX (PDF).

Günter

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to