ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Garulfo <garulfo@azules.eu>
To: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: compatibility between \startshapetext and \startsection ?
Date: Wed, 15 May 2024 21:40:11 +0200	[thread overview]
Message-ID: <4f9bf6ff-05ce-4a79-b015-e02380a63a19@azules.eu> (raw)
In-Reply-To: <462ba876-8a3b-5fb8-6b82-92e90dca2554@gmail.com>

Thanks you Wolfgang.

If it's not possible to use \blank, it appears that using for example 
\strut\par\strut\par is OK (but \par\par is not, )

\dorecurse{5}{
\strut\par\strut\par
\leftaligned{Title for section{\recurselevel}}
\strut\par\strut\par
\darkred\input knuth \par
\darkblue\input ward}

Please, what would be a \setuphead that removes the introduction of 
these "uncompatible" verticals skips ?

I've tried several, but even this one isn't compatible.

\setuphead
   [section]
   [before={},     % also tried \blank[nowhite] and \blank[back]
    inbetween={},
    after={},
    beforesection={},
    aftersection={},
    alternative=text,
    style=\tf]


Le 15/05/2024 à 13:09, Wolfgang Schuster a écrit :
> garulfo@azules.eu schrieb am 14.05.2024 um 23:13:
>> Hi all,
>>
>> \startshapetext works pretty well, but when I use \startsection 
>> \stopsection, shapes are not respected  anymore.
>> I use layers, to be able to place the content anywhere, but the issue 
>> remains without layers.
>>
>> Any clues ?
>> (\placeinitial seems also to break the shaping)
>>
>>
>> Example : 2 pages without sectioning, and after 2 pages by 
>> uncommenting the \startsection and \stopsection commands.
>>
>>
>> [...]
>> \dorecurse{5}{
>> \startsection[title={Title for section{\recurselevel}}]
>> \darkred\input knuth \par
>> \darkblue\input ward
>> \stopsection
>> }
> 
> 
> The problem aren't the section command but the vertical skips added 
> before and after each section, you can reproduce the effect when you add 
> \blank to your example.
> 
> \dorecurse{5}{
> \blank
> \leftaligned{Title for section{\recurselevel}}
> \blank
> \darkred\input knuth \par
> \darkblue\input ward
> }
> 
> Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2024-05-15 19:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-14 21:13 [NTG-context] " garulfo
2024-05-15 11:09 ` [NTG-context] " Wolfgang Schuster
2024-05-15 19:40   ` Garulfo [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=4f9bf6ff-05ce-4a79-b015-e02380a63a19@azules.eu \
    --to=garulfo@azules.eu \
    --cc=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /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).