Comment 8 for bug 26514

Revision history for this message
In , Jens Seidel (jensseidel) wrote : Re: Bug#337259: debian-reference: FTBFS with new tetex-bin: Error trying to create pdflatex.fmt

Hi,

thanks Frank for analysis and sorry to bother and waste your time so
often.

On Thu, Dec 01, 2005 at 07:30:17PM +0100, Frank Küster wrote:
> I have looked into this bug, and it seems that it is the fault of
> debiandoc-sgml. With reference.zh-cn.sgml, it produces the following
> LaTeX code
>
> \ifpdf
> \usepackage[colorlinks=true,CJKbookmarks]{hyperref}
> \else
> \usepackage[hypertex]{hyperref}
> \fi
>
> If this is changed to
>
> \ifpdf
> \usepackage[colorlinks=true,CJKbookmarks]{hyperref}
> \else
> \usepackage[hypertex,CJKbookmarks]{hyperref}
> \fi
>
> the PS file can be produced without problems.

ah, interesting that only zh-cn fails, zh-tw and ja work.

Osamu: the new used dvips option -z (to support hyperlinks even after
latex/dvips/ps2pdf (which is not used by debiandoc-sgml but could be
used by others) was the reason for the break. I tried two weeks ago
debugging dvips without success.

> Here, again, we are at a point were the debiandoc-sgml maintainers need
> to decide (perhaps you have, but I don't know yet):
>
> Do you want to produce PDF files only with pdflatex, or is there a
> reason to create them via latex/dvips/ps2pdf?

PDF files are not created using latex/dvips/ps2pdf! (See again #321942.)

> If yes, you should use CJKbookmarks also for DVI files, as indicated
> above. If not (and I recommend that), simply do not load hyperref at
> all when producing dvi (unless you want to distribute DVI files, too).

Since our packages FTBFS all the time it may be a good idea to add an
option to debiandoc2latex to specify the further processing. This is
slightly more complicated and would reduce output format features (no
links in dvi files (but dvi files are only used to run hyphen-show on
it?), no links after latex/dvips/ps2pdf cycle a user may start).

(Could a variable .tex file produce problems in Makefiles rules when it's
unsure whether the file belongs to pdflatex or latex/dvips?)

Osamu, it's your decision ...

Jens