ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Section setup
Date: Sat, 17 Oct 2009 12:12:17 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.00.0910171210430.20954@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4AD9E6F3.5090406@bredband.net>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 517 bytes --]

On Sat, 17 Oct 2009, Janneman wrote:

> \definehead[paragraf][section]
> \def\mynumbercommand#1{\bf{\S} #1 --}
> \setuphead[paragraf][numbercommand=\mynumbercommand,alternative=inmargin]
>
> \starttext
>
> \paragraf[ref]{TEST}
>
> \input tufte
>
>
> \stoptext

Another option:

\definehead[paragraph][section]
\setuphead[paragraph][alternative=inmargin]

\setuplabeltext[paragraph={{§ },{ –}}]

\starttext

\dorecurse{5}
{\paragraph{A repeated quote}
\input knuth \endgraf}

\stoptext

[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________

  parent reply	other threads:[~2009-10-17 16:12 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-13 17:05 Martin Scholz
2009-10-16 19:06 ` Mojca Miklavec
2009-10-16 23:22   ` Martin Scholz
2009-10-17  7:38     ` Mojca Miklavec
2009-10-17 14:58     ` Janneman
2009-10-17 15:40       ` Wolfgang Schuster
2009-10-17 15:46       ` Janneman
2009-10-17 15:54         ` Wolfgang Schuster
2009-10-17 16:12         ` Aditya Mahajan [this message]
2009-10-17 20:29           ` \starbuffer in own macros Andreas Harder
2009-10-18  9:14             ` Wolfgang Schuster
2009-10-18 10:02               ` Andreas Harder
2009-10-18 22:50                 ` Wolfgang Schuster
2009-10-19 14:13                   ` Andreas Harder
2009-10-19 15:53                     ` Wolfgang Schuster
2009-10-19 16:01                       ` Andreas Harder

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=alpine.LNX.2.00.0910171210430.20954@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).