On Fri, 9 Nov 2001, Michael Schmitt wrote:

> Allan wrote:
>
>  > One good thing though I've noticed is that with a bit of care it's
>  > possible to stack multiple figures and tables in a figure float and
>  > use \subfigure _without_ having to fix the '\n' problem I reported
>  > some time ago (and which doesn't appear in Michael's bug list).
>
> Could you please send me a short error description for my bug list? I
> must have missed your report.

Well I originally commented on it on December 5th 2000. See the thread
with '\n' in the subject from that time and to which I posted another
short email yesterday.

With the rewrite of tabular in combo with the new ERT inset the '\n'
problem doesn't really exist anymore.  The problem before was that
a tabular followed by a LaTeX paragraph was getting an extra '\n' that
it shouldn't have.  Since LaTeX paragraphs weren't really paragraphs
but raw markup they probably shouldn't have had any blank lines
inserted between themselves and a previous paragraph.

Now all a user has to do is plug in an ERT inset after the table or
figure (in the same paragraph).  Since we no longer have a separate
LaTeX paragraph style we have accidentally removed that old bug.
Although if you use the ERT inset to start a new paragraph you still
get one '\n' too many.  But at least now it should make more sense --
a new paragraph is always going to be separated by at least one blank
line with these new insets.  LyX can't be expected to decide what you
really want to achieve with an ERT inset starting a new paragraph --
you could just want to make your exported LaTeX file look prettier for
your non-LyX-using friends.  So if a user gets an error message from
latex about an environment finishing before it found a '}' chances are
the error box will be placed near [before] (but almost certainly not
on the same line as) a paragraph started by an ERT inset.  These
user-generated errors (I don't consider this case to be a LyX bug) are
then annoying because it exposes LaTeX's foibles to the user.

We cannot insist that users cannot start a paragraph with an ERT inset
because there are plenty of people who want to do such a thing (me for
example).

Documents from previous LyX versions may need to be manually fixed
in order for them to work with the new insets.  I have to do some more
testing but I have seen some suspicious conversions to ERT insets with
some of my documents.

Allan. (ARRae)

Reply via email to