### Using the theorem enviroment with Koma-script in 1.4.x

When writting my thesis I found that I needed komascript to format a Thesis correctly, but that LyX would only allow me to enter Theorems in a AMS class. My solution to this was to have a Book(koma-script) main document that included Book(AMS) LyX documents which contained the theorems, lemmas etc. However with 1.4.1 LyX now generates a prompt LyX: Different textclasses Included file `afile.lyx' has textclass `amsbook' while parent file has textclass `scrbook'. for each included file. As I have a dozen included files, just clicking OK can take a while. Does anyone know of a way to suppress these dialogs or otherwise allow theorems to be entered via the LyX GUI into a komascript document? -- John C. McCabe-Dansted PhD Student University of Western Australia

### Re: Using the theorem enviroment with Koma-script in 1.4.x

Am Mittwoch, 17. Mai 2006 09:57 schrieb John McCabe-Dansted: When writting my thesis I found that I needed komascript to format a Thesis correctly, but that LyX would only allow me to enter Theorems in a AMS class. My solution to this was to have a Book(koma-script) main document that included Book(AMS) LyX documents which contained the theorems, lemmas etc. However with 1.4.1 LyX now generates a prompt LyX: Different textclasses Included file `afile.lyx' has textclass `amsbook' while parent file has textclass `scrbook'. for each included file. As I have a dozen included files, just clicking OK can take a while. Does anyone know of a way to suppress these dialogs or otherwise allow theorems to be entered via the LyX GUI into a komascript document? As always in such a case it's best to write a new layout file. Obviously, this layout file should be derived from the KOMA book layout file. For my thesis I've created a layout file for KOMA book with ntheorem and paralist package. I've attached the corresponding files. You have to put them into ~/.lyx/layouts (at least on Linux/Unix). Then you have to run Edit-Reconfigure... After restarting the new text class (called book (Doktorarbeit koma)) should be available. If it works then switch the class of all files to this class. Make sure you make a backup of your thesis before you try this! Regards, Ingo # Author: Ingo Kloecker [EMAIL PROTECTED] # This defines the theorem styles environments provided by ntheorem.sty. # Most of this stuff was adapted from the layout files for AMS document # classes. # This version has Theorems and other results numbered in one sequence, and all # numbered environments (figures as well) containing the section number. # (Theorem (1.1), Corollary (1.2) Theorem (1.3), etc. # This is the english version. # Due to a bug (?) in LyX the following has to be copied to the Preamble block # of the layout file which includes this file. Changing it here doesn't have # any effect. Preamble \usepackage{amsmath} \usepackage[standard,amsmath,thmmarks]{ntheorem} \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter] EndPreamble # The environments defined are : # - Proof # - Theorem # - Theorem* # - Lemma # - Lemma* # - Proposition # - Proposition* # - Corollary # - Corollary* # - Definition # - Definition* # - Remark # - Remark* # - Example # - Example* # Proof style declaration Style Proof MarginFirst_Dynamic LatexType Environment LatexName proof NextNoIndent 1 LabelSep xx ParIndent MMM ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelType Static LabelString Proof. EndLabelType Box # standard font definition Font Shape Up SizeNormal EndFont # label font definition LabelFont Shape Italic EndFont # We don't want the preamble from Theorem Preamble EndPreamble End # Theorem-numbered style declaration Style Theorem MarginFirst_Dynamic LatexType Environment LatexName thm NextNoIndent 1 LabelSep xx ParIndent MMM ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelType Static LabelString Theorem #. # standard font definition Font Shape Italic SizeNormal EndFont # label font definition LabelFont Shape Up Series Bold EndFont End # Theorem-unnumbered style declaration Style Theorem* CopyStyle Theorem LatexName thmNN* LabelString Theorem. Preamble \theoremstyle{plain} \newtheorem*{thmNN*}{Theorem} %% unnumbered; needed for LyX EndPreamble End # Lemma-numbered style declaration Style Lemma CopyStyle Theorem LatexName lem LabelString Lemma #. Preamble \theoremstyle{plain} \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering EndPreamble End # Lemma-unnumbered style declaration Style Lemma* CopyStyle Theorem LatexName lemNN* LabelString Lemma. Preamble \theoremstyle{plain} \newtheorem*{lemNN*}{Lemma} %% unnumbered; needed for LyX EndPreamble End # Proposition-numbered style declaration Style Proposition CopyStyle Theorem LatexName prop LabelString Proposition #. Preamble \theoremstyle{plain} \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start

### Using the theorem enviroment with Koma-script in 1.4.x

