From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84120 Path: news.gmane.org!not-for-mail From: "Lance Larsen" Newsgroups: gmane.comp.tex.context Subject: Setting section margin Date: Thu, 5 Sep 2013 13:28:36 -0600 Message-ID: <5228db66.c4dc440a.0bd3.ffffc85b@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1800359091==" X-Trace: ger.gmane.org 1378409327 12512 80.91.229.3 (5 Sep 2013 19:28:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2013 19:28:47 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 05 21:28:51 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VHfEW-0002Df-SV for gctc-ntg-context-518@m.gmane.org; Thu, 05 Sep 2013 21:28:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89219101FD; Thu, 5 Sep 2013 21:27:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MJiYZuRBCjE7; Thu, 5 Sep 2013 21:27:11 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A5790101EA; Thu, 5 Sep 2013 21:27:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13301101EA for ; Thu, 5 Sep 2013 21:27:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6-H3PN0bIs92 for ; Thu, 5 Sep 2013 21:27:08 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 0C81E101E7 for ; Thu, 5 Sep 2013 21:27:07 +0200 (CEST) Original-Received: from mail-pd0-x232.google.com (mail-pd0-x232.google.com [IPv6:2607:f8b0:400e:c02::232]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r85JSdEO020595 for ; Thu, 5 Sep 2013 21:28:40 +0200 Original-Received: by mail-pd0-f178.google.com with SMTP id w10so2216538pde.23 for ; Thu, 05 Sep 2013 12:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type :thread-index:content-language; bh=5hswvMaI8RlUXt12+n92XSgxEGK7JJceLtHa5Fxdl6Y=; b=UpI93RjhExA8AYi4YPnzYkbhL66zA3dUEmJLn7bCxE4knarREUSBh8b8vuvIgT+JEX qdDtrcq3popQme6zNsBOQ/7H5TendCVAs5RMsguv4TWkQUbV01EOnpcWU1mEIrD2616Z JQjxqUt+eZpkbuSFCQwPDSWeQmxY0lILRp1z05QsmyeDLU4ABAtXo3eScIYlKH3vg1HR xLn7bwvXGoWKMo76YChwbBxen388YaecJ4AkeyK5vC/mKA2lnmuaKsxkwI1YPZKaLB7S 6xowZm+D54upDfz+E3HKjxyTlpVaOewN8ZERE3l+YqnVuI7wCgIYsoduhOb13GZhmJjN CbMg== X-Received: by 10.68.212.37 with SMTP id nh5mr11100020pbc.16.1378409318941; Thu, 05 Sep 2013 12:28:38 -0700 (PDT) Original-Received: from CNU238C3KT (107-1-187-170-ip-static.hfc.comcastbusiness.net. [107.1.187.170]) by mx.google.com with ESMTPSA id py4sm37385484pbc.14.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Sep 2013 12:28:38 -0700 (PDT) X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac6qbh3Ob+yFF4ehSyu9LWslhO5iKg== Content-Language: en-us X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400e:c02::232; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KlvsEKI - 9c24d3444a02 - 20130905 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84120 Archived-At: This is a multi-part message in MIME format. --===============1800359091== Content-Type: multipart/alternative; boundary="----=_NextPart_000_002B_01CEAA3B.D445CE20" Content-Language: en-us This is a multi-part message in MIME format. ------=_NextPart_000_002B_01CEAA3B.D445CE20 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_002B_01CEAA3B.D445CE20 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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=3D0.5in, = beforesection=3D{\startnarrower[left=3D0.5in]}, = aftersection=3D{\stopnarrower}]

\setuphead[subsection] [margin=3D1in, = beforesection=3D{\startnarrower[left=3D1.0in]}, = aftersection=3D{\stopnarrrower}]

 

\starttext

 

\chapter{chapter}

This is a chapter

 

\section{section}

This is a section

 

\section{subsection}

This is a subsection

 

\stoptext

 

-Lance = Larsen

------=_NextPart_000_002B_01CEAA3B.D445CE20-- --===============1800359091== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1800359091==--