[GUFSC] problemas com figuras no latex
Altamir Dias
altamir em emc.ufsc.br
Quinta Setembro 14 17:17:18 BRT 2006
Aqui vai uma receita e esse pdf também ajuda..
Prof. Altamir
3.3 Converting PS files to EPS
Single-page PostScript files without any improper commands can be
converted to
eps by using one of the following methods for adding a BoundingBox line.
Since
these methods do not check for illegal PostScript operators, they do not
produce usable EPS files unless the PS files are free of forbidden
operators.
1. The most convenient option is to use the ps2epsi utility
distributed with
Ghostscript (see Section 6.1 on Page 17), which reads the
PostScript file, cal-
culates the BoundingBox parameters, and creates an eps file
(complete with
a BoundingBox) which contains the PostScript graphics.
The resulting file eps file is in epsi format, which means it
contains an Inter-
change (low-resolution bitmapped) preview at the beginning of the
file. Since
this preview is ascii-encoded, it does not cause the Section 4.1
bufsize errors.
However, this epsi preview increases the file size.
2. Another method of having ghostscript calculate the BoundingBox
parameters
is to use the epstool utility, available for Unix, dos, Windows,
and OS/2 from
http://www.cs.wisc.edu/~ghost/gsview/epstool.htm
For example, the command
epstool --copy --bbox file1.eps file2.eps
analyzes the contents of file1.eps to determine the correct
BoundingBox and
then copies the contents of file1.eps with the calculated
BoundingBox into
file2.eps.
The epstool utility can also be used to add tiff, wmf, epsi
bitmap previews
to an eps file, or extract bitmap previews from an eps file.
3. Alternatively, the BoundingBox parameters can be calculated and
manually
inserted in the PostScript file's BoundingBox line or specified
in the graphics-
insertion command (e.g., the \includegraphics command's bb
option). There
are several ways to calculate the BoundingBox parameters
(a) Use Ghostview/GSview to display the PostScript graphic. As
the pointer
is moved around the graphic, the pointer's coordinates
(with respect to
the lower-left corner of the page) are displayed. To
determine the Bound-
ingBox parameters, record the pointer coordinates at the
lower-left corner
of the graphic and the upper-right corner of the graphic.
(b) Print out a copy of the PostScript graphics and measure the
horizontal
and vertical distances (in inches) from the lower-left
corner of the paper
to the lower-left corner of the graphics. Multiply these
measurements by
72 to get the BoundingBox's lower-left coordinates.
Likewise, measure the
distances from the lower-left corner of the paper to the
upper-right corner
of the graphics to get the BoundingBox's upper-right
coordinates.
(c) The bbfig script uses a PostScript printer to calculate the
BoundingBox.
bbfig adds some PostScript commands to the beginning of the
PostScript
file and sends it to the printer. At the printer, the added
PostScript com-
mands calculate the BoundingBox of the original PostScript
file, printing
the BoundingBox coordinates superimposed on the PostScript
graphic.
The bbfig script is available from
CTAN/support/bbfig/
umberto Reder Cazangi wrote:
> eu não lembro exatamente... mas sei que o comando a2ps faz a correção dos
> bounding box... veja o manual, é bem fácil...
>
> man a2ps
>
> Abraços
>
> On Wednesday 13 September 2006 16:28, eraldo em das.ufsc.br wrote:
>
>>Alô,
>>Estou com o seguinte problema com figuras no latex:
>>-capturo uma regiao de tela com KSnaphot;
>>-salvo como eps;
>>-incluo no latex com \includegraphics etc;
>>-o latex reclama que falta "bounding box" no eps;
>>
>>Na Internet alguém sugere medir a figura usando Ghostview e depois
>>incluir manualmente o comando. Existe forma menos "rudimentar"?
>> Saudacoes,
>> Eraldo
>>
>>_______________________________________________
>>GUFSC mailing list
>>GUFSC em softwarelivre.ufsc.br
>>https://www.softwarelivre.ufsc.br/mailman/listinfo/gufsc
>
>
--
_/_/_/_/ _/_/_/_/_/ _/_/_/_/_/ Prof. Altamir Dias, Dr. Eng.
_/ _/ _/ _/ _/ Departamento de Eng. Mecânica
_/_/_/ _/ _/ _/ _/ UFSC Universidade Federal de SC
_/ _/ _/ _/ _/ 88.040-900 - Florianópolis-SC
_/_/_/_/ _/ _/ _/ _/_/_/_/_/ BRASIL
Phone: 55-48-331-9264
Fax : 55-48-234-1519
http://www.emc.ufsc.br/professores/altamir/
Mais detalhes sobre a lista de discussão GUFSC