From: "Lance Larsen" <lance.c.larsen@gmail.com>
To: <ntg-context@ntg.nl>
Subject: Setting section margin
Date: Thu, 5 Sep 2013 13:28:36 -0600 [thread overview]
Message-ID: <5228db66.c4dc440a.0bd3.ffffc85b@mx.google.com> (raw)
[-- 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
___________________________________________________________________________________
next reply other threads:[~2013-09-05 19:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 19:28 Lance Larsen [this message]
2013-09-05 21:40 ` Aditya Mahajan
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=5228db66.c4dc440a.0bd3.ffffc85b@mx.google.com \
--to=lance.c.larsen@gmail.com \
--cc=ntg-context@ntg.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).