Re: Turning a LyX environment into a LaTeX command

2006-06-21 Thread David Neeley

The latest version of this guide, dated February 2006, is at
http://www.tug.org/tex-archive/macros/latex/doc/clsguide.pdf

David

On 6/15/06, Rich Shepard [EMAIL PROTECTED] wrote:

On Thu, 15 Jun 2006, [EMAIL PROTECTED] wrote:

 PS. Steve, let me know if you need or would like help.

   There is a document available as a .pdf file that might be helpful. It's
called LaTeX2e for class and package writers. The date is 12 March 1998.

   I no longer have the digital file because I printed it.

Rich


Re: Turning a LyX environment into a LaTeX command

2006-06-21 Thread David Neeley

The latest version of this guide, dated February 2006, is at
http://www.tug.org/tex-archive/macros/latex/doc/clsguide.pdf

David

On 6/15/06, Rich Shepard [EMAIL PROTECTED] wrote:

On Thu, 15 Jun 2006, [EMAIL PROTECTED] wrote:

 PS. Steve, let me know if you need or would like help.

   There is a document available as a .pdf file that might be helpful. It's
called LaTeX2e for class and package writers. The date is 12 March 1998.

   I no longer have the digital file because I printed it.

Rich


Re: Turning a LyX environment into a LaTeX command

2006-06-21 Thread David Neeley

The latest version of this guide, dated February 2006, is at
http://www.tug.org/tex-archive/macros/latex/doc/clsguide.pdf

David

On 6/15/06, Rich Shepard <[EMAIL PROTECTED]> wrote:

On Thu, 15 Jun 2006, [EMAIL PROTECTED] wrote:

> PS. Steve, let me know if you need or would like help.

   There is a document available as a .pdf file that might be helpful. It's
called "LaTeX2e for class and package writers." The date is 12 March 1998.

   I no longer have the digital file because I printed it.

Rich


Turning a LyX environment into a LaTeX command

2006-06-15 Thread Steve Litt
Hi all,

After Richard Heck talked about LatexType=Command in the LyX Title environment 
thread, I started experimenting and got it to work. I have a LyX and LaTeX 
breakout environment (breakout is the name of the environment) which prints 
in a shaded box, with a label. However, the label isn't hard coded, but 
instead is contained in a variable called breakoutstring.

I had previously been setting breakoutstring with ERT before the section of 
breakout environment, but I don't like ERT. So, taking Richard Heck's advice, 
I made a BreakoutTitle LyX environment whose LatexType is command, and whose 
LatexName is setBreakoutstring. setBreakoutstring is simply a LaTeX (actually 
TeX) command to set the variable breakoutstring:

\def\setBreakoutstring#1{\def\breakoutstring{#1}}

I tried first to do it with \newcommand, but couldn't get it to compile. If 
anyone can show me how, please do.

Anyway, the following is the code for BreakoutTitle:

# Breakout title style definition
Style BreakoutTitle
  MarginStatic
  LatexType Command
  InTitle   1
  LatexName setBreakoutstring
  ParSkip   0.4
  ItemSep   0
  TopSep1
  BottomSep 0.0
  ParSep1
  Align Center
  AlignPossible Center
  LabelType No_Label

  # standard font definition
  Font 
SizeLarge
  EndFont

Preamble
\def\setBreakoutstring#1{\def\breakoutstring{#1}}
EndPreamble

End



And in case anyone wants to see it, here's the code for Breakout:


# ### Labeled shadowed box for Breakouts ###
Style Breakout
  LatexType Environment
  LatexName breakout_l
  
  AlignPossible Left
  LeftMarginM
  RightMargin   M
  ParSkip   0.7
  ParSep0.7
  TopSep0.7
  BottomSep 0.7

  Font
  EndFont
  Preamble
\newenvironment{breakout_l}{\begin{shadowbox}{\breakoutstring}}
{\end{shadowbox}}%
  EndPreamble
End


In the preceding, shadowbox is just a home grown LaTeX environment to put the 
text in shading, and bring its borders in.

Obviously, now that I've done this, doing subtitles with an environment 
instead of ERT is pretty easy. Hope some of you can use this.

Richard -- thanks for the tip. I've been trying to do this since 2001.

