On 1/04/2014 10:52 a.m., aparsloe wrote:
On 29/03/2014 6:02 a.m., Marcus Kriele wrote:
I have partially repeatable display issues concerning macros.
In old documentssome formulas display (some) macros as an empty boxes with blue
frames. For instance, I head defined \varexp to be \mathrm{e}. This macro is
sometimes displayed as a non-cursive e (as it should be) and sometimes as an
empty box with a blue frame. I even saw different displays in the same
formula. As far as I can tell, all my macros are affected. Sometimes I can
manage to replace the empty box by retyping the macro, sometimes not. If I
save and close the document and then re-open again, the retyped macro will
display as a box again.
This is the behavior of an existing child document, which is part of a rather
complex book project. I have tried to create a new, simple document to display
this issue. But I cannot consistently reproduce it. When I open my simple
document I sometimes see boxes and sometimes I see the macros. Sometimes some
macros are displayed as boxes and others are displayed correctly. The issue
seems to arise whether or not I am using child documents. Having said this, I
believe that it arises more often with child documents.
These issues are not present in Lyx 2.1 beta 2.
I also noticed a second issue. I am working with automatic preview enabled.
This works with my old documents, even when I am using LyX 2.1 RC1. However,
it does not seem to work with the new documents I created today, regardless of
whether i am using LyX 2.1 beta 2 or LyX 2.1 RC1. Since it is a while since I
created a new LyX document I do not know whether this is a new issue or an old
one.
I am using OSX Mavericks and the binaries posted by the LyX Project.
Regards, Marcus
I also am getting this behaviour with rc1 on Windows 7. I don't recall
noticing it in beta2, which I no longer have installed. The macro also
involves \mathrm,
\global\long\def\mr#1{\mathrm{#1}}
and is defined in a file of macros included in a master document. The
behaviour is evident in a child document. The source pane shows the
formula as
\[
\left\langle \mr{A_{1}B_{1}A_{1}}\right\rangle =\left\langle
\mr{CACCBCCAC}\right\rangle =\left\langle \mr{CABAC}\right\rangle ,
\]
If the cursor is in the math inset, it displays as the attached
macrodisplay1.png, with empty half-formed blue boxes; if the cursor is
outside the inset, preview does its thing and the formula displays
correctly as in macrodisplay2.png.
I notice also that if I position the cursor just to the right of one
of the blue boxes and press the left arrow key in order to move the
cursor inside the blue box, instead the cursor jumps to the right. In
macrodisplay1.png, if the blue box is either the middle or right one,
the cursor jumps outside the math inset altogether, then, pressing the
right arrow key or the space bar, it jumps back inside to the left!
There's something seriously wrong there. This makes formulas almost
impossible to edit.
Andrew
Since I had installed rc1 over beta2, in light of recent discussion I
wondered if this was causing problems, so I uninstalled that
installation of rc1 and installed it afresh. The problem remained. I've
therefore uninstalled rc1 again and reverted to beta2. The problem has
vanished and I can once more edit these formulas.
Andrew