On Wed, May 30, 2001 at 10:08:27AM +0200, Herbert Voss wrote:
> 
> On Wed, 30 May 2001 [EMAIL PROTECTED] wrote:
> 
> >
> > Hi there,
> >
> > the problem of getting a fine pdf-file out of LyX seems to be one of the
> > most discussed topics in this mailing lists (hint hint maybe it´s worth a
> > mini-HOWTO ?).
> 
> what about this site:
> 
> http://www.educat.hu-berlin.de/~voss/lyx/pdf.html#faq

This is an old version of the FAQ.
An updated FAQ is available in section 3.3.6 in Extended.lyx
I'm attaching this FAQ in case you have an old version of Extended.lyx.
3.3.6 PDF

by Dekel Tsur (mostly)

The fastest way to generate a basic PDF file (no tags, links,
etc.) with any version of LyX is to save the document as
a Postscript® file, then run the ps2pdf command on it. Starting
with version 1.1.6, the menu item File->Export->PDF will
do all this for you. There are some issues with fonts that
you need to pay attention to: see Section [sec:badfonts].
Also, as of version 1.1.6, there is a better method that
will generate much more sophisticated files.

3.3.6.1 Use pdfLaTeX

With pdfLaTeX you need to convert your eps figures to PDF
(see Section [sec:pdfeps]), and you cannot
use pstricks. On the other hand, with pdfLaTeX it is possible
to insert directly images in JPEG or PNG format, use TrueType
fonts, and more.

3.3.6.2 Why does the text look so bad when viewed with Acrobat
  Reader?

The problem is that bitmap fonts are displayed poorly by
Acrobat Reader. When creating a PDF from the LyX file, you
need to use outline font instead of the default bitmap fonts
(in fact, you should also use outline fonts for Postscript
files). Recent LaTeX distributions come with Postscript®
Type 1 version of the standard (Computer Modern) fonts.
pdfLaTeX uses these font by default. Dvips doesn't use these
fonts by default, so to make it use them, add the following
to lines to your ~/.dvipsrc file

p+ psfonts.cmz
p+ psfonts.amz

If the default LaTeX font encoding (OT1) is used, nothing
else need to be done. However, if the T1 font encoding is
used, then LaTeX uses the newer EC fonts, for which there
are no Type1 version. The solution is to use the ae package
which emulates T1 coded fonts using the standard CM fonts.
This is done by adding \usepackage{ae,aecompl} to the preamble
of the LyX file. However, some glyphs are missing from the
CM fonts (e.g. eth, thorn), and they are taken from the
EC fonts. Therefore you get these glyphs as bitmaps.

Note: LyX uses by default the T1 font encoding. If you wish
to use the default font encoding (this is not recommended,
unless you only write English documents), add the line \font_encoding
default to the ~/.lyx/lyxrc file.

An alternate option is to use the standard Postscript® fonts
instead of the Computer Modern fonts. To do that, you need
to select pslatex as the global font in the document layout
dialog. When using the Postscript® fonts, the result PDF
file is smaller as the fonts are not saved into the file.
Furthermore, the Postscript® fonts include all T1 glyphs.
On the other hand, the Postscript® fonts have no bold symbol
font, so poor man's bold must be used (see Section [sec:pdfbold]).
The Postscript® fonts also look different from the Computer
Modern fonts.

To sum up, both the Computer Modern and the Postscript® fonts
gives good results (with few exceptions). The decision of
which one to use is a matter of taste. 

3.3.6.3 How can I use pdfLaTeX on a file with (eps) figures?

pdfLaTeX doesn't support the inclusion of eps files. However,
it does support the inclusion of other PDF files. So if
you have a LyX file that includes an eps figure, say foo.eps,
you need to do the following:

1. Convert foo.eps to PDF by epstopdf foo.eps

2. When you insert the figure in LyX, do not write the file
  extension: For example, when inseting the file foo.eps,
  you need to write foo in figure dialog.

Note: In 1.2.0 it will be possible to use the new insetgraphics
for inserting various kinds of images, and it will handle
all the necessary transformations. A semi-functional insetgraphics
exist it in 1.1.6. To use it, type M-x graphics-insert.

3.3.6.4 Why doesn't the \boldsymbol{} command work when I use pslatex?

The Postscript® fonts do not have a bold symbol font. The
solution is to use the \pmb{} (poor man's bold) command.

It is possible to redefine the \boldsymbol command to use
\pmb by putting

\renewcommand{\boldsymbol}[1]{\pmb{#1}}

in the preamble.

3.3.6.5 Is it possible to do write latex code which is processed
  only when running pdfLaTeX?

Yes. Here is an example:

\newif \ifpdf
   \ifx \pdfoutput \undefined
     \pdffalse
   \else
      \pdftrue
\fi
\ifpdf
   \pdfinfo { /Author (your name and e-mail address)
      /Title (official title -- i.e., title element)
      /Subject (one line description of the document)
   }
   \pdfcatalog { /PageMode (/UseNone)
   }
   \usepackage[pdftex]{hyperref}
\else
   \usepackage[ps2pdf]{hyperref}
\fi

Reply via email to