Thanks

SteveT


Steve Litt
Author: 
   * Universal Troubleshooting Process courseware
   * Troubleshooting Techniques of the Successful Technologist
   * Manager's Guide to Technical Troubleshooting
   * Twenty Eight Tales of Troubleshooting
   * Rapid Learning: Secret Weapon of the Successful Technologist

http://www.troubleshooters.com/bookstore
http://www.troubleshooters.com/utp/tcourses.htm


Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread Paul A. Rubin

Steve Litt wrote:

Hi all,

After Richard Heck talked about LatexType=Command in the LyX Title environment 
thread, I started experimenting and got it to work. I have a LyX and LaTeX 
breakout environment (breakout is the name of the environment) which prints 
in a shaded box, with a label. However, the label isn't hard coded, but 
instead is contained in a variable called breakoutstring.


I had previously been setting breakoutstring with ERT before the section of 
breakout environment, but I don't like ERT. So, taking Richard Heck's advice, 
I made a BreakoutTitle LyX environment whose LatexType is command, and whose 
LatexName is setBreakoutstring. setBreakoutstring is simply a LaTeX (actually 
TeX) command to set the variable breakoutstring:


\def\setBreakoutstring#1{\def\breakoutstring{#1}}

I tried first to do it with \newcommand, but couldn't get it to compile. If 
anyone can show me how, please do.


Anyway, the following is the code for BreakoutTitle:

# Breakout title style definition
Style BreakoutTitle
  MarginStatic
  LatexType Command
  InTitle   1
  LatexName setBreakoutstring
  ParSkip   0.4
  ItemSep   0
  TopSep1
  BottomSep 0.0
  ParSep1
  Align Center
  AlignPossible Center
  LabelType No_Label

  # standard font definition
  Font 
Size		Large

  EndFont

Preamble
\def\setBreakoutstring#1{\def\breakoutstring{#1}}
EndPreamble

End



And in case anyone wants to see it, here's the code for Breakout:


# ### Labeled shadowed box for Breakouts ###
Style Breakout
  LatexType Environment
  LatexName breakout_l
  
  AlignPossible Left

  LeftMarginM
  RightMargin   M
  ParSkip   0.7
  ParSep0.7
  TopSep0.7
  BottomSep 0.7

  Font
  EndFont
  Preamble
\newenvironment{breakout_l}{\begin{shadowbox}{\breakoutstring}}
{\end{shadowbox}}%
  EndPreamble
End


In the preceding, shadowbox is just a home grown LaTeX environment to put the 
text in shading, and bring its borders in.


Obviously, now that I've done this, doing subtitles with an environment 
instead of ERT is pretty easy. Hope some of you can use this.


Richard -- thanks for the tip. I've been trying to do this since 2001.

Thanks

SteveT



Steve,

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


/Paul



Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread christian . ridderstrom

On Thu, 15 Jun 2006, Paul A. Rubin wrote:

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


Oh, you're quick :-)

Anyway, do you want to know what the most difficult thing with a wiki is?

Choosing where to put, or what to call a new page...

Anyway, I'd suggest putting this either in the group Layouts, perhaps

http://wiki.lyx.org/Layouts/EnvironmentBreakout

or in the group Examples/

http://wiki.lyx.org/Examples/EnvironmentBreakout

Hmm.. maybe Layouts/ make more sense? I assume that the way someone would 
use this would be to place Steves' code in a file and then include it?


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread christian . ridderstrom

On Thu, 15 Jun 2006, Paul A. Rubin wrote:

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


PS. Steve, let me know if you need or would like help.

/C

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread Rich Shepard

On Thu, 15 Jun 2006, [EMAIL PROTECTED] wrote:


PS. Steve, let me know if you need or would like help.


  There is a document available as a .pdf file that might be helpful. It's
called LaTeX2e for class and package writers. The date is 12 March 1998.

  I no longer have the digital file because I printed it.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Turning a LyX environment into a LaTeX command

2006-06-15 Thread Steve Litt
Hi all,

After Richard Heck talked about LatexType=Command in the LyX Title environment 
thread, I started experimenting and got it to work. I have a LyX and LaTeX 
breakout environment (breakout is the name of the environment) which prints 
in a shaded box, with a label. However, the label isn't hard coded, but 
instead is contained in a variable called breakoutstring.

