1

I am trying to create Illustration drop down in Lyx. For this I am creating a module in the lines of theorems-ams-bytype.module and theorems-ams-bytype.inc.

This is the code inside it:

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

What should be done in the code so that I will be able to get a nice tikz box or using mdframe some gray rounded box around the illustration box.

Right now the illustration looks like a example (coming from theorem style) but I want it should look like the concept box below.

enter image description here

1
  • Friends please let me know if the current problem is not clear the way I have posed. Any comments in that direction are also going to be helpful for me to get this work done.
    – nichas
    Oct 13, 2012 at 5:09

1 Answer 1

1

Here a suggestion of code. I have no experiences with Lyx.

\documentclass{article}

\usepackage{lipsum}
\usepackage[framemethod=tikz]{mdframed}
\usetikzlibrary{shadows}

\mdtheorem[roundcorner=5pt,backgroundcolor=gray!10,
 shadow=true,frametitlerule=true,
 middlelinewidth=1pt,frametitlerulewidth=1pt,
innertopmargin=\topskip,
apptotikzsetting={\tikzset{mdfbackground/.append style={left color=gray!10!white,right color=white},
mdfframetitlebackground/.append style ={left color=white,right color=gray!10!white}}}]{concept}{Concept}

\begin{document}    

\begin{concept}
If $a^m=a^n$ then $m=n$ or $a=1$ or $a=-1$ and $m$, $n$ are even integers.
\end{concept}
\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .