ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthijs Kooijman <matthijs@stdin.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: inothermargin overlaps
Date: Wed, 2 Dec 2009 12:21:07 +0100	[thread overview]
Message-ID: <20091202112107.GA13955@katherina.student.utwente.nl> (raw)
In-Reply-To: <fe8d59da0912020255w629b7820hfa52ff21c39448df@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1051 bytes --]

> Try
> \starttext
> Foo Baz \inmargin {Blerf \\ Baz}
> \stoptext
Hmm, that might work, but my real case is slightly more complicated. I have
the \inmargin wrapped in a \refdef command, that references some topic on some
page. So I say \refdef{foo} and it looks up both the text and page number for
foo and puts that into the margin.

I could probably complicate my \refdef command into taking multiple references
at the same time. However, that will still require me to merge those commands
when they are close together, which might mean some of the rerefences are not
in their logical place anymore. For example:

  Some short paragraph referencing foo. \refdef{foo}

  And another paragraph refering bar. \refdef{bar}

This has the references in the logical places. With your suggestions, I must
change this to:

  Some short paragraph referencing foo. \refdef{foo,bar}

  And another paragraph refering bar.

Which is more error prone when I start moving around text... So, it's a
workable solution, but it's not quite ideal yet...

Gr.

Matthijs

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- 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
___________________________________________________________________________________

  reply	other threads:[~2009-12-02 11:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 10:45 Matthijs Kooijman
2009-12-02 10:47 ` Matthijs Kooijman
2009-12-02 10:55   ` luigi scarso
2009-12-02 11:21     ` Matthijs Kooijman [this message]
2009-12-02 15:12 ` Hans Hagen
2009-12-02 16:34   ` Matthijs Kooijman

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=20091202112107.GA13955@katherina.student.utwente.nl \
    --to=matthijs@stdin.nl \
    --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).