Re: Formatting/Equation numbering

2022-12-04 Thread Richard Kimberly Heck

On 12/4/22 19:57, Dan wrote:
I know how I can number equations, but I would like the equations to 
be in the following type of format:

Eq. 1.1 (equation)

Eq. 1.2 (equation)
indented slightly.  IMO I don't like having them centered like the 
usual Edit, Math, NumberWholeFormula method does.


I know LaTeX supports defining a user formatting code but I don't know 
how to do that in LyX.


There are two relevant document class options:

* "fleqn" (flush left equation), which aligns the equation to the left. 
Used by itself, though, it leaves the equation number on the right.


* "leqno" (left equation number), which puts the equation number on the 
left. Used by itself, it centers the equation still.


BUT, if you use BOTH options, then you get what you want.

How to do it in LyX? Look at Document> Settings> Document Class. The 
"Custom" field allows you to enter class options. In your case, you 
could enter "fleqn,leqno". Any class options can be entered here.


However, LyX also has native support for this under Document> Settings> 
Math Options. The Formula Numbering Side option is self-explanatory. You 
would want "Left". This adds "leqno" behind the scenes. The other one is 
the Indent Formulas checkbox. The tooltip explains what it does: It 
indents instead of centering equations. So you can check that. If you 
leave it at "Default", then it just adds "fleqn"; you can also, however, 
control the indent here by selecting "Custom" and entering a length 
(which gets set as the \mathindent).


This is all in the Math manual, under Help.

Riki


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


Formatting/Equation numbering

2022-12-04 Thread Dan
I know how I can number equations, but I would like the equations to be in
the following type of format:
Eq. 1.1 (equation)

Eq. 1.2 (equation)
indented slightly.  IMO I don't like having them centered like the usual
Edit, Math, NumberWholeFormula method does.

I know LaTeX supports defining a user formatting code but I don't know how
to do that in LyX.

Thanks!

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


Re: older lyx file will not open

2022-12-04 Thread Ivan Werning
Solved!

Thanks so much Stephan! This was it.

I installed Python by way of...
 xcode-select --install
and I now have Python 3.9.6

I'm sorry I didn't notice the previously reported Ventura issue, as I only
ran into this problem when I was trying to convert a file. Newer files were
loading. So I didn't search for Ventura issues in the forum.

LyX rocks and this mail list rocks. Thanks again Stephan.

-Iván


On Sun, Dec 4, 2022 at 6:10 PM Stephan Witt  wrote:

> Am 04.12.2022 um 23:56 schrieb Ivan Werning :
> >
> > Hi
> >
> > Help! I'm having trouble with an important older LyX file not opening in
> LyX.
> >
> > I'm a long time LyX user here. I am having trouble with an old file from
> 2014 that was created by LyX 2.1. I'm on a 2017 intel mac running OS 13.0.1
> (Ventura).
>
> Hi Ivan,
>
> did you upgrade macOS and what was your previous version?
>
> Most of the time users did an upgrade from macOS 12.3 or earlier. The
> upgrade process removes one crucial utility (python) from the system and
> replaces it by a new one which asks the users for download and install of
> the newer version. One has to notice it, interpret is and agree with.
>
> See the ticket in LyX’s bug tracker: https://www.lyx.org/trac/ticket/12523
>
> To check for this you may open a Terminal session and type the command
> python3 -V
>
> Either you get a version info or you’ll be asked to download and install
> the real software. This is required to keep LyX working.
>
> BR,
> Stephan
>
> > When I try to open it in 2.3.6.2 I get filename.lyx  is from an older
> version of LyX and the lyx2lyx script failed to convert it.
> >
> > #LyX 2.1 created this file. For more info see http://www.lyx.org/
> > \lyxformat 474
> > \begin_document
> > \begin_header
> > \textclass article
> >
> >
> > I tried downloading earlier versions of Lyx to no avail. I completely
> failed with 2.1.5.  Here when I run LyX I am asked to reconfigure. I do,
> but I'm not sure it works.
> >
> > The error messages I get are different:
> >
> > The module basic has been requested by
> > this document but has not been found in the list of
> > available modules. If you recently installed it, you
> > probably need to reconfigure LyX.
> >
> > Hit OK then...
> >
> > The module theorems-ams has been requested by
> > this document but has not been found in the list of
> > available modules. If you recently installed it, you
> > probably need to reconfigure LyX.
> >
> > The module natbib has been requested by
> > this document but has not been found in the list of
> > available modules. If you recently installed it, you
> > probably need to reconfigure LyX.
> >
> > And it finally opens the file with a Parse error box complaining "Layout
> `Proposition' was not found."
> >
> > At this point I have the file fully open, but it will not compile. Nor
> do I know what to do with it to take it to a newer version. I get no Export
> options and I tried copy pasting into the newer LyX and that did not work
> (I get again "[filname] is from an older version of LyX and the lyx2lyx
> script failed to convert it.")
> >
> > Any help would be much appreciated! Thanks.
> >
> > -Ivan
> >
> > --
> > 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: older lyx file will not open

2022-12-04 Thread Stephan Witt
Am 04.12.2022 um 23:56 schrieb Ivan Werning :
> 
> Hi
> 
> Help! I'm having trouble with an important older LyX file not opening in LyX.
> 
> I'm a long time LyX user here. I am having trouble with an old file from 2014 
> that was created by LyX 2.1. I'm on a 2017 intel mac running OS 13.0.1 
> (Ventura).

Hi Ivan,

did you upgrade macOS and what was your previous version?

Most of the time users did an upgrade from macOS 12.3 or earlier. The upgrade 
process removes one crucial utility (python) from the system and replaces it by 
a new one which asks the users for download and install of the newer version. 
One has to notice it, interpret is and agree with.

See the ticket in LyX’s bug tracker: https://www.lyx.org/trac/ticket/12523

To check for this you may open a Terminal session and type the command
python3 -V

Either you get a version info or you’ll be asked to download and install the 
real software. This is required to keep LyX working.

BR,
Stephan

> When I try to open it in 2.3.6.2 I get filename.lyx  is from an older version 
> of LyX and the lyx2lyx script failed to convert it.
> 
> #LyX 2.1 created this file. For more info see http://www.lyx.org/
> \lyxformat 474
> \begin_document
> \begin_header
> \textclass article
> 
> 
> I tried downloading earlier versions of Lyx to no avail. I completely failed 
> with 2.1.5.  Here when I run LyX I am asked to reconfigure. I do, but I'm not 
> sure it works.
> 
> The error messages I get are different: 
> 
> The module basic has been requested by
> this document but has not been found in the list of
> available modules. If you recently installed it, you
> probably need to reconfigure LyX.
> 
> Hit OK then...
> 
> The module theorems-ams has been requested by
> this document but has not been found in the list of
> available modules. If you recently installed it, you
> probably need to reconfigure LyX.
> 
> The module natbib has been requested by
> this document but has not been found in the list of
> available modules. If you recently installed it, you
> probably need to reconfigure LyX.
> 
> And it finally opens the file with a Parse error box complaining "Layout 
> `Proposition' was not found."
> 
> At this point I have the file fully open, but it will not compile. Nor do I 
> know what to do with it to take it to a newer version. I get no Export 
> options and I tried copy pasting into the newer LyX and that did not work (I 
> get again "[filname] is from an older version of LyX and the lyx2lyx script 
> failed to convert it.")
> 
> Any help would be much appreciated! Thanks.
> 
> -Ivan
> 
> -- 
> 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: Can you reproduce this bug?

2022-12-04 Thread Joel Kulesza
On Sun, Dec 4, 2022 at 1:39 PM Scott Kostyshak  wrote:

> Dear all,
>
> Can you reproduce this bug on your system?
>
>   https://www.lyx.org/trac/ticket/12435
>
> It's helpful to know the type of systems on which it can be reproduced.
> Specifically, it will be helpful to figure out whether the bug only
> surfaces on certain operating systems, and only with certain
> configurations.
>
> Here is the recipe to reproduce the bug:
>
>   1. Maximize (non-fullscreen) the window
>   2. Enter Full screen mode
>   3. Exit Full screen.
>
> After step 3, does the LyX window return to the state after step (1)?
> i.e., is the window maximized?
>
> If you try to reproduce it, please state:
>
> 1. Can you reproduce the bug?
> 2. Your operating system and version number (version number is
>especially helpful for macOS users).
> 3. Copy/paste the info from Help > About.
>
>
> Here's my own responses to the 3 questions:
>

1. Somewhat.  When I go "full screen" from half-width, I restore
correctly.  When I go "full screen" from full width, it returns to
something like half width (not the previous full width).  This is observed
with BetterTouchTool running.  If I quit it, then both approaches appear to
restore correctly.
2. macOS 12.5
3. Version 2.4.0-alpha3
(February 14, 2021)

Qt Version (run-time): 5.12.9
Qt Version (compile-time): 5.12.9
Python detected: python3 -tt

Hope this helps,
Joel
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


older lyx file will not open

2022-12-04 Thread Ivan Werning
Hi

Help! I'm having trouble with an important older LyX file not opening in
LyX.

I'm a long time LyX user here. I am having trouble with an old file from
2014 that was created by LyX 2.1. I'm on a 2017 intel mac running OS 13.0.1
(Ventura).

When I try to open it in 2.3.6.2 I get filename.lyx  is from an older
version of LyX and the lyx2lyx script failed to convert it.

#LyX 2.1 created this file. For more info see http://www.lyx.org/
\lyxformat 474
\begin_document
\begin_header
\textclass article


I tried downloading earlier versions of Lyx to no avail. I completely
failed with 2.1.5.  Here when I run LyX I am asked to reconfigure. I do,
but I'm not sure it works.

The error messages I get are different:

The module basic has been requested by

this document but has not been found in the list of

available modules. If you recently installed it, you

probably need to reconfigure LyX.


Hit OK then...


The module theorems-ams has been requested by

this document but has not been found in the list of

available modules. If you recently installed it, you

probably need to reconfigure LyX.


The module natbib has been requested by

this document but has not been found in the list of

available modules. If you recently installed it, you

probably need to reconfigure LyX.


And it finally opens the file with a Parse error box complaining "Layout
`Proposition' was not found."


At this point I have the file fully open, but it will not compile. Nor do I
know what to do with it to take it to a newer version. I get no Export
options and I tried copy pasting into the newer LyX and that did not work
(I get again "[filname] is from an older version of LyX and the lyx2lyx
script failed to convert it.")


Any help would be much appreciated! Thanks.


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


Re: Un-spanning multicolumns [RESOLVED]

2022-12-04 Thread Jean-Marc Lasgouttes

Le 03/12/2022 à 01:09, Joel Kulesza a écrit :
On Thu, Dec 1, 2022 at 9:41 AM Jean-Marc Lasgouttes > wrote:


Le 01/12/2022 à 17:35, Rich Shepard a écrit :
 > On Thu, 1 Dec 2022, Jean-Marc Lasgouttes wrote:
 >
 >> Note that Undo is not supposed to do something after you close the
 >> file (there is a ticket asking for permanent undo, but this does
not
 >> exist now).
 >
 > JMarc,
 >
 > I assumed that was the case; it's certainly reasonable, IMO.

Do you know of programs that do store undo information, BTW?


My submission: vim.


Good to know, thanks.

JMarc

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


Can you reproduce this bug?

2022-12-04 Thread Scott Kostyshak
Dear all,

Can you reproduce this bug on your system?

  https://www.lyx.org/trac/ticket/12435

It's helpful to know the type of systems on which it can be reproduced.
Specifically, it will be helpful to figure out whether the bug only
surfaces on certain operating systems, and only with certain
configurations.

Here is the recipe to reproduce the bug:

  1. Maximize (non-fullscreen) the window
  2. Enter Full screen mode
  3. Exit Full screen.

After step 3, does the LyX window return to the state after step (1)?
i.e., is the window maximized?

If you try to reproduce it, please state:

1. Can you reproduce the bug?
2. Your operating system and version number (version number is
   especially helpful for macOS users).
3. Copy/paste the info from Help > About.


Here's my own responses to the 3 questions:

1. No. (the window is correctly restored as maximized after 3 for me).
2. Ubuntu 22.04.
3. Pasted info is below:
  
   Version 2.4.0dev
   (Sunday, December 4, 2022)
   
   Built from git commit hash abd69b06
   Qt Version (run-time): 5.15.3 on platform xcb
   Qt Version (compile-time): 5.15.3
   Python detected: python3 -tt

Thanks!

Scott


signature.asc
Description: PGP signature
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Copying and pasting equations from LyX into other packages?

2022-12-04 Thread Jean-Marc Lasgouttes

Le 04/12/2022 à 12:43, oliver.b...@maths.ox.ac.uk a écrit :

Hello,

Does LyX have an option to copy and paste a piece of LaTeX code in raw 
format, i.e. removing any trace of macros that were used to generate the 
code?


Hello,

This functionality does not exist yet, but indeed it would be doable 
(either pasting, or transforming an expression in place).


I would like to be able to use a command to copy and paste the LaTeX 
code for the equation /as it is formatted/, so that any traces of the 
macros in the source code are removed in doing so.  I use LyX all the 
time for my mathematical typesetting work and I have found macros to be 
extremely useful, but the downside of this is that the equations cannot 
be pasted into other software without some way of defining the macros or 
creating preambles in those packages. The other software packages I have 
in mind are ones that have a plugin to support LaTeX but aren’t designed 
with it in mind (e.g. GeoGebra, Blender, InkScape etc.).


Are there any plans to implement such a feature (and how much would it 
cost to implement such a feature if not)?


There are no current plans for that, that I know of. Indeed, paying 
someone to do it may help to materialize it sooner. I suggest that you 
create a ticket on www.lyx.org/trac. I will forward it to the developers 
list to try to find someone willing to implement it.


JMarc

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


Copying and pasting equations from LyX into other packages?

2022-12-04 Thread oliver.bond
Hello,

 

Does LyX have an option to copy and paste a piece of LaTeX code in raw
format, i.e. removing any trace of macros that were used to generate the
code?

 

For an example of what I mean, I have a piece of documentation in LyX where
the code is given by 

 

0=\dfrac{\partial^{2}\inTheSolid{\dimensionless A}}{\partial\dimensionless
x^{2}}+\dfrac{\partial^{2}\inTheSolid{\dimensionless
A}}{\partial\dimensionless y^{2}}

 

where inTheSolid and dimensionless are both macros (which themselves depend
on other macros) created so that the text looks like this:

 



 

I would like to be able to use a command to copy and paste the LaTeX code
for the equation as it is formatted, so that any traces of the macros in the
source code are removed in doing so.  I use LyX all the time for my
mathematical typesetting work and I have found macros to be extremely
useful, but the downside of this is that the equations cannot be pasted into
other software without some way of defining the macros or creating preambles
in those packages. The other software packages I have in mind are ones that
have a plugin to support LaTeX but aren't designed with it in mind (e.g.
GeoGebra, Blender, InkScape etc.).

 

Are there any plans to implement such a feature (and how much would it cost
to implement such a feature if not)?

 

Best regards,

- Oliver Bond.

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