ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: <josephcanedo@gmail.com>
To: Hans Hagen <pragma@wxs.nl>, "ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: Question on "back" key in \blank
Date: Sun, 26 Feb 2017 14:09:44 +0100	[thread overview]
Message-ID: <58b2d393.50a4df0a.a884b.f5a7@mx.google.com> (raw)
In-Reply-To: <b0f36b04-ca53-46e9-e3a2-da2c39aab3bf@wxs.nl>


[-- Attachment #1.1: Type: text/plain, Size: 3214 bytes --]

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 ?

Thanks again,
Best regards

Joseph

De : Hans Hagen
Envoyé le :samedi 25 février 2017 21:53
À : 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
___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 8038 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2017-02-26 13:09 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 [this message]
2017-02-26 21:34     ` Hans Hagen

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=58b2d393.50a4df0a.a884b.f5a7@mx.google.com \
    --to=josephcanedo@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).