M1 Crab NebulaOrion Nebula
Making a PDF on the [PSU Astronomy] Department Computers



NOTE: I worked on a linux computer, so I know these techniques worked for the department's [PSU Astronomy] linux computers. I tried compiling on a unix computer and the following works for me, but since I don't work on them regularly, I can't guarantee these directions will always work on the department's unix computers. I also can't guarentee they will work on any computers outside of PSU Astronomy.



On a department linux computer

  1. Run LaTeX to get a dvi file (i.e., thesis.dvi)
  2. Run dvips as follows:
    • dvips -t letter -Ppdf thesis.dvi -o
  3. To get the final PDF, run: ps2pdf

Reasoning:

Linux's default paper size is A4, not letter. The -t letter option tells dvips to use letter paper (8.5x11 inches) rather than A4 for your document (if you don't use this, then the top and bottom margins will be really wacky when you try to print it: the top margin will be basically non-existent and the bottom margin will be gigantic).

The -Ppdf option tells dvips to include the pdf fonts (if you don't include this then you'll get a pdf file that prints out fine, but is really nasty looking, grainy, and barely readable when you display it on a computer screen).

Be sure to make the pdf using these steps, if you try to bi-pass by using dvipdf then there is no way to specify these two options, so you'll get a really wacky-margined, ugly-looking pdf file.

Examples:

One Final Note: I noticed that the font problems are *much* less noticeable when viewed on later versions of Acrobat Reader (namely v6.0 and later, which I have on my home computer), they are still there but your really have to look for them. For example, in v6.0 zoom into something like 600% magnification and the "bad fonts" look all jagged, where as the "good fonts" look nice and smooth - this effect is *MUCH* worse on older Acrobat versions, like v5.0 which we have on the department computers. So, it is probably worth taking the time to make sure you get the nice fonts, especially if you are planning to submit an eTD.



On a department unix computer

  1. Run LaTeX to get a dvi file
  2. Run dvips or dvipdf (no special options required)
  3. If you ran dvips, then to get the final PDF, run: ps2pdf on your postscript file

Reasoning:

As far as I can tell the final pdf produced by either dvipdf or dvips/ps2pdf look and are formated just fine. (But remember, I don't normally work on a unix machine, so there could be something I'm missing.)



LaTeX on a PC

Yes, you can write LaTeX on a PC (in fact I did most of my thesis writing on my PC laptop). My advice if you want to run latex on a PC is to look into the following programs (which are the ones I used):

If you should choose to install these programs, then you'll have to remember to also install the class, style, and bibliography style files you routinely use (you can place them in the MiKTeX directory with default classes and rehash TeX so you can always access them, regardless of the current working directory --- this goes for the psuthesis.cls too).

The CTAN (Comprehensive TeX Archive Network) is a great place to download LaTeX class and style files from.

AASTeX class and styles (don't forget apj.bst!).

Caveat for WinEdt and MiKTeX:
The default paper size for the dvipdf (and dvips) converter is A4! There are two options you can take in WinEdt/MiKTeX to make a letter-sized pdf with normal margins:

  1. In WinEdt run dvi-->ps (there is an option you can set so this will give you a dialog box so you can specify optional commands, be sure "-t letter" is one of those optional commands), then run ps-->pdf.
    ...or... go to the directory texmf\dvips\config\, open the file config.ps in a text editor, make sure the lines defining letter size are before the lines defining the A4 size. (This will fix dvips to use letter size as the default so you don't have to do it with the optional dialog box every time - it would still be advisable to make the changes discussed under #2 below to set all default paper sizes to letter.) Follow step #2.d below to refresh the databases.
  2. Edit two configuration files to change the default pdf paper size to letter. Here is what you do:
    1. In the MiKTeX directory, at (something like): texmf\dvipdfm\config\ there is a file called config (there is no extension), open that file in a text editor, there is a line about default paper size ("p a4"), change "a4" to "letter" and save the file.
    2. Next, you need to COPY the file texmf\pdftex\config\pdftex.cfg into your localtexmf directory.
    3. Open the COPY of pdftex.cfg from your localtexmf directory in a text editor. There are two lines that read:
      page_height 297 true mm
      page_width 210 true mm
      You need to change those two lines to read:
      page_height 279 true mm
      page_width 216 true mm
      then save the file
    4. In WinEdt, you will need to go to Accessories-->MiKTeX Options, and refresh the file name database, and update the format files.
    ...and that should should be it to change the default paper size to letter when you run dvipdf.


E-mail to mistark_(at)_umflint.edu