I had previously been setting breakoutstring with ERT before the section of 
breakout environment, but I don't like ERT. So, taking Richard Heck's advice, 
I made a BreakoutTitle LyX environment whose LatexType is command, and whose 
LatexName is setBreakoutstring. setBreakoutstring is simply a LaTeX (actually 
TeX) command to set the variable breakoutstring:

\def\setBreakoutstring#1{\def\breakoutstring{#1}}

I tried first to do it with \newcommand, but couldn't get it to compile. If 
anyone can show me how, please do.

Anyway, the following is the code for BreakoutTitle:

# Breakout title style definition
Style BreakoutTitle
  MarginStatic
  LatexType Command
  InTitle   1
  LatexName setBreakoutstring
  ParSkip   0.4
  ItemSep   0
  TopSep1
  BottomSep 0.0
  ParSep1
  Align Center
  AlignPossible Center
  LabelType No_Label

  # standard font definition
  Font 
SizeLarge
  EndFont

Preamble
\def\setBreakoutstring#1{\def\breakoutstring{#1}}
EndPreamble

End



And in case anyone wants to see it, here's the code for Breakout:


# ### Labeled shadowed box for Breakouts ###
Style Breakout
  LatexType Environment
  LatexName breakout_l
  
  AlignPossible Left
  LeftMarginM
  RightMargin   M
  ParSkip   0.7
  ParSep0.7
  TopSep0.7
  BottomSep 0.7

  Font
  EndFont
  Preamble
\newenvironment{breakout_l}{\begin{shadowbox}{\breakoutstring}}
{\end{shadowbox}}%
  EndPreamble
End


In the preceding, shadowbox is just a home grown LaTeX environment to put the 
text in shading, and bring its borders in.

Obviously, now that I've done this, doing subtitles with an environment 
instead of ERT is pretty easy. Hope some of you can use this.

Richard -- thanks for the tip. I've been trying to do this since 2001.

Thanks

SteveT


Steve Litt
Author: 
   * Universal Troubleshooting Process courseware
   * Troubleshooting Techniques of the Successful Technologist
   * Manager's Guide to Technical Troubleshooting
   * Twenty Eight Tales of Troubleshooting
   * Rapid Learning: Secret Weapon of the Successful Technologist

http://www.troubleshooters.com/bookstore
http://www.troubleshooters.com/utp/tcourses.htm


Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread Paul A. Rubin

Steve Litt wrote:

Hi all,

After Richard Heck talked about LatexType=Command in the LyX Title environment 
thread, I started experimenting and got it to work. I have a LyX and LaTeX 
breakout environment (breakout is the name of the environment) which prints 
in a shaded box, with a label. However, the label isn't hard coded, but 
instead is contained in a variable called breakoutstring.


I had previously been setting breakoutstring with ERT before the section of 
breakout environment, but I don't like ERT. So, taking Richard Heck's advice, 
I made a BreakoutTitle LyX environment whose LatexType is command, and whose 
LatexName is setBreakoutstring. setBreakoutstring is simply a LaTeX (actually 
TeX) command to set the variable breakoutstring:


\def\setBreakoutstring#1{\def\breakoutstring{#1}}

I tried first to do it with \newcommand, but couldn't get it to compile. If 
anyone can show me how, please do.


Anyway, the following is the code for BreakoutTitle:

# Breakout title style definition
Style BreakoutTitle
  MarginStatic
  LatexType Command
  InTitle   1
  LatexName setBreakoutstring
  ParSkip   0.4
  ItemSep   0
  TopSep1
  BottomSep 0.0
  ParSep1
  Align Center
  AlignPossible Center
  LabelType No_Label

  # standard font definition
  Font 
Size		Large

  EndFont

Preamble
\def\setBreakoutstring#1{\def\breakoutstring{#1}}
EndPreamble

End



And in case anyone wants to see it, here's the code for Breakout:


# ### Labeled shadowed box for Breakouts ###
Style Breakout
  LatexType Environment
  LatexName breakout_l
  
  AlignPossible Left

  LeftMarginM
  RightMargin   M
  ParSkip   0.7
  ParSep0.7
  TopSep0.7
  BottomSep 0.7

  Font
  EndFont
  Preamble
