References and formulae numbers in upshape
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... Greetings, Morgan
Le Thursday 13 March 2008 13:03:22 Aditya Mahajan, vous avez écrit :
Thank you, I'll use this too! It could be useful to add an option to \definereferenceformat to get the same result. Is it hard to implement? And concerning the equation tag itself, I mean the one introduced by \placeformula, is there a way to have it always typeset in upshape? Morgan
Le Thursday 13 March 2008 19:16:02 Wolfgang Schuster, vous avez écrit :
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? Well, it seems ok for me in slanted enumerations for theorems and such. Thank you! Morgan
On Thu, 13 Mar 2008 19:44:06 +0100
Morgan Brassel
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
I now realize that my first question was not very clear: what I need in fact is to typeset *all* references obtained by the \in command in upshape. For example, in {\it See \in{Figure}[fig:det] for details.}, I would like to see 'Figure 1' in upshape and the rest in italic. I tried: \setupreferencing [left=\bgroup\normal, right=\egroup] without success. Is there a way to achieve this without defining new reference formats? Thanks in advance, Morgan
On Fri, 14 Mar 2008 03:49:19 +0100
Morgan Brassel
What do you want seems to be not possible but you could use the following solution although it is better to define a new command. \let\normalin\in \definereferenceformat [figref] [left=\normal, text=\normal Figure, command=\normalin] \let\in\figref \starttext \placefigure [here][fig:det] {Example} {\blackrule[width=3cm,height=3cm]} \it See \in[fig:det] for details. \stoptext Wolfgang
Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit :
Thank you for your help, Wolfgang! I think I'll define a new \ref command similar to the one in LaTeX, with upshape number. But maybe a new option would be welcome? (just as for numberstyle=normal in \setupformulae). What do you think? Is it a bad idea? I'm just curious... Morgan
On Fri, 14 Mar 2008 22:30:30 +0100
Morgan Brassel
A new command to set the style for the number is OK but you need also one for the text but this need to be done by Hans because it is not possible to change the style for the predefined command in, at ... with the current implementation. Wolfgang
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wolfgang Schuster skrev:
Hi! As a new Context user (former LateX) from Sweden according to the above discussion about references style to figures. I have a following question. How do I customize the appearance of the figure text, I mean for example: Under every figure there is : Figure 1, Figure 2, Figure 3 and so on. How do I make it like this : Picture 1, Picture 2, Picture 3 or Picture 1a .....1b and such.? In the swedish translation there is "Figur 1......." I understand that it has to do with defining my own kind of \definefloat or similar. Best Regards Janneman -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH24Yr/zRis+sQPvARAltuAKCRX8yebwmD1hUvOrO0lToDea+RowCgp1/E QuGKQMpRfcnoMSU0lXkVE28= =wSRD -----END PGP SIGNATURE-----
I believe the easy way is
\mainlanguage{sv]
which also has lots of other useful side effects.
Johan, also from Sweden
2008/3/15, Jan-Erik Hägglöf
-- Johan Sandblom, MD PhD m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Johan Sandblom skrev:
Good to have more pals from sweden! Thanks for the answer, actually it was not what I meant. I already use \mainlanguage[sv], but how do you customize so it appears like: Bild 1 , Bild 2, ...... or whatever 1 whatever 2 ..... or maybe if you want to referencing to subfigures like whatever 1a whatever 1b ....? Thanks in Advance Best Regards Janneman -- Örebro - sweden -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH25Kb/zRis+sQPvARApFAAKC+TUUkQObvJwQQPvkjNP86tCH3CgCgjRZI mcVAhziSRr0JkjOU2otjqT4= =Eo0R -----END PGP SIGNATURE-----
\setuplabeltext[sv][figure=Bild ]
if you want to referencing to subfigures like whatever 1a whatever 1b ....?
\placefigure[here][fig:dummy] {\startcombination[2*1] {\externalfigure[dummy]}{a} {\externalfigure[dummy]}{b} \stopcombination} See \in{figure}{a}[fig:dummy] and \in{figure}{b}[fig:dummy]. Greetings Wolfgang
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wolfgang Schuster skrev:
Just Great! Many thanks, it is good to to have you around! Janneman - Örebro - Sweden -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFH2+go/zRis+sQPvARAgszAKDEanNAprgNVuj49C4432GlBEMgIACg4qp7 aKqRPDNCxystR4CtZpnXH10= =Im34 -----END PGP SIGNATURE-----
participants (6)
-
Aditya Mahajan
-
Jan-Erik Hägglöf
-
Johan Sandblom
-
Morgan Brassel
-
Morgan Brassel
-
Wolfgang Schuster