Dekel Tsur wrote:

>On Wed, Sep 25, 2002 at 09:50:33PM +0000, robin wrote:
>  
>
>>I don't suppose this is feasible, but is there any command for LyX or 
>>LaTeX that will alter the depth of all section headings; e.g., change 
>>Chapter to Section, Section to Subsection etc. (or vice versa)?  Often I 
>>start writing a document in one class and want to change it to another, 
>>or need to produce two alternative versions of a document (e.g. a 
>>compact version using Article(AMS) and a deluxe executive version using 
>>Report(komascript) - it's no problem if the two classes have the same 
>>depth of headings, but when one supports Chapter and the other doesn't, 
>>it requires a lot of fiddling.
>>    
>>
>
>It is possible.
>One solution is to define a hacked ams-article layout,
>called e.g. amsart2.layout:
>--------------------------------- cut here
>#% Do not delete the line below; configure depends on this
>#  \DeclareLaTeXClass[amsart]{article (AMS*)}
>
>Input amsart
>
>Style Chapter
>  CopyStyle Section
>End
>
>Style Section
>  CopyStyle Subsection
>End
>---------------------------------- cut here
>place it in ~/.lyx/layouts and select Edit->reconfigure.
>
Should have thought of that.  I'm thinking of hacking amsart anyway - I 
like the overall look of it, but I really don't need all the 
mathematical stuff.

Robin

-- 
"Mix a little foolishness with your serious plans.
It's lovely to be silly at the right moment" - Horace

Robin Turner
IDMYO
Bilkent Üniversitesi
Ankara 06533

http://www.bilkent.edu.tr/~robin



Reply via email to