Numbering exercises with koma-script

2003-12-23 Thread Paul Smith
Dear All

I would like to how to number exercises under book koma-script document 
class. Could somebody here please help me?

Thank you a lot in advance!

Paul


Theorem-like and personal environments

2003-12-23 Thread Alon Altman
Hi,
  I've defined some of my own environments in the preamble of the document
(some theorem-like, some generic). I would like LyX to allow me to typeset
text in these environments without resorting to ERT to begin and end these
environments. How can I add my own environment types to the dropdown list?

  Thanks,
Alon

-- 
This message was sent by Alon Altman ([EMAIL PROTECTED]) ICQ:1366540
GPG public key at http://alon.wox.org/pubkey.txt
Key fingerprint = A670 6C81 19D3 3773 3627  DE14 B44A 50A3 FE06 7F24
--
 -=[ Random Fortune ]=-
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer


Re: Theorem-like and personal environments

2003-12-23 Thread robin
Alon Altman wrote:
Hi,
  I've defined some of my own environments in the preamble of the document
(some theorem-like, some generic). I would like LyX to allow me to typeset
text in these environments without resorting to ERT to begin and end these
environments. How can I add my own environment types to the dropdown list?
You need to write a layout file.  It's best to start by copying the 
layout file you normally use from /usr/sharew/lyx/layouts (or the 
equivalent directory on your system) to the .lyx/layouts directory in 
your home directory, renaming it to whatever you want.

Then add your new environments or modify existing ones. Here's a rather 
complicated example from one of my layout files:

# Box style definition
# Adapted from a style by Herbert Voss
Style Box
  MarginStatic
  LatexType Environment
  LatexName myBox
  NextNoIndent  1
  LeftMarginm
  RightMargin   m
  TopSep0.5
  ParSep0.5
  BottomSep 0.5
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
  Font
color   blue
  EndFont
#define the environment myBox

  Preamble
\newenvironment{myBox}{%
  \noindent%
  [EMAIL PROTECTED]
  \begin{minipage}[t]{0.5\columnwidth}%
}{%
  \end{minipage}%
  \end{lrbox}%
  [EMAIL PROTECTED]
  \vspace{0.5ex}
}%
EndPreamble
The kind of stuff LyX can handle, like margins and alignments, goes in 
the first part, but if you want complex LaTeX stuff, it needs to be 
defined in the Preamble section.

Run Edit-Reconfigure in LyX, and the next time you run LyX your new 
layout should show up.

Robin

--
Certitude is possible for those who only own one encyclopedia.
- Robert Anton Wilson
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Numbering exercises with koma-script

2003-12-23 Thread Paul Smith
Dear All

I would like to how to number exercises under book koma-script document 
class. Could somebody here please help me?

Thank you a lot in advance!

Paul


Theorem-like and personal environments

2003-12-23 Thread Alon Altman
Hi,
  I've defined some of my own environments in the preamble of the document
(some theorem-like, some generic). I would like LyX to allow me to typeset
text in these environments without resorting to ERT to begin and end these
environments. How can I add my own environment types to the dropdown list?

  Thanks,
Alon

-- 
This message was sent by Alon Altman ([EMAIL PROTECTED]) ICQ:1366540
GPG public key at http://alon.wox.org/pubkey.txt
Key fingerprint = A670 6C81 19D3 3773 3627  DE14 B44A 50A3 FE06 7F24
--
 -=[ Random Fortune ]=-
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer


Re: Theorem-like and personal environments

2003-12-23 Thread robin
Alon Altman wrote:
Hi,
  I've defined some of my own environments in the preamble of the document
(some theorem-like, some generic). I would like LyX to allow me to typeset
text in these environments without resorting to ERT to begin and end these
environments. How can I add my own environment types to the dropdown list?
You need to write a layout file.  It's best to start by copying the 
layout file you normally use from /usr/sharew/lyx/layouts (or the 
equivalent directory on your system) to the .lyx/layouts directory in 
your home directory, renaming it to whatever you want.

