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 >> {\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 no

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 yo

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 talkin

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

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 > > >>{\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 :( > > > >

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

2006-06-30 Thread Taco Hoekwater
Mojca Miklavec wrote: > On 6/29/06, Taco Hoekwater >>{\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 to

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

2006-06-30 Thread Mojca Miklavec
On 6/29/06, Taco Hoekwater > {\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 \high{{\switchtob

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 \lohi[left]{\box\chemlowbox}

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 ntg-c

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

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 http://www.ntg.nl/ma

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,

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 bett

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

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 i

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 als

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

2006-06-28 Thread Mojca Miklavec
Hello, I have to tiny questions: 1. How do I get small caps [bold] italic (except with the \definedfont[ec-lmxxx])? 2. I defined \molecule to be \def\molecule#1{$\rm#1$}, an usage example would be: \molecule{HSO_4^{-}} But how should I modify this it so that it would also work properly w