[NTG-context] What's the difference between \dontleavehmode and \leavevmode?

Henri Menke henrimenke at gmail.com
Thu Aug 18 20:14:49 CEST 2016


Hans, Wolfgang,

thank you for your speedy reply.  However, I still do not know the difference between \leavevmode and \quitvmode.  Could you please elaborate?

Cheers, Henri

On 08/18/2016 06:39 PM, Hans Hagen wrote:
> On 8/18/2016 5:23 PM, Henri Menke wrote:
>> Dear list,
>>
>> could someone please explain what is the difference between \dontleavehmode and \leavevmode?
>>
>> Internally, I also stumbled upon \quitvmode.  Is this a synonym for \leavevmode?  It seems to be primitive.
> 
> \leavevmode is kind of useless as it can interfere in spacing so we always used \dontleavehmode in context (a macro) that later was added as primitive \quitvmode to luatex
> 
> You sometimes need \dontleavehmode to make sure you enter hmode (esp when you start a paragraph with a group or boxed stuff)
> 
> (the only two places in context where \leavevmode is used is in rather plain macros that get overloaded later)
> 
> Hans
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at 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
> ___________________________________________________________________________________



More information about the ntg-context mailing list