See the new post which might be what you want to find.
2008/01/30 - [computer] - eps file by AutoCAD


--------------------------------------------------------------------------------------------------------------------------------------------

There is an blank page, which include the eps file that is created by AutoCAD, in ps file, which is created by LaTeX.

I installed three different gs on my linux. It can be change by the following message:

# update-alternatives --config gs

There are 3 alternatives which provide `gs'.

  Selection    Alternative
-----------------------------------------------
 +        1    /usr/bin/gs-esp
          2    /usr/bin/gs-gpl
*         3    /usr/bin/gs-afpl

Press enter to keep the default[*], or type selection number: 3

With gs-afpl, AutoCAD eps file or LaTeX ps file can be good. The eps file is open with emacs with unexpected long time. But I can't understand the content.

사용자 삽입 이미지

There are is a lot of ugly numbers. Probably AutoCAD does not like the end user can edit that file.

I don't like the above ugly eps file.

After eps2eps autocad.eps output.eps, the eps file can be open with emacs more easily.

사용자 삽입 이미지

This eps file is used in whatever gs you use.
eps2eps returns wrong bounding box information. It will be correct the old post: 2007/05/13 - [computer/linux] - How to create a stand alone eps file by using pstricks




posted by citadel
  • In normal latex environment, pstricks works great. But, when I want to do this with pdflatex environment, it does not work. Then I decide to create eps file.
  • make one stand alone TeX file

    more..

  • latex filename.tex
  • dvips -E -o target_filename.eps  filename.dvi
    This eps file has the wrong bounding box information, thus one must correct it.
  • gs -sDEVICE=bbox -dNOPAUSE -dBATCH target_filename.eps
    will return the information about a correct bounding box.

    more..

  • emacs target_filename.eps, replace %%BoundingBox information with the above return values, and save the file.

'Computer > linux' 카테고리의 다른 글

ROOT gui default fonts  (0) 2007.05.24
How to create a stand alone eps file by using pstricks  (0) 2007.05.14
sshfs  (0) 2007.05.10
Running programs in the background.  (0) 2007.03.10
posted by citadel
I installed three different versions of ghostscript as following

more.. three types of gs


It can be selected with followiing command

update-alternatives --config gs

There are 3 alternatives which provide `gs'.

  Selection    Alternative
-----------------------------------------------
*+        1    /usr/bin/gs-esp
          2    /usr/bin/gs-gpl
          3    /usr/bin/gs-afpl

Press enter to keep the default[*], or type selection number: 2
Using `/usr/bin/gs-gpl' to provide `gs'.


posted by citadel