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

  • Context: LaTeX 
  • Thread starter Thread starter AxiomOfChoice
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
SUMMARY

Including "dvips" in the \documentclass declaration of a LaTeX document, such as \documentclass[12pt,dvips]{report}, specifies that the document will be processed using the dvips output driver, which converts LaTeX documents to PostScript. This option is crucial for packages that perform tasks differently based on the output driver, ensuring compatibility with dvips or pdflatex. While many modern LaTeX packages can automatically detect the output driver, the explicit declaration of "dvips" can still be beneficial for certain functionalities.

PREREQUISITES
  • Understanding of LaTeX document structure and commands
  • Familiarity with output drivers in LaTeX, specifically dvips and pdflatex
  • Knowledge of LaTeX packages and their options
  • Basic understanding of PostScript file format
NEXT STEPS
  • Research the differences between dvips and pdflatex output drivers
  • Explore LaTeX package documentation for compatibility with output drivers
  • Learn about LaTeX's \usepackage command and its implications
  • Investigate modern LaTeX packages that automatically detect output drivers
USEFUL FOR

LaTeX users, academic writers, and anyone involved in document preparation who seeks to understand output driver specifications and their impact on document rendering.

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 9 ·
Replies
9
Views
6K
  • · Replies 6 ·
Replies
6
Views
18K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K