ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: References and formulae numbers in upshape
Date: Thu, 13 Mar 2008 20:13:52 +0100	[thread overview]
Message-ID: <20080313201352.c8819a36.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <200803131944.06455.morgan.brassel@free.fr>

On Thu, 13 Mar 2008 19:44:06 +0100
Morgan Brassel <morgan.brassel@free.fr> wrote:

> Le Thursday 13 March 2008 19:16:02 Wolfgang Schuster, vous avez écrit :
> > On Thu, 13 Mar 2008 08:03:22 -0400 (EDT)
> >
> > Aditya Mahajan <adityam@umich.edu> wrote:
> > > On Thu, 13 Mar 2008, Morgan Brassel wrote:
> > > > Hi everyone,
> > > >
> > > > I'm looking for an easy way to typeset all references produced by the
> > > > \in command in upshape format (even in an italic paragraph for
> > > > example). I tried with the 'left' option of \definereferenceformat, but
> > > > without good results.
> > > >
> > > > I would also like to typeset all formulae numbers in upshape. I know
> > > > Aditya posted about this a long time ago but I can't find the thread
> > > > any more...
> > >
> > > I also could not get things to work with \definereferenceformat.
> > > This is what I use:
> > >
> > > \definereferenceformat  [doeqref]   [left=(,right=)]
> > > \def\eqref[#1]{{\normal \doeqref[#1]}}
> >
> > Why not
> >
> > \definereferenceformat
> >   [eqref]
> >   [left=\normal(,
> >    right=)]
> >
> > Wolfgang
> 
> Is it so simple, really? Great! But can't this have some side effects in 
> particular cases? I mean, the {} around \normal aren't needed here?

Not in this case because references are grouped by themselve but it is
better to use grouping.

\definereferenceformat
  [eqref]
  [left=\bgroup\normal(,
   right=)\egroup]

> Well, it seems ok for me in slanted enumerations for theorems and such.

Wolfgang
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-03-13 19:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-13  0:39 Morgan Brassel
2008-03-13 12:03 ` Aditya Mahajan
2008-03-13 17:50   ` Morgan Brassel
2008-03-13 20:00     ` Aditya Mahajan
2008-03-13 18:16   ` Wolfgang Schuster
2008-03-13 18:44     ` Morgan Brassel
2008-03-13 19:13       ` Wolfgang Schuster [this message]
2008-03-13 19:59         ` Aditya Mahajan
2008-03-14  2:49           ` Morgan Brassel
2008-03-14  8:00             ` Wolfgang Schuster
2008-03-14 21:30               ` Morgan Brassel
2008-03-15  7:28                 ` Wolfgang Schuster
2008-03-15  8:17                   ` Jan-Erik Hägglöf
2008-03-15  8:45                     ` Johan Sandblom
2008-03-15  9:10                       ` Jan-Erik Hägglöf
2008-03-15 14:33                         ` Wolfgang Schuster
2008-03-15 15:15                           ` Jan-Erik Hägglöf

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=20080313201352.c8819a36.schuster.wolfgang@googlemail.com \
    --to=schuster.wolfgang@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).