-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 24 February 2003 09:15, you wrote:
> Ciao a tutti: eccomi nuovamente qui!
>
> Per quanto rigurda Latex, sto scrivendo un manuale di una macchina, e
> lo sto facendo con Latex: qualcuno sa dirmi se ci sono
> controindicazioni nell'uso di immagini *.jpeg (ho letto che sembra
> che ci siano dei problemi con il convertitore dvi e pdf): � vero? Se
> no, posso usare \includegraphics?
Si` puoi usare includegraphics ma deve fare un�operazione per fargli
convertire al volo l�immagine da jpg in eps (quindi tu risparmi lo
spazio su disco ma spende qualche tempo in piu` in compilazione).
Questo e` tratto dal manuale Using Imported Graphics in LaTeX2e:
13 Compressed and Non-EPS Graphics Files
When using dvips, users can specify an operation to be performed on the
le befo
re it is inserted. Making this operation a decompression command allows
compress
ed graphics les to be used. Making this operation a
graphics-conversion command
allows non-eps graphics les can be used. Since dvips is currently the
only dvi
- -to-ps converter with this capability, everything in this section
requires dvips
. Users need to pass the dvips option to the graphicx package. This can
be done
by either specifying the dvips global option in the \documentclass
command
\documentclass[dvips,11pt]{article}
or by specifying the dvips option in the \usepackage command
\usepackage[dvips]{graphicx}
Specifying the dvips option in \documentclass it is preferred because
it passes
the dvips option to all packages.
When using an operating system which supports pipes,
the\DeclareGraphicsRule (se
e Section 9.2) specifies a command which operates on the file. Making
this comma
nd a decompression command allows compressed eps files to be used.
Making this
command a graphics-conversion command allows non-eps graphics files to
be used.
When using operating systems which do not support pipes, such
on-the-fly conver
sion is not possible and all graphics must be stores as uncompressed
eps files.
13.1 Compressed EPS Example
The steps for using compressed eps files are
1. Create an eps file (file1.eps for example)
2. Store the BoundingBox line in another file (file1.eps.bb)
3. Compress the eps file. For example, the Unix command
gzip -9 file1.eps
creates the compressed le file1.eps.gz. The-9 (or -best) option speci
es maximu
m compression.
4. Include the proper \DeclareGraphicsRule command before the
\includegraphics c
ommand in the LATEX file. The\DeclareGraphicsRule command informs LATEX
how to treat the particular suffix (see Section 9.2). For example
\documentclass[dvips]{article}
\usepackage{graphicx}
\begin{document}
\DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{`gunzip -c #1}
\begin{figure}
\centering
\includegraphics[width=3in]{file1.eps.gz}
\caption{Compressed EPS Graphic}
\label{fig:compressed:eps}
\end{figure}
\end{document}
In this particular case, the \DeclareGraphicsRule command is actually
not necess
ary because it happens to be one of the graphics rules pre-de ned in
dvips.def.
If another compression program or suffixes were used, the
\DeclareGraphicsRule c
ommand would be mandatory. For example, if the BoundingBox file had
been stored
in file1.bb, the corresponding \DeclareGraphicsRule would be
\DeclareGraphicsRule{.eps.gz}{eps}{.bb}{`gunzip -c #1}
> Ho provato a caricare (sempre con \includegraphics) una immagine a
> colori *.eps ma il compilatore mi restituisce degli errori. Se
> anzich� una immagine a colori gli do in ingresso una immagine in
> bianco e nero, tutto va a buon fine, qualcuno sa spiegarmi il perch�?
> (pu� essere legato ai driver della stampante che � una laser b/n)?
No, devi solo caricare il pacchetto color e tutto funzionera`
tranquillamente
> Grazie a tutti e buona settimana
>
> Enrico
Prego, Gigi
Ps. Mi sa che quella parte del manuale ha reso questa mail troppo lunga!
- --
Le ballerine sono coraggiosissime!
Quante donne conoscete in grado di gettarsi tra le braccia di un
omossessuale sperando che lui le afferri?
Rita R�dner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE+Wd7pTvJtVxCNwP4RAprfAKDdtcaeWzs5AlJ9aN+3ggAj/K/3jwCgxq8e
wapd96Ga0HrzXJWhCyzou1w=
=8wyH
-----END PGP SIGNATURE-----