When writting my thesis I found that I needed komascript to format a Thesis correctly, but that LyX would only allow me to enter Theorems in a AMS class. My solution to this was to have a Book(koma-script) main document that included Book(AMS) LyX documents which contained the theorems, lemmas etc. However with 1.4.1 LyX now generates a prompt LyX: Different textclasses Included file `afile.lyx' has textclass `amsbook' while parent file has textclass `scrbook'. for each included file. As I have a dozen included files, just clicking OK can take a while. Does anyone know of a way to suppress these dialogs or otherwise allow theorems to be entered via the LyX GUI into a komascript document? -- John C. McCabe-Dansted PhD Student University of Western Australia

### Re: Using the theorem enviroment with Koma-script in 1.4.x

Am Mittwoch, 17. Mai 2006 09:57 schrieb John McCabe-Dansted: When writting my thesis I found that I needed komascript to format a Thesis correctly, but that LyX would only allow me to enter Theorems in a AMS class. My solution to this was to have a Book(koma-script) main document that included Book(AMS) LyX documents which contained the theorems, lemmas etc. However with 1.4.1 LyX now generates a prompt LyX: Different textclasses Included file `afile.lyx' has textclass `amsbook' while parent file has textclass `scrbook'. for each included file. As I have a dozen included files, just clicking OK can take a while. Does anyone know of a way to suppress these dialogs or otherwise allow theorems to be entered via the LyX GUI into a komascript document? As always in such a case it's best to write a new layout file. Obviously, this layout file should be derived from the KOMA book layout file. For my thesis I've created a layout file for KOMA book with ntheorem and paralist package. I've attached the corresponding files. You have to put them into ~/.lyx/layouts (at least on Linux/Unix). Then you have to run Edit-Reconfigure... After restarting the new text class (called book (Doktorarbeit koma)) should be available. If it works then switch the class of all files to this class. Make sure you make a backup of your thesis before you try this! Regards, Ingo # Author: Ingo Kloecker [EMAIL PROTECTED] # This defines the theorem styles environments provided by ntheorem.sty. # Most of this stuff was adapted from the layout files for AMS document # classes. # This version has Theorems and other results numbered in one sequence, and all # numbered environments (figures as well) containing the section number. # (Theorem (1.1), Corollary (1.2) Theorem (1.3), etc. # This is the english version. # Due to a bug (?) in LyX the following has to be copied to the Preamble block # of the layout file which includes this file. Changing it here doesn't have # any effect. Preamble \usepackage{amsmath} \usepackage[standard,amsmath,thmmarks]{ntheorem} \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter] EndPreamble # The environments defined are : # - Proof # - Theorem # - Theorem* # - Lemma # - Lemma* # - Proposition # - Proposition* # - Corollary # - Corollary* # - Definition # - Definition* # - Remark # - Remark* # - Example # - Example* # Proof style declaration Style Proof MarginFirst_Dynamic LatexType Environment LatexName proof NextNoIndent 1 LabelSep xx ParIndent MMM ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelType Static LabelString Proof. EndLabelType Box # standard font definition Font Shape Up SizeNormal EndFont # label font definition LabelFont Shape Italic EndFont # We don't want the preamble from Theorem Preamble EndPreamble End # Theorem-numbered style declaration Style Theorem MarginFirst_Dynamic LatexType Environment LatexName thm NextNoIndent 1 LabelSep xx ParIndent MMM ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelType Static LabelString Theorem #. # standard font definition Font Shape Italic SizeNormal EndFont # label font definition LabelFont Shape Up Series Bold EndFont End # Theorem-unnumbered style declaration Style Theorem* CopyStyle Theorem LatexName thmNN* LabelString Theorem. Preamble \theoremstyle{plain} \newtheorem*{thmNN*}{Theorem} %% unnumbered; needed for LyX EndPreamble End # Lemma-numbered style declaration Style Lemma CopyStyle Theorem LatexName lem LabelString Lemma #. Preamble \theoremstyle{plain} \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering EndPreamble End # Lemma-unnumbered style declaration Style Lemma* CopyStyle Theorem LatexName lemNN* LabelString Lemma. Preamble \theoremstyle{plain} \newtheorem*{lemNN*}{Lemma} %% unnumbered; needed for LyX EndPreamble End # Proposition-numbered style declaration Style Proposition CopyStyle Theorem LatexName prop LabelString Proposition #. Preamble \theoremstyle{plain} \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start

### Using the theorem enviroment with Koma-script in 1.4.x