\newenvironment{breakout_l}{\begin{shadowbox}{\breakoutstring}}
{\end{shadowbox}}%
  EndPreamble
End


In the preceding, shadowbox is just a home grown LaTeX environment to put the 
text in shading, and bring its borders in.


Obviously, now that I've done this, doing subtitles with an environment 
instead of ERT is pretty easy. Hope some of you can use this.


Richard -- thanks for the tip. I've been trying to do this since 2001.

Thanks

SteveT



Steve,

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


/Paul



Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread christian . ridderstrom

On Thu, 15 Jun 2006, Paul A. Rubin wrote:

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


Oh, you're quick :-)

Anyway, do you want to know what the most difficult thing with a wiki is?

Choosing where to put, or what to call a new page...

Anyway, I'd suggest putting this either in the group Layouts, perhaps

http://wiki.lyx.org/Layouts/EnvironmentBreakout

or in the group Examples/

http://wiki.lyx.org/Examples/EnvironmentBreakout

Hmm.. maybe Layouts/ make more sense? I assume that the way someone would 
use this would be to place Steves' code in a file and then include it?


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread christian . ridderstrom

On Thu, 15 Jun 2006, Paul A. Rubin wrote:

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


PS. Steve, let me know if you need or would like help.

/C

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread Rich Shepard

On Thu, 15 Jun 2006, [EMAIL PROTECTED] wrote:


PS. Steve, let me know if you need or would like help.


  There is a document available as a .pdf file that might be helpful. It's
called LaTeX2e for class and package writers. The date is 12 March 1998.

  I no longer have the digital file because I printed it.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863


Turning a LyX environment into a LaTeX command

2006-06-15 Thread Steve Litt
Hi all,

After Richard Heck talked about LatexType=Command in the LyX Title environment 
thread, I started experimenting and got it to work. I have a LyX and LaTeX 
breakout environment (breakout is the name of the environment) which prints 
in a shaded box, with a label. However, the label isn't hard coded, but 
instead is contained in a variable called breakoutstring.

I had previously been setting breakoutstring with ERT before the section of 
breakout environment, but I don't like ERT. So, taking Richard Heck's advice, 
I made a BreakoutTitle LyX environment whose LatexType is command, and whose 
LatexName is setBreakoutstring. setBreakoutstring is simply a LaTeX (actually 
TeX) command to set the variable breakoutstring:

\def\setBreakoutstring#1{\def\breakoutstring{#1}}

I tried first to do it with \newcommand, but couldn't get it to compile. If 
anyone can show me how, please do.

Anyway, the following is the code for BreakoutTitle:

# Breakout title style definition
Style BreakoutTitle
  MarginStatic
  LatexType Command
  InTitle   1
  LatexName setBreakoutstring
  ParSkip   0.4
  ItemSep   0
  TopSep1
  BottomSep 0.0
  ParSep1
  Align Center
  AlignPossible Center
  LabelType No_Label

  # standard font definition
  Font 
SizeLarge
  EndFont

Preamble
\def\setBreakoutstring#1{\def\breakoutstring{#1}}
EndPreamble

End



And in case anyone wants to see it, here's the code for Breakout:


# ### Labeled shadowed box for Breakouts ###
Style Breakout
  LatexType Environment
  LatexName breakout_l
  
  AlignPossible Left
  LeftMargin"M"
  RightMargin   "M"
  ParSkip   0.7
  ParSep0.7
  TopSep0.7
  BottomSep 0.7

  Font
  EndFont
  Preamble
\newenvironment{breakout_l}{\begin{shadowbox}{\breakoutstring}}
{\end{shadowbox}}%
  EndPreamble
End


In the preceding, shadowbox is just a home grown LaTeX environment to put the 
text in shading, and bring its borders in.

Obviously, now that I've done this, doing subtitles with an environment 
instead of ERT is pretty easy. Hope some of you can use this.

Richard -- thanks for the tip. I've been trying to do this since 2001.

Thanks

SteveT


Steve Litt
Author: 
   * Universal Troubleshooting Process courseware
   * Troubleshooting Techniques of the Successful Technologist
   * Manager's Guide to Technical Troubleshooting
   * Twenty Eight Tales of Troubleshooting
   * Rapid Learning: Secret Weapon of the Successful Technologist

