From: Hans Hagen <pragma@wxs.nl>
To: josephcanedo@gmail.com, "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: Question on "back" key in \blank
Date: Sun, 26 Feb 2017 22:34:22 +0100 [thread overview]
Message-ID: <22ae3a24-1051-a1e4-544a-48610db187b1@wxs.nl> (raw)
In-Reply-To: <58b2d393.50a4df0a.a884b.f5a7@mx.google.com>
On 2/26/2017 2:09 PM, josephcanedo@gmail.com wrote:
> Thanks Hans for having replied.
>
>
>
> My message was a bit confusing, sorry about that. I think the problem is
> that ‘back’ (or \blank generally) does not seem to work the same with
> negative blank as it does with positive blank. The following :
>
>
>
> \showgrid\setuplayout[grid=both]
>
> \starttext
>
> Title.
>
> \blank[2*line]\blank[back]\blank[line]
>
> Line.
>
> \stoptext
>
>
>
> Outputs 1 blank line between Title and Line, so that \blank[2*line] is
> effectively ignored, as expected. But
>
>
>
> \showgrid\setuplayout[grid=both]
>
> \starttext
>
> Title.
>
> \blank[2*line]\blank[back]\blank[-line]
>
> Line.
>
> \stoptext
>
>
>
> Outputs Title and Line in 2 consecutive lines (instead of being on same
> line). So \blank[2*lines] is effectively ignored as expected but the
> \blank[-line] is also ignored too. Is the latter expected or not ?
you can't go back over non spacing but you can do this:
\blank[overlay] \strut Line.
>
>
> Thanks again,
>
> Best regards
>
>
>
> Joseph
>
>
>
> *De : *Hans Hagen <mailto:pragma@wxs.nl>
> *Envoyé le :*samedi 25 février 2017 21:53
> *À : *ntg-context@ntg.nl <mailto:ntg-context@ntg.nl>
> *Objet :*Re: [NTG-context] Question on "back" key in \blank
>
>
>
> On 2/25/2017 7:04 PM, josephcanedo@gmail.com wrote:
>
>> Dear list,
>
>>
>
>>
>
>>
>
>> Sorry if question is trivial but I’d like to use « back » key in \blank
>
>> to discard a \blank just before. The following MWE illustrates :
>
>>
>
>>
>
>
>
> it goes back when there's something to go back
>
>
>
> there is also \blank[disable] to disable the next one
>
>
>
>> \starttext
>
>>
>
>>
>
>>
>
>> Title.
>
>>
>
>> \blank[none]
>
>>
>
>> \blank[back, -line] %% I’d expect this one to discard the \blank[none]
>
>> (as if it was not present)
>
>>
>
>> \startalignment[broad, flushright, hanging]Right.\stopalignment
>
>>
>
>>
>
>>
>
>> \stoptext
>
>>
>
>>
>
>>
>
>> I’d expect that Title and Right words to be on the same line, but they
>
>> are not. Did I misunderstood the meaning of ‘back’ key ?
>
>>
>
>> Thanks a lot for help and time,
>
>>
>
>>
>
>>
>
>> Best regards
>
>>
>
>>
>
>>
>
>> Joseph Canedo
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
> ___________________________________________________________________________________
>
>> 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://context.aanhet.net
>
>> archive : https://bitbucket.org/phg/context-mirror/commits/
>
>> wiki : http://contextgarden.net
>
>>
> ___________________________________________________________________________________
>
>>
>
>
>
>
>
> --
>
>
>
> -----------------------------------------------------------------
>
> 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@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
>
> archive : https://bitbucket.org/phg/context-mirror/commits/
>
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
>
--
-----------------------------------------------------------------
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@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2017-02-26 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-25 18:04 josephcanedo
2017-02-25 20:53 ` Hans Hagen
2017-02-26 13:09 ` josephcanedo
2017-02-26 21:34 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22ae3a24-1051-a1e4-544a-48610db187b1@wxs.nl \
--to=pragma@wxs.nl \
--cc=josephcanedo@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).