jucas_lo wrote:
Hi! I've just found out that my Master's thesis MUST be written using the
TOPtesi format/layout......and I have to get it done in 23 days, so I'm in a
kind of a hurry ;-), the thing is that I've written quite a bit of it in Lyx
since I'm no expert in Latex, and I really like Lyx because it is really
nice and simple to work with.

I use miktex and i have downloaded the package from the repositories, but
still I get an error when a try to import a latex document written with the
package (a friend of mine gave me a latex file with a TOC and titles that
uses TOPtesi)

I really wouldn't want to change editor at this point so if anyone knows how
to use that particular package in Lyx I would really appreciate it, or if
anyone can explain me how to do it myself I would be glad to do it and share
it with the rest of the world!

The problem is likely that you don't have a layout file for this class, which means that LyX doesn't know about it, though LaTeX might. It's based upon report.cls, so the attached should do it, or at least be a good start. Put this in the /layout directory of your local LyX configuration directory---that would be ~/.lyx/layouts/ in my case---and then launch LyX, hit Tools>Reconfigure, close, and relaunch. You should then have a toptesi layout available, and import should work.

rh

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass{toptesi}
# Toptesi textclass definition file. Adapted from report layout.

Format 6
Input stdclass.inc
Input numreport.inc

Style Bibliography
        TopSep                4
        LabelString           "Bibliography"
        LabelFont
          Series              Bold
          Size                Huge
        EndFont
End

Reply via email to