Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am continuing my question from Class relationship between two given .cls file?

To use an custom document class one needs to create LyX layout named appropriately.

In my custom document class. I have code like this

\if@Synopsis 
    \LoadClass[12pt,a4paper]{article}
\else
    \LoadClass[12pt,a4paper]{report}
\fi

It is dynamically loading either the article or report class. So, in this case can anyone let me know how to name my LyX layout?

share|improve this question
I think you may have inherent difficulty adding this to LyX since you would need to set \@Synopsis to either true or false before your custom document class is loaded - something I don't think you have a hook into with LyX's interface. – Werner Sep 19 '12 at 5:59

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.