Re: Using new enumerate environment without ERT

2019-04-30 Thread Paul Smith
On Sat, Apr 27, 2019 at 2:42 PM Guenter Milde  wrote:
>
> >> Dear All,
>
> >> Suppose that I have created a new enumerate-like enumerate, say
> >> xenumerate. How can I use it from inside LyX without recourse to ERT?
>
> > A couple of possibilities come to mind. If you want to use the new
> > version exclusively (and not use good old "enumerate"), you could
> > redefine the enumerate environment itself. Assuming you want xenumerate
> > to coexist with enumerate, you can define a layout for it, either in the
> > Local Layout portion of the document settings (if you only want it for
> > one document) or in a module file installed in your local layouts directory.
>
> > Guessing that you want the last one (i.e., add this along side regular
> > enumerations and make it available to any document that wants it), I
> > would suggest looking at /usr/share/lyx/layouts/stdlists.inc for
> > inspiration. (That's the Linux path; on other OSes, your path may
> > differ.) Look for the section that begins "Style Enumerate" and copy it
> > to your local module file (which will also need the proper header
> > stuff). Change the first line of the style to "Style Xenumerate" (or
> > whatever), change the LatexName entry to "xenumerate", and see if
> > anything else needs tweaking (quite possibly not).
>
> It may help to have a look a the "enumitem" module that enhances enumeration
> environments.
>
> The appended gm-lists.module requires and uses enumitem to define
> additional list types. It is a bit dated, though.
>
>
> > Help > Customization has lots of details about creating your own modules
> > and paragraph styles. Note that you will have to expressly include the
> > module in any document where you want to use the style. (You could hack
> > stdlists.inc itself, but then you would need to repeat the hack any time
> > an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)

Thanks, Günter, I will have a look at that.

Paul


Re: Using new enumerate environment without ERT

2019-04-27 Thread Guenter Milde
On 2019-04-26, Paul A. Rubin wrote:
> On 4/26/19 4:16 PM, Paul Smith wrote:
>> Dear All,

>> Suppose that I have created a new enumerate-like enumerate, say
>> xenumerate. How can I use it from inside LyX without recourse to ERT?

>> Thanks in advance,

>> Paul
> A couple of possibilities come to mind. If you want to use the new 
> version exclusively (and not use good old "enumerate"), you could 
> redefine the enumerate environment itself. Assuming you want xenumerate 
> to coexist with enumerate, you can define a layout for it, either in the 
> Local Layout portion of the document settings (if you only want it for 
> one document) or in a module file installed in your local layouts directory.

> Guessing that you want the last one (i.e., add this along side regular 
> enumerations and make it available to any document that wants it), I 
> would suggest looking at /usr/share/lyx/layouts/stdlists.inc for 
> inspiration. (That's the Linux path; on other OSes, your path may 
> differ.) Look for the section that begins "Style Enumerate" and copy it 
> to your local module file (which will also need the proper header 
> stuff). Change the first line of the style to "Style Xenumerate" (or 
> whatever), change the LatexName entry to "xenumerate", and see if 
> anything else needs tweaking (quite possibly not).

It may help to have a look a the "enumitem" module that enhances enumeration
environments. 

The appended gm-lists.module requires and uses enumitem to define
additional list types. It is a bit dated, though.


> Help > Customization has lots of details about creating your own modules 
> and paragraph styles. Note that you will have to expressly include the 
> module in any document where you want to use the style. (You could hack 
> stdlists.inc itself, but then you would need to repeat the hack any time 
> an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)


Günter


#\DeclareLyXModule{gmlists}
#DescriptionBegin
# Adds quoted-list and condensed list environments.
#DescriptionEnd
#Requires: enumitem
#Author: Günter Milde 

# date: 2008-12-04
# last update: 2016-07-21

Format 49

# Style Variants
# ==


Style Enumerate-Alpha
  CopyStyleEnumerate
  LatexParam   "[label=\emph{\alph*}),ref=\emph{\alph*},fullwidth,itemsep=1ex]"
  Margin   First_Dynamic
  LeftMargin   
  LabelCounter enumi
  LabelString  "\alph{enumi})"
  LabelFont
Series  Medium
Shape   Italic
  EndFont
End


# Dense (condensed/compact) list environments
# ===

Style Itemize-Compact
CopyStyle Itemize
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End 

Style Enumerate-Compact
CopyStyle Enumerate
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End 

Style Description-Compact
CopyStyle Description
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem 
manual)"
PresetArg noitemsep
EndArgument
ParSep0
TopSep0.4
BottomSep 0.4
End

