Re: Vertically condensing Itemize

2001-12-02 Thread Herbert Voss

Steve Litt wrote:

 
 So I used the \setstretch{} command to condense wrapped lines of the same 
 item, and then set \parsep and \parskip from -4 to -1 to compensate for the 
 reduced interitem spacing resulting from the \setstretch{}. The result is a 
 very nice list whose multiline items appear as a unit, distinct from other 
 items.
 
 The following is the code:
 
 % %%% Vertically denser Itemize style %%%
 \renewenvironment{itemize}{%
   \ifnum\@itemdepth3 \@toodeep
   \else \advance\@itemdepth\@ne
 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
 \list{\csname\@itemitem\endcsname}%
   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
   \fi
   \setlength{\parsep}{-1pt}
   \setlength{\parskip}{-1pt}
   \setstretch{0.8}
   }{%
   \endlist
 }
 
 Please remember that in order to use \setstretch, you must have 
 \usepackage{setspace} preceding it (probably near the top of your preamble).


you'll get the same with a \setlength{\itemsep}{-1ex} in tex(red) at the
end of the first line in a list environment

Herbert


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




Re: Vertically condensing Itemize

2001-12-02 Thread Herbert Voss

Steve Litt wrote:

 
 So I used the \setstretch{} command to condense wrapped lines of the same 
 item, and then set \parsep and \parskip from -4 to -1 to compensate for the 
 reduced interitem spacing resulting from the \setstretch{}. The result is a 
 very nice list whose multiline items appear as a unit, distinct from other 
 items.
 
 The following is the code:
 
 % %%% Vertically denser Itemize style %%%
 \renewenvironment{itemize}{%
   \ifnum\@itemdepth3 \@toodeep
   \else \advance\@itemdepth\@ne
 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
 \list{\csname\@itemitem\endcsname}%
   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
   \fi
   \setlength{\parsep}{-1pt}
   \setlength{\parskip}{-1pt}
   \setstretch{0.8}
   }{%
   \endlist
 }
 
 Please remember that in order to use \setstretch, you must have 
 \usepackage{setspace} preceding it (probably near the top of your preamble).


you'll get the same with a \setlength{\itemsep}{-1ex} in tex(red) at the
end of the first line in a list environment

Herbert


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




Re: Vertically condensing Itemize

2001-12-02 Thread Herbert Voss

Steve Litt wrote:

> 
> So I used the \setstretch{} command to condense wrapped lines of the same 
> item, and then set \parsep and \parskip from -4 to -1 to compensate for the 
> reduced interitem spacing resulting from the \setstretch{}. The result is a 
> very nice list whose multiline items appear as a unit, distinct from other 
> items.
> 
> The following is the code:
> 
> % %%% Vertically denser Itemize style %%%
> \renewenvironment{itemize}{%
>   \ifnum\@itemdepth>3 \@toodeep
>   \else \advance\@itemdepth\@ne
> \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
> \list{\csname\@itemitem\endcsname}%
>   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
>   \fi
>   \setlength{\parsep}{-1pt}
>   \setlength{\parskip}{-1pt}
>   \setstretch{0.8}
>   }{%
>   \endlist
> }
> 
> Please remember that in order to use \setstretch, you must have 
> \usepackage{setspace} preceding it (probably near the top of your preamble).


you'll get the same with a \setlength{\itemsep}{-1ex} in tex(red) at the
end of the first line in a list environment

Herbert


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




Vertically condensing Itemize

2001-12-01 Thread Steve Litt

Hi everyone,

A few weeks ago I made this suggestion for vertically condensing the Itemize 
environment:

% %%% Vertically denser Itemize style %%%
\renewenvironment{itemize}{%
  \ifnum\@itemdepth3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-4pt}
  \setlength{\parskip}{-4pt}
  }{%
  \endlist
}

The preceding has one problem. If an item wraps, the space between its 
wrapped lines is bigger than the space between items themselves. This doesn't 
convey the list as distinct items.

So I used the \setstretch{} command to condense wrapped lines of the same 
item, and then set \parsep and \parskip from -4 to -1 to compensate for the 
reduced interitem spacing resulting from the \setstretch{}. The result is a 
very nice list whose multiline items appear as a unit, distinct from other 
items.

The following is the code:

% %%% Vertically denser Itemize style %%%
\renewenvironment{itemize}{%
  \ifnum\@itemdepth3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-1pt}
  \setlength{\parskip}{-1pt}
  \setstretch{0.8}
  }{%
  \endlist
}

