* [NTG-context] Why is this description environment not showing the correct title?
[not found] <533835902.3888012.1714919755865.ref@mail.yahoo.com>
@ 2024-05-05 14:35 ` Joel via ntg-context
2024-05-05 14:45 ` [NTG-context] " Mikael Sundqvist
0 siblings, 1 reply; 5+ messages in thread
From: Joel via ntg-context @ 2024-05-05 14:35 UTC (permalink / raw)
To: Mailing List for ConTeXt Users; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 788 bytes --]
\definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, alternative=hanging, width=broad, margin=1cm]
\starttext
\latexdesc{1540} some event happened
\latexdesc{1541} some other event happened
\latexdesc{1542} some event happened quite different
\stoptext
I found the above code (the first line) in the ConTeXt Wiki, as a way to create the equivalent of a desc environment from LaTeX. The items inside {} should be bold, then there is a gap before the next text.
I am using this to display a simple timeline.
Though the formatting looks perfect, very strangely when I compile it, it changes all of the dates to say "1540" (or whatever date was used first).
Why is it showing the wrong title on the desc environment?
--Joel
[-- Attachment #1.2: Type: text/html, Size: 1446 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Why is this description environment not showing the correct title?
2024-05-05 14:35 ` [NTG-context] Why is this description environment not showing the correct title? Joel via ntg-context
@ 2024-05-05 14:45 ` Mikael Sundqvist
2024-05-05 15:13 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Mikael Sundqvist @ 2024-05-05 14:45 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi
On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context <ntg-context@ntg.nl> wrote:
>
>
> \definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, alternative=hanging, width=broad, margin=1cm]
>
> \starttext
>
> \latexdesc{1540} some event happened
> \latexdesc{1541} some other event happened
> \latexdesc{1542} some event happened quite different
>
> \stoptext
>
>
> I found the above code (the first line) in the ConTeXt Wiki, as a way to create the equivalent of a desc environment from LaTeX. The items inside {} should be bold, then there is a gap before the next text.
>
> I am using this to display a simple timeline.
>
> Though the formatting looks perfect, very strangely when I compile it, it changes all of the dates to say "1540" (or whatever date was used first).
>
> Why is it showing the wrong title on the desc environment?
>
> --Joel
I don't know how you want it to look, exactly, but ending the
paragraph helps with the numbering. There is also a start/stop version
that suggests a bit more structure.
\definedescription
[latexdesc]
[headstyle=bold,
style=normal,
align=flushleft,
alternative=hanging,
width=broad,
margin=1cm]
\starttext
\latexdesc{1540} some event happened
\latexdesc{1541} some other event happened
\latexdesc{1542} some event happened quite different
\startlatexdesc
[title={1540}]
some event happened
\stoplatexdesc
\startlatexdesc
[title={1541}]
some other event happened
\stoplatexdesc
\startlatexdesc
[title={1542}]
some event happened quite different
\stoplatexdesc
\stoptext
/Mikael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Why is this description environment not showing the correct title?
2024-05-05 14:45 ` [NTG-context] " Mikael Sundqvist
@ 2024-05-05 15:13 ` Wolfgang Schuster
2026-02-13 17:17 ` Henning Hraban Ramm
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2024-05-05 15:13 UTC (permalink / raw)
To: mailing list for ConTeXt users, Mikael Sundqvist
Mikael Sundqvist schrieb am 05.05.2024 um 16:45:
> Hi
>
> On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context <ntg-context@ntg.nl> wrote:
>>
>> \definedescription[latexdesc][headstyle=bold, style=normal, align=flushleft, alternative=hanging, width=broad, margin=1cm]
>>
>> \starttext
>>
>> \latexdesc{1540} some event happened
>> \latexdesc{1541} some other event happened
>> \latexdesc{1542} some event happened quite different
>>
>> \stoptext
>>
>>
>> I found the above code (the first line) in the ConTeXt Wiki, as a way to create the equivalent of a desc environment from LaTeX. The items inside {} should be bold, then there is a gap before the next text.
>>
>> I am using this to display a simple timeline.
>>
>> Though the formatting looks perfect, very strangely when I compile it, it changes all of the dates to say "1540" (or whatever date was used first).
>>
>> Why is it showing the wrong title on the desc environment?
>>
>> --Joel
> I don't know how you want it to look, exactly, but ending the
> paragraph helps with the numbering. There is also a start/stop version
> that suggests a bit more structure.
Paragraphs act as delimiter for each description in the old form, the
environment
form is better in this regards because a) you can now use multiple
paragraphs as
part of a single description and you can avoid problem like Joel has because
it is clear where each description ends.
> \definedescription
> [latexdesc]
> [headstyle=bold,
> style=normal,
> align=flushleft,
> alternative=hanging,
> width=broad,
> margin=1cm]
>
> \starttext
>
> \latexdesc{1540} some event happened
>
> \latexdesc{1541} some other event happened
>
> \latexdesc{1542} some event happened quite different
>
> \startlatexdesc
> [title={1540}]
> some event happened
> \stoplatexdesc
>
> \startlatexdesc
> [title={1541}]
> some other event happened
> \stoplatexdesc
>
> \startlatexdesc
> [title={1542}]
> some event happened quite different
> \stoplatexdesc
>
> \stoptext
An alternative to descriptions for such simple aligned text are item
with the \txt option.
Both blocks are the same but the second use the start/stop option for
each item.
\starttext
\startitemize[width=3em,symstyle=bold]
\txt{1540} some event happened
\txt{1541} some other event happened
\txt{1542} some event happened quite different
\stopitemize
\blank[2*line]
\startitemize[width=3em,symstyle=bold]
\startspecialitem[txt]{1540} some event happened \stopspecialitem
\startspecialitem[txt]{1541} some other event happened \stopspecialitem
\startspecialitem[txt]{1542} some event happened quite different
\stopspecialitem
\stopitemize
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Why is this description environment not showing the correct title?
2024-05-05 15:13 ` Wolfgang Schuster
@ 2026-02-13 17:17 ` Henning Hraban Ramm
2026-02-13 17:24 ` Henning Hraban Ramm
0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2026-02-13 17:17 UTC (permalink / raw)
To: ntg-context
Hi!
I just found the example below that I copied to my book without ever
testing it.
Apparently, \startspecialitem works only with "its" or "sub" but not
with "txt".
I guess that’s quick fix?
Hraban
Am 05.05.24 um 17:13 schrieb Wolfgang Schuster:
> An alternative to descriptions for such simple aligned text are item
> with the \txt option.
> Both blocks are the same but the second use the start/stop option for
> each item.
>
> \starttext
…
> \startitemize[width=3em,symstyle=bold]
> \startspecialitem[txt]{1540} some event happened \stopspecialitem
> \startspecialitem[txt]{1541} some other event happened \stopspecialitem
> \startspecialitem[txt]{1542} some event happened quite different
> \stopspecialitem
> \stopitemize
>
> \stoptext
>
> Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* [NTG-context] Re: Why is this description environment not showing the correct title?
2026-02-13 17:17 ` Henning Hraban Ramm
@ 2026-02-13 17:24 ` Henning Hraban Ramm
0 siblings, 0 replies; 5+ messages in thread
From: Henning Hraban Ramm @ 2026-02-13 17:24 UTC (permalink / raw)
To: ntg-context
Aaargh, sorry, nonsense!
My mistake was to try \type as symstyle.
Bus "txt" is missing in the interface files version that is still in use
on the wiki.
Hraban
Am 13.02.26 um 18:17 schrieb Henning Hraban Ramm:
> Hi!
> I just found the example below that I copied to my book without ever
> testing it.
>
> Apparently, \startspecialitem works only with "its" or "sub" but not
> with "txt".
> I guess that’s quick fix?
>
> Hraban
>
> Am 05.05.24 um 17:13 schrieb Wolfgang Schuster:
>> An alternative to descriptions for such simple aligned text are item
>> with the \txt option.
>> Both blocks are the same but the second use the start/stop option for
>> each item.
>>
>> \starttext
> …
>> \startitemize[width=3em,symstyle=bold]
>> \startspecialitem[txt]{1540} some event happened \stopspecialitem
>> \startspecialitem[txt]{1541} some other event happened \stopspecialitem
>> \startspecialitem[txt]{1542} some event happened quite different
>> \stopspecialitem
>> \stopitemize
>>
>> \stoptext
>>
>> Wolfgang
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry
> to the Wiki!
>
> maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/
> ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-02-13 17:24 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <533835902.3888012.1714919755865.ref@mail.yahoo.com>
2024-05-05 14:35 ` [NTG-context] Why is this description environment not showing the correct title? Joel via ntg-context
2024-05-05 14:45 ` [NTG-context] " Mikael Sundqvist
2024-05-05 15:13 ` Wolfgang Schuster
2026-02-13 17:17 ` Henning Hraban Ramm
2026-02-13 17:24 ` Henning Hraban Ramm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).