# Indented compact LyX-List environment
Style Quoted-Labeling
CopyStyle   Labeling
LatexName   qlyxlist
ItemSep 0
ParSep  0
LabelIndent MMM
Preamble
% labeling-like list based on enumitem's description list with
% mandatory second argument (label-pattern) and indent of 2em:
\newenvironment{qlyxlist}[2][]%
  {\settowidth{\lyxlabelwidth}{#2}
   \addtolength{\lyxlabelwidth}{1.5em}
   \description[font=,style=sameline,
 leftmargin=\lyxlabelwidth,
 noitemsep, labelindent=1.5em,
 #1]}
  {\enddescription}
EndPreamble

End

# Backwards compatibility aliases:

Style Compact-Itemize
  ObsoletedByItemize-Compact
End  

Style Itemize-Dense
  ObsoletedByItemize-Compact
End

Style Compact-Enumerate
  ObsoletedBy   Enumerate-Compact
End

Style Enumerate-Dense
  ObsoletedBy   Enumerate-

Re: Using new enumerate environment without ERT

2019-04-26 Thread Paul Smith
On Fri, Apr 26, 2019 at 9:39 PM Paul A. Rubin  wrote:
>
> > Suppose that I have created a new enumerate-like enumerate, say
> > xenumerate. How can I use it from inside LyX without recourse to ERT?
> >
> A couple of possibilities come to mind. If you want to use the new
> version exclusively (and not use good old "enumerate"), you could
> redefine the enumerate environment itself. Assuming you want xenumerate
> to coexist with enumerate, you can define a layout for it, either in the
> Local Layout portion of the document settings (if you only want it for
> one document) or in a module file installed in your local layouts directory.
>
> Guessing that you want the last one (i.e., add this along side regular
> enumerations and make it available to any document that wants it), I
> would suggest looking at /usr/share/lyx/layouts/stdlists.inc for
> inspiration. (That's the Linux path; on other OSes, your path may
> differ.) Look for the section that begins "Style Enumerate" and copy it
> to your local module file (which will also need the proper header
> stuff). Change the first line of the style to "Style Xenumerate" (or
> whatever), change the LatexName entry to "xenumerate", and see if
> anything else needs tweaking (quite possibly not).
>
> Help > Customization has lots of details about creating your own modules
> and paragraph styles. Note that you will have to expressly include the
> module in any document where you want to use the style. (You could hack
> stdlists.inc itself, but then you would need to repeat the hack any time
> an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)

Thanks, Paul, for your very valuable help! I am going now to ponder
about your suggestions and choose the one that fits best my needs.

Paul


Re: Using new enumerate environment without ERT

2019-04-26 Thread Paul A. Rubin

On 4/26/19 4:16 PM, Paul Smith wrote:

Dear All,

Suppose that I have created a new enumerate-like enumerate, say
xenumerate. How can I use it from inside LyX without recourse to ERT?

Thanks in advance,

Paul
A couple of possibilities come to mind. If you want to use the new 
version exclusively (and not use good old "enumerate"), you could 
redefine the enumerate environment itself. Assuming you want xenumerate 
to coexist with enumerate, you can define a layout for it, either in the 
Local Layout portion of the document settings (if you only want it for 
one document) or in a module file installed in your local layouts directory.


Guessing that you want the last one (i.e., add this along side regular 
enumerations and make it available to any document that wants it), I 
would suggest looking at /usr/share/lyx/layouts/stdlists.inc for 
inspiration. (That's the Linux path; on other OSes, your path may 
differ.) Look for the section that begins "Style Enumerate" and copy it 
to your local module file (which will also need the proper header 
stuff). Change the first line of the style to "Style Xenumerate" (or 
whatever), change the LatexName entry to "xenumerate", and see if 
anything else needs tweaking (quite possibly not).


Help > Customization has lots of details about creating your own modules 
and paragraph styles. Note that you will have to expressly include the 
module in any document where you want to use the style. (You could hack 
stdlists.inc itself, but then you would need to repeat the hack any time 
an upgrade/reinstallation overwrote /usr/share/lyx/layouts.)


Paul (the original one)



Using new enumerate environment without ERT

2019-04-26 Thread Paul Smith
Dear All,

Suppose that I have created a new enumerate-like enumerate, say
xenumerate. How can I use it from inside LyX without recourse to ERT?

Thanks in advance,

Paul


Re: ERT before first \item inside enumerate environment

2016-05-10 Thread Jürgen Spitzmüller
Am Sonntag, den 08.05.2016, 23:56 -0400 schrieb S Shieh:
> I would like to achieve in LyX the equivalent of
> 
> \begin{frame}{WTF?}
> \begin{enumerate}
> \conti
> \item yada
> \end{enumerate}
> \end{frame}

If you want this in every enumerate environment:

\usepackage{etoolbox}
\AtBeginEnvironment{enumerate}{\conti}

If not, I would create a custom environment via Document > Settings >
Local layout:

Style ContiEnumerate
CopyStyle Enumerate
LatexName contienumerate
Preamble
\newenvironment{contienumerate}{\begin{enumerate}\conti}{\end{enumerate
}}
EndPreamble
End

HTH
Jürgen



Re: ERT before first \item inside enumerate environment

2016-05-10 Thread S Shieh

Thanks Paul.  Sorry I didn't press reply to all.

Sanford

At 10:21 AM 5/10/2016, Paul A. Rubin wrote:

Sanford,

Please keep the conversation on the list, in case others have the 
same question.


I have the Beamer resume enumerate module installed with LyX 2.1.4. IIRC,
the module did not ship with this version of LyX, so I had to download it
from the Wiki modules page (http://wiki.lyx.org/Layouts/Modules#toc10).

Paul


Sanford Shieh
Associate Professor
Department of Philosophy
Wesleyan University
350 High Street
Middletown, CT 06459
USA
(860) 685-3646 (office)
(860) 685-3861 (fax)
<sanford.sh...@wesleyan.edu>
Follow me on Academia.edu  

Re: ERT before first \item inside enumerate environment

2016-05-10 Thread Paul A . Rubin
Sanford,

Please keep the conversation on the list, in case others have the same question.

I have the Beamer resume enumerate module installed with LyX 2.1.4. IIRC,
the module did not ship with this version of LyX, so I had to download it
from the Wiki modules page (http://wiki.lyx.org/Layouts/Modules#toc10).

Paul



Re: ERT before first \item inside enumerate environment

2016-05-09 Thread Richard Heck
On 05/09/2016 09:54 PM, Scott Kostyshak wrote:
> On Sun, May 08, 2016 at 11:56:19PM -0400, S Shieh wrote:
>> I would like to achieve in LyX the equivalent of
>>
>> \begin{frame}{WTF?}
>> \begin{enumerate}
>> \conti
>> \item yada
>> \end{enumerate}
>> \end{frame}
>>
>> But if I put the cursor after 1. and use ctrl-L, \seti appears after \item.
>> If I put the cursor after the frametitle and use ctrl-L, \seti appears
>> before \begin{enumerate}
>>
>> Thanks!
>>
>> Sanford Shieh
>> Associate Professor
>> Department of Philosophy
>> Wesleyan University
>> 350 High Street
>> Middletown, CT 06459
>> USA
>> (860) 685-3646 (office)
>> (860) 685-3861 (fax)
>> <sanford.sh...@wesleyan.edu>
>> Follow me on Academia.edu
> Hi Sanford,
>
> Similar to Paul, it would be interesting to know exactly what you want
> to achieve.
>
> Note that one option is to put the entire enumerate in ERT. Another
> option would be to copy the enumerate style and add your own ERT using
> our layout methods. This second option is more advanced. You could start
> reading Help > Customization if you were prepared to spend time to
> invest and learn some advanced features of LyX.

My overall sense is that this would best be done using the features of
the enumitem package, as partially implemented in the enumitem module.
But I'm not positive.

rh

PS Hi Sanford.



Re: ERT before first \item inside enumerate environment

2016-05-09 Thread Scott Kostyshak
On Sun, May 08, 2016 at 11:56:19PM -0400, S Shieh wrote:
> I would like to achieve in LyX the equivalent of
> 
> \begin{frame}{WTF?}
> \begin{enumerate}
> \conti
> \item yada
> \end{enumerate}
> \end{frame}
> 
> But if I put the cursor after 1. and use ctrl-L, \seti appears after \item.
> If I put the cursor after the frametitle and use ctrl-L, \seti appears
> before \begin{enumerate}
> 
> Thanks!
> 
> Sanford Shieh
> Associate Professor
> Department of Philosophy
> Wesleyan University
> 350 High Street
> Middletown, CT 06459
> USA
> (860) 685-3646 (office)
> (860) 685-3861 (fax)
> <sanford.sh...@wesleyan.edu>
> Follow me on Academia.edu

Hi Sanford,

Similar to Paul, it would be interesting to know exactly what you want
to achieve.

Note that one option is to put the entire enumerate in ERT. Another
option would be to copy the enumerate style and add your own ERT using
our layout methods. This second option is more advanced. You could start
reading Help > Customization if you were prepared to spend time to
invest and learn some advanced features of LyX.

Scott


signature.asc
Description: PGP signature


Re: ERT before first \item inside enumerate environment

2016-05-09 Thread Paul A . Rubin
Is the purpose here to number enumerated items consecutively across a frame
boundary? If so, and if you have a recent version of LyX, you just need to
go to Document > Settings > Modules and add the module "Beamer Resumable
Enumerate". Then use the usual enumerate environment on the first slide and
the new Enumerate-Resume environment (from the environment drop-down list)
on subsequent slides.





ERT before first \item inside enumerate environment

2016-05-08 Thread S Shieh

I would like to achieve in LyX the equivalent of

\begin{frame}{WTF?}
\begin{enumerate}
\conti
\item yada
\end{enumerate}
\end{frame}

But if I put the cursor after 1. and use ctrl-L, \seti appears after 
\item.  If I put the cursor after the frametitle and use ctrl-L, 
\seti appears before \begin{enumerate}


Thanks!

Sanford Shieh
Associate Professor
Department of Philosophy
Wesleyan University
350 High Street
Middletown, CT 06459
USA
(860) 685-3646 (office)
(860) 685-3861 (fax)
<sanford.sh...@wesleyan.edu>
Follow me on Academia.edu  

bold numbering in \enumerate environment?

2008-07-29 Thread Matthias Diehl


Hello,

does anybody know how to change the numbers of an \enumerate environment
temporarily into bold numbers?

I want to have bold headings with a number. But the following passages of
various textformats (!) shall be indented. So I wanted to use the  
\enumerate environment

for the indentation. But then it is very hard, to get the numbers bold.

Thanks!

Regards
Matthias Diehl





Re: bold numbering in \enumerate environment?

2008-07-29 Thread Paul A. Rubin

Matthias Diehl wrote:


Hello,

does anybody know how to change the numbers of an \enumerate environment
temporarily into bold numbers?

I want to have bold headings with a number. But the following passages of
various textformats (!) shall be indented. So I wanted to use the 
\enumerate environment

for the indentation. But then it is very hard, to get the numbers bold.



If you are willing to number the list manually, you can use the 
enumerate environment and then put a label in ERT at the start of each 
item.  So, for instance, in LyX you might have


1. [\bf 1.]Here is some text.
2. [\bf 2.]Here is more text.

Where LyX is automatically supplying the numbers and everything in 
brackets (including the brackets) is inserted by you in ERT.


/Paul



bold numbering in \enumerate environment?

2008-07-29 Thread Matthias Diehl


Hello,

does anybody know how to change the numbers of an \enumerate environment
temporarily into bold numbers?

I want to have bold headings with a number. But the following passages of
various textformats (!) shall be indented. So I wanted to use the  
\enumerate environment

for the indentation. But then it is very hard, to get the numbers bold.

Thanks!

Regards
Matthias Diehl





Re: bold numbering in \enumerate environment?

2008-07-29 Thread Paul A. Rubin

Matthias Diehl wrote:


Hello,

does anybody know how to change the numbers of an \enumerate environment
temporarily into bold numbers?

I want to have bold headings with a number. But the following passages of
various textformats (!) shall be indented. So I wanted to use the 
\enumerate environment

for the indentation. But then it is very hard, to get the numbers bold.



If you are willing to number the list manually, you can use the 
enumerate environment and then put a label in ERT at the start of each 
item.  So, for instance, in LyX you might have


1. [\bf 1.]Here is some text.
2. [\bf 2.]Here is more text.

Where LyX is automatically supplying the numbers and everything in 
brackets (including the brackets) is inserted by you in ERT.


/Paul



bold numbering in \enumerate environment?

2008-07-29 Thread Matthias Diehl


Hello,

does anybody know how to change the numbers of an \enumerate environment
temporarily into bold numbers?

I want to have bold headings with a number. But the following passages of
various textformats (!) shall be indented. So I wanted to use the  
\enumerate environment

for the indentation. But then it is very hard, to get the numbers bold.

Thanks!

Regards
Matthias Diehl





Re: bold numbering in \enumerate environment?

2008-07-29 Thread Paul A. Rubin

Matthias Diehl wrote:


Hello,

does anybody know how to change the numbers of an \enumerate environment
temporarily into bold numbers?

I want to have bold headings with a number. But the following passages of
various textformats (!) shall be indented. So I wanted to use the 
\enumerate environment

for the indentation. But then it is very hard, to get the numbers bold.



If you are willing to number the list manually, you can use the 
enumerate environment and then put a label in ERT at the start of each 
item.  So, for instance, in LyX you might have


1. [\bf 1.]Here is some text.
2. [\bf 2.]Here is more text.

Where LyX is automatically supplying the numbers and everything in 
brackets (including the brackets) is inserted by you in ERT.


/Paul



Re: How to make a clone of the Enumerate environment?

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 00:54, Dirk Markert wrote:
 2008/7/22 Steve Litt [EMAIL PROTECTED]:
  Günter (and everyone else),
 
  Your response contains one of the most useful LyX idioms I've ever seen,
  limiting my biggest objection to LyX. It will lead to vastly improved
  productivity for me.
 
  Can anyone guess which part of Günter's email is so useful? I'll reveal
  it in
  another email, coming up shortly.

 CopyStyle?

 Dirk

Yes! It looks like my subsequent message didn't go through, but it was 
CopyStyle. Let me look into what happened to my second post.

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: How to make a clone of the Enumerate environment?

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 00:54, Dirk Markert wrote:
 2008/7/22 Steve Litt [EMAIL PROTECTED]:
  Günter (and everyone else),
 
  Your response contains one of the most useful LyX idioms I've ever seen,
  limiting my biggest objection to LyX. It will lead to vastly improved
  productivity for me.
 
  Can anyone guess which part of Günter's email is so useful? I'll reveal
  it in
  another email, coming up shortly.

 CopyStyle?

 Dirk

Yes! It looks like my subsequent message didn't go through, but it was 
CopyStyle. Let me look into what happened to my second post.

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: How to make a clone of the Enumerate environment?

2008-07-23 Thread Steve Litt
On Wednesday 23 July 2008 00:54, Dirk Markert wrote:
> 2008/7/22 Steve Litt <[EMAIL PROTECTED]>:
> > Günter (and everyone else),
> >
> > Your response contains one of the most useful LyX idioms I've ever seen,
> > limiting my biggest objection to LyX. It will lead to vastly improved
> > productivity for me.
> >
> > Can anyone guess which part of Günter's email is so useful? I'll reveal
> > it in
> > another email, coming up shortly.
>
> CopyStyle?
>
> Dirk

Yes! It looks like my subsequent message didn't go through, but it was 
CopyStyle. Let me look into what happened to my second post.

STeveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: How to make a clone of the Enumerate environment?

2008-07-22 Thread Steve Litt
Günter (and everyone else),

Your response contains one of the most useful LyX idioms I've ever seen, 
limiting my biggest objection to LyX. It will lead to vastly improved 
productivity for me.

Can anyone guess which part of Günter's email is so useful? I'll reveal it in 
another email, coming up shortly.

On Wednesday 16 July 2008 07:34, G. Milde wrote:
 On 14.07.08, Steve Litt wrote:
  Hi all,
 
  I'm trying to make a simple clone of the Enumerate environment. Once I
  can do that, I'll make a few changes. But I've not been able to clone
  it.

 You need to clone both, LyX layout::

   Style Questions
  CopyStyle   Enumeration


 and LaTeX environment::

   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}

  Here's my layout file:
 
  #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[book]{quizbook}
 
  Input stdclass.inc
 
  Preamble
  \let\questions = \enumerate
  \let\oldquestions = \oldenumerate
  EndPreamble

 I am not sure if this works well, as enumerate is an environment, not a
 command. Use the latex \newenvironment instead.

  Style Questions

 ...

  End

 With CopyStyle, you get all the definitions of the copied style and
 need to change only thing that should differ.

  The preceding layout produces the output shown in the attached
  screenshot_questions.gif. However, if I change the LatexName in the LyX
  environment from questions to enumerate, it outputs as shown in the
  attached screenshot_enumerate.gif.

 Describing the difference in words helps (while pics might augment
 this, they cannot always replace a description, e.g. while browsing
 this mail to see if I can help at all, I do not see the attachments.)

  Can somebody explain to me why the two don't output the same?

 no.

 Can somebody explain how I can truly clone the Enumerate environment?

 see above.

  NOTE: In order to toggle the output when switching between LatexType
  questions and LatexType enumerate, you must Tools-reconfigure and then
  terminate and restart LyX. Trust me on this -- I tried without
  reconfiguring and the output didn't toggle.

 You could define 2 Styles in your layout file (one QuestionsTest, say)
 and switch between them in the document.

 Günter

-- 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: How to make a clone of the Enumerate environment?

2008-07-22 Thread Dirk Markert
2008/7/22 Steve Litt [EMAIL PROTECTED]:

 Günter (and everyone else),

 Your response contains one of the most useful LyX idioms I've ever seen,
 limiting my biggest objection to LyX. It will lead to vastly improved
 productivity for me.

 Can anyone guess which part of Günter's email is so useful? I'll reveal it
 in
 another email, coming up shortly.


CopyStyle?

Dirk


Re: How to make a clone of the Enumerate environment?

2008-07-22 Thread Steve Litt
Günter (and everyone else),

Your response contains one of the most useful LyX idioms I've ever seen, 
limiting my biggest objection to LyX. It will lead to vastly improved 
productivity for me.

Can anyone guess which part of Günter's email is so useful? I'll reveal it in 
another email, coming up shortly.

On Wednesday 16 July 2008 07:34, G. Milde wrote:
 On 14.07.08, Steve Litt wrote:
  Hi all,
 
  I'm trying to make a simple clone of the Enumerate environment. Once I
  can do that, I'll make a few changes. But I've not been able to clone
  it.

 You need to clone both, LyX layout::

   Style Questions
  CopyStyle   Enumeration


 and LaTeX environment::

   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}

  Here's my layout file:
 
  #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[book]{quizbook}
 
  Input stdclass.inc
 
  Preamble
  \let\questions = \enumerate
  \let\oldquestions = \oldenumerate
  EndPreamble

 I am not sure if this works well, as enumerate is an environment, not a
 command. Use the latex \newenvironment instead.

  Style Questions

 ...

  End

 With CopyStyle, you get all the definitions of the copied style and
 need to change only thing that should differ.

  The preceding layout produces the output shown in the attached
  screenshot_questions.gif. However, if I change the LatexName in the LyX
  environment from questions to enumerate, it outputs as shown in the
  attached screenshot_enumerate.gif.

 Describing the difference in words helps (while pics might augment
 this, they cannot always replace a description, e.g. while browsing
 this mail to see if I can help at all, I do not see the attachments.)

  Can somebody explain to me why the two don't output the same?

 no.

 Can somebody explain how I can truly clone the Enumerate environment?

 see above.

  NOTE: In order to toggle the output when switching between LatexType
  questions and LatexType enumerate, you must Tools-reconfigure and then
  terminate and restart LyX. Trust me on this -- I tried without
  reconfiguring and the output didn't toggle.

 You could define 2 Styles in your layout file (one QuestionsTest, say)
 and switch between them in the document.

 Günter

-- 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: How to make a clone of the Enumerate environment?

2008-07-22 Thread Dirk Markert
2008/7/22 Steve Litt [EMAIL PROTECTED]:

 Günter (and everyone else),

 Your response contains one of the most useful LyX idioms I've ever seen,
 limiting my biggest objection to LyX. It will lead to vastly improved
 productivity for me.

 Can anyone guess which part of Günter's email is so useful? I'll reveal it
 in
 another email, coming up shortly.


CopyStyle?

Dirk


Re: How to make a clone of the Enumerate environment?

2008-07-22 Thread Steve Litt
Günter (and everyone else),

Your response contains one of the most useful LyX idioms I've ever seen, 
limiting my biggest objection to LyX. It will lead to vastly improved 
productivity for me.

Can anyone guess which part of Günter's email is so useful? I'll reveal it in 
another email, coming up shortly.

On Wednesday 16 July 2008 07:34, G. Milde wrote:
> On 14.07.08, Steve Litt wrote:
> > Hi all,
> >
> > I'm trying to make a simple clone of the Enumerate environment. Once I
> > can do that, I'll make a few changes. But I've not been able to clone
> > it.
>
> You need to clone both, LyX layout::
>
>   Style Questions
>  CopyStyle   Enumeration
>
>
> and LaTeX environment::
>
>   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}
>
> > Here's my layout file:
> >
> > #% Do not delete the line below; configure depends on this
> > #  \DeclareLaTeXClass[book]{quizbook}
> >
> > Input stdclass.inc
> >
> > Preamble
> > \let\questions = \enumerate
> > \let\oldquestions = \oldenumerate
> > EndPreamble
>
> I am not sure if this works well, as enumerate is an environment, not a
> command. Use the latex \newenvironment instead.
>
> > Style Questions
>
> ...
>
> > End
>
> With CopyStyle, you get all the definitions of the copied style and
> need to change only thing that should differ.
>
> > The preceding layout produces the output shown in the attached
> > screenshot_questions.gif. However, if I change the LatexName in the LyX
> > environment from "questions" to "enumerate", it outputs as shown in the
> > attached screenshot_enumerate.gif.
>
> Describing the difference in words helps (while pics might augment
> this, they cannot always replace a description, e.g. while browsing
> this mail to see if I can help at all, I do not see the attachments.)
>
> > Can somebody explain to me why the two don't output the same?
>
> no.
>
> >Can somebody explain how I can truly clone the Enumerate environment?
>
> see above.
>
> > NOTE: In order to toggle the output when switching between LatexType
> > questions and LatexType enumerate, you must Tools->reconfigure and then
> > terminate and restart LyX. Trust me on this -- I tried without
> > reconfiguring and the output didn't toggle.
>
> You could define 2 Styles in your layout file (one QuestionsTest, say)
> and switch between them in the document.
>
> Günter

-- 
Steve Litt
Recession Relief Package
http://www.recession-relief.US



Re: How to make a clone of the Enumerate environment?

2008-07-22 Thread Dirk Markert
2008/7/22 Steve Litt <[EMAIL PROTECTED]>:

> Günter (and everyone else),
>
> Your response contains one of the most useful LyX idioms I've ever seen,
> limiting my biggest objection to LyX. It will lead to vastly improved
> productivity for me.
>
> Can anyone guess which part of Günter's email is so useful? I'll reveal it
> in
> another email, coming up shortly.


CopyStyle?

Dirk


Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread Steve Litt
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.

Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
 On 14.07.08, Steve Litt wrote:
  Hi all,
 
  I'm trying to make a simple clone of the Enumerate environment. Once I
  can do that, I'll make a few changes. But I've not been able to clone
  it.

 You need to clone both, LyX layout::

   Style Questions
  CopyStyle   Enumeration


 and LaTeX environment::

   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}

  Here's my layout file:
 
  #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[book]{quizbook}
 
  Input stdclass.inc
 
  Preamble
  \let\questions = \enumerate
  \let\oldquestions = \oldenumerate
  EndPreamble

 I am not sure if this works well, as enumerate is an environment, not a
 command. Use the latex \newenvironment instead.

  Style Questions

 ...

  End

 With CopyStyle, you get all the definitions of the copied style and
 need to change only thing that should differ.

  The preceding layout produces the output shown in the attached
  screenshot_questions.gif. However, if I change the LatexName in the LyX
  environment from questions to enumerate, it outputs as shown in the
  attached screenshot_enumerate.gif.

 Describing the difference in words helps (while pics might augment
 this, they cannot always replace a description, e.g. while browsing
 this mail to see if I can help at all, I do not see the attachments.)

  Can somebody explain to me why the two don't output the same?

 no.

 Can somebody explain how I can truly clone the Enumerate environment?

 see above.

  NOTE: In order to toggle the output when switching between LatexType
  questions and LatexType enumerate, you must Tools-reconfigure and then
  terminate and restart LyX. Trust me on this -- I tried without
  reconfiguring and the output didn't toggle.

 You could define 2 Styles in your layout file (one QuestionsTest, say)
 and switch between them in the document.

 Günter


Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread rgheck

Steve Litt wrote:
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.


Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.


  
\let clones COMMANDS, whereas you were trying to clone environments. 
There are, of course, commands that correspond to the environments, and 
you could probably use \let to do it that way. But Gunter's version is 
definitely preferable.


rh

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
  

On 14.07.08, Steve Litt wrote:


Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I
can do that, I'll make a few changes. But I've not been able to clone
it.
  

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration


and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}



