I am new to Lyx and Latex. I want to write my thesis in Lyx but the template provided by the university is for for LaTeX.
So, here is what I did:
- Created a new layout file called
- Created a class document called
mitheis.clsin MikTex containing the same code as the cls file provided by the university.
- Copied the tex file preamble options into lyx documents's preamble.
Everything is working fine, except for figure floats because I get an error saying
There's an option clash for package graphicx
The package graphicx has already been loaded with options:  There has now been an attempt to load it with options [pdftex] Adding the global options: ,pdftex to your \documentclass declaration may fix this. Try typing <return> to proceed.
I have checked the sty and cls files being used and I cannot find anywhere any reference to the package graphicx. The only place where I found the package is being loaded is in the LaTeX preamble of my Lyx document.
Any idea where else can the package be loaded from? Or any idea on how to solve this kind of issue?
Question also posted in https://latex.org/forum/viewtopic.php?f=19&t=31294