Hello
I wonder if any one can help with one or morre of those questions, please.
I want to procuce dokuments in the line of Te.pdf (attached). My lyx
file is Te.lyx and the layoutfile myTe_layout.local.

Q1. the mechanism I used is insets. I would like to make those boxes as
styles. But if I do that I cant color them in the lyx window?

Q2 if I have to use insets I also have too specify the correct style in
each box. Can this be automatic. There is a possibility to not force
plain but one can not force a given style?

Q3 I net a protected space in the beginning of each box if not the text
splits.    ??????

Q4 The boxes are not purre rectangels. Can this be fixed?


/Lars

Attachment: Te.pdf
Description: Adobe PDF document

Attachment: Te.lyx
Description: application/lyx

#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[article]{Te}

Input stdclass.inc

Preamble

\usepackage[dvipsnames]{color}
\usepackage{framed}
\definecolor{shadecolor}{rgb}{1,0,0}



\newenvironment{Definition}[1]{%
  \leftskip 2cm
  \rightskip .5in
\definecolor{shadecolor}{cmyk}{0,0,.1,0}
\begin{minipage}[t]{1\columnwidth}%
\begin{shaded}%
#1%
\end{shaded}%
\end{minipage}

}{
}


\newenvironment{Bevis}[1]{%
  ~\\
  \leftskip .2cm
  \rightskip .5in
\definecolor{shadecolor}{cmyk}{0.33,0.06,0,0}
\begin{minipage}[t]{1\columnwidth}%
\begin{shaded}%
#1%
\end{shaded}%
\end{minipage}
}{
  \par
  ~\\
}


\newenvironment{Sats}[1]{%
  ~\\
  \leftskip .2in
  \rightskip .5in
\definecolor{shadecolor}{cmyk}{0.02,0.06,0.08,0}
\begin{minipage}[t]{1\columnwidth}%
\begin{shaded}%
#1%
\end{shaded}%
\end{minipage}
}{
  \par
  ~\\
}


EndPreamble







# Theorems and such section
Style Corollary
Category        gymnasiekurs
Margin          First_Dynamic
LatexType       Environment
NextNoIndent    0
ParIndent       MM
Align           Left
LabelType       Static
LabelSep        xx

LatexName       corollary}%{
LabelString     "Corollary."

ParSkip         1.5
TopSep          1
BottomSep       1
ParSep          0
KeepEmpty       1

# font & label font definition

LabelFont
Series        Bold
Color         Blue
Size          Large
EndFont
End

Style Definition
CopyStyle        Corollary
LatexName        Definition}%{
LabelString      "Definition."
End

Style Sats
CopyStyle        Corollary
LatexName        Sats}%{
LabelString      "Sats"
End

Style Bevis
CopyStyle        Corollary
LatexName        Bevis}%{
LabelString      "Bevis."

LabelFont
Color          Green
EndFont
End



InsetLayout     Bevis
        LatexName       Bevis
        LatexType       Command
        LabelString      "Bevis."
        LyxType         custom
        BgColor         magenta
        ForcePlain      0
End

InsetLayout     Sats
        copystyle       Bevis
        LatexName       Sats
        Labelstring     "sats "
        BgColor         yellow
End

InsetLayout     Definition
        copystyle       Bevis
        LatexName       Definition
        Labelstring     "Definition "
        BgColor         cyan
End


Reply via email to