Here's my layout file:

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

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble
  

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.



Style Questions
  

...



End
  

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.



The preceding layout produces the output shown in the attached
screenshot_questions.gif. However, if I change the LatexName in the LyX
environment from questions to enumerate, it outputs as shown in the
attached screenshot_enumerate.gif.
  

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)



Can somebody explain to me why the two don't output the same?
  

no.



Can somebody explain how I can truly clone the Enumerate environment?
  

see above.



NOTE: In order to toggle the output when switching between LatexType
questions and LatexType enumerate, you must Tools-reconfigure and then
terminate and restart LyX. Trust me on this -- I tried without
reconfiguring and the output didn't toggle.
  

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter





Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread Steve Litt
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.

Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
 On 14.07.08, Steve Litt wrote:
  Hi all,
 
  I'm trying to make a simple clone of the Enumerate environment. Once I
  can do that, I'll make a few changes. But I've not been able to clone
  it.

 You need to clone both, LyX layout::

   Style Questions
  CopyStyle   Enumeration


 and LaTeX environment::

   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}

  Here's my layout file:
 
  #% Do not delete the line below; configure depends on this
  #  \DeclareLaTeXClass[book]{quizbook}
 
  Input stdclass.inc
 
  Preamble
  \let\questions = \enumerate
  \let\oldquestions = \oldenumerate
  EndPreamble

 I am not sure if this works well, as enumerate is an environment, not a
 command. Use the latex \newenvironment instead.

  Style Questions

 ...

  End

 With CopyStyle, you get all the definitions of the copied style and
 need to change only thing that should differ.

  The preceding layout produces the output shown in the attached
  screenshot_questions.gif. However, if I change the LatexName in the LyX
  environment from questions to enumerate, it outputs as shown in the
  attached screenshot_enumerate.gif.

 Describing the difference in words helps (while pics might augment
 this, they cannot always replace a description, e.g. while browsing
 this mail to see if I can help at all, I do not see the attachments.)

  Can somebody explain to me why the two don't output the same?

 no.

 Can somebody explain how I can truly clone the Enumerate environment?

 see above.

  NOTE: In order to toggle the output when switching between LatexType
  questions and LatexType enumerate, you must Tools-reconfigure and then
  terminate and restart LyX. Trust me on this -- I tried without
  reconfiguring and the output didn't toggle.

 You could define 2 Styles in your layout file (one QuestionsTest, say)
 and switch between them in the document.

 Günter


