On 2/6/06, Helge Hafting <[EMAIL PROTECTED]> wrote:
* Apply textrm as much as possible, but not in places where it won't work.
   In this particular example we had 2^Q.  Both the "2" and the "Q" may be
   textrm, but textrm must be off where the exponent happen.  (This example
   may be created manually by creating the math, then change the 2 and the Q
   to textrm individually.  This is the "userfriendly" way, but maybe it
encourages
   stupid layout. The same look should be available with mathrm . . .

In LyX 1.4.4,  2^Q in an mbox now no longer breaks the LaTeX run,
however if we type "Cntl-M" "Cntl-M" "\phi" we get:
 1) Something that looks exactly like $\phi$ on the screen.
 2) Something ($\mbox{\phi}$) that produces obscure LaTeX errors as
discussed previously in this thread.

My suggestion is that we make it obvious that we are no longer in
plain math mode. In a mbox, typing "\" should result in
"textbackslash" on screen and "\" in the dvi/ps/pdf.

As it stands the user has 3+ ways of entering a "\" in an mbox, the
"\" key, the "Cntl-L" key and the GUI "TeX" button. If the user really
wants to enter a TeX command in an mbox, the user can still press
Cntl-L or TeX to get a TeX "\".

Likewise copying a "\phi" symbol into a mbox should result in  "\phi"
as ASCII text in the PDF, just as if we had pasted the "\phi" symbol
completely outside any math-mode environment.

For consistency, I would also suggest that we replace '^'s with
"\textasciicircum{}" in mboxes, just like we do in all other non-math
environments.

--
John C. McCabe-Dansted
PhD Student
University of Western Australia

Reply via email to