Please remember that in order to use \setstretch, you must have 
\usepackage{setspace} preceding it (probably near the top of your preamble).

Steve

-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.







Re: Vertically condensing Itemize

2001-12-01 Thread Wayan



On Thu, 29 Nov 2001, Steve Litt wrote:

 Hi everyone,

 A few weeks ago I made this suggestion for vertically condensing the Itemize
 environment:

 % %%% Vertically denser Itemize style %%%
 \renewenvironment{itemize}{%
   \ifnum\@itemdepth3 \@toodeep
   \else \advance\@itemdepth\@ne
 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
 \list{\csname\@itemitem\endcsname}%
   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
   \fi
   \setlength{\parsep}{-4pt}
   \setlength{\parskip}{-4pt}
   }{%
   \endlist
 }

The result is similar with the LaTeX preamble suggested by Dekel
a few weeks ago, as following:

\let\olditemize=\itemize
 \def\itemize{\olditemize\setlength{\itemsep}{-1ex}}
\let\oldenumerate=\enumerate
 \def\enumerate{\oldenumerate\setlength{\itemsep}{-1ex}}


Wayan




Vertically condensing Itemize

2001-12-01 Thread Steve Litt

Hi everyone,

A few weeks ago I made this suggestion for vertically condensing the Itemize 
environment:

% %%% Vertically denser Itemize style %%%
\renewenvironment{itemize}{%
  \ifnum\@itemdepth3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-4pt}
  \setlength{\parskip}{-4pt}
  }{%
  \endlist
}

The preceding has one problem. If an item wraps, the space between its 
wrapped lines is bigger than the space between items themselves. This doesn't 
convey the list as distinct items.

So I used the \setstretch{} command to condense wrapped lines of the same 
item, and then set \parsep and \parskip from -4 to -1 to compensate for the 
reduced interitem spacing resulting from the \setstretch{}. The result is a 
very nice list whose multiline items appear as a unit, distinct from other 
items.

The following is the code:

% %%% Vertically denser Itemize style %%%
\renewenvironment{itemize}{%
  \ifnum\@itemdepth3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-1pt}
  \setlength{\parskip}{-1pt}
  \setstretch{0.8}
  }{%
  \endlist
}

Please remember that in order to use \setstretch, you must have 
\usepackage{setspace} preceding it (probably near the top of your preamble).

Steve

-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.







Re: Vertically condensing Itemize

2001-12-01 Thread Wayan



On Thu, 29 Nov 2001, Steve Litt wrote:

 Hi everyone,

 A few weeks ago I made this suggestion for vertically condensing the Itemize
 environment:

 % %%% Vertically denser Itemize style %%%
 \renewenvironment{itemize}{%
   \ifnum\@itemdepth3 \@toodeep
   \else \advance\@itemdepth\@ne
 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
 \list{\csname\@itemitem\endcsname}%
   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
   \fi
   \setlength{\parsep}{-4pt}
   \setlength{\parskip}{-4pt}
   }{%
   \endlist
 }

The result is similar with the LaTeX preamble suggested by Dekel
a few weeks ago, as following:

\let\olditemize=\itemize
 \def\itemize{\olditemize\setlength{\itemsep}{-1ex}}
\let\oldenumerate=\enumerate
 \def\enumerate{\oldenumerate\setlength{\itemsep}{-1ex}}


Wayan




Vertically condensing Itemize

2001-12-01 Thread Steve Litt

Hi everyone,

A few weeks ago I made this suggestion for vertically condensing the Itemize 
environment:

% %%% Vertically denser Itemize style %%%
\renewenvironment{itemize}{%
  \ifnum\@itemdepth>3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-4pt}
  \setlength{\parskip}{-4pt}
  }{%
  \endlist
}

The preceding has one problem. If an item wraps, the space between its 
wrapped lines is bigger than the space between items themselves. This doesn't 
convey the list as distinct items.

So I used the \setstretch{} command to condense wrapped lines of the same 
item, and then set \parsep and \parskip from -4 to -1 to compensate for the 
reduced interitem spacing resulting from the \setstretch{}. The result is a 
very nice list whose multiline items appear as a unit, distinct from other 
items.

The following is the code:

% %%% Vertically denser Itemize style %%%
\renewenvironment{itemize}{%
  \ifnum\@itemdepth>3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-1pt}
  \setlength{\parskip}{-1pt}
  \setstretch{0.8}
  }{%
  \endlist
}

