How to insert images into TeXnicCenter (DVI)

  • Thread starter Thread starter PhizKid
  • Start date Start date
  • Tags Tags
    Images
Click For Summary
SUMMARY

This discussion focuses on inserting images into TeXnicCenter while generating DVI files. Users must ensure they include the necessary packages, specifically \usepackage[dvips,pdftex]{graphicx} and \usepackage{graphics}, to handle graphics correctly. It is established that DVI files do not directly support graphics; instead, users should compile documents using pdfLaTeX for formats like .jpg, .png, and .pdf, or use dvips for .eps files. The correct syntax for including images is demonstrated with the \includegraphics command within a figure environment.

PREREQUISITES
  • Familiarity with LaTeX document preparation
  • Understanding of TeXnicCenter as a LaTeX editor
  • Knowledge of the graphicx package for image inclusion
  • Basic understanding of DVI and PDF file formats
NEXT STEPS
  • Learn how to configure TeXnicCenter for PDF output using pdfLaTeX
  • Research the differences between DVI and PDF formats in LaTeX
  • Explore the use of the \begin{figure} environment for advanced image placement
  • Investigate the requirements for including .eps images with dvips
USEFUL FOR

This discussion is beneficial for LaTeX users, particularly those working with TeXnicCenter, who need to include images in their documents and understand the nuances of different output formats.

PhizKid
Messages
477
Reaction score
2
I am trying to using this line:

\includegraphics{C:/Users/PhizKid/Desktop/Untitled.jpg}

But there is no image showing up when I view the DVI file. What am I doing wrong? (I have \usepackage{graphicx} somewhere at the top)


nvm, I got it
 
Last edited:
Physics news on Phys.org
No matter which you use tex editor (TeXnicCenter), if you have the necessary packages to include graphics you should not put any problem as long as you include the necessary libraries.

Code:
\usepackage[dvips,pdftex]{graphicx}
\usepackage{graphics}

These are the default for lines include a graph.

Code:
\begin{figure}[h!]
\centering
\includegraphics[scale=0.5]{your graphic}\quad
\caption{title}
\label{name}
\end{figure}

Overview pdf If you can see the graph and then your problem is with the dvi. You should check with other formats (png, eps, pdf)

regards
 
I don't think that DVI directly supports included graphics. This is usually handled by dvips or pdfLaTeX if you compile directly into PDF (my preferred way).

pdfLaTeX supports .jpg, .png and .pdf. Last time I checked, dvips needed .eps
 

Similar threads

Replies
3
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
18K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K