On 11/14/2011 07:05 AM, Murat Yildizoglu wrote:
Hi Boyko,
You would need to write a layout file for Lyx, based on the Latex style.
You can check:
-Lyx Wiki;
-Rob's pages: http://blog.oak-tree.us/index.php/2009/11/02/custom-lyx-nih
- Steve Litt has also detailed instructions.
See also chapter 5 of the Customization manual, which addresses this
very issue. You will also want to look at the layout files that ship
with LyX.
Depending upon what your LaTeX style is, it may be quite simple to
define a LyX layout for it. This will largely depend upon how many
commands and environments it has that differ from something LyX already
makes available. But let's say the new class, ourconf.cls, is based upon
article.cls, with some additions and formatting changes. Then:
=====
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass{ourconf}
Format 31
Input article.layout
# Now add the new stuff
=====
You don't necessarily need to change anything about formatting inside
LyX itself. LyX isn't WYSIWYG anyway.
Richard