LaTeX question: What does putting dvips in the \documentclass do?

  • LaTeX
  • Thread starter AxiomOfChoice
  • Start date
  • Tags
    Latex
In summary, the "dvips" option in the \documentclass specifies that the document will be converted to PostScript with dvips. This is necessary for packages that handle tasks such as drawing, as they need to know which output driver to use. This option is also passed to all packages included with \usepackage. However, modern packages can usually detect the output driver automatically, so the option may not be necessary.
  • #1
AxiomOfChoice
533
1
LaTeX question: What does putting "dvips" in the \documentclass do?

At my university, the master's thesis template in LaTeX begins with the following specification:

\documentclass[12pt,dvips]{report}

What in the world does putting the "dvips" do? What difference does it make?
 
Physics news on Phys.org
  • #2


dvips is an option accepted by several packages to indicate that the document will be converted to PostScript with dvips. Certain tasks (like drawing) are done in different ways depending on which output driver is used (dvips is one output driver, pdflatex is another), so a package that does something like that needs to know whether it should produce output appropriate for dvips or pdflatex or whatever.

As for why the option is passed to the class, I believe options passed to the document class also get passed to all packages included with \usepackage.

Most relatively modern packages can automatically detect which output driver is being used, so you might be able to safely remove the dvips option.
 
  • #3


diazona said:
dvips is an option accepted by several packages to indicate that the document will be converted to PostScript with dvips. Certain tasks (like drawing) are done in different ways depending on which output driver is used (dvips is one output driver, pdflatex is another), so a package that does something like that needs to know whether it should produce output appropriate for dvips or pdflatex or whatever.

As for why the option is passed to the class, I believe options passed to the document class also get passed to all packages included with \usepackage.

Most relatively modern packages can automatically detect which output driver is being used, so you might be able to safely remove the dvips option.

Nice. Thanks a lot!
 

Related to LaTeX question: What does putting dvips in the \documentclass do?

What is LaTeX?

LaTeX is a typesetting language used to create high-quality documents, particularly in the fields of mathematics, science, and academia.

What does the "dvips" option do in the \documentclass command?

The "dvips" option tells LaTeX to use the dvips program to convert the document from DVI format to PostScript format. This is useful for creating documents that can be easily printed or shared.

Why would I need to use the "dvips" option?

If you plan on including graphics or diagrams in your document, using the "dvips" option will ensure that they are properly converted to PostScript format for printing.

Can I use the "dvips" option with any document class?

No, not all document classes support the "dvips" option. It is typically used with classes that have a larger page size, such as "article" or "report."

Are there any alternatives to using the "dvips" option?

Yes, there are other conversion programs that can be used instead of dvips, such as dvipdf or dvipdfm. However, dvips is the most commonly used and supported option for converting DVI to PostScript format.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
923
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
3
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
18K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
Back
Top