Preklad TeX-faq
Petr Sojka
sojka at daeron.ics.muni.cz
Tue Jun 13 18:41:45 CEST 1995
Vazeni,
w can I include a PostScript figure in LaTeX?
In LaTeX2e, the best way is \usepackage[dvips]{graphics}.
Perhaps the best way to do this is to use the psfig macros written
by Trevor Darrell. They are available via anonymous ftp from
any CTAN site (see question 22) in graphics/psfig. You will
also need a dvi to PostScript conversion program that supports
\specials. The ones mentioned in question 2 do, and come with a
version of psfig ready to use with them. The psfig macros work best
with Encapsulated PostScript Files (EPS). In particular, psfig will
need the file to have a BoundingBox (see Appendix C of the
_PostScript Language Reference Manual_). If you don't have an EPS
file, life can be difficult.
To allow resizing by dvips (see question 2) with PostScript files
that are not EPS files, add the one line comment
%%BoundingBox: llx lly urx ury"
prior to any non-comment line in the PostScript file. The four
``lower left'' and ``upper right'' arguments must be numbers to
indicate the lower left and upper right corner in units of 1/72 of
an inch. Otherwise, dvips assumes the PostScript file fills a whole
page.
One further note about including PostScript figures is that they
are not part of the dvi file, but are included when you use a dvi
to PostScript conversion program. As a result, most dvi previewers
will simply show the blank space TeX has reserved for your figure,
not the figure itself. LaTeX2e (see question 41) will have a standard
interface for graphics inclusion, rotation, color, and other
Vetsina dotazu pokladanych na tomto listu je zodpovezena
v TeX-Faq -- dokumentu (cca 60kB) dostupnem na CTAN a soucasne
prekladanem do nekolika jazyku. Nize prikladam napr. dve polozky --
priklady, ktere jsou napr. relevantni predchozi otazce na vkladani
postscriptovych obrazku.
Jiste by prospelo vsem uzivatelum TeXu v CR/SR, kdyby se nasel
dobrovolnik, ktery by tento
doument prelozil, bud do slovenstiny ci cestiny a CSTUG by ho mohl
vydat jako specialni cislo bulletinu.
NEJACI ZAJEMCI?
Zdravi
Petr Sojka
3) How can I include a PostScript figure in LaTeX?
In LaTeX2e, the best way is \usepackage[dvips]{graphics}.
Perhaps the best way to do this is to use the psfig macros written
by Trevor Darrell. They are available via anonymous ftp from
any CTAN site (see question 22) in graphics/psfig. You will
also need a dvi to PostScript conversion program that supports
\specials. The ones mentioned in question 2 do, and come with a
version of psfig ready to use with them. The psfig macros work best
with Encapsulated PostScript Files (EPS). In particular, psfig will
need the file to have a BoundingBox (see Appendix C of the
_PostScript Language Reference Manual_). If you don't have an EPS
file, life can be difficult.
To allow resizing by dvips (see question 2) with PostScript files
that are not EPS files, add the one line comment
%%BoundingBox: llx lly urx ury"
prior to any non-comment line in the PostScript file. The four
``lower left'' and ``upper right'' arguments must be numbers to
indicate the lower left and upper right corner in units of 1/72 of
an inch. Otherwise, dvips assumes the PostScript file fills a whole
page.
One further note about including PostScript figures is that they
are not part of the dvi file, but are included when you use a dvi
to PostScript conversion program. As a result, most dvi previewers
will simply show the blank space TeX has reserved for your figure,
not the figure itself. LaTeX2e (see question 41) will have a standard
interface for graphics inclusion, rotation, color, and other
driver-related features.
Anil K. Goel has written a long document describing in detail how to
include figures, pictures, and images in LaTeX documents. It is available
via anonymous ftp from math.uwaterloo.ca (129.97.140.144) in
./pub/figsInLatex.ps.Z. A dvi file with the included PostScript files
is also available.
10) How can I typeset music in TeX?
A package called MuTeX, written by Andrea Steinbach and Angelika
Schofer, aids in doing this. It is available via anonymous ftp
from ftp.cs.ruu.nl (131.211.80.17) in pub/TEX/MuTeX.tar.Z. This
package allows you to typeset single-staff music and lyrics.
A more powerful package which allows the typesetting of orchestral
and polyphonic music is MusicTeX, written by Daniel Taupin
(taupin at frups51.bitnet). It is available via anonymous ftp from
rsovax.ups.circe.fr (130.84.128.100) [.musictex]. It should also
be available from the archive sites detailed in question 22.
There is a mailing list for discussion of typesetting music in TeX.
To subscribe, send a request to mutex-request at stolaf.edu.
More information about the csTeX
mailing list