Re: How to make a clone of the Enumerate environment? SOLVED

2008-07-18 Thread rgheck

Steve Litt wrote:
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.


Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.


  
\let clones COMMANDS, whereas you were trying to clone environments. 
There are, of course, commands that correspond to the environments, and 
you could probably use \let to do it that way. But Gunter's version is 
definitely preferable.


rh

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
  

On 14.07.08, Steve Litt wrote:


Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I
can do that, I'll make a few changes. But I've not been able to clone
it.
  

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration


and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}



Here's my layout file:

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

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble
  

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.



Style Questions
  

...



End
  

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.



The preceding layout produces the output shown in the attached
screenshot_questions.gif. However, if I change the LatexName in the LyX
environment from questions to enumerate, it outputs as shown in the
attached screenshot_enumerate.gif.
  

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)



Can somebody explain to me why the two don't output the same?
  

no.



Can somebody explain how I can truly clone the Enumerate environment?
  

see above.



NOTE: In order to toggle the output when switching between LatexType
questions and LatexType enumerate, you must Tools-reconfigure and then
terminate and restart LyX. Trust me on this -- I tried without
reconfiguring and the output didn't toggle.
  

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter





Re: How to make a clone of the Enumerate environment?

2008-07-18 Thread Steve Litt
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.

Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
> On 14.07.08, Steve Litt wrote:
> > Hi all,
> >
> > I'm trying to make a simple clone of the Enumerate environment. Once I
> > can do that, I'll make a few changes. But I've not been able to clone
> > it.
>
> You need to clone both, LyX layout::
>
>   Style Questions
>  CopyStyle   Enumeration
>
>
> and LaTeX environment::
>
>   \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}
>
> > Here's my layout file:
> >
> > #% Do not delete the line below; configure depends on this
> > #  \DeclareLaTeXClass[book]{quizbook}
> >
> > Input stdclass.inc
> >
> > Preamble
> > \let\questions = \enumerate
> > \let\oldquestions = \oldenumerate
> > EndPreamble
>
> I am not sure if this works well, as enumerate is an environment, not a
> command. Use the latex \newenvironment instead.
>
> > Style Questions
>
> ...
>
> > End
>
> With CopyStyle, you get all the definitions of the copied style and
> need to change only thing that should differ.
>
> > The preceding layout produces the output shown in the attached
> > screenshot_questions.gif. However, if I change the LatexName in the LyX
> > environment from "questions" to "enumerate", it outputs as shown in the
> > attached screenshot_enumerate.gif.
>
> Describing the difference in words helps (while pics might augment
> this, they cannot always replace a description, e.g. while browsing
> this mail to see if I can help at all, I do not see the attachments.)
>
> > Can somebody explain to me why the two don't output the same?
>
> no.
>
> >Can somebody explain how I can truly clone the Enumerate environment?
>
> see above.
>
> > NOTE: In order to toggle the output when switching between LatexType
> > questions and LatexType enumerate, you must Tools->reconfigure and then
> > terminate and restart LyX. Trust me on this -- I tried without
> > reconfiguring and the output didn't toggle.
>
> You could define 2 Styles in your layout file (one QuestionsTest, say)
> and switch between them in the document.
>
> Günter


Re: How to make a clone of the Enumerate environment?

2008-07-18 Thread rgheck

Steve Litt wrote:
Gunter -- your solution is exactly right. I confirmed it, and even changed the 
font of the Question environment without affecting Enumerate, which is why I 
wanted a clone in the first place.


Like you said, I have no idea why the TeX based idiom (using \let) didn't 
work, but it didn't. Your LaTeX based solution works perfectly.


  
\let clones COMMANDS, whereas you were trying to clone environments. 
There are, of course, commands that correspond to the environments, and 
you could probably use \let to do it that way. But Gunter's version is 
definitely preferable.


rh

Thanks very much.

SteveT

On Wednesday 16 July 2008 07:34, G. Milde wrote:
  

On 14.07.08, Steve Litt wrote:


Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I
can do that, I'll make a few changes. But I've not been able to clone
it.
  

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration


and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}



Here's my layout file:

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

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble
  

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.



Style Questions
  

...



End
  

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.



The preceding layout produces the output shown in the attached
screenshot_questions.gif. However, if I change the LatexName in the LyX
environment from "questions" to "enumerate", it outputs as shown in the
attached screenshot_enumerate.gif.
  

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)



Can somebody explain to me why the two don't output the same?
  

no.



Can somebody explain how I can truly clone the Enumerate environment?
  

see above.



NOTE: In order to toggle the output when switching between LatexType
questions and LatexType enumerate, you must Tools->reconfigure and then
terminate and restart LyX. Trust me on this -- I tried without
reconfiguring and the output didn't toggle.
  

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter





Re: How to make a clone of the Enumerate environment?

2008-07-16 Thread G. Milde
On 14.07.08, Steve Litt wrote:
 Hi all,

 I'm trying to make a simple clone of the Enumerate environment. Once I
 can do that, I'll make a few changes. But I've not been able to clone
 it. 

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration
  
  
and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}
  

 Here's my layout file:

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

 Input stdclass.inc

 Preamble
 \let\questions = \enumerate
 \let\oldquestions = \oldenumerate
 EndPreamble

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.

 Style Questions
...
 End

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.


 The preceding layout produces the output shown in the attached 
 screenshot_questions.gif. However, if I change the LatexName in the LyX 
 environment from questions to enumerate, it outputs as shown in the 
 attached screenshot_enumerate.gif.

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)

 Can somebody explain to me why the two don't output the same? 
no.
Can somebody explain how I can truly clone the Enumerate environment?
see above.

 NOTE: In order to toggle the output when switching between LatexType
 questions and LatexType enumerate, you must Tools-reconfigure and then
 terminate and restart LyX. Trust me on this -- I tried without
 reconfiguring and the output didn't toggle.

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter


Re: How to make a clone of the Enumerate environment?

2008-07-16 Thread G. Milde
On 14.07.08, Steve Litt wrote:
 Hi all,

 I'm trying to make a simple clone of the Enumerate environment. Once I
 can do that, I'll make a few changes. But I've not been able to clone
 it. 

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration
  
  
and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}
  

 Here's my layout file:

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

 Input stdclass.inc

 Preamble
 \let\questions = \enumerate
 \let\oldquestions = \oldenumerate
 EndPreamble

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.

 Style Questions
...
 End

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.


 The preceding layout produces the output shown in the attached 
 screenshot_questions.gif. However, if I change the LatexName in the LyX 
 environment from questions to enumerate, it outputs as shown in the 
 attached screenshot_enumerate.gif.

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)

 Can somebody explain to me why the two don't output the same? 
no.
Can somebody explain how I can truly clone the Enumerate environment?
see above.

 NOTE: In order to toggle the output when switching between LatexType
 questions and LatexType enumerate, you must Tools-reconfigure and then
 terminate and restart LyX. Trust me on this -- I tried without
 reconfiguring and the output didn't toggle.

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter


Re: How to make a clone of the Enumerate environment?

2008-07-16 Thread G. Milde
On 14.07.08, Steve Litt wrote:
> Hi all,

> I'm trying to make a simple clone of the Enumerate environment. Once I
> can do that, I'll make a few changes. But I've not been able to clone
> it. 

You need to clone both, LyX layout::

  Style Questions
 CopyStyle   Enumeration
  
  
and LaTeX environment::

  \newenvironment{questions}{\begin{enumerate}}{\end{enumerate}}
  

> Here's my layout file:

> #% Do not delete the line below; configure depends on this
> #  \DeclareLaTeXClass[book]{quizbook}

> Input stdclass.inc

> Preamble
> \let\questions = \enumerate
> \let\oldquestions = \oldenumerate
> EndPreamble

I am not sure if this works well, as enumerate is an environment, not a
command. Use the latex \newenvironment instead.

> Style Questions
...
> End

With CopyStyle, you get all the definitions of the copied style and
need to change only thing that should differ.


> The preceding layout produces the output shown in the attached 
> screenshot_questions.gif. However, if I change the LatexName in the LyX 
> environment from "questions" to "enumerate", it outputs as shown in the 
> attached screenshot_enumerate.gif.

Describing the difference in words helps (while pics might augment
this, they cannot always replace a description, e.g. while browsing
this mail to see if I can help at all, I do not see the attachments.)

> Can somebody explain to me why the two don't output the same? 
no.
>Can somebody explain how I can truly clone the Enumerate environment?
see above.

> NOTE: In order to toggle the output when switching between LatexType
> questions and LatexType enumerate, you must Tools->reconfigure and then
> terminate and restart LyX. Trust me on this -- I tried without
> reconfiguring and the output didn't toggle.

You could define 2 Styles in your layout file (one QuestionsTest, say)
and switch between them in the document.

Günter


How to make a clone of the Enumerate environment?

2008-07-14 Thread Steve Litt
Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I can do 
that, I'll make a few changes. But I've not been able to clone it. Here's my 
layout file:

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

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble

Style Questions
MarginStatic
LatexType Item_Environment
LatexName questions
NextNoIndent  1
LeftMarginMMN
LabelSep  xx
ParSkip   0.0
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Enumerate
End

The preceding layout produces the output shown in the attached 
screenshot_questions.gif. However, if I change the LatexName in the LyX 
environment from questions to enumerate, it outputs as shown in the 
attached screenshot_enumerate.gif.

Can somebody explain to me why the two don't output the same? Can somebody 
explain how I can truly clone the Enumerate environment?

NOTE: In order to toggle the output when switching between LatexType questions 
and LatexType enumerate, you must Tools-reconfigure and then terminate and 
restart LyX. Trust me on this -- I tried without reconfiguring and the output 
didn't toggle.

Thanks

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US

attachment: screenshot_enumerate.gifattachment: screenshot_questions.gif

How to make a clone of the Enumerate environment?

2008-07-14 Thread Steve Litt
Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I can do 
that, I'll make a few changes. But I've not been able to clone it. Here's my 
layout file:

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

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble

