[Tex/LaTex] Figure is not shown in DVI

dvidvi-mode

This is a sample .tex file

\documentclass[dvipdfm]{article}

\begin{document}

\begin{figure*}
\resizebox{\hsize}{!}{\includegraphics[bb = 0 0 1937 1912]{test.jpg}}
\caption{This is a test figure.}
\end{figure*}

\end{document} 

I compile the above .tex file and the compilation is free or warning and errors. However when I open the .dvi the figure is not shown, while the caption is written. Only when I compile the dvi to pdf the figure is visible. So, my question: Is there a way to make the figure visible in both modes (DVI and PDF)?

many thanks in advance.

Best Answer

There is no standard for the inclusion of images in the DVI file. The DVI file format does not know anything about figures. Thus the image support is done via \special{...}. The syntax of the contents for \special depends on the DVI driver. The file in the question uses driver option dvipdfm, thus the graphics package writes the \special for dvipdfm. Since dvipdfm only converts DVI to PDF and cannot view anything, you have to use a different DVI viewer, which apparently does not support specials for dvipdfm. If you want to have the images included in the DVI viewer, you have to compile again with a different driver option to get specials for the DVI viewer with some hope, that the viewer also supports the used image format.