[NTG-context] styling references

2021-05-28 Thread Pablo Rodriguez
Dear list,

I have the following sample:

  \starttext
  \startitemize
  \dorecurse{15}
{\item[\recurselevel]whatever}
  \stopitemize

  As exposed in \in{item}[9]...
  \stoptext

How can I add style to the item reference (9)?

I mean, how can I get “As exposed in item {\em 9}”?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Styling References

2014-07-15 Thread Malte Stien
Sweet. Thank you.
Malte.

--
“The Electric Monk was a labour-saving device, like a dishwasher or a video 
recorder... Electric Monks believed things for you, thus saving you what was 
becoming an increasingly onerous task, that of believing all the things the 
world expected you to believe.”

― Douglas Adams, Dirk Gently's Holistic Detective Agency

On 14 Jul 2014, at 23:03 , Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 
 Am 14.07.2014 um 13:58 schrieb Malte Stien ma...@stien.de:
 
 Hi,
 
 I need to style my references to SOME section/subsection/subsubsection 
 differently. Here is an example:
 
 \starttext
 There are lots of animals such as \about[ducks] and \about[bears].
 More about this can be found in Chapter~\about[introduction].
 
 \chapter[introduction]{Introduction}
 \section[ducks]{Ducks}
 Some information about ducks...
 
 \section[bears]{Bears}
 Some information about baers...
 
 \stoptext
 
 I am happy for the reference to the Introduction chapter to be in regular 
 type with quotes, but I would like to render the references to Ducks and 
 Baers in italics without the quotes. Note, that I do not require for ConTeXt 
 to pick one or the other style automatically based on the section (that 
 would be pretty complicated, I suppose). I am happy to ‘hint’ it when I make 
 the reference. So, for example, I am happy to replace the first like with 
 
 There are lots of animals such as \animalabout[ducks] and 
 \animalabout[bears].
 
 ...but so far I have been unsuccessful in creating such a \animalabout 
 command. I looked at \definereferenceformat which gets rid of the quotes, 
 but I can’t make it go italics. I also looked at \setupreferencing, but that 
 seems to affect ALL \abouts.
 
 \definereferenceformat[animalabout][style=italic,color=blue,type=title,left=«,right=»]
 
 \starttext
 
 There are lots of animals such as \about[ducks] and \about[bears].
 
 There are lots of animals such as \animalabout[ducks] and \animalabout[bears].
 
 \chapter[introduction]{Introduction}
 
 \section[ducks]{Ducks}
 
 Some information about ducks...
 
 \section[bears]{Bears}
 
 Some information about baers...
 
 \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
 ___

___
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
___

[NTG-context] Styling References

2014-07-14 Thread Malte Stien
Hi,

I need to style my references to SOME section/subsection/subsubsection 
differently. Here is an example:

\starttext
There are lots of animals such as \about[ducks] and \about[bears].
More about this can be found in Chapter~\about[introduction].

\chapter[introduction]{Introduction}
\section[ducks]{Ducks}
Some information about ducks...

\section[bears]{Bears}
Some information about baers...

\stoptext

I am happy for the reference to the Introduction chapter to be in regular type 
with quotes, but I would like to render the references to Ducks and Baers in 
italics without the quotes. Note, that I do not require for ConTeXt to pick one 
or the other style automatically based on the section (that would be pretty 
complicated, I suppose). I am happy to ‘hint’ it when I make the reference. So, 
for example, I am happy to replace the first like with 

There are lots of animals such as \animalabout[ducks] and \animalabout[bears].

...but so far I have been unsuccessful in creating such a \animalabout command. 
I looked at \definereferenceformat which gets rid of the quotes, but I can’t 
make it go italics. I also looked at \setupreferencing, but that seems to 
affect ALL \abouts.

Any clues?
Thank you,
Malte.

--
“The Electric Monk was a labour-saving device, like a dishwasher or a video 
recorder... Electric Monks believed things for you, thus saving you what was 
becoming an increasingly onerous task, that of believing all the things the 
world expected you to believe.”

― Douglas Adams, Dirk Gently's Holistic Detective Agency

___
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
___

Re: [NTG-context] Styling References

2014-07-14 Thread Wolfgang Schuster

Am 14.07.2014 um 13:58 schrieb Malte Stien ma...@stien.de:

 Hi,
 
 I need to style my references to SOME section/subsection/subsubsection 
 differently. Here is an example:
 
 \starttext
 There are lots of animals such as \about[ducks] and \about[bears].
 More about this can be found in Chapter~\about[introduction].
 
 \chapter[introduction]{Introduction}
 \section[ducks]{Ducks}
 Some information about ducks...
 
 \section[bears]{Bears}
 Some information about baers...
 
 \stoptext
 
 I am happy for the reference to the Introduction chapter to be in regular 
 type with quotes, but I would like to render the references to Ducks and 
 Baers in italics without the quotes. Note, that I do not require for ConTeXt 
 to pick one or the other style automatically based on the section (that would 
 be pretty complicated, I suppose). I am happy to ‘hint’ it when I make the 
 reference. So, for example, I am happy to replace the first like with 
 
 There are lots of animals such as \animalabout[ducks] and \animalabout[bears].
 
 ...but so far I have been unsuccessful in creating such a \animalabout 
 command. I looked at \definereferenceformat which gets rid of the quotes, but 
 I can’t make it go italics. I also looked at \setupreferencing, but that 
 seems to affect ALL \abouts.

\definereferenceformat[animalabout][style=italic,color=blue,type=title,left=«,right=»]

\starttext

There are lots of animals such as \about[ducks] and \about[bears].

There are lots of animals such as \animalabout[ducks] and \animalabout[bears].

\chapter[introduction]{Introduction}

\section[ducks]{Ducks}

Some information about ducks...

\section[bears]{Bears}

Some information about baers...

\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
___