ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sylvain Hubert via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Pablo Rodriguez <oinos@gmx.es>,
	Bruce Horrocks <ntg@scorecrow.com>
Cc: Sylvain Hubert <champignoom@gmail.com>
Subject: Re: How to prevent \subject from being the last line
Date: Mon, 20 Feb 2023 22:47:35 +0800	[thread overview]
Message-ID: <CACNy3NCDLwrZQLRvDsVWU3D3u2TyusL4+6Hu4SbPQDCnHvyY4w@mail.gmail.com> (raw)
In-Reply-To: <88d137d3-cffe-95da-f358-dfe018f0cd34@gmx.es>


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

Thanks, Pablo and Bruce. Both solutions work well.

> I had similar issues with \section and only the Latin script was involved.

Btw, just in case if anyone shares this idea: is it possible to have a
zulip channel for ConTeXt? It's free for open source projects, has a
interface for existing mailing lists, and has a reasonable builtin search
engine, which could serve as another de-facto documentation, considering
the fact that very few of the massive useful use cases asked in the mailing
lists so far have been transcribed into official documentations.

On Mon, 20 Feb 2023 at 05:22, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> wrote:

> On 2/19/23 20:34, Sylvain Hubert via ntg-context wrote:
> > Dear list,
> >
> > I have a long document (A4 * 170 pages) with some CJK fonts, where some
> > of the \subject{...} are placed at the end of the corresponding pages,
> > which looks awkward. How can one flush those last-line titles to the
> > next pages?
>
> Hi Sylvain,
>
> the hard part for the rest of us is figuring out what you may have on
> your screen.
>
> \setuphead[subject][before={\blank[preference]}] might help.
>
> Another approach would be \setuphead[subject][after={\blank[samepage,
> line]}].
>
> I mean, either you set a preference for breaking pages before \subject
> or you force \subject to be on the same page with next paragraph.
>
> Nothing prevents you from doing both.
>
> BTW, default values for before and after in \setuphead[subject] are
> \blank[2*big] and \blank (respectively [copied from strc-def.mkxl]).
>
> > Currently I don't have a MWE, as trivial filling-up with 1-2 pages of
> > \lipsum doesn't reproduce the problem. I'm optimistically asking without
> > MWE, but if it is necessary anyway, please tell me and I will obfuscate
> > the 170-page document and find a way to upload it.
>
> I hope it might help. It is not clear for me whether the CJK fonts are
> only for fragments in these languages or the main text is written in any
> of these languages.
>
> I had similar issues with \section and only the Latin script was involved.
>
> Again, I hope it might help,
>
> Pablo
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
>
> ___________________________________________________________________________________
>

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2023-02-20 14:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-19 19:34 Sylvain Hubert via ntg-context
2023-02-19 21:21 ` Pablo Rodriguez via ntg-context
2023-02-20 14:47   ` Sylvain Hubert via ntg-context [this message]
2023-02-20 15:21     ` Pablo Rodriguez via ntg-context
2023-02-20 15:46       ` Taco Hoekwater via ntg-context
2023-02-20 20:15         ` Jean-Pierre Delange via ntg-context
2023-02-20 17:14       ` Sylvain Hubert via ntg-context
2023-02-21 17:26         ` Pablo Rodriguez via ntg-context
2023-02-19 22:09 ` Bruce Horrocks via ntg-context

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=CACNy3NCDLwrZQLRvDsVWU3D3u2TyusL4+6Hu4SbPQDCnHvyY4w@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=champignoom@gmail.com \
    --cc=ntg@scorecrow.com \
    --cc=oinos@gmx.es \
    /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).