TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
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."
        Requires              amsthm
        LabelCounter          example

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


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.