ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Heading flow
@ 2013-05-01 13:37 lance.c.larsen
  0 siblings, 0 replies; 5+ messages in thread
From: lance.c.larsen @ 2013-05-01 13:37 UTC (permalink / raw)
  To: ntg-context


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



I have a word template I am trying to convert to context. In the word template, section headings are used to manage  bibliography numbering (i.e. each reference is included as a subsection). This translates fine to context except for one thing. Context headings seem to have a ‘keep with next’ type property such that if there is a long list of headings with no other paragraphs between, the headings go off the bottom of the page. I expect that I can change this by defining a custom heading via \setuphead, but how to I override the ‘keep with next’ behavior so that ?


-Lance Larsen

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

[-- Attachment #2: Type: text/plain, Size: 485 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Heading flow
  2013-05-01 22:01 Lance Larsen
@ 2013-05-01 22:20 ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2013-05-01 22:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 02.05.2013 um 00:01 schrieb "Lance Larsen" <lance.c.larsen@gmail.com>:

> Using the continue=no option of setuphead (in MKIV) didn't seem to work (not
> sure why). What I did as a workaround was to a blank paragraph after each
> heading (using 'after' in setuphead) and then packed the result. Not
> necessarily an ideal solution, but adequate for what I needed.
> 
> \definehead[references][subsection]
> \setuphead[references][after={ ~ }]
> 
> \startpacked   % Get rid of large gaps between the references.
> \dorecurse{10}{\references{Reference item}}
> \stoppacked


What you’re doing is just wrong. The problem with your example is that
it doesn’t demonstrate the problem because the is a page break between
the headings.

\definehead[references][subsection]

\starttext
\dorecurse{20}{\references{Reference item}}
\stoptext

One way to add a break before a heading is to change the before key to
\setuphead[…][before={\blank[preference,…]}]

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Heading flow
@ 2013-05-01 22:01 Lance Larsen
  2013-05-01 22:20 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Lance Larsen @ 2013-05-01 22:01 UTC (permalink / raw)
  To: ntg-context

Using the continue=no option of setuphead (in MKIV) didn't seem to work (not
sure why). What I did as a workaround was to a blank paragraph after each
heading (using 'after' in setuphead) and then packed the result. Not
necessarily an ideal solution, but adequate for what I needed.

\definehead[references][subsection]
\setuphead[references][after={ ~ }]

\startpacked   % Get rid of large gaps between the references.
\dorecurse{10}{\references{Reference item}}
\stoppacked

-Lance


Am 01.05.2013 um 18:03 schrieb Lance Larsen <lance.c.larsen at gmail.com>:

> It looks like the 'after' property of \setuphead can be used to override
the
> 'keep with next' behavior of the headings.

No, you need the continue key to disable this feature.

\setuphead[section][continue=no]

Wolfgang

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Heading flow
  2013-05-01 16:03 Lance Larsen
@ 2013-05-01 20:26 ` Wolfgang Schuster
  0 siblings, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2013-05-01 20:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 01.05.2013 um 18:03 schrieb Lance Larsen <lance.c.larsen@gmail.com>:

> It looks like the 'after' property of \setuphead can be used to override the
> 'keep with next' behavior of the headings.

No, you need the continue key to disable this feature.

\setuphead[section][continue=no]

Wolfgang
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Heading flow
@ 2013-05-01 16:03 Lance Larsen
  2013-05-01 20:26 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Lance Larsen @ 2013-05-01 16:03 UTC (permalink / raw)
  To: ntg-context

It looks like the 'after' property of \setuphead can be used to override the
'keep with next' behavior of the headings.

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-05-01 22:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-01 13:37 Heading flow lance.c.larsen
2013-05-01 16:03 Lance Larsen
2013-05-01 20:26 ` Wolfgang Schuster
2013-05-01 22:01 Lance Larsen
2013-05-01 22:20 ` Wolfgang Schuster

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).