How to insert images into TeXnicCenter (DVI)

  • Thread starter Thread starter PhizKid
  • Start date Start date
  • Tags Tags
    Images
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 8K views
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