From: Tobias Columbus <tobias.columbus@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: enumeration numbering in the margin, title in body text
Date: Sat, 10 Mar 2012 12:35:09 +0100 [thread overview]
Message-ID: <20120310113509.GF6573@leviathan.modsognir.ath.cx> (raw)
In-Reply-To: <198690D3-FE66-4379-AED3-AE235346C3F7@googlemail.com>
On Fri, Mar 09, 2012 at 07:05:55PM +0100, Wolfgang Schuster wrote:
>
> Am 08.03.2012 um 11:49 schrieb Tobias Columbus:
>
> > Hi all,
> >
> > I am new to ConTeXt and asked myself if it is possible to have only
> > the number of an enumeration in the margin and the title in `serried`
> > position. Here is an example of what I think:
> >
> > margin | text
> > ---------------------------
> > | blah blah
> > | blah blah
> > 1.1| Definition (something): blah
> > |
> > 1.2| Lemma: blah
> >
> > After digging a while in the documentation and code, I came to the
> > conclusion that this is currently not possible.
> > Then I tried some fiddling in the context code and this directly leads
> > to my second question: I modified the file strc-des.mkiv.
> > However, the changes seem to be ignored by my context binary. What
> > did I do wrong? I also tried context --generate, but that also did not i
> > make context aware of my changes.
>
>
> You can use the annotation module:
>
> \usemodule[annotation]
>
> \define[2]\EnumerationCommand
> {\inleft[scope=local,style=normal]{\placeannotationnumber}%
> \placeannotationtext\doifsomething{\placeannotationtitle}{\space(\placeannotationtitle)}:\space
> \placeannotationcontent}
>
> \defineannotation[definition][text=Definition,alternative=command,command=\EnumerationCommand,prefixstopper=.]
> \defineannotation[lemma][definition][text=Lemma,counter=definition]
>
> \starttext
>
> \chapter{Test}
>
> blah blah
> blah blah
>
> \definition[title=something]{blah}
>
> \lemma{blah}
>
> \stoptext
>
> Wolfgang
Hi,
The annotation module works perfect. This is exactly what I thought
of.
Thanks!
Tobias
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2012-03-10 11:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-08 10:49 Tobias Columbus
2012-03-08 11:10 ` Marco
2012-03-08 17:35 ` Wolfgang Schuster
2012-03-08 19:50 ` Aditya Mahajan
2012-03-08 19:56 ` Wolfgang Schuster
2012-03-09 18:05 ` Wolfgang Schuster
2012-03-10 11:35 ` Tobias Columbus [this message]
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=20120310113509.GF6573@leviathan.modsognir.ath.cx \
--to=tobias.columbus@googlemail.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).