[Prev]

2 Invocation

Usually all you need to do is

  pd2tex your-doc.pd

This will generate a tex/your-doc.pdf file that you can view with acroread(1). It also generates the html/your-doc.html and ./your-doc.dbx versions of the document. If the document contains images, automatic steps are taken to convert them to .pdf and .png formats as needed by the documents.

For full option listing, please try

  pd2tex -h

which produces (you should still run it to see what options your copy of pd2tex supports):

Usage: pd2tex mydoc.pd  # Generate mydoc.tex, mydoc.pdf, mydoc.dbx, and mydoc.html
       pd2tex -acroread mydoc.pd  # Regenerate document and preview it
       pd2tex mydoc.tex       # filter mode
       pd2tex -dbx mydoc.dbx  # filter mode for DocBook

Options:
  -dbx       Invokes DocBook filter mode
  -html      Invokes HTML filter mode (must make subdirectory html)
  -gensafe   Convert images from ps, eps, dot, or dia to pdf only if no pdf (default)
  -gendep    Convert from ps, eps, dot, or dia to pdf based on time stamps
  -genforce  Force conversion of images from ps, eps, dot, or dia to pdf
  -nogen     Prevent conversion of images from ps, eps, dot, or dia to pdf
  -notex     Prevent .tex output in normal mode. Also prevents .pdf output.
  -nopdf     Prevent .pdf output in normal mode (.tex is still generated).
  -nodbx     Prevent .dbx output in normal mode
  -nohtml    Prevent .html output in normal mode
  -pdfonly   Only generate .pdf output
  -fn        Omit footnotes.
  -FN        Force footnotes even on dbx (some dbx tools are broken wrt footnotes in lists)
  -l         List format templates
  -n         Dry run. Do not alter files on disk.
  -acroread  Automatically launch acroread after processing the document
  -d DIR     Change current working directory to DIR

[Prev | Next]
.