Style Questions
MarginStatic
LatexType Item_Environment
LatexName questions
NextNoIndent  1
LeftMarginMMN
LabelSep  xx
ParSkip   0.0
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Enumerate
End

The preceding layout produces the output shown in the attached 
screenshot_questions.gif. However, if I change the LatexName in the LyX 
environment from questions to enumerate, it outputs as shown in the 
attached screenshot_enumerate.gif.

Can somebody explain to me why the two don't output the same? Can somebody 
explain how I can truly clone the Enumerate environment?

NOTE: In order to toggle the output when switching between LatexType questions 
and LatexType enumerate, you must Tools-reconfigure and then terminate and 
restart LyX. Trust me on this -- I tried without reconfiguring and the output 
didn't toggle.

Thanks

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US

attachment: screenshot_enumerate.gifattachment: screenshot_questions.gif

How to make a clone of the Enumerate environment?

2008-07-14 Thread Steve Litt
Hi all,

I'm trying to make a simple clone of the Enumerate environment. Once I can do 
that, I'll make a few changes. But I've not been able to clone it. Here's my 
layout file:

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

Input stdclass.inc

Preamble
\let\questions = \enumerate
\let\oldquestions = \oldenumerate
EndPreamble

Style Questions
MarginStatic
LatexType Item_Environment
LatexName questions
NextNoIndent  1
LeftMarginMMN
LabelSep  xx
ParSkip   0.0
ItemSep   0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Enumerate
End

The preceding layout produces the output shown in the attached 
screenshot_questions.gif. However, if I change the LatexName in the LyX 
environment from "questions" to "enumerate", it outputs as shown in the 
attached screenshot_enumerate.gif.

Can somebody explain to me why the two don't output the same? Can somebody 
explain how I can truly clone the Enumerate environment?

NOTE: In order to toggle the output when switching between LatexType questions 
and LatexType enumerate, you must Tools->reconfigure and then terminate and 
restart LyX. Trust me on this -- I tried without reconfiguring and the output 
didn't toggle.

Thanks

SteveT
 
Steve Litt
Recession Relief Package
http://www.recession-relief.US

<><>

Table question for LaTeX-experts - was: Tables inside an enumerate environment

2006-12-18 Thread Uwe Stöhr

Hillel schrieb:


I did try to play with the content alignment setting, but it didn't solve
all my problems. The remaining problem is that even when the content
alignment is set to middle, the top of the box is aligned with the 
*bottom*

of the text line. What I need is to get the top of the box aligned with the
*top* of the text line.

Is there a way I can get that effect?


There is a way, but it is not exact.

I added the new section Vertical table alignment to the Extended-Insets 
manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets

where I describe a possible solution.

Attached is also a small LyX-example file.

I'm not content with the solution, so if someone knows a better one please tell 
me.

regards Uwe


newfile1.lyx
Description: application/lyx


Table question for LaTeX-experts - was: Tables inside an enumerate environment

2006-12-18 Thread Uwe Stöhr

Hillel schrieb:


I did try to play with the content alignment setting, but it didn't solve
all my problems. The remaining problem is that even when the content
alignment is set to middle, the top of the box is aligned with the 
*bottom*

of the text line. What I need is to get the top of the box aligned with the
*top* of the text line.

Is there a way I can get that effect?


There is a way, but it is not exact.

I added the new section Vertical table alignment to the Extended-Insets 
manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets

where I describe a possible solution.

Attached is also a small LyX-example file.

I'm not content with the solution, so if someone knows a better one please tell 
me.

regards Uwe


newfile1.lyx
Description: application/lyx


Table question for LaTeX-experts - was: Tables inside an enumerate environment

2006-12-18 Thread Uwe Stöhr

Hillel schrieb:


I did try to play with the "content alignment" setting, but it didn't solve
all my problems. The remaining problem is that even when the "content
alignment" is set to middle, the top of the box is aligned with the 
*bottom*

of the text line. What I need is to get the top of the box aligned with the
*top* of the text line.

Is there a way I can get that effect?


There is a way, but it is not exact.

I added the new section "Vertical table alignment" to the Extended-Insets" 
manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets

where I describe a possible solution.

Attached is also a small LyX-example file.

I'm not content with the solution, so if someone knows a better one please tell 
me.

regards Uwe


newfile1.lyx
Description: application/lyx


Re: Tables inside an enumerate environment

2006-12-16 Thread Uwe Stöhr

Hillel schrieb:


I tried your suggestion and read the docs, but for some reason I can't get
it right.

I created a simple lyx file, with a few words of text followed by a box 
that

holds a table with multiple rows. When I set the box vertical alignment to
bottom, the box is correctly aligned. However, when I set the box 
vertical

alignment to middle or top there is no difference in the output.


Set the box content alignment to middle.
Attached an example.
I'll add this hint to the documentation.

regards Uwe


newfile1.lyx
Description: application/lyx


Re: Tables inside an enumerate environment

2006-12-16 Thread Hillel

Thanks Uwe

I did try to play with the content alignment setting, but it didn't solve
all my problems. The remaining problem is that even when the content
alignment is set to middle, the top of the box is aligned with the *bottom*
of the text line. What I need is to get the top of the box aligned with the
*top* of the text line.

Is there a way I can get that effect?

On 12/16/06, Uwe Stöhr  wrote:



Set the box content alignment to middle.
Attached an example.
I'll add this hint to the documentation.

regards Uwe





Re: Tables inside an enumerate environment

2006-12-16 Thread Uwe Stöhr

Hillel schrieb:


I tried your suggestion and read the docs, but for some reason I can't get
it right.

I created a simple lyx file, with a few words of text followed by a box 
that

holds a table with multiple rows. When I set the box vertical alignment to
bottom, the box is correctly aligned. However, when I set the box 
vertical

alignment to middle or top there is no difference in the output.


Set the box content alignment to middle.
Attached an example.
I'll add this hint to the documentation.

regards Uwe


newfile1.lyx
Description: application/lyx


Re: Tables inside an enumerate environment

2006-12-16 Thread Hillel

Thanks Uwe

I did try to play with the content alignment setting, but it didn't solve
all my problems. The remaining problem is that even when the content
alignment is set to middle, the top of the box is aligned with the *bottom*
of the text line. What I need is to get the top of the box aligned with the
*top* of the text line.

Is there a way I can get that effect?

On 12/16/06, Uwe Stöhr  wrote:



Set the box content alignment to middle.
Attached an example.
I'll add this hint to the documentation.

regards Uwe





Re: Tables inside an enumerate environment

2006-12-16 Thread Uwe Stöhr

Hillel schrieb:


I tried your suggestion and read the docs, but for some reason I can't get
it right.

I created a simple lyx file, with a few words of text followed by a box 
that

holds a table with multiple rows. When I set the box vertical alignment to
"bottom", the box is correctly aligned. However, when I set the box 
vertical

alignment to "middle" or "top" there is no difference in the output.


Set the box content alignment to "middle".
Attached an example.
I'll add this hint to the documentation.

regards Uwe


newfile1.lyx
Description: application/lyx


Re: Tables inside an enumerate environment

2006-12-16 Thread Hillel

Thanks Uwe

I did try to play with the "content alignment" setting, but it didn't solve
all my problems. The remaining problem is that even when the "content
alignment" is set to middle, the top of the box is aligned with the *bottom*
of the text line. What I need is to get the top of the box aligned with the
*top* of the text line.

Is there a way I can get that effect?

On 12/16/06, Uwe Stöhr  wrote:



Set the box content alignment to "middle".
Attached an example.
I'll add this hint to the documentation.

regards Uwe





Re: Tables inside an enumerate environment

2006-12-15 Thread Hillel

I tried your suggestion and read the docs, but for some reason I can't get
it right.

I created a simple lyx file, with a few words of text followed by a box that
holds a table with multiple rows. When I set the box vertical alignment to
bottom, the box is correctly aligned. However, when I set the box vertical
alignment to middle or top there is no difference in the output. In both
cases the preceding line of text if aligned to the middle of the table.
Another interesting thing is that when in addition to Box Vertical - Top,
I also set Content Vertical - middle (instead of the default Content
Vertical - Top), The box top suddenly does align with the text line,
although its still bad since its the box top is aligned with the text line
*bottom* part.

My goal is to get the top of the text line aligned to the top of the box. Is
this a bug or am I doing something wrong?

--
Lyx Version 1.4.3
Latex 2003/12/01
Hillel

On 12/13/06, Uwe Stöhr [EMAIL PROTECTED] wrote:


Hillel schrieb:

 I am new to LyX and I'm trying to use tables inside an enumerate
 environment. My problem is that with respect to vertical alignment, the
 number (of the current enumerate item) is aligned to the vertical center
of
 the table, while I want it aligned to its top.

Put the table inside into a minipage and set the alignment top or
bottom for the minipage box.
(See chapter 5.2 and 5.4 of the Extended-Insets manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets )

regards Uwe



Re: Tables inside an enumerate environment

2006-12-15 Thread Hillel

I tried your suggestion and read the docs, but for some reason I can't get
it right.

I created a simple lyx file, with a few words of text followed by a box that
holds a table with multiple rows. When I set the box vertical alignment to
bottom, the box is correctly aligned. However, when I set the box vertical
alignment to middle or top there is no difference in the output. In both
cases the preceding line of text if aligned to the middle of the table.
Another interesting thing is that when in addition to Box Vertical - Top,
I also set Content Vertical - middle (instead of the default Content
Vertical - Top), The box top suddenly does align with the text line,
although its still bad since its the box top is aligned with the text line
*bottom* part.

My goal is to get the top of the text line aligned to the top of the box. Is
this a bug or am I doing something wrong?

--
Lyx Version 1.4.3
Latex 2003/12/01
Hillel

On 12/13/06, Uwe Stöhr [EMAIL PROTECTED] wrote:


Hillel schrieb:

 I am new to LyX and I'm trying to use tables inside an enumerate
 environment. My problem is that with respect to vertical alignment, the
 number (of the current enumerate item) is aligned to the vertical center
of
 the table, while I want it aligned to its top.

Put the table inside into a minipage and set the alignment top or
bottom for the minipage box.
(See chapter 5.2 and 5.4 of the Extended-Insets manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets )

regards Uwe



Re: Tables inside an enumerate environment

2006-12-15 Thread Hillel

I tried your suggestion and read the docs, but for some reason I can't get
it right.

