ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* blanks with glue in mkiv
@ 2010-02-08  1:10 Aditya Mahajan
  2010-02-08  9:16 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Aditya Mahajan @ 2010-02-08  1:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Blanks with glue do not work with MkIV. For example,

\defineblank[test][3pt plus 1pt minus 1pt]

\starttext
some text
\blank[test]
some text
\stoptext

gives

! Missing number, treated as zero.
<to be read again>
                    p
<argument> p
             lus
\addaskedblankskip ...nce \blankskip #1\dimexpr #2
                                                   \relax
l.11 }

\dovspacingyes ...ument #1\else \s!default \fi ")}
                                                   \fi
l.5 \blank[test]


Aditya
___________________________________________________________________________________
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] 2+ messages in thread

* Re: blanks with glue in mkiv
  2010-02-08  1:10 blanks with glue in mkiv Aditya Mahajan
@ 2010-02-08  9:16 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2010-02-08  9:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 08.02.10 02:10, schrieb Aditya Mahajan:
> Hi,
>
> Blanks with glue do not work with MkIV.

The old commands to define own blank values do not work in MkIV, the old 
MkII commands are mapped to the new ones but MkII and MkIV expect 
different settings for them.

The old \defineblank command is replaced by \definevspacing which allows 
only keywords (penalty, category and order) with a value (e.g. 
\definevspacing[\v!samepage][penalty:10000]), you can also define 
synonyms (\definevspacing[\s!default][\v!white]).

The \defineblankmethod command is replaced by \definevspacingamount but 
both use a different syntax, while the old one expected the value in 
curly braces the new command wants them in brackets. This is also the 
command you can use because ot allows TeX skip values but it expects 
two, one for grid typesetting and another one for non grid text, e.g.

   \definevspacingmethod[test][3pt plus 1pt minus 1pt][3pt plus 1pt 
minus 1pt]

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] 2+ messages in thread

end of thread, other threads:[~2010-02-08  9:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-08  1:10 blanks with glue in mkiv Aditya Mahajan
2010-02-08  9:16 ` Wolfgang Schuster

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).