Then add your new environments or modify existing ones. Here's a rather 
complicated example from one of my layout files:

# Box style definition
# Adapted from a style by Herbert Voss
Style Box
  MarginStatic
  LatexType Environment
  LatexName myBox
  NextNoIndent  1
  LeftMarginm
  RightMargin   m
  TopSep0.5
  ParSep0.5
  BottomSep 0.5
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
  Font
color   blue
  EndFont
#define the environment myBox

  Preamble
\newenvironment{myBox}{%
  \noindent%
  [EMAIL PROTECTED]
  \begin{minipage}[t]{0.5\columnwidth}%
}{%
  \end{minipage}%
  \end{lrbox}%
  [EMAIL PROTECTED]
  \vspace{0.5ex}
}%
EndPreamble
The kind of stuff LyX can handle, like margins and alignments, goes in 
the first part, but if you want complex LaTeX stuff, it needs to be 
defined in the Preamble section.

Run Edit-Reconfigure in LyX, and the next time you run LyX your new 
layout should show up.

Robin

--
Certitude is possible for those who only own one encyclopedia.
- Robert Anton Wilson
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin




Numbering exercises with koma-script

2003-12-23 Thread Paul Smith
Dear All

I would like to how to number exercises under book koma-script document 
class. Could somebody here please help me?

Thank you a lot in advance!

Paul


Theorem-like and personal environments

2003-12-23 Thread Alon Altman
Hi,
  I've defined some of my own environments in the preamble of the document
(some theorem-like, some generic). I would like LyX to allow me to typeset
text in these environments without resorting to ERT to begin and end these
environments. How can I add my own environment types to the dropdown list?

  Thanks,
Alon

-- 
This message was sent by Alon Altman ([EMAIL PROTECTED]) ICQ:1366540
GPG public key at http://alon.wox.org/pubkey.txt
Key fingerprint = A670 6C81 19D3 3773 3627  DE14 B44A 50A3 FE06 7F24
--
 -=[ Random Fortune ]=-
Those who do not understand Unix are condemned to reinvent it, poorly.
-- Henry Spencer


Re: Theorem-like and personal environments

2003-12-23 Thread robin
Alon Altman wrote:
Hi,
  I've defined some of my own environments in the preamble of the document
(some theorem-like, some generic). I would like LyX to allow me to typeset
text in these environments without resorting to ERT to begin and end these
environments. How can I add my own environment types to the dropdown list?
You need to write a layout file.  It's best to start by copying the 
layout file you normally use from /usr/sharew/lyx/layouts (or the 
equivalent directory on your system) to the .lyx/layouts directory in 
your home directory, renaming it to whatever you want.

Then add your new environments or modify existing ones. Here's a rather 
complicated example from one of my layout files:

# Box style definition
# Adapted from a style by Herbert Voss
Style Box
  MarginStatic
  LatexType Environment
  LatexName myBox
  NextNoIndent  1
  LeftMarginm
  RightMargin   m
  TopSep0.5
  ParSep0.5
  BottomSep 0.5
  Align Block
  AlignPossible Block, Left, Right, Center
  LabelType No_Label
  Font
color   blue
  EndFont
#define the environment myBox

  Preamble
\newenvironment{myBox}{%
  \noindent%
  [EMAIL PROTECTED]
  \begin{minipage}[t]{0.5\columnwidth}%
}{%
  \end{minipage}%
  \end{lrbox}%
  [EMAIL PROTECTED]
  \vspace{0.5ex}
}%
EndPreamble
The kind of stuff LyX can handle, like margins and alignments, goes in 
the first part, but if you want complex LaTeX stuff, it needs to be 
defined in the Preamble section.

Run Edit->Reconfigure in LyX, and the next time you run LyX your new 
layout should show up.

Robin

--
"Certitude is possible for those who only own one encyclopedia."
- Robert Anton Wilson
Robin Turner
IDMYO
Bilkent Univeritesi
Ankara 06533
Turkey
www.bilkent.edu.tr/~robin