The documentation on page http://wiki.contextgarden.net/Description provides sample code to stack multiple levels of description such as: \setuppapersize[A5] \definedescription[descr][ headstyle=bold, style=normal, align=left, location=hanging, width=broad, margin=1cm ] \starttext \startdescr{Para} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. This is another paragraph under the "Para" item. \startdescr{Sub Item} This is a description of an item which is within the "Para" item. \stopdescr \startdescr{Sub Item} Another Sub Item \stopdescr \stopdescr \startdescr{Short} A short item that's not part of that really long "Para" item. \stopdescr \stoptext which should generate the included rendering. But reality is somewhat more diverse … My current context / luatex, as well as the online context engine come up with a different rendering Even when you correct for the right/left alignment, the itemising does not properly stack up: It there a work around ? $ context --version mtx-context | ConTeXt Process Management 0.63 mtx-context | mtx-context | main context file: /Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2016.09.24 12:40 $ luatex --version This is LuaTeX, Version 1.0.0 (TeX Live 2017/dev) Thanks .Floris van Manen
Hi Floris, Since you specify align=left in the setup of your description, I don’t see why the output would be unexpected. With the following version of your example code I get the attached PDF output. %%% begin \setuppapersize[A5] \definedescription[descr][ headstyle=bold, style=normal, % align=flushright, location=hanging, width=broad, margin=1cm ] \starttext \startdescr{Para} This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented. This is another paragraph under the "Para" item. \startdescr{Sub Item} This is a description of an item which is within the "Para" item. \stopdescr \startdescr{Sub Item} Another Sub Item \stopdescr \stopdescr \startdescr{Short} A short item that's not part of that really long "Para" item. \stopdescr \stoptext %%% end
On 3 Mar 2017, at 09:59, Floris van Manen
wrote: The documentation on page http://wiki.contextgarden.net/Description http://wiki.contextgarden.net/Description
provides sample code to stack multiple levels of description such as:
\setuppapersize[A5] \definedescription[descr][
headstyle=bold, style=normal, align=left, location=hanging, width=broad, margin=1cm ] \starttext \startdescr{Para}
This is a shorter item label, and some text that talks about it. The text is wrapped into a paragraph, with successive lines indented.
This is another paragraph under the "Para" item.
\startdescr{Sub Item}
This is a description of an item which is within the "Para" item.
\stopdescr \startdescr{Sub Item}
Another Sub Item
\stopdescr \stopdescr \startdescr{Short}
A short item that's not part of that really long "Para" item.
\stopdescr \stoptext
which should generate the included rendering.
But reality is somewhat more diverse … My current context / luatex, as well as the online context engine come up with a different rendering
Even when you correct for the right/left alignment, the itemising does not properly stack up:
It there a work around ?
$ context --version
mtx-context | ConTeXt Process Management 0.63 mtx-context | mtx-context | main context file: /Applications/ConTeXt/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2016.09.24 12:40
$ luatex --version This is LuaTeX, Version 1.0.0 (TeX Live 2017/dev)
Thanks
.Floris van Manen
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
Am 2017-03-04 um 11:25 schrieb Otared Kavian
Since you specify align=left in the setup of your description, I don’t see why the output would be unexpected. With the following version of your example code I get the attached PDF output.
While the alignment was to be expected, the items are still not nested. Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
On 4 Mar 2017, at 11:25, Otared Kavian
wrote: Since you specify align=left in the setup of your description, I don’t see why the output would be unexpected. With the following version of your example code I get the attached PDF output.
I got the left/right discrepancy between the sample code and the rendering. However the unexpected is the fact that it does not indent properly: The intended is this: 1 one a two b three 2 four c five d six x seven y eight z nine 3 ten The unintended result (also in your rendering) is this: 1 one a two b three 2 four c five d six x seven y eight z nine 3 ten
Is there anyone out there who has a clue as how to fix this? Thanks .F
On 4 Mar 2017, at 11:58, Floris van Manen
wrote: On 4 Mar 2017, at 11:25, Otared Kavian
wrote: Since you specify align=left in the setup of your description, I don’t see why the output would be unexpected. With the following version of your example code I get the attached PDF output.
I got the left/right discrepancy between the sample code and the rendering. However the unexpected is the fact that it does not indent properly:
The intended is this:
1 one a two b three 2 four c five d six x seven y eight z nine 3 ten
The unintended result (also in your rendering) is this:
1 one a two b three 2 four c five d six x seven y eight z nine 3 ten
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
The incorrect nesting seems to be connected to the luatex engine. If i have the same source compiled by pdftex, it works as intended. So is the different rendering an intended feature of luatex, or a simple bug? .F
On 6 Mar 2017, at 00:34, Floris van Manen
wrote: Is there anyone out there who has a clue as how to fix this?
Thanks .F
On 4 Mar 2017, at 11:58, Floris van Manen
wrote: On 4 Mar 2017, at 11:25, Otared Kavian
wrote: Since you specify align=left in the setup of your description, I don’t see why the output would be unexpected. With the following version of your example code I get the attached PDF output.
I got the left/right discrepancy between the sample code and the rendering. However the unexpected is the fact that it does not indent properly:
The intended is this:
1 one a two b three 2 four c five d six x seven y eight z nine 3 ten
The unintended result (also in your rendering) is this:
1 one a two b three 2 four c five d six x seven y eight z nine 3 ten
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
___________________________________________________________________________________ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
On Tue, 7 Mar 2017 18:04:34 +0100
Floris van Manen
The incorrect nesting seems to be connected to the luatex engine. If i have the same source compiled by pdftex, it works as intended.
So is the different rendering an intended feature of luatex, or a simple bug?
mkii or mkiv? (pdftex is mkii, luatex is usually mkiv) Alan
participants (4)
-
Alan Braslau
-
Floris van Manen
-
Henning Hraban Ramm
-
Otared Kavian