When writting my thesis I found that I needed komascript to format a Thesis correctly, but that LyX would only allow me to enter Theorems in a AMS class. My solution to this was to have a Book(koma-script) main document that included Book(AMS) LyX documents which contained the theorems, lemmas etc. However with 1.4.1 LyX now generates a prompt "LyX: Different textclasses Included file `afile.lyx' has textclass `amsbook' while parent file has textclass `scrbook'." for each included file. As I have a dozen included files, just clicking OK can take a while. Does anyone know of a way to suppress these dialogs or otherwise allow theorems to be entered via the LyX GUI into a komascript document? -- John C. McCabe-Dansted PhD Student University of Western Australia

### Re: Using the theorem enviroment with Koma-script in 1.4.x

Am Mittwoch, 17. Mai 2006 09:57 schrieb John McCabe-Dansted: > When writting my thesis I found that I needed komascript to format a > Thesis correctly, but that LyX would only allow me to enter Theorems > in a AMS class. My solution to this was to have a Book(koma-script) > main document that included Book(AMS) LyX documents which contained > the theorems, lemmas etc. > > However with 1.4.1 LyX now generates a prompt > "LyX: Different textclasses > Included file `afile.lyx' > has textclass `amsbook' > while parent file has textclass `scrbook'." > for each included file. As I have a dozen included files, just > clicking OK can take a while. Does anyone know of a way to suppress > these dialogs or otherwise allow theorems to be entered via the LyX > GUI into a komascript document? As always in such a case it's best to write a new layout file. Obviously, this layout file should be derived from the KOMA book layout file. For my thesis I've created a layout file for KOMA book with ntheorem and paralist package. I've attached the corresponding files. You have to put them into ~/.lyx/layouts (at least on Linux/Unix). Then you have to run Edit->Reconfigure... After restarting the new text class (called "book (Doktorarbeit koma)") should be available. If it works then switch the class of all files to this class. Make sure you make a backup of your thesis before you try this! Regards, Ingo # Author: Ingo Kloecker <[EMAIL PROTECTED]> # This defines the theorem styles environments provided by ntheorem.sty. # Most of this stuff was adapted from the layout files for AMS document # classes. # This version has Theorems and other results numbered in one sequence, and all # numbered environments (figures as well) containing the section number. # (Theorem (1.1), Corollary (1.2) Theorem (1.3), etc. # This is the english version. # Due to a bug (?) in LyX the following has to be copied to the Preamble block # of the layout file which includes this file. Changing it here doesn't have # any effect. Preamble \usepackage{amsmath} \usepackage[standard,amsmath,thmmarks]{ntheorem} \theoremstyle{plain} \newtheorem{thm}{Theorem}[chapter] EndPreamble # The environments defined are : # - Proof # - Theorem # - Theorem* # - Lemma # - Lemma* # - Proposition # - Proposition* # - Corollary # - Corollary* # - Definition # - Definition* # - Remark # - Remark* # - Example # - Example* # Proof style declaration Style Proof MarginFirst_Dynamic LatexType Environment LatexName proof NextNoIndent 1 LabelSep xx ParIndent MMM ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelType Static LabelString "Proof." EndLabelType Box # standard font definition Font Shape Up SizeNormal EndFont # label font definition LabelFont Shape Italic EndFont # We don't want the preamble from Theorem Preamble EndPreamble End # Theorem-numbered style declaration Style Theorem MarginFirst_Dynamic LatexType Environment LatexName thm NextNoIndent 1 LabelSep xx ParIndent MMM ParSkip 0.4 ItemSep 0.2 TopSep0.7 BottomSep 0.7 ParSep0.3 Align Block AlignPossible Block, Left LabelType Static LabelString "Theorem #." # standard font definition Font Shape Italic SizeNormal EndFont # label font definition LabelFont Shape Up Series Bold EndFont End # Theorem-unnumbered style declaration Style Theorem* CopyStyle Theorem LatexName thmNN* LabelString "Theorem." Preamble \theoremstyle{plain} \newtheorem*{thmNN*}{Theorem} %% unnumbered; needed for LyX EndPreamble End # Lemma-numbered style declaration Style Lemma CopyStyle Theorem LatexName lem LabelString "Lemma #." Preamble \theoremstyle{plain} \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering EndPreamble End # Lemma-unnumbered style declaration Style Lemma* CopyStyle Theorem LatexName lemNN* LabelString "Lemma." Preamble \theoremstyle{plain} \newtheorem*{lemNN*}{Lemma} %% unnumbered; needed for LyX EndPreamble End # Proposition-numbered style declaration Style Proposition CopyStyle Theorem LatexName prop LabelString "Proposition #." Preamble \theoremstyle{plain}