Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The amount of weight an evangelist carries with the almighty is measured in billigrahams.


computers / comp.text.tex / Re: Lists with titles

SubjectAuthor
* Lists with titlesPeter Flynn
+* Re: Lists with titlesJohn Doe
|`- Re: Lists with titlesPeter Flynn
`* Re: Lists with titlesUlrike Fischer
 `- Re: Lists with titlesPeter Flynn

1
Lists with titles

<jqm65sFueorU1@mid.individual.net>

  copy mid

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

  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: Lists with titles
Date: Tue, 11 Oct 2022 22:40:12 +0100
Organization: Usenet Labs Bozon Detector Facility
Lines: 28
Message-ID: <jqm65sFueorU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net bkAUOjzWkxUcT48anM5frAFSzzRTFu8ot9QnmeAzY3kgncrLtB
Cancel-Lock: sha1:QLflD2PkPcTvkM5YLQXjMWQZZgc=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Content-Language: en-US
 by: Peter Flynn - Tue, 11 Oct 2022 21:40 UTC

I have a requirement to use LaTeX to typeset a document with many lists,
most of which have a title, eg

Something procedure
1. do something
2. do something more
3. finish it

but of course

\begin{itemize}
\textbf{Something procedure}
\item do something
\item do something more
\item finish it
\end{itemize}

issues a "Something's wrong--perhaps a missing \item" error.

I can think of probably half a dozen ways round the requirement for an
\item immediately following a \begin{<list>}, but I can't seem to find
any package for handling this format. I'd like to keep the title within
the scope of the list environment for subsequent markup reuse.

Has anyone tackled this?

Peter

Re: Lists with titles

<ti5219$tdf$1@gioia.aioe.org>

  copy mid

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

  copy link   Newsgroups: comp.text.tex
Path: i2pn2.org!i2pn.org!aioe.org!fVvmvRt98UbP4G0QXJiCpA.user.46.165.242.75.POSTED!not-for-mail
From: john.doe@myemail.invalid (John Doe)
Newsgroups: comp.text.tex
Subject: Re: Lists with titles
Date: Wed, 12 Oct 2022 00:33:46 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <ti5219$tdf$1@gioia.aioe.org>
References: <jqm65sFueorU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="30127"; posting-host="fVvmvRt98UbP4G0QXJiCpA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Usenapp for MacOS
X-Notice: Filtered by postfilter v. 0.9.2
X-Usenapp: v1.23/d - Full License
 by: John Doe - Wed, 12 Oct 2022 00:33 UTC

On Oct 11, 2022 at 4:40:12 PM CDT, "Peter Flynn" <peter@silmaril.ie> wrote:

> \begin{itemize}
> \textbf{Something procedure}
> \item do something
> \item do something more
> \item finish it
> \end{itemize}

Howdy,

How about

\noindent\textbf{Something procedure}
\begin{itemize}
\item do something
\item do something more
\item finish it
\end{itemize}

with the title starting a new paragraphwith no indent which will add a bit of
space under the title.

Good Luck,
Herb Schulz

Re: Lists with titles

<145fx1ostblev.dlg@nililand.de>

  copy mid

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

  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: news3@nililand.de (Ulrike Fischer)
Newsgroups: comp.text.tex
Subject: Re: Lists with titles
Date: Wed, 12 Oct 2022 12:28:52 +0200
Lines: 61
Message-ID: <145fx1ostblev.dlg@nililand.de>
References: <jqm65sFueorU1@mid.individual.net>
Reply-To: news3@nililand.de
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Trace: individual.net F0bLficcO1Xb2p8vPLJJ3wcwBQtDH88SgpcEXtSl4bDEJdSng2
Cancel-Lock: sha1:uMgEnCozXVY66K7cq/sIWvm9dfo=
User-Agent: 40tude_Dialog/2.0.15.41de
 by: Ulrike Fischer - Wed, 12 Oct 2022 10:28 UTC

Am Tue, 11 Oct 2022 22:40:12 +0100 schrieb Peter Flynn:

> I have a requirement to use LaTeX to typeset a document with many lists,
> most of which have a title, eg
>
> Something procedure
> 1. do something
> 2. do something more
> 3. finish it
>
> but of course
>
> \begin{itemize}
> \textbf{Something procedure}
> \item do something
> \item do something more
> \item finish it
> \end{itemize}
>
> issues a "Something's wrong--perhaps a missing \item" error.
>
> I can think of probably half a dozen ways round the requirement for an
> \item immediately following a \begin{<list>}, but I can't seem to find
> any package for handling this format. I'd like to keep the title within
> the scope of the list environment for subsequent markup reuse.
>
> Has anyone tackled this?

Well you could put the title in a hbox, that wouldn't switch into
hmode and so avoid the error:
\begin{itemize}
\hbox{\textbf{Something procedure}}
\item do something
\item do something more
\item finish it
\end{itemize}

But on the whole, I would say it would be better to define an
environment, e.g.

\documentclass{article}
\usepackage{enumitem}
\NewDocumentEnvironment{enumtitle}{m}
{\textbf{#1}
\begin{enumerate}[beginpenalty=10000]% no page break after title
}{\end{enumerate}}

\begin{document}
\begin{enumtitle}{My title}
\item a
\item b
\item c
\end{enumtitle}

\end{document}

--
Ulrike Fischer
http://www.troubleshooting-tex.de/

Re: Lists with titles

<jqottmF547bU1@mid.individual.net>

  copy mid

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

  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: Lists with titles
Date: Wed, 12 Oct 2022 23:37:42 +0100
Lines: 41
Message-ID: <jqottmF547bU1@mid.individual.net>
References: <jqm65sFueorU1@mid.individual.net> <ti5219$tdf$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net JqK+z4WasQDUwHAQEvx0ZA9wauryAsa69P/i6/lz1ls7UJBKjN
Cancel-Lock: sha1:mvC25iFpsl7Nkyc8wqoz+0MnVxA=
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: <ti5219$tdf$1@gioia.aioe.org>
 by: Peter Flynn - Wed, 12 Oct 2022 22:37 UTC

On 12/10/2022 01:33, John Doe wrote:
> On Oct 11, 2022 at 4:40:12 PM CDT, "Peter Flynn" <peter@silmaril.ie> wrote:
>
>> \begin{itemize}
>> \textbf{Something procedure}
>> \item do something
>> \item do something more
>> \item finish it
>> \end{itemize}
>
> Howdy,
>
> How about
>
> \noindent\textbf{Something procedure}
> \begin{itemize}
> \item do something
> \item do something more
> \item finish it
> \end{itemize}

That is certainly one solution, but I'd like to keep the title within
the scope of the list environment for subsequent markup reuse.

Currently (for description lists) I am using

\newcommand{\listtitle}[1]{%
\item[\relax]\hspace*{-\labelsep}\textbf{\sffamily#1}}

eg

\begin{description}
\listtitle{Something procedure}
\item[start] do something
\item[more] do something more
\item[finish] finish it
\end{description}

I'll be working on it for itemize and enumerate (with enumitem, I suspect).

Peter

Re: Lists with titles

<jqouc1F5676U1@mid.individual.net>

  copy mid

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

  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: Lists with titles
Date: Wed, 12 Oct 2022 23:45:21 +0100
Lines: 26
Message-ID: <jqouc1F5676U1@mid.individual.net>
References: <jqm65sFueorU1@mid.individual.net> <145fx1ostblev.dlg@nililand.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net ptCHC09DMK8IRP0d3FzMFg/D9dLg21Y8nxZ775Q2aCYx0SRKzf
Cancel-Lock: sha1:AzMQKJsPVIgV6ZBRc+kP/bv+dlI=
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: <145fx1ostblev.dlg@nililand.de>
 by: Peter Flynn - Wed, 12 Oct 2022 22:45 UTC

On 12/10/2022 11:28, Ulrike Fischer wrote:
> Am Tue, 11 Oct 2022 22:40:12 +0100 schrieb Peter Flynn:
>
>> I have a requirement to use LaTeX to typeset a document with many lists,
>> most of which have a title,
[...]
> Well you could put the title in a hbox, that wouldn't switch into
> hmode and so avoid the error:
> \begin{itemize}
> \hbox{\textbf{Something procedure}}
> \item do something
> \item do something more
> \item finish it
> \end{itemize}

Thank you, that would work.

> But on the whole, I would say it would be better to define an
> environment, e.g.

Yes, that also works, but I'm not a big fan of creating new environments
for something that existing environments ought to be able to handle
transparently. It makes it easier for users if they can just continue to
use the normal list environments, but give one a title when they need to.

Peter

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor