Hi Paul,
Thanks, I understand now. Earlier, I didn't know that \sideset works only
for mathematical operators and I used 'M' just as an example. My question was
whether there is a LyX function that supports similar rendering and if either
this or \sideset would show up on the DVI/PDF. You've answered the latter and
helped me understand better.
thanks,
Manoj
On Wednesday 23 September 2009 02:17:38 pm Paul A. Rubin wrote:
> Manoj Rajagopalan wrote:
> > Hi,
> >
> > LaTeX allows the \sideset command to position superscripts and
> > subscripts on the left side also. For example,
> >
> > \sideset{_a^b}{_c^d} M prints 'M' with 'a' at its lower-left, 'b' at
> > is upper-left, and with 'c' and 'd' at normal subscript and superscript
> > positions.
> >
> > Can this effect be invoked in LyX?
>
> \sideset wants to be followed by an operator -- do you have a way to
> convince LaTeX 'M' is an operator? I get an error message when I try
> the above.
>
> That said, \sideset{_a^b}{_c^d}\prod works in LyX -- the formula does
> not look right in the GUI (meaning that LyX will not translate \sideset
> into the appropriate visual effects) but the DVI/PDF output will be
> correct. (If you turn on instant preview for formulas, it will show up
> in the GUI as well.) Entering it is a bit finicky, but not too hard.
> Starting inside a math inset, the keystrokes are as follows (` indicates
> a space):
>
> 1. \sideset` (appears verbatim in the math inset -- should change font
> after the space is entered)
> 2. \{ (creates both opening and closing braces)
> 3. _a`^b`
> 4. (cursor out of the braces but stay inside the inset)
> 5. \{
> 6. _c`^d`
> 7. (cursor out of the braces but stay inside the inset)
> 8. \prod`
>
> /Paul