Re: Stuck between v2.4-RC1 and v2.3.7

2024-01-29 Thread José Matos
On Mon, 2024-01-29 at 21:46 -0500, Steven Paulson wrote:
> Hi everyone,
> 
> I recently upgraded LyX to v2.4-RC1. Previously, I was using v2.4-
> beta3 without problems. However, ever since v2.4-RC1, I have failed
> to open all my LyX documents previously created under beta 3, showing
> me the "LyX cannot open OLDER version of documents" error. Right now,
> I cannot seem to locate the beta 3 installer from anywhere, so I went
> back to v2.3.7 from the official website, but got the "LyX cannot
> open newer versions of documents" error for those documents. I am
> stuck in between v2.4-RC1 and v2.3.7.
> 
> I cannot understand why the newer version 2.4-RC1 cannot open an
> older version:
> 
> ~/Documents/example.lyx is from an older version of LyX and the
> lyx2lyx script failed to convert it.
> 
> Any help would be appreciated.
> 
> Thanks,
> Steven

What operating system are you using?

The only reason to get that type of error is to have a mix between
different versions installed. Because RC1 has a more recent conversion
tool (lyx2lyx) and so that error should not happen.

In 2.4 what do you get on Help->About LyX (I am interested in "System
directory" entry.

Regards,
-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Stuck between v2.4-RC1 and v2.3.7

2024-01-29 Thread Steven Paulson
Hi everyone,

I recently upgraded LyX to v2.4-RC1. Previously, I was using v2.4-beta3
without problems. However, ever since v2.4-RC1, I have failed to open all
my LyX documents previously created under beta 3, showing me the "LyX
cannot open OLDER version of documents" error. Right now, I cannot seem to
locate the beta 3 installer from anywhere, so I went back to v2.3.7 from
the official website, but got the "LyX cannot open newer versions of
documents" error for those documents. I am stuck in between v2.4-RC1 and
v2.3.7.

I cannot understand why the newer version 2.4-RC1 cannot open an older
version:


~/Documents/example.lyx is from an older version of LyX and the lyx2lyx
script failed to convert it.


Any help would be appreciated.


Thanks,

Steven
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


refstyle and amsmath

2024-01-29 Thread Kees Zeelenberg
Some time ago there was a discussion on the list about refstyle in
combination with amsmath, leading to error messages from refstyle. It
appears refstyle is now loaded after amsmath, but this now leads to messages
like "LaTeX Warning: Reference `ab' on page 1 undefined on input line 39"
from the enclosed LyX file 'testref.lyx'. It seems that this is related to
the LaTeX line "\AtBeginDocument{\providecommand\eqref[1]{\ref{eq:#1}}}",
which is added by LyX in 'testref.tex'. This line does not have any effect,
so that e.g. \eqref{ab}  is interpreted as \ref{ab}  instead of \ref{eq:ab}.
Replacing this line with
\AtBeginDocument{\DeclareRobustCommand{\eqref}[1]{\textup{\tagform@{\ref{eq:
#1} (as in amsmath), the LaTeX file 'testref_robust.tex' compiles
without problems.

 

Kees

 



testref.lyx
Description: application/lyx


testref.tex
Description: Binary data


testref.pdf
Description: Adobe PDF document


testref_robust.pdf
Description: Adobe PDF document


testref_robust.tex
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users