LyXError with graphics in Lyx

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
hitokiri
Posts: 1
Joined: Wed Oct 27, 2010 9:53 am

Error with graphics in Lyx

Post by hitokiri »

Whenever I try to view the DVI of my document I encounter this error
LaTeX Error:
Unknown option for 'dvialw' for package 'graphics'.

The description is:
\if
!\Gin@driver!
The option `dvialw' was not declared in package `graphics', perhaps you
misspelled its name. Try typing <return> to proceed.

This is my preamble:
\usepackage{fancyhdr} \pagestyle{fancy}
\cfoot{\thepage} % Print the page number in the center of the footer
\date{}
\lhead{}
\chead{}
\rhead{}
\renewcommand{\headrulewidth}{0.0pt}

The document class is a article.
The image I am trying to place is a .emf
I have also tried .jpg, .bmp, and .eps all of which resulted in the same error.
Any advice or help would be very much appreciated as this is a document for school that is due 10/28/10.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Error with graphics in Lyx

Post by meho_r »

You cannot use JPG, PNG, BMP... images with "plain" LaTeX (i.e., for DVI output). LaTeX supports only EPS format. If you want to use other image formats, compile your document with pdflatex instead of latex, so that the output is PDF, not DVI.

In case that you get the error again, create an example .lyx file with a picture in it, then put the file into a ZIP archive and attach it to your next post.
CSMR
Posts: 44
Joined: Fri Oct 10, 2008 10:44 pm

Error with graphics in Lyx

Post by CSMR »

hitokiri wrote:Whenever I try to view the DVI of my document I encounter this error
My understanding is that DVI is an obsolete format and with LyX you can bypass it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Error with graphics in Lyx

Post by localghost »

CSMR wrote:My understanding is that DVI is an obsolete format and with LyX you can bypass it.
DVI is far from being obsolete.


Thorsten
Post Reply