Please remember that in order to use \setstretch, you must have 
\usepackage{setspace} preceding it (probably near the top of your preamble).

Steve

-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.







Re: Vertically condensing Itemize

2001-12-01 Thread Wayan



On Thu, 29 Nov 2001, Steve Litt wrote:

> Hi everyone,
>
> A few weeks ago I made this suggestion for vertically condensing the Itemize
> environment:
>
> % %%% Vertically denser Itemize style %%%
> \renewenvironment{itemize}{%
>   \ifnum\@itemdepth>3 \@toodeep
>   \else \advance\@itemdepth\@ne
> \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
> \list{\csname\@itemitem\endcsname}%
>   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
>   \fi
>   \setlength{\parsep}{-4pt}
>   \setlength{\parskip}{-4pt}
>   }{%
>   \endlist
> }

The result is similar with the LaTeX preamble suggested by Dekel
a few weeks ago, as following:

\let\olditemize=\itemize
 \def\itemize{\olditemize\setlength{\itemsep}{-1ex}}
\let\oldenumerate=\enumerate
 \def\enumerate{\oldenumerate\setlength{\itemsep}{-1ex}}


Wayan




Some exact instructions for vertically condensing itemize

2001-11-22 Thread Steve Litt

Hi everyone,

Your mileage may vary, but here's how I vertically condensed my Itemize 
environment:

\renewenvironment{itemize}{%
  \ifnum\@itemdepth3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-4pt}
  \setlength{\parskip}{-4pt}
  }{%
  \endlist
}

I simply put the preceding code between a Preamble and EndPreamble statement 
in my layout file. There was no need to change the LyX representation, 
because the original LyX representation is faithful enough.

You'll notice what I really did was cannibalize the 
\renewenvironment{itemize} from amsbook.cls, and then add two setlengths. I 
have no idea why this works, but it seems to work quite nicely and gives a 
very nice spacing, while retaining bullets and nesting.

If you use this and want to widen the spacing, simply reduce the absolute 
value of the negative numbers in the \setlength commands. If you want to 
further narrow the spacing, increase their absolute values.

Next, I'll do a similar steal and enhance for the Enumerate environment. 
Hopefully this will knock off 10 or 20 pages from my book, allowing a better 
size for mail order.

When the Enumerate is done I'll post it.

If I've made any horrid mistakes or miscalculations in doing this, please 
feel free to let me know.

Thanks

Steve

-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.







Re: Some exact instructions for vertically condensing itemize

2001-11-22 Thread Allan Rae

On Thu, 22 Nov 2001, Steve Litt wrote:

 Hi everyone,

 Your mileage may vary, but here's how I vertically condensed my Itemize
 environment:

 \renewenvironment{itemize}{%
   \ifnum\@itemdepth3 \@toodeep
   \else \advance\@itemdepth\@ne
 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
 \list{\csname\@itemitem\endcsname}%
   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
   \fi
   \setlength{\parsep}{-4pt}
   \setlength{\parskip}{-4pt}
   }{%
   \endlist
 }

 I simply put the preceding code between a Preamble and EndPreamble statement
 in my layout file. There was no need to change the LyX representation,
 because the original LyX representation is faithful enough.

You might like to take a look at foils.cls and its definition of
\zerolistvertdimens

which sets a few lengths for compacted list-based environments. You
simply place the command as ERT at the start of the first item of
list, enumerate, itemize, description etc. environments.

You might like to take a look at The LaTeX Companion for a very good
description of all the different lengths.

You could also make use of it in your above strategy.

Allan. (ARRae)




Some exact instructions for vertically condensing itemize

2001-11-22 Thread Steve Litt

Hi everyone,

Your mileage may vary, but here's how I vertically condensed my Itemize 
environment:

\renewenvironment{itemize}{%
  \ifnum\@itemdepth3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-4pt}
  \setlength{\parskip}{-4pt}
  }{%
  \endlist
}

I simply put the preceding code between a Preamble and EndPreamble statement 
in my layout file. There was no need to change the LyX representation, 
because the original LyX representation is faithful enough.

You'll notice what I really did was cannibalize the 
\renewenvironment{itemize} from amsbook.cls, and then add two setlengths. I 
have no idea why this works, but it seems to work quite nicely and gives a 
very nice spacing, while retaining bullets and nesting.

If you use this and want to widen the spacing, simply reduce the absolute 
value of the negative numbers in the \setlength commands. If you want to 
further narrow the spacing, increase their absolute values.

