Le 25/09/2015 03:34, Nader Mahmoudi a écrit :
Dear Sir/Madam,

I am writing my M.Sc. thesis in latex template provide by my university
(You may find the template folder here
<http://www.ozyegin.edu.tr/getattachment/AKADEMIK-PROGRAMLAR/Fen-Bilimleri-Enstitusu/Ogrenciler-Icin/OzU-Thesis-Style-TEMPLATE.rar>).
As Lyx provides more user-friend space to write the science, I would
like to convert to .lyx file. However, because the document class is not
available on Lyx, it could not do so. I tried to import from
File/Import/latex(plain), but the error occurred while running. As I am
very new in Lyx, I could not understand the information given here
<http://wiki.lyx.org/Layouts/CreatingLayouts>. Please let me know there
is any simple way to do so.

Best regards,
Nader Mahmoudi


Dear Nader,


After having looked at the files it seems that creating a dedicated layout is the only option. The class ozu-thesis.cls is based on the report class so we can start from there. See the attached file ozu-thesis.layout which would be your starting point and which just loads the layout for the report class.

To use it you need to create a lyx file and select a local format file under "Class". See the attached example lyx file which needs to be saved in the same directory as ozu-thesis.layout, ozu-thesis.cls and the other files.

At this point it only has the features from the report class. You can then extend it with the features from ozu-thesis.cls in two ways:

* Use ERT to directly input LaTeX commands (this is quickly cumbersome for environments that you are going to use often but will allow you to move forward).

* You can progressively define the missing environments in the "Local format" pane after reading the "Customization" guide and the many examples located in the "layouts" dir of your lyx installation.

Try to compare the "view source" pane with the example tex file if you encounter problems.

Hopefully, once you are done, you can send us the final state of your layout so that others will benefit from your work.


Best,
Guillaume

Attachment: ozu-thesis.lyx
Description: application/lyx

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[ozu-thesis]{OZU-thesis}
#  \DeclareCategory{Reports}
# Stub for ozu-thesis.cls.

Format 49

# ozu-thesis.cls is based on report.cls
Input report.layout

Reply via email to