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


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?


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. As far as I can see, there is no option to specify a condition for inputting a specific LyX .layout.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.