MantisBT - context
View Issue Details
0000583contextunexpected behaviourpublic2011-02-19 15:302017-03-27 17:10
Peter 
Hans Hagen 
normalminoralways
closedfixed 
 
 
0000583: margin=0pt ignored in \definedescription
Does it make sense, that context overwrites the margin=0pt?

Imagine, you have some wrapper (simplified user-friendly macro):

\definedescription[SpecialDesc][location=hanging, margin=1em] % 1em = default
\def\SetMargin#1{\setupdescriptions[SpecialDesc][margin=0000001]}

Now, because of this (for me unexpected) behaviour, the \SetMargin
becomes more complicated:
if 0000001 == 0pt then location=serried else margin=0000001 endif

IMHO, it would make more sense, if context just accepts the user
supplied margin, and when location=hanging and margin=0, then it prints
a warning message: "Hey, you can get the same with location=serried!"

Peter
\definedescription[Test][location=hanging, margin=0pt]
\starttext
\startTest{Problem}
  \input tufte
\stopTest
\setupdescriptions[Test][margin=0.0001pt]
\startTest{Workaround}
  \input tufte
\stopTest
\stoptext
No tags attached.
Issue History
2011-02-19 15:30PeterNew Issue
2013-04-05 19:58Hans HagenNote Added: 0001065
2013-04-05 19:58Hans HagenStatusnew => resolved
2013-04-05 19:58Hans HagenResolutionopen => fixed
2013-04-05 19:58Hans HagenAssigned To => Hans Hagen
2017-03-27 17:10Hans HagenStatusresolved => closed

Notes
(0001065)
Hans Hagen   
2013-04-05 19:58   
should work in latest