This problem was reported earlier and I've "confirmed" it.

I don't know if it's a lyx-bug or a latex-bug, here's the rundown:

This file works: http://www.md.kth.se/~chr/lyx/bugs/option-clash/works.lyx

This file fails: http://www.md.kth.se/~chr/lyx/bugs/option-clash/fails.lyx

With the error that the package graphicx has already been loaded with a 
different option [], and is now being loaded with option [dvips].

The difference between the two files: diff fails.lyx works.lyx 
7c7
< \graphics dvips
---
> \graphics default

so that explains why it tries to call graphicx with [dvips] the second 
time. The reason (I think) that grpahicx has already been called is that 
the document contains a table cell with text that's rotated, and therefore 
rotate.sty is callled, that calls graphicx.sty ... but I'm no latex-guru.
(The rotating hypothesis comes from the fact that removing the setting 
that rotates the table cell removes the problem)

Anyway, here's an excerpt of the log:
[snip]
(/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/09/10 v1.4a Standard LaTeX document class
[snip]
)) (/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/misc/rotating.sty
Package: rotating 1997/09/26, v2.13 Rotation package
(/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/graphics/graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
(/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
) 
(/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/graphics/graphics.sty
Package: graphics 1999/02/16 v1.0l Standard LaTeX Graphics (DPC,SPQR)
(/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/graphics/trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
) 
(/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/config/graphics.cfg)
Package graphics Info: Driver file: dvips.def on input line 80.
(/afs/md.kth.se/pkg/teTeX/1.07/share/texmf/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
))
[snip]

! LaTeX Error: Option clash for package graphicx.
[snip]
The package graphicx has already been loaded with options:
  []
There has now been an attempt to load it with options
  [dvips]
Adding the global options:
  ,dvips
to your \documentclass declaration may fix this.

[snip]

One workaround, as in the log above, is to the the document option to: 
dvips and set the postscript driver option to default. (I think anyway).

So... is this a lyx bug that I should report or?

/Christian


-- 
Christian Ridderström                           http://www.md.kth.se/~chr


Reply via email to