Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

When speculation has done its worst, two plus two still equals four. -- S. Johnson


computers / comp.text.tex / Re: No empty line before an item list

SubjectAuthor
* No empty line before an item listCecil Westerhof
`* Re: No empty line before an item listPeter Flynn
 `* Re: No empty line before an item listCecil Westerhof
  `* Re: No empty line before an item listPeter Flynn
   `* Re: No empty line before an item listCecil Westerhof
    `* Re: No empty line before an item listPeter Flynn
     `- Re: No empty line before an item listAxel Berger

1
No empty line before an item list

<8735c33mym.fsf@munus.decebal.nl>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5376&group=comp.text.tex#5376

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Cecil@decebal.nl (Cecil Westerhof)
Newsgroups: comp.text.tex
Subject: No empty line before an item list
Date: Tue, 04 Oct 2022 12:25:05 +0200
Organization: Decebal Computing
Lines: 27
Message-ID: <8735c33mym.fsf@munus.decebal.nl>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="fa87c8c94148af0ba087e8338ac1f914";
logging-data="2774075"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187K35hfq8nCOtbkBCtq5lk6a+fPnmhnRA="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:35tn/5RqpuzfHRrefCylL+3jUdA=
sha1:eQptZPiJuho11Vyyx0AyDKpv/6Q=
 by: Cecil Westerhof - Tue, 4 Oct 2022 10:25 UTC

In a LaTex document I defined:
\newenvironment{myitemize} {
\begin{itemize}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
} {\end{itemize}}

In my document part I have something like:
To do this you need:
\begin{myitemize}
\item A plan
\item Steps to implement the plan
\item The will to take the steps
\end{myitemize}

But I then get an empty line between
To do this you need:
and:
A plan

How can I remove this empty line?

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Re: No empty line before an item list

<jq2kpaFtblvU2@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5382&group=comp.text.tex#5382

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: No empty line before an item list
Date: Tue, 4 Oct 2022 12:46:50 +0100
Lines: 33
Message-ID: <jq2kpaFtblvU2@mid.individual.net>
References: <8735c33mym.fsf@munus.decebal.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net cft7DuDSVq7vaXSCv12AEwUSB05RXv+ouG+0LdOSNq+L3DkSEJ
Cancel-Lock: sha1:Jz6cZWCLB0qghw8zSbgphh4wam0=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-US
In-Reply-To: <8735c33mym.fsf@munus.decebal.nl>
 by: Peter Flynn - Tue, 4 Oct 2022 11:46 UTC

On 04/10/2022 11:25, Cecil Westerhof wrote:
> In a LaTex document I defined:
> \newenvironment{myitemize} {
> \begin{itemize}
> \setlength{\itemsep}{0pt}
> \setlength{\parskip}{0pt}
> \setlength{\parsep}{0pt}
> } {\end{itemize}}
>
> In my document part I have something like:
> To do this you need:
> \begin{myitemize}
> \item A plan
> \item Steps to implement the plan
> \item The will to take the steps
> \end{myitemize}
>
> But I then get an empty line between
> To do this you need:
> and:
> A plan
>
> How can I remove this empty line?

Use the enumitem package (it handles itemized as well as enumerated
lists), and say

\begin{itemize}[nosep]
....
\end{itemize}

Peter

Re: No empty line before an item list

<87edvn1uqi.fsf@munus.decebal.nl>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5391&group=comp.text.tex#5391

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Cecil@decebal.nl (Cecil Westerhof)
Newsgroups: comp.text.tex
Subject: Re: No empty line before an item list
Date: Tue, 04 Oct 2022 17:20:05 +0200
Organization: Decebal Computing
Lines: 38
Message-ID: <87edvn1uqi.fsf@munus.decebal.nl>
References: <8735c33mym.fsf@munus.decebal.nl>
<jq2kpaFtblvU2@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="fa87c8c94148af0ba087e8338ac1f914";
logging-data="2834517"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19wFfYPtLe4HFhY95fq8Blvi/QKmsc50Cs="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:ZHZyP6SZ/7cUf/1u8hhBH5IZy9U=
sha1:fd/uBsLHnNpuMqI/Hls0uMyiurk=
 by: Cecil Westerhof - Tue, 4 Oct 2022 15:20 UTC

