Re: Broken document

2023-03-16 Thread Dr Eberhard W Lisse
On my Ventura M2 with 2.3.7 and TexLive 2022 it does reporduce.

el

On 15/03/2023 09:42, Stephan Witt wrote:
> Am 15.03.2023 um 14:34 schrieb Daniel :
>>
>> On 15/03/2023 14:28, Eckhard Höffner wrote:
>>> That's another possible LyX specific cause:
>>> \makeatletter
>>> %% LyX specific LaTeX commands.
>>> \AtBeginDocument{\providecommand\figref[1]{\ref{fig:#1}}}
>>> \RS@ifundefined{subsecref}
>>>   {\newref{subsec}{name = \RSsectxt}}
>>>   {}
>>> \RS@ifundefined{thmref}
>>>   {\def\RSthmtxt{theorem~}\newref{thm}{name = \RSthmtxt}}
>>>   {}
>>> \RS@ifundefined{lemref}
>>>   {\def\RSlemtxt{lemma~}\newref{lem}{name = \RSlemtxt}}
>>>   {}
>>> \makeatother
>>
>> But then the error should be reproducible, right? Axel could not. Could you?
> 
> Just for the record: I cannot reproduce the error either.
> 
> I’m using TeX Live 2020 here.
> 
> Stephan


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


Re: Broken document

2023-03-16 Thread Daniel

On 16/03/2023 10:39, Udicoudco wrote:

On Thu, Mar 16, 2023 at 11:13 AM Daniel  wrote:


On 16/03/2023 08:18, Daniel wrote:

On 15/03/2023 15:54, Udicoudco wrote:



On Wed, Mar 15, 2023 at 10:57 AM Daniel mailto:xraco...@gmx.de>> wrote:

 Hi!

 I somehow managed to break one of my documents and cannot see
where the
 problem is. I have attached a minimal example that I produced after a
 longer error hunt (because LyX did not give me helpful error
 feedback on
 this).

 Does someone have an idea how the error occurred or how I might be
able
 to fix it?

 The LaTeX error message does not tell me much and LyX did not even
 point
 me to the position in the document where the error occurred.

 --- LaTeX Error ---

   lsttxt= \RSlsttxt}

 I've run across a `}' that doesn't seem to match anything.
 For example, `\def\a#1{...}' and `\a}' would produce
 this error. If you simply proceed now, the `\par' that
 I've just inserted will cause me to report a runaway
 argument that might be the root of the problem. But if
 your `}' was spurious, just type `2' and it will go away.

 --- End ---



You get the error because you load amsmath (it is loaded via
newtxmath) before refstyle. See the attached .tex file which produces
the same error.  If you will load newtxmath via
Document->Settings->Latex Preamble and set the Math Font in
Document->Settings->Fonts->Math to automatic, there will be no error
(see the attached LyX file)

Regards,
Udi


Thanks, awesome!

Maybe a solution would be if LyX loads fonts later in general? Or would
that lead to other problems?

Daniel


I filed a bug report at https://www.lyx.org/trac/ticket/12708.


I don't know if it should be considered a bug of LyX.
The error is due to recent changes of the amsmath package.
The maintainer of refstyle should fix this (if he is still active).


Well, at least LyX actually changes the package loading order when math 
fonts are loaded. So, it seems that it could be a bug of LyX.


In any case, it seems that restyle has not been updated for a long time, 
so maybe fixes are unlikely. Hence, LyX has to deal with this in one way 
or another for the time being.


Daniel



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


Re: Broken document

2023-03-16 Thread Udicoudco
On Thu, Mar 16, 2023 at 11:13 AM Daniel  wrote:
>
> On 16/03/2023 08:18, Daniel wrote:
> > On 15/03/2023 15:54, Udicoudco wrote:
> >>
> >>
> >> On Wed, Mar 15, 2023 at 10:57 AM Daniel  >> > wrote:
> >>
> >> Hi!
> >>
> >> I somehow managed to break one of my documents and cannot see
> >> where the
> >> problem is. I have attached a minimal example that I produced after a
> >> longer error hunt (because LyX did not give me helpful error
> >> feedback on
> >> this).
> >>
> >> Does someone have an idea how the error occurred or how I might be
> >> able
> >> to fix it?
> >>
> >> The LaTeX error message does not tell me much and LyX did not even
> >> point
> >> me to the position in the document where the error occurred.
> >>
> >> --- LaTeX Error ---
> >>
> >>   lsttxt= \RSlsttxt}
> >>
> >> I've run across a `}' that doesn't seem to match anything.
> >> For example, `\def\a#1{...}' and `\a}' would produce
> >> this error. If you simply proceed now, the `\par' that
> >> I've just inserted will cause me to report a runaway
> >> argument that might be the root of the problem. But if
> >> your `}' was spurious, just type `2' and it will go away.
> >>
> >> --- End ---
> >>
> >>
> >>
> >> You get the error because you load amsmath (it is loaded via
> >> newtxmath) before refstyle. See the attached .tex file which produces
> >> the same error.  If you will load newtxmath via
> >> Document->Settings->Latex Preamble and set the Math Font in
> >> Document->Settings->Fonts->Math to automatic, there will be no error
> >> (see the attached LyX file)
> >>
> >> Regards,
> >> Udi
> >
> > Thanks, awesome!
> >
> > Maybe a solution would be if LyX loads fonts later in general? Or would
> > that lead to other problems?
> >
> > Daniel
>
> I filed a bug report at https://www.lyx.org/trac/ticket/12708.

