ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setting section margin
@ 2013-09-05 19:28 Lance Larsen
  2013-09-05 21:40 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Lance Larsen @ 2013-09-05 19:28 UTC (permalink / raw)
  To: ntg-context


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

I would like to adjust the margin for sections, subsections, etc. I came
across a suggestion that you can use setuphead with the beforesection and
aftersection options to do something like this, but I tried this with MKIV,
and beforesection and aftersection appear to have no effect (see the example
below). Recent documentation doesn't show these as parameters for setuphead.
How do I do this with MKIV?

 

Example:

 

\setuphead[section] [margin=0.5in,
beforesection={\startnarrower[left=0.5in]}, aftersection={\stopnarrower}]

\setuphead[subsection] [margin=1in,
beforesection={\startnarrower[left=1.0in]}, aftersection={\stopnarrrower}]

 

\starttext

 

\chapter{chapter}

This is a chapter

 

\section{section}

This is a section

 

\section{subsection}

This is a subsection

 

\stoptext

 

-Lance Larsen


[-- Attachment #1.2: Type: text/html, Size: 3078 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] 2+ messages in thread

* Re: Setting section margin
  2013-09-05 19:28 Setting section margin Lance Larsen
@ 2013-09-05 21:40 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2013-09-05 21:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users



On Thu, 5 Sep 2013, Lance Larsen wrote:

> I would like to adjust the margin for sections, subsections, etc. I came
> across a suggestion that you can use setuphead with the beforesection and
> aftersection options to do something like this, but I tried this with MKIV,
> and beforesection and aftersection appear to have no effect (see the example
> below). Recent documentation doesn't show these as parameters for setuphead.
> How do I do this with MKIV?

See http://tex.stackexchange.com/a/109333/323

Aditya
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2013-09-05 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-05 19:28 Setting section margin Lance Larsen
2013-09-05 21:40 ` Aditya Mahajan

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