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

  • Thread starter Thread starter AxiomOfChoice
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
Including "dvips" in the \documentclass specification of a LaTeX document indicates that the document will be processed with the dvips output driver, which converts the document to PostScript. This option is significant because it affects how certain tasks, such as drawing, are executed, as different output drivers handle these tasks differently. The dvips option is also passed to all packages included with \usepackage, ensuring compatibility with the specified output format. While many modern LaTeX packages can automatically detect the output driver, making the dvips option potentially unnecessary, it remains relevant for ensuring proper functionality in specific cases.
AxiomOfChoice
Messages
531
Reaction score
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


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.
 


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!
 

Similar threads

Replies
6
Views
18K
Replies
1
Views
4K
Replies
5
Views
3K
Replies
3
Views
2K
Replies
6
Views
2K
Back
Top