spacing with enumeration...
Dear helpers in the field… I have a project where I use an enumeration. However what I needed to do is to make the spacing before, in-between and after smaller than it is in the standard definition. All my attempts to get this right failed. May be one of you can help me further? Willi \defineenumeration [OtherMeaning] [text=, headstyle=normal, alternative={left}, %,serried distance=0pt, width=20pt, stopper=\high{o}, inbetween=] \starttext {\bf Ton} \startnarrower \startOtherMeaning Inhoudsmaat van een schip, die 1000 kilo \dots \stopOtherMeaning \startOtherMeaning Tonvormige boei \dots \stopOtherMeaning \stopnarrower {\bf Tong,} z. n. v. \startnarrower Split van een standaard. \dots \stopnarrower \stoptext
Try this: \defineenumeration[OtherMeaning][ text=, headstyle=normal, alternative={left}, %,serried distance=0pt, width=20pt, stopper=\high{o}, inbetween=, before={\blank[small]}, after={\blank[small]}, inbetween=, ] \setupnarrower[ before={\blank[big]}, after={\blank[big]}, ] \starttext {\bf Ton} \startnarrower \startOtherMeaning Inhoudsmaat van een schip, die 1000 kilo \dots \stopOtherMeaning \startOtherMeaning Tonvormige boei \dots \stopOtherMeaning \stopnarrower {\bf Tong,} z. n. v. \startnarrower Split van een standaard. \dots \stopnarrower \stoptext See also: http://wiki.contextgarden.net/Command/defineenumeration http://wiki.contextgarden.net/Command/setupdescriptions
Hi Thangalin!
thank you for your reply. It does what I was looking for. I had already inbetween= in my definition, which I thought would be to adjust the spacing inside a row of enumeration-items… But the before and after commands do the trick. Even the width is great, I adjusted the value a little bit and now the enumerations look precisely as I had it in mind.
Thank you very much.
Willi
On 5 okt. 2014, at 22:21, Thangalin
Try this:
\defineenumeration[OtherMeaning][ text=, headstyle=normal, alternative={left}, %,serried distance=0pt, width=20pt, stopper=\high{o}, inbetween=, before={\blank[small]}, after={\blank[small]}, inbetween=, ]
\setupnarrower[ before={\blank[big]}, after={\blank[big]}, ]
\starttext {\bf Ton}
\startnarrower \startOtherMeaning Inhoudsmaat van een schip, die 1000 kilo \dots \stopOtherMeaning \startOtherMeaning Tonvormige boei \dots \stopOtherMeaning \stopnarrower
{\bf Tong,} z. n. v.
\startnarrower Split van een standaard. \dots \stopnarrower \stoptext
See also: http://wiki.contextgarden.net/Command/defineenumeration http://wiki.contextgarden.net/Command/setupdescriptions ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Am 05.10.2014 um 23:23 schrieb Willi Egger
Hi Thangalin!
thank you for your reply. It does what I was looking for. I had already inbetween= in my definition, which I thought would be to adjust the spacing inside a row of enumeration-items… But the before and after commands do the trick. Even the width is great, I adjusted the value a little bit and now the enumerations look precisely as I had it in mind.
The in-between key controls the vertical space between the enumeration title and text when the title appears on top (alternative=top) of the enumeration content. Wolfgang
Wolfgang, thank you for the explanation. This makes indeed sense!
Best wishes
Willi
On 5 okt. 2014, at 22:21, Thangalin
Try this:
\defineenumeration[OtherMeaning][ text=, headstyle=normal, alternative={left}, %,serried distance=0pt, width=20pt, stopper=\high{o}, inbetween=, before={\blank[small]}, after={\blank[small]}, inbetween=, ]
\setupnarrower[ before={\blank[big]}, after={\blank[big]}, ]
\starttext {\bf Ton}
\startnarrower \startOtherMeaning Inhoudsmaat van een schip, die 1000 kilo \dots \stopOtherMeaning \startOtherMeaning Tonvormige boei \dots \stopOtherMeaning \stopnarrower
{\bf Tong,} z. n. v.
\startnarrower Split van een standaard. \dots \stopnarrower \stoptext
See also: http://wiki.contextgarden.net/Command/defineenumeration http://wiki.contextgarden.net/Command/setupdescriptions ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (3)
-
Thangalin
-
Willi Egger
-
Wolfgang Schuster