View Issue Details

IDProjectCategoryView StatusLast Update
0000583contextunexpected behaviourpublic2017-03-27 17:10
ReporterPeter Assigned ToHans Hagen  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000583: margin=0pt ignored in \definedescription
DescriptionDoes 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
Steps To Reproduce\definedescription[Test][location=hanging, margin=0pt]
\starttext
\startTest{Problem}
  \input tufte
\stopTest
\setupdescriptions[Test][margin=0.0001pt]
\startTest{Workaround}
  \input tufte
\stopTest
\stoptext
TagsNo tags attached.

Activities

Hans Hagen

2013-04-05 19:58

manager   ~0001065

should work in latest

Issue History

Date Modified Username Field Change
2011-02-19 15:30 Peter New Issue
2013-04-05 19:58 Hans Hagen Note Added: 0001065
2013-04-05 19:58 Hans Hagen Status new => resolved
2013-04-05 19:58 Hans Hagen Resolution open => fixed
2013-04-05 19:58 Hans Hagen Assigned To => Hans Hagen
2017-03-27 17:10 Hans Hagen Status resolved => closed