ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* styling \at
@ 2011-08-15 14:04 Alexandre Leray
  2011-08-15 14:17 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Leray @ 2011-08-15 14:04 UTC (permalink / raw)
  To: ntg-context

Hi,

I would like to style the \at labels: define a custom font for them and 
make them superscript. What is the best way to achieve this?

Thanks,

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: styling \at
  2011-08-15 14:04 styling \at Alexandre Leray
@ 2011-08-15 14:17 ` Wolfgang Schuster
  2011-08-15 15:02   ` stdin
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2011-08-15 14:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 15.08.2011 um 16:04 schrieb Alexandre Leray:

> Hi,
> 
> I would like to style the \at labels: define a custom font for them and make them superscript. What is the best way to achieve this?

You have to define your own command:

\startsetups reference:c
  \high{\getreferenceentry{page}}
\stopsetups

\definereferenceformat[refa][type=page]
\definereferenceformat[refb][type=page,style=italic]
\definereferenceformat[refc][setups=reference:c,color=red]

\starttext

\pagereference[test]

\startlines
A:\refa[test]
B:\refb[test]
C:\refc[test]
\stoplines

\stoptext

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: styling \at
  2011-08-15 14:17 ` Wolfgang Schuster
@ 2011-08-15 15:02   ` stdin
  0 siblings, 0 replies; 3+ messages in thread
From: stdin @ 2011-08-15 15:02 UTC (permalink / raw)
  To: ntg-context

Thanks, it works perfectly with the latest revision of context!

Le lun. 15 août 2011 16:17:40 CEST, Wolfgang Schuster a écrit :
> Am 15.08.2011 um 16:04 schrieb Alexandre Leray:
> 
>> Hi,
>>
>> I would like to style the \at labels: define a custom font for them and make them superscript. What is the best way to achieve this?
> 
> You have to define your own command:
> 
> \startsetups reference:c
>    \high{\getreferenceentry{page}}
> \stopsetups
> 
> \definereferenceformat[refa][type=page]
> \definereferenceformat[refb][type=page,style=italic]
> \definereferenceformat[refc][setups=reference:c,color=red]
> 
> \starttext
> 
> \pagereference[test]
> 
> \startlines
> A:\refa[test]
> B:\refb[test]
> C:\refc[test]
> \stoplines
> 
> \stoptext
> 
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

-- 
<stdin>
Alexandre Leray & Stéphanie Vilayphiou
http://stdin.fr/
+32 (0)4 89 00 88 59
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-15 15:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-15 14:04 styling \at Alexandre Leray
2011-08-15 14:17 ` Wolfgang Schuster
2011-08-15 15:02   ` stdin

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).