Next, I'll do a similar steal and enhance for the Enumerate environment. 
Hopefully this will knock off 10 or 20 pages from my book, allowing a better 
size for mail order.

When the Enumerate is done I'll post it.

If I've made any horrid mistakes or miscalculations in doing this, please 
feel free to let me know.

Thanks

Steve

-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.







Re: Some exact instructions for vertically condensing itemize

2001-11-22 Thread Allan Rae

On Thu, 22 Nov 2001, Steve Litt wrote:

 Hi everyone,

 Your mileage may vary, but here's how I vertically condensed my Itemize
 environment:

 \renewenvironment{itemize}{%
   \ifnum\@itemdepth3 \@toodeep
   \else \advance\@itemdepth\@ne
 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
 \list{\csname\@itemitem\endcsname}%
   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
   \fi
   \setlength{\parsep}{-4pt}
   \setlength{\parskip}{-4pt}
   }{%
   \endlist
 }

 I simply put the preceding code between a Preamble and EndPreamble statement
 in my layout file. There was no need to change the LyX representation,
 because the original LyX representation is faithful enough.

You might like to take a look at foils.cls and its definition of
\zerolistvertdimens

which sets a few lengths for compacted list-based environments. You
simply place the command as ERT at the start of the first item of
list, enumerate, itemize, description etc. environments.

You might like to take a look at The LaTeX Companion for a very good
description of all the different lengths.

You could also make use of it in your above strategy.

Allan. (ARRae)




Some exact instructions for vertically condensing itemize

2001-11-22 Thread Steve Litt

Hi everyone,

Your mileage may vary, but here's how I vertically condensed my Itemize 
environment:

\renewenvironment{itemize}{%
  \ifnum\@itemdepth>3 \@toodeep
  \else \advance\@itemdepth\@ne
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\list{\csname\@itemitem\endcsname}%
  {\def\makelabel##1{\hss\llap{\upshape##1}}}%
  \fi
  \setlength{\parsep}{-4pt}
  \setlength{\parskip}{-4pt}
  }{%
  \endlist
}

I simply put the preceding code between a Preamble and EndPreamble statement 
in my layout file. There was no need to change the LyX representation, 
because the original LyX representation is faithful enough.

You'll notice what I really did was cannibalize the 
\renewenvironment{itemize} from amsbook.cls, and then add two setlengths. I 
have no idea why this works, but it seems to work quite nicely and gives a 
very nice spacing, while retaining bullets and nesting.

If you use this and want to widen the spacing, simply reduce the absolute 
value of the negative numbers in the \setlength commands. If you want to 
further narrow the spacing, increase their absolute values.

Next, I'll do a similar steal and enhance for the Enumerate environment. 
Hopefully this will knock off 10 or 20 pages from my book, allowing a better 
size for mail order.

When the Enumerate is done I'll post it.

If I've made any horrid mistakes or miscalculations in doing this, please 
feel free to let me know.

Thanks

Steve

-- 
Steve Litt
Webmaster, Troubleshooters.Com
http://www.troubleshooters.com
[EMAIL PROTECTED]
(Legal Disclaimer) Follow these suggestions at your own risk.







Re: Some exact instructions for vertically condensing itemize

2001-11-22 Thread Allan Rae

On Thu, 22 Nov 2001, Steve Litt wrote:

> Hi everyone,
>
> Your mileage may vary, but here's how I vertically condensed my Itemize
> environment:
>
> \renewenvironment{itemize}{%
>   \ifnum\@itemdepth>3 \@toodeep
>   \else \advance\@itemdepth\@ne
> \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
> \list{\csname\@itemitem\endcsname}%
>   {\def\makelabel##1{\hss\llap{\upshape##1}}}%
>   \fi
>   \setlength{\parsep}{-4pt}
>   \setlength{\parskip}{-4pt}
>   }{%
>   \endlist
> }
>
> I simply put the preceding code between a Preamble and EndPreamble statement
> in my layout file. There was no need to change the LyX representation,
> because the original LyX representation is faithful enough.

You might like to take a look at foils.cls and its definition of
\zerolistvertdimens

which sets a few lengths for compacted list-based environments. You
simply place the command as ERT at the start of the first item of
list, enumerate, itemize, description etc. environments.

You might like to take a look at "The LaTeX Companion" for a very good
description of all the different lengths.

You could also make use of it in your above strategy.

Allan. (ARRae)