Hi everyone!

I've been searching and reading for quite a while now to find out how
to produce PDF's with clickable references from LyX-Files.

The only output with references that I found is produced by setting

  \usepackage
  [plainpages=false,pdfpagelables,hypertexnames=false]{hyperref}  

in the LyX-file's Preamble (as one line, of course) and using "PDF
(pdflatex)" to export directly to PDF.

Problem: When using pdflatex, the output is not A4 but Letter sized (it
seems).

Without the hyperref-package:
-----------------------------
If I export to LaTeX and comment "%\usepackage{graphicx}" to exclude it
(as well as all included graphics along with it), pdflatex produces an
A4 sized document.

If I add
  \pdfpagewidth=210truemm
  \pdfpageheight=297truemm
to the preamble, pdflatex produces A4 sized documents too, even _with_
graphics included (directly exporting from LyX).

WITH the hyperref-package:
--------------------------
As soon as I include the hyperref-package to be used as mentioned above,
pdflatex produces Letter-sized output again! (Despite the explicit
pdfpagewidth and-height set in LyX' preamble.)

Any ideas on how to get A4-PDF's with hyperref's?
Are there any other options on how to perform LyX -> PDF to get
"referenced PDFs"?

Many thanks in advance!

Cheers,
Max

PS:
I'm running LyX 1.3.3 on an old Debian Sarge with tetex-bin
1.0.7+20011202-8. (But, AFAICT, the behaviour is the same on a newer
Debian Sarge with tetex-bin 2.0.2, too...)

PPS:
$TEXBASE/texmf/pdftex/config/pdftex.cfg has "page_width 210 true mm" and
"page_height 297 true mm" set.

PPPS -- definitely OFF-TOPIC -- pdflatex && gv:
Though "gv" is a great pdf-viewer (it's really fast), it doesn't like
PDF output files from pdflatex: With Words-Like-This, it shows all
letters, but puts the "L" and the "T" over the "-", resulting in "ugly
words" and wrong line-lenghts, etc...
When viewing the PDF's with acroread, everything's fine.

-- 
The first time any man's freedom is trodden on, we're all damaged.
                       <Cpt. Picard, "The Drumhead", StarTrek TNG>

http://homex.subnet.at/~max/

Reply via email to