ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* problem with margin=0pt
@ 2011-01-25 16:02 Peter Münster
  2011-01-25 22:51 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2011-01-25 16:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

margin=0pt does not work here:

\definedescription[Test][location=hanging, margin=0pt]
\starttext
\startTest{Problem}
  \input tufte
\stopTest
\setupdescriptions[Test][margin=0.0001pt]
\startTest{Workaround}
  \input tufte
\stopTest
\stoptext

-- 
           Peter
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with margin=0pt
  2011-01-25 16:02 problem with margin=0pt Peter Münster
@ 2011-01-25 22:51 ` Wolfgang Schuster
  2011-01-26  6:20   ` Peter Münster
  2011-01-26 15:01   ` Peter Münster
  0 siblings, 2 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2011-01-25 22:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.01.2011 um 17:02 schrieb Peter Münster:

> Hello,
> 
> margin=0pt does not work here:

When you use “location=hanging” and set the margin to 0pt contexts sets
the margin to 1.5em. I don’t know what do you want to achieve but maybe
“location=serried” is what you want.

Wolfgang

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with margin=0pt
  2011-01-25 22:51 ` Wolfgang Schuster
@ 2011-01-26  6:20   ` Peter Münster
  2011-01-26 15:01   ` Peter Münster
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Münster @ 2011-01-26  6:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> When you use “location=hanging” and set the margin to 0pt contexts sets
> the margin to 1.5em. I don’t know what do you want to achieve but maybe
> “location=serried” is what you want.

Right, location=serried is what I want!
(I had a margin, then to save place I set it to 0 and was surprised...)

Thanks,
-- 
           Peter
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: problem with margin=0pt
  2011-01-25 22:51 ` Wolfgang Schuster
  2011-01-26  6:20   ` Peter Münster
@ 2011-01-26 15:01   ` Peter Münster
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Münster @ 2011-01-26 15:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> When you use “location=hanging” and set the margin to 0pt contexts sets
> the margin to 1.5em. I don’t know what do you want to achieve but maybe
> “location=serried” is what you want.

Another question: 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=#1]}

Now, because of this (for me unexpected) behaviour, the \SetMargin
becomes more complicated:
if #1 == 0pt then location=serried else margin=#1 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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-26 15:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 16:02 problem with margin=0pt Peter Münster
2011-01-25 22:51 ` Wolfgang Schuster
2011-01-26  6:20   ` Peter Münster
2011-01-26 15:01   ` Peter Münster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).