View Single Post
 
Old 07-05-2022, 08:51 AM
Laurence Finston Laurence Finston is offline
Member
 
Join Date: Sep 2021
Location: Germany
Posts: 395
Total Downloaded: 0
Quote:
Originally Posted by aansorge View Post
Next step is to figure out how to prepare the drawings so that they fill the letter size page.
There are various ways of doing this. It ought to be possible to do this in GIMP, however, I would do it a different way, simply because I know how to do it this way and don't have to figure anything out.

These are brief instructions, in case you want to try it:

1. Load your graphic into GIMP.

2. Click on File/Export As.

3. Use the suffix .eps and click appropriately to save the EPS (encapsulated PostScript) file, e.g., "yourimage.eps".

4. Create a TeX file, e.g., sample.tex. It should contain the following code:

\input epsf
\vsize=11in
\hsize=8.5in
\advance\voffset by -1in
\advance\hoffset by -1in
\advance\hoffset by .5in % Or however wide you want your left margin
\advance\voffset by .5in % Or however high you want your top margin
\advance\hsize by -.5in % Reduce the width and height of the printable
\advance\vsize by -.5in % area of the page accordingly

\def\epsfsize#1#2{#1}

\vbox to \vsize{%
\vskip2in % To shift image down 2in
\hbox to \hsize{\hskip3in % To shift image right 3in
\epsffile{yourimage.eps}\hss}\vss}
\vfil\eject
\bye

You can shift up or left by using negative values. You don't have to use inches, you could use printer's points (pt), centimeters (cm) or PostScript points (bp). Not parsecs or versts, however.

Then run:
tex sample.tex
dvipdfmx sample.dvi

This creates sample.pdf in letter size (8 1/2 by 11in). You can load it into GIMP and output it in some other format, PNG, SVG, or whatever.

Some variations to this procedure are possible.

You can scale the image without affecting the page format by changing the line "\def\epsfsize ...", above. For example, "\def\epsfsize#1#2{.75#1}" makes the image 3/4 of its original size.

TeX and dvipdfmx are available for GNU/Linux, Windows, MacOS, and any other operating system you're likely to have. If you don't have them, you could look up TeXLive or MikTeX (both free).

I hope this helps.
Reply With Quote