Take the 2-minute tour ×
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.

In LyX, in book format memoir, the drop down has the Example format. Just wanted to know how do I change this Example format layout. Or where is the code to be changed.

Edit: The example might be coming because of the modules I have used. I have a snap of both the example shown in the drop down as well as the modules, if that helps.

enter image description here

enter image description here

share|improve this question
    
Is this from withing Lyx or externally? –  azetina Oct 9 '12 at 19:05
1  
Can you clarify what you mean? I see no "Example" in the drop down-menu on the top left. –  Torbjørn T. Oct 9 '12 at 19:05
    
thanks for ur comment that I thought of putting the snaps –  nichas Oct 10 '12 at 13:05

1 Answer 1

up vote 2 down vote accepted

The Example environment stems from the module "Theorems (AMS, Numbered by Type)" - defined in theorems-ams-bytype.inc - that you've included - :

    Style Example
        CopyStyle             Definition
        LatexName             example
        LabelString           "Example \theexample."
        Preamble
         \theoremstyle{definition}
          \newtheorem{example}{\protect\examplename}
        EndPreamble
        Requires              amsthm
        LangPreamble
          \providecommand{\examplename}{_(Example)}
        EndLangPreamble
        BabelPreamble
          \addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
        EndBabelPreamble
        LabelCounter          example
    End

Under Windows, this is located in

C:\Program Files (x86)\LyX20\Resources\layouts

The example counter used is defined in theorems-ams-bytype.module, located in the same folder. You'll need some understanding of LaTeX to modify this to your liking, including LyX' syntax.

share|improve this answer
    
Is it a way to use tikz decoration in the example.. ?? –  nichas Oct 10 '12 at 12:05

Your Answer

 
discard

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

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