http://www.troubleshooters.com/bookstore
http://www.troubleshooters.com/utp/tcourses.htm


Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread Paul A. Rubin

Steve Litt wrote:

Hi all,

After Richard Heck talked about LatexType=Command in the LyX Title environment 
thread, I started experimenting and got it to work. I have a LyX and LaTeX 
breakout environment (breakout is the name of the environment) which prints 
in a shaded box, with a label. However, the label isn't hard coded, but 
instead is contained in a variable called breakoutstring.


I had previously been setting breakoutstring with ERT before the section of 
breakout environment, but I don't like ERT. So, taking Richard Heck's advice, 
I made a BreakoutTitle LyX environment whose LatexType is command, and whose 
LatexName is setBreakoutstring. setBreakoutstring is simply a LaTeX (actually 
TeX) command to set the variable breakoutstring:


\def\setBreakoutstring#1{\def\breakoutstring{#1}}

I tried first to do it with \newcommand, but couldn't get it to compile. If 
anyone can show me how, please do.


Anyway, the following is the code for BreakoutTitle:

# Breakout title style definition
Style BreakoutTitle
  MarginStatic
  LatexType Command
  InTitle   1
  LatexName setBreakoutstring
  ParSkip   0.4
  ItemSep   0
  TopSep1
  BottomSep 0.0
  ParSep1
  Align Center
  AlignPossible Center
  LabelType No_Label

  # standard font definition
  Font 
Size		Large

  EndFont

Preamble
\def\setBreakoutstring#1{\def\breakoutstring{#1}}
EndPreamble

End



And in case anyone wants to see it, here's the code for Breakout:


# ### Labeled shadowed box for Breakouts ###
Style Breakout
  LatexType Environment
  LatexName breakout_l
  
  AlignPossible Left

  LeftMargin"M"
  RightMargin   "M"
  ParSkip   0.7
  ParSep0.7
  TopSep0.7
  BottomSep 0.7

  Font
  EndFont
  Preamble
\newenvironment{breakout_l}{\begin{shadowbox}{\breakoutstring}}
{\end{shadowbox}}%
  EndPreamble
End


In the preceding, shadowbox is just a home grown LaTeX environment to put the 
text in shading, and bring its borders in.


Obviously, now that I've done this, doing subtitles with an environment 
instead of ERT is pretty easy. Hope some of you can use this.


Richard -- thanks for the tip. I've been trying to do this since 2001.

Thanks

SteveT



Steve,

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


/Paul



Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread christian . ridderstrom

On Thu, 15 Jun 2006, Paul A. Rubin wrote:

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


Oh, you're quick :-)

Anyway, do you want to know what the most difficult thing with a wiki is?

Choosing where to put, or what to call a new page...

Anyway, I'd suggest putting this either in the group Layouts, perhaps

http://wiki.lyx.org/Layouts/EnvironmentBreakout

or in the group Examples/

http://wiki.lyx.org/Examples/EnvironmentBreakout

Hmm.. maybe Layouts/ make more sense? I assume that the way someone would 
use this would be to place Steves' code in a file and then include it?


/Christian

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread christian . ridderstrom

On Thu, 15 Jun 2006, Paul A. Rubin wrote:

Thanks for sharing this.  I'll beat Christian to the punch :-) and 
suggest putting on the wiki as a tip.


PS. Steve, let me know if you need or would like help.

/C

--
Christian Ridderström, +46-8-768 39 44   http://www.md.kth.se/~chr

Re: Turning a LyX environment into a LaTeX command

2006-06-15 Thread Rich Shepard

On Thu, 15 Jun 2006, [EMAIL PROTECTED] wrote:


PS. Steve, let me know if you need or would like help.


  There is a document available as a .pdf file that might be helpful. It's
called "LaTeX2e for class and package writers." The date is 12 March 1998.

  I no longer have the digital file because I printed it.

Rich

--
Richard B. Shepard, Ph.D.   |The Environmental Permitting
Applied Ecosystem Services, Inc.(TM)|Accelerator
 Voice: 503-667-4517  Fax: 503-667-8863