I don't know if it should be considered a bug of LyX.
The error is due to recent changes of the amsmath package.
The maintainer of refstyle should fix this (if he is still active).

Regards,
Udi
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Broken document

2023-03-16 Thread Daniel

On 16/03/2023 08:18, Daniel wrote:

On 15/03/2023 15:54, Udicoudco wrote:



On Wed, Mar 15, 2023 at 10:57 AM Daniel > wrote:


    Hi!

    I somehow managed to break one of my documents and cannot see 
where the

    problem is. I have attached a minimal example that I produced after a
    longer error hunt (because LyX did not give me helpful error
    feedback on
    this).

    Does someone have an idea how the error occurred or how I might be 
able

    to fix it?

    The LaTeX error message does not tell me much and LyX did not even
    point
    me to the position in the document where the error occurred.

    --- LaTeX Error ---

      lsttxt    = \RSlsttxt}

    I've run across a `}' that doesn't seem to match anything.
    For example, `\def\a#1{...}' and `\a}' would produce
    this error. If you simply proceed now, the `\par' that
    I've just inserted will cause me to report a runaway
    argument that might be the root of the problem. But if
    your `}' was spurious, just type `2' and it will go away.

    --- End ---



You get the error because you load amsmath (it is loaded via 
newtxmath) before refstyle. See the attached .tex file which produces 
the same error.  If you will load newtxmath via 
Document->Settings->Latex Preamble and set the Math Font in 
Document->Settings->Fonts->Math to automatic, there will be no error 
(see the attached LyX file)


Regards,
Udi


Thanks, awesome!

Maybe a solution would be if LyX loads fonts later in general? Or would 
that lead to other problems?


Daniel


I filed a bug report at https://www.lyx.org/trac/ticket/12708.

Daniel

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


Re: Create a shortcut to insert the frames separator for beamer documents

2023-03-16 Thread Kornel Benko
Am Wed, 15 Mar 2023 22:54:14 -0400
schrieb "Paul A. Rubin" :

> On 3/15/23 12:46, Ehud Behar wrote:
> > Just created it.
> > The message pane says "Unknown function. Warning: unknown command 
> > definition 'newframe'
> >
> > Are you sure it is this name for the function?
> Sorry, I forgot that long ago I set up the "newframe" command for this 
> purpose. I have the attached default.def file parked in ~/.lyx/commands 
> (on my Linux Mint system). If you already have a customized default.def 
> file under your home directory, you can just add the lines in mine to 
> your file.
> 
> Paul

There is a problem with the path to default.def.

The use of this file does not consider the 'userdir' option.

Kornel


pgpmzjLc45nuq.pgp
Description: Digitale Signatur von OpenPGP
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Broken document

2023-03-16 Thread Daniel

On 15/03/2023 15:54, Udicoudco wrote:



On Wed, Mar 15, 2023 at 10:57 AM Daniel > wrote:


Hi!

I somehow managed to break one of my documents and cannot see where the
problem is. I have attached a minimal example that I produced after a
longer error hunt (because LyX did not give me helpful error
feedback on
this).

Does someone have an idea how the error occurred or how I might be able
to fix it?

The LaTeX error message does not tell me much and LyX did not even
point
me to the position in the document where the error occurred.

--- LaTeX Error ---

      lsttxt    = \RSlsttxt}

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

--- End ---



You get the error because you load amsmath (it is loaded via newtxmath) 
before refstyle. See the attached .tex file which produces the same 
error.  If you will load newtxmath via Document->Settings->Latex 
Preamble and set the Math Font in Document->Settings->Fonts->Math to 
automatic, there will be no error (see the attached LyX file)


Regards,
Udi


Thanks, awesome!

Maybe a solution would be if LyX loads fonts later in general? Or would 
that lead to other problems?


Daniel

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


Re: Create a shortcut to insert the frames separator for beamer documents

2023-03-16 Thread Daniel

On 15/03/2023 16:49, Ehud Behar wrote:
I want to create a shortcut to insert the short thin red line that 
separates frames when the document class is Beamer.


I know how to create shortcuts, I just don't know the name of the 
"function" that actually inserts this red line.


In the lyx file this red line is called "Separator plain".

If you really think of it, I don't know the function name because I also 
don't know how to insert it from the menus, so you are welcome to tell 
me how to do that as well.


I think it depends on your LyX version where to find the menu entry.

It used to be possible to insert a separator from the "Edit" menu.

In recent versions it was replaced by menus called "Separated Frame 
Above" and "Separated Frame Below" in the "Insert" menu. It is already 
bound to the Alt+P Alt+Return and Alt+P Return, respectively.


You can see the function by opening the Messages Pane (View menu) and 
executing the function. Spoiler ahead! It is


command-alternatives environment-split ; environment-split previous

The menu entries disappear when the Standard environment is used. I 
guess it would be better to show them at all times but gray them out 
when not accessible. In that way the user gets accustomed to that there 
are such menu entries and where those menu entries are. Also, for some 
reason when you are in the "Frame Title" inset, then the command 
disappears. I guess it would be better to make it accessible in that 
case or at least only gray it out.


(I made the suggestion elsewhere that these separators should be 
disbanded and instead frame content should be distinguished from 
non-content by indentation. But it is yet to be seen whether this works 
and will be taken up by the developers.)


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