I created a simple lyx file, with a few words of text followed by a box that
holds a table with multiple rows. When I set the box vertical alignment to
"bottom", the box is correctly aligned. However, when I set the box vertical
alignment to "middle" or "top" there is no difference in the output. In both
cases the preceding line of text if aligned to the middle of the table.
Another interesting thing is that when in addition to "Box Vertical - Top",
I also set "Content Vertical - middle" (instead of the default "Content
Vertical - Top"), The box top suddenly does align with the text line,
although its still bad since its the box top is aligned with the text line
*bottom* part.

My goal is to get the top of the text line aligned to the top of the box. Is
this a bug or am I doing something wrong?

--
Lyx Version 1.4.3
Latex 2003/12/01
Hillel

On 12/13/06, Uwe Stöhr <[EMAIL PROTECTED]> wrote:


Hillel schrieb:

> I am new to LyX and I'm trying to use tables inside an enumerate
> environment. My problem is that with respect to vertical alignment, the
> number (of the current enumerate item) is aligned to the vertical center
of
> the table, while I want it aligned to its top.

Put the table inside into a minipage and set the alignment "top" or
bottom" for the minipage box.
(See chapter 5.2 and 5.4 of the Extended-Insets manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets )

regards Uwe



Tables inside an enumerate environment

2006-12-12 Thread Hillel

Hi all

I am new to LyX and I'm trying to use tables inside an enumerate
environment. My problem is that with respect to vertical alignment, the
number (of the current enumerate item) is aligned to the vertical center of
the table, while I want it aligned to its top.

Does anyone know how do I get the desired effect?

Thanks,

--
Hillel


Re: Tables inside an enumerate environment

2006-12-12 Thread Uwe Stöhr

Hillel schrieb:


I am new to LyX and I'm trying to use tables inside an enumerate
environment. My problem is that with respect to vertical alignment, the
number (of the current enumerate item) is aligned to the vertical center of
the table, while I want it aligned to its top.


Put the table inside into a minipage and set the alignment top or bottom for 
the minipage box.
(See chapter 5.2 and 5.4 of the Extended-Insets manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets )

regards Uwe


Tables inside an enumerate environment

2006-12-12 Thread Hillel

Hi all

I am new to LyX and I'm trying to use tables inside an enumerate
environment. My problem is that with respect to vertical alignment, the
number (of the current enumerate item) is aligned to the vertical center of
the table, while I want it aligned to its top.

Does anyone know how do I get the desired effect?

Thanks,

--
Hillel


Re: Tables inside an enumerate environment

2006-12-12 Thread Uwe Stöhr

Hillel schrieb:


I am new to LyX and I'm trying to use tables inside an enumerate
environment. My problem is that with respect to vertical alignment, the
number (of the current enumerate item) is aligned to the vertical center of
the table, while I want it aligned to its top.


Put the table inside into a minipage and set the alignment top or bottom for 
the minipage box.
(See chapter 5.2 and 5.4 of the Extended-Insets manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets )

regards Uwe


Tables inside an enumerate environment

2006-12-12 Thread Hillel

Hi all

I am new to LyX and I'm trying to use tables inside an enumerate
environment. My problem is that with respect to vertical alignment, the
number (of the current enumerate item) is aligned to the vertical center of
the table, while I want it aligned to its top.

Does anyone know how do I get the desired effect?

Thanks,

--
Hillel


Re: Tables inside an enumerate environment

2006-12-12 Thread Uwe Stöhr

Hillel schrieb:


I am new to LyX and I'm trying to use tables inside an enumerate
environment. My problem is that with respect to vertical alignment, the
number (of the current enumerate item) is aligned to the vertical center of
the table, while I want it aligned to its top.


Put the table inside into a minipage and set the alignment "top" or bottom" for 
the minipage box.
(See chapter 5.2 and 5.4 of the Extended-Insets manual:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets )

regards Uwe


Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul Smith
On 4/6/06, Paul A. Rubin [EMAIL PROTECTED] wrote:
  I have a document only with one page ended by an enumerate
  environment. The enumerate environment appears with a long spacing
  with the precedent text. I think LaTeX does that automatically for
  aesthetical reasons, as the page is not entirely filled with text. How
  can one prevent LaTeX of doing that?

 You can use \setlength{\partopsep}{???} and/or \setlength{\topsep}{???}
 (in ERT) to add additional spacing (in your case a negative amount)
 before and after the list.  \partopsep is applicable if the list follows
 an empty line, \topsep if not.  For instance:


 blah blah blah \setlength{\partopsep}{-2ex}
 1. list item
 2. list item
 back to regular text blah blah \setlength{\partopsep}{0ex}
 1. list item with regular spacing
 2. list item
 blah blah blah

Thanks, Paul. Actually, I was looking for a more global solution,
i.e., some code to insert in the preamble or something like that.

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul A. Rubin

Paul Smith wrote:


blah blah blah \setlength{\partopsep}{-2ex}
1. list item
2. list item
back to regular text blah blah \setlength{\partopsep}{0ex}
1. list item with regular spacing
2. list item
blah blah blah


Thanks, Paul. Actually, I was looking for a more global solution,
i.e., some code to insert in the preamble or something like that.


If you want all the list environments to shrink their outside spacing by 
the same amount, you can just put \setlength{\partopsep}{whatever} in 
the preamble.  Keep in mind that this will shrink the space on both 
sides (start, end) of the lists.


/Paul



Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul Smith
On 4/7/06, Paul A. Rubin [EMAIL PROTECTED] wrote:
  blah blah blah \setlength{\partopsep}{-2ex}
  1. list item
  2. list item
  back to regular text blah blah \setlength{\partopsep}{0ex}
  1. list item with regular spacing
  2. list item
  blah blah blah
 
  Thanks, Paul. Actually, I was looking for a more global solution,
  i.e., some code to insert in the preamble or something like that.

 If you want all the list environments to shrink their outside spacing by
 the same amount, you can just put \setlength{\partopsep}{whatever} in
 the preamble.  Keep in mind that this will shrink the space on both
 sides (start, end) of the lists.

Thanks, Paul, for your elucidation.

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul Smith
On 4/6/06, Paul A. Rubin [EMAIL PROTECTED] wrote:
  I have a document only with one page ended by an enumerate
  environment. The enumerate environment appears with a long spacing
  with the precedent text. I think LaTeX does that automatically for
  aesthetical reasons, as the page is not entirely filled with text. How
  can one prevent LaTeX of doing that?

 You can use \setlength{\partopsep}{???} and/or \setlength{\topsep}{???}
 (in ERT) to add additional spacing (in your case a negative amount)
 before and after the list.  \partopsep is applicable if the list follows
 an empty line, \topsep if not.  For instance:


 blah blah blah \setlength{\partopsep}{-2ex}
 1. list item
 2. list item
 back to regular text blah blah \setlength{\partopsep}{0ex}
 1. list item with regular spacing
 2. list item
 blah blah blah

Thanks, Paul. Actually, I was looking for a more global solution,
i.e., some code to insert in the preamble or something like that.

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul A. Rubin

Paul Smith wrote:


blah blah blah \setlength{\partopsep}{-2ex}
1. list item
2. list item
back to regular text blah blah \setlength{\partopsep}{0ex}
1. list item with regular spacing
2. list item
blah blah blah


Thanks, Paul. Actually, I was looking for a more global solution,
i.e., some code to insert in the preamble or something like that.


If you want all the list environments to shrink their outside spacing by 
the same amount, you can just put \setlength{\partopsep}{whatever} in 
the preamble.  Keep in mind that this will shrink the space on both 
sides (start, end) of the lists.


/Paul



Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul Smith
On 4/7/06, Paul A. Rubin [EMAIL PROTECTED] wrote:
  blah blah blah \setlength{\partopsep}{-2ex}
  1. list item
  2. list item
  back to regular text blah blah \setlength{\partopsep}{0ex}
  1. list item with regular spacing
  2. list item
  blah blah blah
 
  Thanks, Paul. Actually, I was looking for a more global solution,
  i.e., some code to insert in the preamble or something like that.

 If you want all the list environments to shrink their outside spacing by
 the same amount, you can just put \setlength{\partopsep}{whatever} in
 the preamble.  Keep in mind that this will shrink the space on both
 sides (start, end) of the lists.

Thanks, Paul, for your elucidation.

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul Smith
On 4/6/06, Paul A. Rubin <[EMAIL PROTECTED]> wrote:
> > I have a document only with one page ended by an enumerate
> > environment. The enumerate environment appears with a long spacing
> > with the precedent text. I think LaTeX does that automatically for
> > aesthetical reasons, as the page is not entirely filled with text. How
> > can one prevent LaTeX of doing that?
>
> You can use \setlength{\partopsep}{???} and/or \setlength{\topsep}{???}
> (in ERT) to add additional spacing (in your case a negative amount)
> before and after the list.  \partopsep is applicable if the list follows
> an empty line, \topsep if not.  For instance:
>
>
> blah blah blah \setlength{\partopsep}{-2ex}
> 1. list item
> 2. list item
> back to regular text blah blah \setlength{\partopsep}{0ex}
> 1. list item with regular spacing
> 2. list item
> blah blah blah

Thanks, Paul. Actually, I was looking for a more global solution,
i.e., some code to insert in the preamble or something like that.

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul A. Rubin

Paul Smith wrote:


blah blah blah \setlength{\partopsep}{-2ex}
1. list item
2. list item
back to regular text blah blah \setlength{\partopsep}{0ex}
1. list item with regular spacing
2. list item
blah blah blah


Thanks, Paul. Actually, I was looking for a more global solution,
i.e., some code to insert in the preamble or something like that.


If you want all the list environments to shrink their outside spacing by 
the same amount, you can just put \setlength{\partopsep}{whatever} in 
the preamble.  Keep in mind that this will shrink the space on both 
sides (start, end) of the lists.


/Paul



Re: Enumerate environment too much separated from the precedent text

2006-04-07 Thread Paul Smith
On 4/7/06, Paul A. Rubin <[EMAIL PROTECTED]> wrote:
> >> blah blah blah \setlength{\partopsep}{-2ex}
> >> 1. list item
> >> 2. list item
> >> back to regular text blah blah \setlength{\partopsep}{0ex}
> >> 1. list item with regular spacing
> >> 2. list item
> >> blah blah blah
> >
> > Thanks, Paul. Actually, I was looking for a more global solution,
> > i.e., some code to insert in the preamble or something like that.
>
> If you want all the list environments to shrink their outside spacing by
> the same amount, you can just put \setlength{\partopsep}{whatever} in
> the preamble.  Keep in mind that this will shrink the space on both
> sides (start, end) of the lists.

Thanks, Paul, for your elucidation.

Paul


Enumerate environment too much separated from the precedent text

2006-04-06 Thread Paul Smith
Dear All

I have a document only with one page ended by an enumerate
environment. The enumerate environment appears with a long spacing
with the precedent text. I think LaTeX does that automatically for
aesthetical reasons, as the page is not entirely filled with text. How
can one prevent LaTeX of doing that?

Thanks in advance,

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-06 Thread Paul A. Rubin

Paul Smith wrote:

Dear All

I have a document only with one page ended by an enumerate
environment. The enumerate environment appears with a long spacing
with the precedent text. I think LaTeX does that automatically for
aesthetical reasons, as the page is not entirely filled with text. How
can one prevent LaTeX of doing that?

Thanks in advance,

Paul



You can use \setlength{\partopsep}{???} and/or \setlength{\topsep}{???} 
(in ERT) to add additional spacing (in your case a negative amount) 
before and after the list.  \partopsep is applicable if the list follows 
an empty line, \topsep if not.  For instance:



blah blah blah \setlength{\partopsep}{-2ex}
1. list item
2. list item
back to regular text blah blah \setlength{\partopsep}{0ex}
1. list item with regular spacing
2. list item
blah blah blah

HTH,

/Paul



Enumerate environment too much separated from the precedent text

2006-04-06 Thread Paul Smith
Dear All

I have a document only with one page ended by an enumerate
environment. The enumerate environment appears with a long spacing
with the precedent text. I think LaTeX does that automatically for
aesthetical reasons, as the page is not entirely filled with text. How
can one prevent LaTeX of doing that?

Thanks in advance,

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-06 Thread Paul A. Rubin

Paul Smith wrote:

Dear All

I have a document only with one page ended by an enumerate
environment. The enumerate environment appears with a long spacing
with the precedent text. I think LaTeX does that automatically for
aesthetical reasons, as the page is not entirely filled with text. How
can one prevent LaTeX of doing that?

Thanks in advance,

Paul



You can use \setlength{\partopsep}{???} and/or \setlength{\topsep}{???} 
(in ERT) to add additional spacing (in your case a negative amount) 
before and after the list.  \partopsep is applicable if the list follows 
an empty line, \topsep if not.  For instance:



blah blah blah \setlength{\partopsep}{-2ex}
1. list item
2. list item
back to regular text blah blah \setlength{\partopsep}{0ex}
1. list item with regular spacing
2. list item
blah blah blah

HTH,

/Paul



Enumerate environment too much separated from the precedent text

2006-04-06 Thread Paul Smith
Dear All

I have a document only with one page ended by an enumerate
environment. The enumerate environment appears with a long spacing
with the precedent text. I think LaTeX does that automatically for
aesthetical reasons, as the page is not entirely filled with text. How
can one prevent LaTeX of doing that?

Thanks in advance,

Paul


Re: Enumerate environment too much separated from the precedent text

2006-04-06 Thread Paul A. Rubin

Paul Smith wrote:

Dear All

I have a document only with one page ended by an enumerate
environment. The enumerate environment appears with a long spacing
with the precedent text. I think LaTeX does that automatically for
aesthetical reasons, as the page is not entirely filled with text. How
can one prevent LaTeX of doing that?

Thanks in advance,

Paul



You can use \setlength{\partopsep}{???} and/or \setlength{\topsep}{???} 
(in ERT) to add additional spacing (in your case a negative amount) 
before and after the list.  \partopsep is applicable if the list follows 
an empty line, \topsep if not.  For instance:



blah blah blah \setlength{\partopsep}{-2ex}
1. list item
2. list item
back to regular text blah blah \setlength{\partopsep}{0ex}
1. list item with regular spacing
2. list item
blah blah blah

HTH,

/Paul



Looking for a cousin of enumerate environment

2003-12-29 Thread Paul Smith
Dear All

Is there some environment like enumerate one, but starting by (a), (b), 
(c),... instead of (1), (2), (3),...?

Thank you a lot in advance!

Paul





Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Herbert Voss
Paul Smith wrote:

Is there some environment like enumerate one, but starting by (a), (b), 
(c),... instead of (1), (2), (3),...?
write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}