Peter Flynn <peter@silmaril.ie> writes:

> On 04/10/2022 11:25, Cecil Westerhof wrote:
>> In a LaTex document I defined:
>> \newenvironment{myitemize} {
>> \begin{itemize}
>> \setlength{\itemsep}{0pt}
>> \setlength{\parskip}{0pt}
>> \setlength{\parsep}{0pt}
>> } {\end{itemize}}
>> In my document part I have something like:
>> To do this you need:
>> \begin{myitemize}
>> \item A plan
>> \item Steps to implement the plan
>> \item The will to take the steps
>> \end{myitemize}
>> But I then get an empty line between
>> To do this you need:
>> and:
>> A plan
>> How can I remove this empty line?
>
> Use the enumitem package (it handles itemized as well as enumerated
> lists), and say
>
> \begin{itemize}[nosep]
> ...
> \end{itemize}

That works. It also removes the empty line after, but that I can
easily restore with:
\vspace{\baselineskip}

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Re: No empty line before an item list

<jq54sfFalojU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5409&group=comp.text.tex#5409

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: No empty line before an item list
Date: Wed, 5 Oct 2022 11:33:51 +0100
Lines: 12
Message-ID: <jq54sfFalojU1@mid.individual.net>
References: <8735c33mym.fsf@munus.decebal.nl>
<jq2kpaFtblvU2@mid.individual.net> <87edvn1uqi.fsf@munus.decebal.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net m+alFdcl/9E6RdmbJDUIvQeogAZrjzFlh2iC2g1mt7Gp7k3Jrb
Cancel-Lock: sha1:i8WQE7MtVEApOhewGp9lY2knw8c=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-US
In-Reply-To: <87edvn1uqi.fsf@munus.decebal.nl>
 by: Peter Flynn - Wed, 5 Oct 2022 10:33 UTC

On 04/10/2022 16:20, Cecil Westerhof wrote:
[snip enumitem]
> That works. It also removes the empty line after, but that I can
> easily restore with:
> \vspace{\baselineskip}

That's an interesting use case: your short lists always come at the end
of a paragraph, so you need no space above but normal space below?

This sounds like a good idea for a [noaftersep] option :-)

Peter

Re: No empty line before an item list

<87r0zmy0n1.fsf@munus.decebal.nl>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5416&group=comp.text.tex#5416

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Cecil@decebal.nl (Cecil Westerhof)
Newsgroups: comp.text.tex
Subject: Re: No empty line before an item list
Date: Wed, 05 Oct 2022 13:23:46 +0200
Organization: Decebal Computing
Lines: 36
Message-ID: <87r0zmy0n1.fsf@munus.decebal.nl>
References: <8735c33mym.fsf@munus.decebal.nl>
<jq2kpaFtblvU2@mid.individual.net> <87edvn1uqi.fsf@munus.decebal.nl>
<jq54sfFalojU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader01.eternal-september.org; posting-host="e25ebccdf2b9eac2e7f3584360fb3375";
logging-data="3131106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+oczC2wvlM8kKGeJidPwEGmjxh0EfFWBo="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:kikPNfvbxrNF0pT2t1C2TKIWLUg=
sha1:s79Trb3VormyWJ+jVhQs2z/NoqU=
 by: Cecil Westerhof - Wed, 5 Oct 2022 11:23 UTC

Peter Flynn <peter@silmaril.ie> writes:

> On 04/10/2022 16:20, Cecil Westerhof wrote:
> [snip enumitem]
>> That works. It also removes the empty line after, but that I can
>> easily restore with:
>> \vspace{\baselineskip}
>
> That's an interesting use case: your short lists always come at the end
> of a paragraph, so you need no space above but normal space below?

Well I am not sure always, I just started with using LaTeX. But at the
moment I use them for something like:
The things you learn are:
- First
- Second
- …

And I do not want:
The things you learn are:

- First
- Second
- …

> This sounds like a good idea for a [noaftersep] option :-)

I look into it.
No sleep for the wicked. ;-P
(In the secular meaning, not the biblical.)

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Re: No empty line before an item list

