Re: [NTG-context] small caps italic and font switching inside math

2006-07-03 Thread Vit Zyka
Mojca Miklavec wrote: On 7/1/06, Taco Hoekwater wrote: Mojca Miklavec wrote: On 6/29/06, Taco Hoekwater wrote: {\bf A test \variant[Caps] in small caps} Does this work on your computer? (I don't get any caps here.) No it doesn't, it was a leftover from a failed experiment I did not follow

Re: [NTG-context] small caps italic and font switching inside math

2006-07-02 Thread Taco Hoekwater
Mojca Miklavec wrote: It works perfect except in a single case: \title{\molecule{SF_6}} I had seen that, but not yet bothered to fix it. Still, it is fairly easy to change the macro, try the version below. Sorry, I thought you were talking about the spacing between F and 6. Didn't work in

Re: [NTG-context] small caps italic and font switching inside math

2006-07-02 Thread Mojca Miklavec
On 7/2/06, Taco Hoekwater wrote: Mojca Miklavec wrote: It works perfect except in a single case: \title{\molecule{SF_6}} I had seen that, but not yet bothered to fix it. Still, it is fairly easy to change the macro, try the version below. Sorry, I thought you were talking about the

Re: [NTG-context] small caps italic and font switching inside math

2006-07-02 Thread Taco Hoekwater
Mojca Miklavec wrote: Seems like understanding \expandafter would solve 90% of my problems. I tried to understand that part in TeX book, but it's so cryptic (too short) ... I understand the concept, but I'm not able to write the code for it yet :( The trick to \expandafter is that you

Re: [NTG-context] small caps italic and font switching inside math

2006-07-01 Thread Taco Hoekwater
Mojca Miklavec wrote: On 6/29/06, Taco Hoekwater wrote: {\bf A test \variant[Caps] in small caps} Does this work on your computer? (I don't get any caps here.) No it doesn't, it was a leftover from a failed experiment Thanks for the magnificent macro! I replaced minus by $-$ and I had

Re: [NTG-context] small caps italic and font switching inside math

2006-07-01 Thread Mojca Miklavec
On 7/1/06, Taco Hoekwater wrote: Mojca Miklavec wrote: On 6/29/06, Taco Hoekwater wrote: {\bf A test \variant[Caps] in small caps} Does this work on your computer? (I don't get any caps here.) No it doesn't, it was a leftover from a failed experiment OK. I thought so :( Thanks

Re: [NTG-context] small caps italic and font switching inside math

2006-06-30 Thread Mojca Miklavec
On 6/29/06, Taco Hoekwater wrote: {\bf A test \variant[Caps] in small caps} Does this work on your computer? (I don't get any caps here.) \newbox\chemlowbox \def\chemlow#1% {\setbox\chemlowbox\hbox{{\switchtobodyfont[small]#1}}} \def\chemhigh#1% {\ifvoid\chemlowbox

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
Aditya Mahajan wrote: Maybe what is needed is a \beforemathswitch token set. Then one could do \appendtoks \boldmath to \beforemathswitch Already present: \everymathematics ___ ntg-context mailing list ntg-context@ntg.nl

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
Mojca Miklavec wrote: It only gets the size right, not the boldnes. But it can be argued that that is the correct behaviour anyways. Not so long ago you argued that \alpha-sheet, \beta-helix, \gamma-rays, ... should be part of text flow (a reason why the el companion encoding should have

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
Sorry, messed up something. New version followws: \newbox\chemlowbox \def\chemlow#1% {\setbox\chemlowbox\hbox{{\switchtobodyfont[small]#1}}} \def\chemhigh#1% {\ifvoid\chemlowbox \high{{\switchtobodyfont[small]#1}}% \else \lohi[left]{\box\chemlowbox}{{\switchtobodyfont[small]#1}}\fi }

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Taco Hoekwater
Hans Hagen wrote: i didt follow this thread, so i may be wrong, but doesn't the ppchtex (see manuals) module does that kind of stuff? It doesn't retain font styles (at least, I could not make it do that) Taco ___ ntg-context mailing list

Re: [NTG-context] small caps italic and font switching inside math

2006-06-29 Thread Hans Hagen
Taco Hoekwater wrote: Sorry, messed up something. New version followws: \newbox\chemlowbox \def\chemlow#1% {\setbox\chemlowbox\hbox{{\switchtobodyfont[small]#1}}} \def\chemhigh#1% {\ifvoid\chemlowbox \high{{\switchtobodyfont[small]#1}}% \else

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Aditya Mahajan
On Wed, 28 Jun 2006, Mojca Miklavec wrote: Hello, I have to tiny questions: 1. How do I get small caps [bold] italic (except with the \definedfont[ec-lmxxx])? No idea. 2. I defined \molecule to be \def\molecule#1{$\rm#1$}, better use {\mathematics{\rm #1}} so that you can also write

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Thomas A. Schmitz
On Jun 28, 2006, at 7:44 PM, Mojca Miklavec wrote: Hello, I have to tiny questions: 1. How do I get small caps [bold] italic (except with the \definedfont[ec-lmxxx])? Mojca, this is a bit more complicated than it sounds. Have a look at Adam's MyWay, section 4 explains how to do it.

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Taco Hoekwater
Aditya Mahajan wrote: On Wed, 28 Jun 2006, Mojca Miklavec wrote: Hello, I have to tiny questions: 1. How do I get small caps [bold] italic (except with the \definedfont[ec-lmxxx])? No idea. Same for me. I know that theoreticallu something would be possible using \Var and special

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Mojca Miklavec
On 6/28/06, Taco Hoekwater wrote: Aditya Mahajan wrote: Some catcode trickery might work. This is all I could manage. This does not work well, because HSO\low{4}\high{-} is not correct. True, but if I'm aware of it, I can use \lohi{4}{$-$} if needed, which works even better in

Re: [NTG-context] small caps italic and font switching inside math

2006-06-28 Thread Aditya Mahajan
On Thu, 29 Jun 2006, Mojca Miklavec wrote: On 6/28/06, Taco Hoekwater wrote: Aditya Mahajan wrote: Some catcode trickery might work. This is all I could manage. This does not work well, because HSO\low{4}\high{-} is not correct. True, but if I'm aware of it, I can use