Herbert




Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Paul Smith
Is there some environment like enumerate one, but starting by (a), 
(b), (c),... instead of (1), (2), (3),...?


write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}
Thanks, Herbert! The method suggested by you works almost fine, as a dot 
follows (a). On the other hand, it prevents me of using, in the same 
document, the original enumerate environment. Is it possible to overcome 
  these two inconveniences?

Paul



Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Herbert Voss
Paul Smith wrote:
Is there some environment like enumerate one, but starting by (a), 
(b), (c),... instead of (1), (2), (3),...?


write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}


Thanks, Herbert! The method suggested by you works almost fine, as a dot 
follows (a). On the other hand, it prevents me of using, in the same 
document, the original enumerate environment. Is it possible to overcome 
  these two inconveniences?
no problem. In this case write just _before_ your
modified enumerate in TeX (red) and not in the
preamble:
\bgroup
\renewcommand\theenumi{(\alph{enumi})} \renewcommand\labelenumi{\theenumi}
and just right behind your enums also in TeX

\egroup

Now all the other enums are the same than before

Herbert




Looking for a cousin of enumerate environment

2003-12-29 Thread Paul Smith
Dear All

Is there some environment like enumerate one, but starting by (a), (b), 
(c),... instead of (1), (2), (3),...?

Thank you a lot in advance!

Paul





Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Herbert Voss
Paul Smith wrote:

Is there some environment like enumerate one, but starting by (a), (b), 
(c),... instead of (1), (2), (3),...?
write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}

Herbert




Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Paul Smith
Is there some environment like enumerate one, but starting by (a), 
(b), (c),... instead of (1), (2), (3),...?


write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}
Thanks, Herbert! The method suggested by you works almost fine, as a dot 
follows (a). On the other hand, it prevents me of using, in the same 
document, the original enumerate environment. Is it possible to overcome 
  these two inconveniences?

Paul



Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Herbert Voss
Paul Smith wrote:
Is there some environment like enumerate one, but starting by (a), 
(b), (c),... instead of (1), (2), (3),...?


write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}


Thanks, Herbert! The method suggested by you works almost fine, as a dot 
follows (a). On the other hand, it prevents me of using, in the same 
document, the original enumerate environment. Is it possible to overcome 
  these two inconveniences?
no problem. In this case write just _before_ your
modified enumerate in TeX (red) and not in the
preamble:
\bgroup
\renewcommand\theenumi{(\alph{enumi})} \renewcommand\labelenumi{\theenumi}
and just right behind your enums also in TeX

\egroup

Now all the other enums are the same than before

Herbert




Looking for a cousin of enumerate environment

2003-12-29 Thread Paul Smith
Dear All

Is there some environment like enumerate one, but starting by (a), (b), 
(c),... instead of (1), (2), (3),...?

Thank you a lot in advance!

Paul





Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Herbert Voss
Paul Smith wrote:

Is there some environment like enumerate one, but starting by (a), (b), 
(c),... instead of (1), (2), (3),...?
write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}

Herbert




Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Paul Smith
Is there some environment like enumerate one, but starting by (a), 
(b), (c),... instead of (1), (2), (3),...?


write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}
Thanks, Herbert! The method suggested by you works almost fine, as a dot 
follows (a). On the other hand, it prevents me of using, in the same 
document, the original enumerate environment. Is it possible to overcome 
  these two inconveniences?

Paul



Re: Looking for a cousin of enumerate environment

2003-12-29 Thread Herbert Voss
Paul Smith wrote:
Is there some environment like enumerate one, but starting by (a), 
(b), (c),... instead of (1), (2), (3),...?


write in the preamble:

\renewcommand\theenumi{(\alph{enumi})}


Thanks, Herbert! The method suggested by you works almost fine, as a dot 
follows (a). On the other hand, it prevents me of using, in the same 
document, the original enumerate environment. Is it possible to overcome 
  these two inconveniences?
no problem. In this case write just _before_ your
modified enumerate in TeX (red) and not in the
preamble:
\bgroup
\renewcommand\theenumi{(\alph{enumi})} \renewcommand\labelenumi{\theenumi}
and just right behind your enums also in TeX

\egroup

Now all the other enums are the same than before

Herbert




figures and enumerate environment

2002-05-06 Thread Osvaldo Fornaro

Hi list,

I need to put somes floats in a enumerate environment, some like exercises 
and examples. Someone could remember me the name of the latex package to do 
this?

Thanks in advance.

Osvaldo


-- 
Dr. Osvaldo Fornaro [EMAIL PROTECTED]
Universidad Nacional del Centro de la Provincia de Buenos Aires
Instituto de Física de Materiales Tandil - CICPBA
Pinto 399 (B7000GHG)
Argentina



Re: figures and enumerate environment

2002-05-06 Thread Matej Cepl

On  6 May, Osvaldo Fornaro wrote:
 I need to put somes floats in a enumerate environment, some
 like exercises and examples. Someone could remember me the
 name of the latex package to do this?

It sounds somehow strange and contradictory to me:

- floats are floats because they float
- all items of environment enumerate should be all in one place

Could you elaborate on your wish a little bit, please?

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10
Somerville, Ma 02143
(617) 623-1488




Re: figures and enumerate environment

2002-05-06 Thread Herbert Voss

Osvaldo Fornaro wrote:

 El Lun 06 May 2002 12:08, escribió:
 
On  6 May, Osvaldo Fornaro wrote:

I need to put somes floats in a enumerate environment, some
like exercises and examples. Someone could remember me the
name of the latex package to do this?

It sounds somehow strange and contradictory to me:

- floats are floats because they float
- all items of environment enumerate should be all in one place

Could you elaborate on your wish a little bit, please?

Matej

 
 Ok.
 
 I have exercises, and they comes enumerated, so I used for a time simply the 
 enumerate environment. Now i need implement figures for some of them, so, the 
 figure must be close to the item, prefered at side of them. I tried floatflt 
 with minipage, but it is known this combination does not work with itemizes, 
 unless you uses \fltitem{} in ERT.


take package nonfloats, than you have captions as usual.

Herbert



-- 
http://www.lyx.org/help/




Re: figures and enumerate environment

2002-05-06 Thread Dekel Tsur

On Mon, May 06, 2002 at 02:06:28PM -0300, Osvaldo Fornaro wrote:
   I need to put somes floats in a enumerate environment, some
   like exercises and examples. Someone could remember me the
   name of the latex package to do this?
 
  It sounds somehow strange and contradictory to me:
 
  - floats are floats because they float
  - all items of environment enumerate should be all in one place
 
  Could you elaborate on your wish a little bit, please?
 
  Matej
 
 Ok.
 
 I have exercises, and they comes enumerated, so I used for a time simply the 
 enumerate environment. Now i need implement figures for some of them, so, the 
 figure must be close to the item, prefered at side of them. I tried floatflt 
 with minipage, but it is known this combination does not work with itemizes, 
 unless you uses \fltitem{} in ERT.
 
 have you any solution or proposal?