<jq5f6uFc8v7U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5420&group=comp.text.tex#5420

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: peter@silmaril.ie (Peter Flynn)
Newsgroups: comp.text.tex
Subject: Re: No empty line before an item list
Date: Wed, 5 Oct 2022 14:30:06 +0100
Lines: 33
Message-ID: <jq5f6uFc8v7U1@mid.individual.net>
References: <8735c33mym.fsf@munus.decebal.nl>
<jq2kpaFtblvU2@mid.individual.net> <87edvn1uqi.fsf@munus.decebal.nl>
<jq54sfFalojU1@mid.individual.net> <87r0zmy0n1.fsf@munus.decebal.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net GH0uTLV2mUqtoXfTi0qM3gqVeixeZXmMc/n9IQgAseuTfRRmIW
Cancel-Lock: sha1:23XzT01r2LGRjejKt7yUF4qYkIU=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Content-Language: en-US
In-Reply-To: <87r0zmy0n1.fsf@munus.decebal.nl>
 by: Peter Flynn - Wed, 5 Oct 2022 13:30 UTC

On 05/10/2022 12:23, Cecil Westerhof wrote:
[...]
> Well I am not sure always, I just started with using LaTeX. But at the
> moment I use them for something like:
> The things you learn are:
> - First
> - Second
> - …
>
> And I do not want:
> The things you learn are:
>
> - First
> - Second
> - …

That's a very common requirement. But if a compact list occurs WITHIN a
paragraph (as your example), then if the text of the same paragraph
continues after the list, there should be no spacing after the list, eg

>> But at the moment I use them for something like this:
>> the things you learn are:
>> - First
>> - Second
>> - Third
>> provided you paid attention in class.

However, if it comes at the END of a paragraph, anything following it
must by definition be a new paragraph, so you may want to decide if
there should be space or not, depending on your rules for indentation
and your normal inter-paragraph space.

Peter

Re: No empty line before an item list

<633DF1A6.F3F94E20@Berger-Odenthal.De>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=5427&group=comp.text.tex#5427

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Spam@Berger-Odenthal.De (Axel Berger)
Newsgroups: comp.text.tex
Subject: Re: No empty line before an item list
Date: Wed, 05 Oct 2022 23:05:42 +0200
Lines: 32
Message-ID: <633DF1A6.F3F94E20@Berger-Odenthal.De>
References: <8735c33mym.fsf@munus.decebal.nl>
<jq2kpaFtblvU2@mid.individual.net> <87edvn1uqi.fsf@munus.decebal.nl>
<jq54sfFalojU1@mid.individual.net> <87r0zmy0n1.fsf@munus.decebal.nl> <jq5f6uFc8v7U1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: individual.net J/+jT6jXdOootaQ2ejsQmwq93yiWcPAaIRBZ/TToVJ9DyfZtQ5
Cancel-Lock: sha1:XkVxk+I5hYV8lmCx5rurKBoDvIU=
X-Mailer: Mozilla 4.8 [en] (Win98; U)
X-Accept-Language: en,de,nl,es,fr
 by: Axel Berger - Wed, 5 Oct 2022 21:05 UTC

Peter Flynn wrote:
> > The things you learn are:
> > - First
>
> That's a very common requirement.

I use paralist so I'm not sure whether the following is transferable. In
my personal addons package, that is always loaded for anything, I have:

\newcommand\parafterlist{\@noparlisttrue}
\newcommand\noparafterlist{\@noparlistfalse}

The shortcut for a list in my editor yields e.g.

\begin{compactitem}

% \parafterlist % nur mit Skip
\end{compactitem}

If the use case occurs, and I agree it's common, I just uncomment the
penultimate line. It only works with skip, not with indented paragraphs.
\noparafterlist is in there for completeness' sake, I never ever used or
needed it.

--
/¯\ No | Dipl.-Ing. F. Axel Berger Tel: +49/ 221/ 7771 8067
\ / HTML | Roald-Amundsen-Straße 2a Fax: +49/ 221/ 7771 8069
 X in | D-50829 Köln-Ossendorf http://berger-odenthal.de
/ \ Mail | -- No unannounced, large, binary attachments, please! --

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor