Hi!

I need to use any document class, for example the NCC (http://
texcatalogue.sarovar.org/entries/ncclatex.html), which is not present in LyX 
(although MikTeX 2.7 has NCC). They propose to make "new.layout" on the basis 
of class.cls and class.sty files to use such classes. I tried to make the 
layout file, but with no success:
----------------------------------------------------------
# \DeclareLaTeXClass[book, ncclatex.sty]{book (NCC-LaTeX)}
# DescriptionBegin 
# 2006/01/17 v1.10 NCC-LaTeX document class (NCC)
# DescriptionEnd

Preamble   
\usepackage{ncclatex}  
EndPreamble
----------------------------------------------------------
New class appears in the drop-down list in LyX dialog window, but if I try to 
select it, I only get error messages "Could not load class".

Additionally, using NCC, document class must be defined as

\documentclass[book]{ncc}

not as

\documentclass[ncc]{book}

But if I write
----------------------------------------------------------
# \DeclareLaTeXClass[ncc, ncclatex.sty]{ncc (NCC-LaTeX)}
# DescriptionBegin 
# 2006/01/17 v1.10 NCC-LaTeX document class (NCC)
# DescriptionEnd

Preamble   
\usepackage{ncclatex}  
EndPreamble
----------------------------------------------------------
new class not even appears in LyX list of classes.

Could anybody tell me:

1) How to make the layout file for LyX 1.6 correctly; must I re-edit full 
content of ncc.cls, ncclatex.sty etc. in layout file or no (and how to); must I 
make .inc-file, etc.;

2) Is there a way to don't use the LyX drop-down list of classes presented in 
document' preferences dialog window and, so, just to write \documentclass in 
the preambula? May be, it have to mare any "empty" layout file, choose it in 
drop-down list, but also write essential \documentclass in the preambula? It 
would be the simplest & the best solution.


Reply via email to