[NTG-context] Second-level itemization and indenting question
Wolfgang Schuster
schuster.wolfgang at gmail.com
Sat Jan 10 17:12:03 CET 2015
> Am 10.01.2015 um 14:18 schrieb Gerben Wierda <gerben.wierda at rna.nl>:
>
> On 10 Jan 2015, at 13:53, Wolfgang Schuster <schuster.wolfgang at gmail.com <mailto:schuster.wolfgang at gmail.com>> wrote:
>
>>>
>>> Am 10.01.2015 um 13:36 schrieb Gerben Wierda <gerben.wierda at rna.nl <mailto:gerben.wierda at rna.nl>>:
>>>
>>> I have the following setup (in mkii)
>>>
>>> \definemeasure[CAindent][12pt]
>>> \setupindenting[yes,\measure{CAindent}]
>>> \setupnarrower
>>> [ left=\measure{CAindent},
>>> right=\measure{CAindent},
>>> middle=\measure{CAindent}]
>>> \setupitemize[each][margin=\measure{CAindent}]
>>>
>>> \starttext
>>> \input knuth
>>> \startitemize[joinedup,packed]
>>> \item \input tufte
>>> \startitemize[joinedup,packed]
>>> \item \input tufte
>>> \stopitemize
>>> \input tufte
>>> \stopitemize
>>> \stoptext
>>>
>>> The result is that quotations at first level are perfectly aligned with the indentation of the first line of a paragraph at first level. But the itemizations at second level are not. They are slightly less indented than the indentation of the first line of the paragraph in the first-level item. This can be seen at the last "We thrive" in the example, just after the second-level item.
>>>
>>> What can I do about that?
>>
>> Is this what you want?
>>
>> \setupitemize[each][margin=\measure{CAindent},width=\measure{CAindent}]
>
> Yes. Can I get the same effect on this one?
>
> \definemeasure[CAindent][12pt]
> \setupindenting[yes,\measure{CAindent}]
> \setupnarrower
> [ left=\measure{CAindent},
> right=\measure{CAindent},
> middle=\measure{CAindent}]
> \setupitemize[each][margin=\measure{CAindent}]
>
> \definedescription[Member][headstyle=bold,
> location=hanging,indenting={yes,\measure{CAindent}},width=fit]
>
> \starttext
> \input knuth
> \startMember{Tufte}
> \input tufte
> \stopMember
> \input knuth
> \stoptext
>
> Here, the indentation of the Member differs from the first-line-of-paragraph indent (slightly larger)
\definedescription[Member][...,margin=\measure{CAindent}]
Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150110/31b6e6c5/attachment.html>
More information about the ntg-context
mailing list