ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Patrick Gundlach <pg@levana.de>
Subject: Re: setuphead(s), subject, alternative=inmargin
Date: Fri, 21 Mar 2003 14:02:31 +0100	[thread overview]
Message-ID: <87adfo3mag.fsf@gundla.ch> (raw)
In-Reply-To: <200303211156.h2LBu00m004798@mp.virtual-earth.de> (Mathias.Picker@virtual-earth.de's message of "Fri, 21 Mar 2003 12:56:00 +0100 (CET)")

Mathias.Picker@virtual-earth.de writes:

> Is this supposed to work??

It is working. What do you mean by this? It is putting the number of
the head in the margin.

> How do I put a subject in the margin,

Try this one:
==================================================
% taken from core-sec.tex
\def\MyHead#1#2%
  {\vbox
     {\localheadsetup
      \begstrut % use one \strut here!
       \llap{\hbox {\ifheadnumbercontent#1 \fi 
         #2\hskip\localheadskip\hskip\linkermargeafstand}}}}

\showframe
\starttext
\setuphead[section][alternative=command,command=\MyHead]
\section{some}
\setuphead[section][alternative=command,command=\MyHead,number=no]
\section{some}
\stoptext
==================================================

Probably Hans comes up with some magic, but this might work as well.


Patrick

  reply	other threads:[~2003-03-21 13:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-21 11:56 Mathias.Picker
2003-03-21 13:02 ` Patrick Gundlach [this message]
2003-03-21 13:33   ` Patrick Gundlach
2003-03-21 13:50   ` mathiasp
2003-03-21 14:02   ` Mathias Picker
2003-03-21 14:55     ` Patrick Gundlach
2003-03-23 13:54       ` Mathias Picker
2003-03-23 14:56         ` Patrick Gundlach
2003-03-21 14:13   ` Hans Hagen
2003-03-21 14:42     ` Patrick Gundlach
2003-03-21 15:03       ` Hans Hagen
2003-03-21 15:27         ` Patrick Gundlach
2003-03-21 16:24           ` Hans Hagen
2003-03-21 17:47             ` Patrick Gundlach
2003-03-21 17:58             ` Patrick Gundlach

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=87adfo3mag.fsf@gundla.ch \
    --to=pg@levana.de \
    --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).