[NTG-context] Re: Why is this description environment not showing the correct title?
Mikael Sundqvist schrieb am 05.05.2024 um 16:45: Hi On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context 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 ___
[NTG-context] Re: Why is this description environment not showing the correct title?
Hi On Sun, May 5, 2024 at 4:40 PM Joel via ntg-context 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 ___
[NTG-context] Why is this description environment not showing the correct title?
\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 ___ 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 ___
[NTG-context] Re: How to stop ConTeXt from thinking period is at the end of a sentence?
https://wiki.contextgarden.net/French_spacing Joel via ntg-context hat am 05.05.2024 00:30 CEST geschrieben: I noticed that some code is being rendered wrong, most especially apparent in a column environment where sometimes the text can get stretched a bit more to fit the column width nicer. If a sentence says "They appeared between c. 1200 BCE and c. 1500 CE." it appears ConTeXt thinks that the period in "c." marks the end of a sentence. As such, when setting the text, sometimes it will give a large space between "c." and "1200 BCE". How do I correctly tell ConTeXt that that period doesn't mark the end of a sentence, so shouldn't be given extra space afterwards? --Joel ___ 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 ___