Jannick Asmus wrote:
Paul Rubin wrote:
Jannick Asmus <jannick.news <at> gmail.com> writes:

If you want to use a macro to convert arbitrary symbols to mathcal,
create a new macro (let's call it \mc). Before fiddling with the TeX
box, we want to add an argument. If the macro toolbar is displaying,
click the second icon (tooltip = "Append argument" -- I won't attempt
to describe the icon).  If not, or if you can't sort out the icons,
use Edit > Math > Macro Definition > Append Argument. The macro now
shows a LaTeX argument placeholder #1 in braces. In the TeX box,
highlight #1 (which should be automatically filled in) and type
\mathcal (which will somewhat unhelpfully convert #1 to down-arrow
infinity -- ignore that). Now, in any math formula, type \mc followed
by a space to get an inset. Anything you type in the inset is set in
mathcal. If you highlight content and type \mc space, the highlighted
content is converted.

That sounds easy too. This is for tomorrow since it is late in my time
zone now.

I tried - and it works smoothly.

For reasons of compatibility I am asking myself how such a solution translates to the corresponding tex file? If it is to sent to some journal, they do not like any macros - as I have experienced. So are there any routines which eliminate macros in a tex file?

I know this is another topic already.

Thanx for your replies.

Best wishes,
J.

Reply via email to