From: Malte Stien <malte@stien.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Styling References
Date: Mon, 14 Jul 2014 21:58:52 +1000 [thread overview]
Message-ID: <747812BF-0F80-4F5A-BF84-E1262951DACB@stien.de> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2014-07-14 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 11:58 Malte Stien [this message]
2014-07-14 13:03 ` Wolfgang Schuster
2014-07-15 11:45 ` Malte Stien
2021-05-28 17:35 styling references Pablo Rodriguez
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=747812BF-0F80-4F5A-BF84-E1262951DACB@stien.de \
--to=malte@stien.de \
--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).