Nirmal Govind wrote: > > Thanks a lot Angus.. I see now..:-) > > I can use this from now on but is there any good way of converting all > the bold greeks (by bold greeks I mean those entered with a C-b and then > the greek letter) that I currently have in my document to these macros > without editing all of them? There are just too many and I'm bound to > miss a few if I manually edit them..
Well, you can try the attached script. It will convert all occurences of
\mathbf{\alpha} => \boldsymbol{\alpha}
whilst leaving any non-greek letters unchanged. It will not convert multiple
instances like
\mathbf{\alpha\beta} => \boldsymbol{\alpha\beta}
that is too hard.
In future, you should employ WYSIWYM on your document. Ie, the thing is a
\Vector or a \Matrix etc. The typesetting of this should be defined once
and once only...
Use so:
$ nirmal.sh yourfile.lyx > output.lyx
--
Angus
nirmal.sh
Description: application/shellscript
