Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have a non-EPS PostScript file which I wish to include in my document. What do I need to do to fool LaTeX into thinking it is an Encapsulated PostScript (EPS) file?

0
Posted

I have a non-EPS PostScript file which I wish to include in my document. What do I need to do to fool LaTeX into thinking it is an Encapsulated PostScript (EPS) file?

0

Frequently, all that is necessary is to insert an appropriate bounding box comment near the beginning of the PostScript file. LaTeX uses the BoundingBox to determine the size and location of the figure on the page. The BoundingBox line consists of four consecutive numbers specifying the lower left corner and upper right corner of the figure on the page. You can use Ghostview to obtain these numbers for a figure by placing the cursor in each corner and noting the coordinate Ghostview gives. Then, insert a comment line near the top of the PostScript file (after the Creator comment or Pages comment, for example), which looks like: %%BoundingBox: LLX LLY URX URY where LLX, LLY, URX, and URY are the coordinates. Chances are good that this is all that is necessary to include the figure in a LaTeX document. You can check your work by reloading your figure in Ghostview. Ghostview should scale its viewing window such that only the bounding box area is shown (which should be your figure with ver

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123