Use minipages. See example.


#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble

\end_preamble
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4wide
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Enumerate

This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
\layout Enumerate


\latex latex 

\backslash 
begin{minipage}[t]{0.6
\backslash 
textwidth}
\latex default 
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\backslash 
end{minipage}
\backslash 
hfill
\backslash 
raisebox{-
\backslash 
height}{
\begin_inset Figure size 214 163
file platypus.eps
width 3 36
flags 9

\end_inset 

}
\layout Enumerate

This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
\the_end



figures and enumerate environment

2002-05-06 Thread Osvaldo Fornaro

Hi list,

I need to put somes floats in a enumerate environment, some like exercises 
and examples. Someone could remember me the name of the latex package to do 
this?

Thanks in advance.

Osvaldo


-- 
Dr. Osvaldo Fornaro [EMAIL PROTECTED]
Universidad Nacional del Centro de la Provincia de Buenos Aires
Instituto de Física de Materiales Tandil - CICPBA
Pinto 399 (B7000GHG)
Argentina



Re: figures and enumerate environment

2002-05-06 Thread Matej Cepl

On  6 May, Osvaldo Fornaro wrote:
 I need to put somes floats in a enumerate environment, some
 like exercises and examples. Someone could remember me the
 name of the latex package to do this?

It sounds somehow strange and contradictory to me:

- floats are floats because they float
- all items of environment enumerate should be all in one place

Could you elaborate on your wish a little bit, please?

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10
Somerville, Ma 02143
(617) 623-1488




Re: figures and enumerate environment

2002-05-06 Thread Osvaldo Fornaro

El Lun 06 May 2002 12:08, escribió:
 On  6 May, Osvaldo Fornaro wrote:
  I need to put somes floats in a enumerate environment, some
  like exercises and examples. Someone could remember me the
  name of the latex package to do this?

 It sounds somehow strange and contradictory to me:

 - floats are floats because they float
 - all items of environment enumerate should be all in one place

 Could you elaborate on your wish a little bit, please?

 Matej

Ok.

I have exercises, and they comes enumerated, so I used for a time simply the 
enumerate environment. Now i need implement figures for some of them, so, the 
figure must be close to the item, prefered at side of them. I tried floatflt 
with minipage, but it is known this combination does not work with itemizes, 
unless you uses \fltitem{} in ERT.

have you any solution or proposal?

Osvaldo


-- 
Dr. Osvaldo Fornaro [EMAIL PROTECTED]
Universidad Nacional del Centro de la Provincia de Buenos Aires
Instituto de Física de Materiales Tandil - CICPBA
Pinto 399 (B7000GHG)
Argentina



Re: figures and enumerate environment

2002-05-06 Thread Herbert Voss

Osvaldo Fornaro wrote:

 El Lun 06 May 2002 12:08, escribió:
 
On  6 May, Osvaldo Fornaro wrote:

I need to put somes floats in a enumerate environment, some
like exercises and examples. Someone could remember me the
name of the latex package to do this?

It sounds somehow strange and contradictory to me:

- floats are floats because they float
- all items of environment enumerate should be all in one place

Could you elaborate on your wish a little bit, please?

Matej

 
 Ok.
 
 I have exercises, and they comes enumerated, so I used for a time simply the 
 enumerate environment. Now i need implement figures for some of them, so, the 
 figure must be close to the item, prefered at side of them. I tried floatflt 
 with minipage, but it is known this combination does not work with itemizes, 
 unless you uses \fltitem{} in ERT.


take package nonfloats, than you have captions as usual.

Herbert



-- 
http://www.lyx.org/help/




Re: figures and enumerate environment

2002-05-06 Thread Dekel Tsur

On Mon, May 06, 2002 at 02:06:28PM -0300, Osvaldo Fornaro wrote:
   I need to put somes floats in a enumerate environment, some
   like exercises and examples. Someone could remember me the
   name of the latex package to do this?
 
  It sounds somehow strange and contradictory to me:
 
  - floats are floats because they float
  - all items of environment enumerate should be all in one place
 
  Could you elaborate on your wish a little bit, please?
 
  Matej
 
 Ok.
 
 I have exercises, and they comes enumerated, so I used for a time simply the 
 enumerate environment. Now i need implement figures for some of them, so, the 
 figure must be close to the item, prefered at side of them. I tried floatflt 
 with minipage, but it is known this combination does not work with itemizes, 
 unless you uses \fltitem{} in ERT.
 
 have you any solution or proposal?

Use minipages. See example.


#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble

\end_preamble
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4wide
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Enumerate

This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
\layout Enumerate


\latex latex 

\backslash 
begin{minipage}[t]{0.6
\backslash 
textwidth}
\latex default 
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\backslash 
end{minipage}
\backslash 
hfill
\backslash 
raisebox{-
\backslash 
height}{
\begin_inset Figure size 214 163
file platypus.eps
width 3 36
flags 9

\end_inset 

}
\layout Enumerate

This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
\the_end



figures and enumerate environment

2002-05-06 Thread Osvaldo Fornaro

Hi list,

I need to put somes floats in a enumerate environment, some like exercises 
and examples. Someone could remember me the name of the latex package to do 
this?

Thanks in advance.

Osvaldo


-- 
Dr. Osvaldo Fornaro <[EMAIL PROTECTED]>
Universidad Nacional del Centro de la Provincia de Buenos Aires
Instituto de Física de Materiales Tandil - CICPBA
Pinto 399 (B7000GHG)
Argentina



Re: figures and enumerate environment

2002-05-06 Thread Matej Cepl

On  6 May, Osvaldo Fornaro wrote:
> I need to put somes floats in a enumerate environment, some
> like exercises and examples. Someone could remember me the
> name of the latex package to do this?

It sounds somehow strange and contradictory to me:

- floats are floats because they float
- all items of environment enumerate should be all in one place

Could you elaborate on your wish a little bit, please?

Matej

-- 
Matej Cepl, [EMAIL PROTECTED]
138 Highland Ave. #10
Somerville, Ma 02143
(617) 623-1488




Re: figures and enumerate environment

2002-05-06 Thread Osvaldo Fornaro

El Lun 06 May 2002 12:08, escribió:
> On  6 May, Osvaldo Fornaro wrote:
> > I need to put somes floats in a enumerate environment, some
> > like exercises and examples. Someone could remember me the
> > name of the latex package to do this?
>
> It sounds somehow strange and contradictory to me:
>
> - floats are floats because they float
> - all items of environment enumerate should be all in one place
>
> Could you elaborate on your wish a little bit, please?
>
> Matej

Ok.

I have exercises, and they comes enumerated, so I used for a time simply the 
enumerate environment. Now i need implement figures for some of them, so, the 
figure must be close to the item, prefered at side of them. I tried floatflt 
with minipage, but it is known this combination does not work with itemizes, 
unless you uses \fltitem{} in ERT.

have you any solution or proposal?

Osvaldo


-- 
Dr. Osvaldo Fornaro <[EMAIL PROTECTED]>
Universidad Nacional del Centro de la Provincia de Buenos Aires
Instituto de Física de Materiales Tandil - CICPBA
Pinto 399 (B7000GHG)
Argentina



Re: figures and enumerate environment

2002-05-06 Thread Herbert Voss

Osvaldo Fornaro wrote:

> El Lun 06 May 2002 12:08, escribió:
> 
>>On  6 May, Osvaldo Fornaro wrote:
>>
>>>I need to put somes floats in a enumerate environment, some
>>>like exercises and examples. Someone could remember me the
>>>name of the latex package to do this?
>>>
>>It sounds somehow strange and contradictory to me:
>>
>>- floats are floats because they float
>>- all items of environment enumerate should be all in one place
>>
>>Could you elaborate on your wish a little bit, please?
>>
>>Matej
>>
> 
> Ok.
> 
> I have exercises, and they comes enumerated, so I used for a time simply the 
> enumerate environment. Now i need implement figures for some of them, so, the 
> figure must be close to the item, prefered at side of them. I tried floatflt 
> with minipage, but it is known this combination does not work with itemizes, 
> unless you uses \fltitem{} in ERT.


take package nonfloats, than you have captions as usual.

Herbert



-- 
http://www.lyx.org/help/




Re: figures and enumerate environment

2002-05-06 Thread Dekel Tsur

On Mon, May 06, 2002 at 02:06:28PM -0300, Osvaldo Fornaro wrote:
> > > I need to put somes floats in a enumerate environment, some
> > > like exercises and examples. Someone could remember me the
> > > name of the latex package to do this?
> >
> > It sounds somehow strange and contradictory to me:
> >
> > - floats are floats because they float
> > - all items of environment enumerate should be all in one place
> >
> > Could you elaborate on your wish a little bit, please?
> >
> > Matej
> 
> Ok.
> 
> I have exercises, and they comes enumerated, so I used for a time simply the 
> enumerate environment. Now i need implement figures for some of them, so, the 
> figure must be close to the item, prefered at side of them. I tried floatflt 
> with minipage, but it is known this combination does not work with itemizes, 
> unless you uses \fltitem{} in ERT.
> 
> have you any solution or proposal?

Use minipages. See example.


#LyX 1.2 created this file. For more info see http://www.lyx.org/
\lyxformat 218
\textclass article
\begin_preamble

\end_preamble
\language american
\inputencoding default
\fontscheme default
\graphics default
\paperfontsize 12
\spacing single 
\papersize Default
\paperpackage a4wide
\use_geometry 0
\use_amsmath 0
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle default

\layout Enumerate

This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
\layout Enumerate


\latex latex 

\backslash 
begin{minipage}[t]{0.6
\backslash 
textwidth}
\latex default 
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\latex default 
This is an example.

\latex latex 
 
\backslash 
end{minipage}
\backslash 
hfill
\backslash 
raisebox{-
\backslash 
height}{
\begin_inset Figure size 214 163
file platypus.eps
width 3 36
flags 9

\end_inset 

}
\layout Enumerate

This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
 This is an example.
\the_end



Enumerate environment

2002-04-08 Thread R.G.N. Meegama

Hi,

How can I change the Enumerate environment to (a), (b), (c)... instead of
the default 1,2,3?

Thanks,

Gayan




Re: Enumerate environment

2002-04-08 Thread Herbert Voss

R.G.N. Meegama wrote:

 Hi,
 
 How can I change the Enumerate environment to (a), (b), (c)... instead of
 the default 1,2,3?
 


-- 
http://www.lyx.org/help/list/lists.php3#style

Hebrert




  1   2   >