Descriptions and headerwidth, distance and align
Hi all, I tried to use descriptions in a module from me and get a few unwanted and wrong results from the settings. In my first example I try to set the headerwidth to 3cm and the distance between the header and the text to 1cm. The result I get from this example is a 2cm wide header and 2cm between the header and the text. I know the real width for the header is the difference between width and distance and 2cm are correct but this is a stupid method, changing this will break many documents but a alternative solution would be to introduce a label headerwidth. The wrong distance between the header and the text is also a result from this method, the description macros reduce the headerwidth by the distance value and introduce a extra value between the headerbox and the text, this give me twice the distance width and is a bug for me. Another missing thing is a key headeralign, a workaround for moment is to misuse the text key but this should be implemented. \definedescription [test] [width=3cm, text=\hfill, % better headalign=flushright distance=1cm] \starttext \showframe \test{One} Text for the first description. \test{Two} Text for the second description. \stoptext My second example deals with the same problem as above (headerwidth is reduced by distance width) but it gives a completely broken output. I let ConTeXt calculate the width for the header and set a distance value of 1cm between the header and text. This works prefect but the text itself is placed in a box with the width "calculated textwidth - distance" and this is not enough room for the text and it is broken into two lines. \definedescription [test] [width=fit, distance=1cm] \starttext \test{First description} Text for the first description. \test{Second description} Text for the second description. \stoptext Greetings, Wolfgang
participants (1)
-
Wolfgang Schuster