Re: Add options to begin{enumerate}

2022-07-03 Thread tush via lyx-users
On 01/07/2022 12:11, Ricardo Berlasso via lyx-users wrote:

>Check this article:
>https://frommindtotype.wordpress.com/2020/02/27/lyx-another-way-to-change-numbered-lists/
>
>It shows how to change numbered lists both globally (preamble code) and for
>particular lists (through local layout and the creation of a new
>environment).
>
>Regards,
>Ricardo

A great blog and a great book. Thanks a lot for sharing it. It has some 
beautiful nice lyx gems.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-03 Thread tush via lyx-users
On 02/07/2022 20:54, Daniel via lyx-users wrote:
>Unfortunately, this is not as straight forward in LyX as in many other
>word processors. The (minimal) LaTeX part is described in section
>3.3.7.1 of the "User's Guide" (from the Help menu).
>
>/Daniel

Thanks very much! This is exactly what I was looking for.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Add options to begin{enumerate}

2022-07-02 Thread Daniel

On 30/06/2022 23:23, tush via lyx-users wrote:
The enumitem package allows the user to change the layout of the 
enumerate, itemize and description environments.


The change takes effect in the following way:

\begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
\item text...
\item etc.
\end{enumerate}

I want to insert such ERT code to my lists in LyX.

LyX allows the user to add such argument to each item, but this is not 
the same thing.


As I see it, if I want to introduce such a change to my lists inside 
LyX, I have to make a change to the Styles defined in the file 
stdlists.inc in the layouts directory. Is that correct?


Unfortunately, this is not as straight forward in LyX as in many other 
word processors. The (minimal) LaTeX part is described in section 
3.3.7.1 of the "User's Guide" (from the Help menu).


/Daniel

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


Re: Add options to begin{enumerate}

2022-07-01 Thread Ricardo Berlasso
El jue, 30 jun 2022 a las 23:23, tush via lyx-users (<
lyx-users@lists.lyx.org>) escribió:

> The enumitem package allows the user to change the layout of the
> enumerate, itemize and description environments.
>
> The change takes effect in the following way:
>
> \begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
> \item text...
> \item etc.
> \end{enumerate}
>
> I want to insert such ERT code to my lists in LyX.
>
> LyX allows the user to add such argument to each item, but this is not the
> same thing.
>
> As I see it, if I want to introduce such a change to my lists inside LyX,
> I have to make a change to the Styles defined in the file stdlists.inc in
> the layouts directory. Is that correct?
>

Check this article:

https://frommindtotype.wordpress.com/2020/02/27/lyx-another-way-to-change-numbered-lists/

It shows how to change numbered lists both globally (preamble code) and for
particular lists (through local layout and the creation of a new
environment).

Regards,
Ricardo



> --
> 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


Add options to begin{enumerate}

2022-06-30 Thread tush via lyx-users
The enumitem package allows the user to change the layout of the enumerate, 
itemize and description environments.

The change takes effect in the following way:

\begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW
\item text...
\item etc.
\end{enumerate}

I want to insert such ERT code to my lists in LyX.

LyX allows the user to add such argument to each item, but this is not the same 
thing.

As I see it, if I want to introduce such a change to my lists inside LyX, I 
have to make a change to the Styles defined in the file stdlists.inc in the 
layouts directory. Is that correct?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: lyx-2.4?

2022-06-30 Thread Jean-Marc Lasgouttes

Le 29/06/2022 à 17:57, Lorenzo Bertini a écrit :

Il 29/06/22 15:23, Anand Rangarajan ha scritto:
Does anyone know the plans for releasing lyx-2.4? Have been stuck on 
alpha3 for more than a year. I know we went through covid but stilI... 
I really don't want to have overleaf as my only option.


Anand



I would love to know too, 2.4 introduces many critical features for me.

If you don't want to wait and don't mind compiling, the master branch is 
very stable, especially at this stage.


Hello,

I think we all agree that 2.4 is long overdue. However, sometimes real 
life interferes. Our release manager has difficulties to find free time, 
and in general the team is a bit thin these days.


The latest plan was to have a quick beta1, but even that did not happen yet.

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


Re: lyx-2.4?

2022-06-29 Thread Lorenzo Bertini

Il 29/06/22 15:23, Anand Rangarajan ha scritto:
Does anyone know the plans for releasing lyx-2.4? Have been stuck on 
alpha3 for more than a year. I know we went through covid but stilI... I 
really don't want to have overleaf as my only option.


Anand



I would love to know too, 2.4 introduces many critical features for me.

If you don't want to wait and don't mind compiling, the master branch is 
very stable, especially at this stage.


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


lyx-2.4?

2022-06-29 Thread Anand Rangarajan
Does anyone know the plans for releasing lyx-2.4? Have been stuck on alpha3
for more than a year. I know we went through covid but stilI... I really
don't want to have overleaf as my only option.

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


Re: Entering special charcter with keyboard shortcut

2022-06-28 Thread Paul A. Rubin

On 6/28/22 16:37, tush via lyx-users wrote:
I want to insert with a keyboard shortcut a special character that I 
use a lot in my document. Until now it was saved in my system 
clipboard and I would just paste it wherever I wanted, but I want to 
use a keyboard shortcut for that.


For example, I want to insert this symbol: *№* (Unicode U+2116 or 
 in html).


How can I do it?

I tried to do it as seen in the attached picture but LyX gives the 
message Unknown or invalid LyX function.


Try binding "unicode-insert 0x2116" (without the quotes) to your key of 
choice.


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


Entering special charcter with keyboard shortcut

2022-06-28 Thread tush via lyx-users
I want to insert with a keyboard shortcut a special character that I use a lot 
in my document. Until now it was saved in my system clipboard and I would just 
paste it wherever I wanted, but I want to use a keyboard shortcut for that.

For example, I want to insert this symbol: № (Unicode U+2116 or  in 
html).

How can I do it?

I tried to do it as seen in the attached picture but LyX gives the message 
Unknown or invalid LyX function.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Templates storage

2022-06-28 Thread Rich Shepard

On Tue, 28 Jun 2022, Daniel wrote:


But you could also do it the other way around: move all the templates you
need to your user directory and then change the default template path (in
Preferences > Paths).


Daniel,

That will work.


In the next mayor version (2.4), LyX will show both user and system
templates in one dialog, so you can just put your own ones in the user
directory and leave the system ones where they are.


Excellent idea.

Regards,

Rich

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


Re: Templates storage

2022-06-28 Thread Daniel

On 27/06/2022 17:46, Rich Shepard wrote:
Here, the default LyX template directory is /usr/share/lyx/templates. I 
have
some templates in ~/.lyx/templates/. If I move the latter to the former 
will

I lose them in an upgrade?

TIA,

Rich


I am not sure about losing them when upgrading.

But you could also do it the other way around: move all the templates 
you need to your user directory and then change the default template 
path (in Preferences > Paths).


In the next mayor version (2.4), LyX will show both user and system 
templates in one dialog, so you can just put your own ones in the user 
directory and leave the system ones where they are.


Daniel

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


Re: Tufte Handout class handling of citations broken by LyX v2.3.6.2

2022-06-27 Thread Trevor Jenkins
It appears (in that it works) that the solution to my issue back in April 2022 
is

Document > Settings > Local Layout 

Input ../citeengines/basic.citeengine

Validate

Hey presto. New LyX documents using class Tufte Handout that contain citations 
in them are again formatted as expected. 

Regards, Trevor.

<>< Re: deemed!

> On 29 Apr 2022, at 00:18, Trevor Jenkins  wrote:
> 
> I have a number of (old) LyX files that use the Tufte Handout class 
> (tufte-handout.cls). In LyX version 2.0 these were formatted correctly that 
> is the citation of a reference appears in marginalia; numbered in sequence 
> with formal sidenotes. However, for new and modified files the most recent 
> LyX version 2.3.6.2 breaks this behaviour! A reference is placed in the text 
> and the citation only appears in the bibliography at the end of the final 
> document. Depending on exactly which style of reference is selected via 
> Insert > Citation the reference may also be incorrect and appear as 
> {author?}. But none of the styles available via Insert > Citation give the 
> documented result that Tufte Handout is supposed to produce.
> 
> This breakage makes LyX useless for me as I only use Tufte Handout (and have 
> no interest or desire to use a different LaTeX class in its place).
> 
> Regards, Trevor.
> 
> <>< Re: deemed!
> 

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


Question-answer font style module?

2022-06-27 Thread Rich Shepard

The 2nd edition of The LaTeX Companion is quite old, and the 3rd edition is
not expected until the end of the year. Is there a module with different
font style environments for questions (bold) and answers (default)?

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


Templates storage

2022-06-27 Thread Rich Shepard

Here, the default LyX template directory is /usr/share/lyx/templates. I have
some templates in ~/.lyx/templates/. If I move the latter to the former will
I lose them in an upgrade?

TIA,

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


Re: Rotate text

2022-06-27 Thread Udicoudco
Hello Carlos.

To rotate a text in the middle of a paragraph go to
Document->Settings->Modules.
In there add a module called GraphicBoxes. Afterwards go to Insert->Custom
Insets and click on RotateBox.
Now there should be an inset layout with an argument titled "angle". In the
argument write the desired angle that you want the text to be rotated, and
inside the layout itself the text to be rotated. For more information and
examples you can read  section 5.8.1. of the Embedded Objects guide, which
you can find in Help-> Embedded Object.

Regards,
Udi

‫בתאריך יום ב׳, 27 ביוני 2022 ב-18:09 מאת ‪Carlos Knauer‬‏ <‪
carlos.kna...@gmail.com‬‏>:‬

> Can I rotate text in LyX ? How do I do ?
> --
> 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: Rotate text

2022-06-27 Thread Ricardo Berlasso
El lun, 27 jun 2022 a las 17:09, Carlos Knauer ()
escribió:

> Can I rotate text in LyX ? How do I do ?
>

That depends on what you need. It's quite easy to rotate table cell content
in an arbitrary angle: just go to the table properties. So, if you need to
rotate just short texts, use a table of one cell and no borders. If you
need something else, please describe what you need in more detail.

Regards,
Ricardo


> --
> 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


Rotate text

2022-06-27 Thread Carlos Knauer
Can I rotate text in LyX ? How do I do ?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Support for xfig graphics (Solved)

2022-06-25 Thread Jean-Marc Lasgouttes

Le 25/06/2022 à 17:42, Dr Eberhard W Lisse a écrit :

Well, I see two things :-)-O

You didn't include it as graphic but as external file, so it does not
preview in the lyX file.  Cosmetic, but I wonder why one would do that.


Why one who do what? Use the external inset machinery? It allows to 
handle the case where xfig produces both a LaTeX file (with the text) 
and a pdf file (with the image).



And indeed the stock fig2pdftex.py lacks a shebang on my Mac which I
would not consider a feature so I have raised it as

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

on the tracker.


Could you elaborate on why this caused the issue?

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


Re: Support for xfig graphics (Solved)

2022-06-25 Thread Dr Eberhard W Lisse

Well, I see two things :-)-O

You didn't include it as graphic but as external file, so it does not
preview in the lyX file.  Cosmetic, but I wonder why one would do that.

And indeed the stock fig2pdftex.py lacks a shebang on my Mac which I
would not consider a feature so I have raised it as

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

on the tracker.

greetings, el

On 2022-06-21 20:08 , Rudi Gaelzer wrote:
> On terça-feira, 21 de junho de 2022 14:26:39 -03 Rudi Gaelzer wrote:
>> Indeed there is:
>>
>> 14:20:04.072: Previewing ...
>> 14:20:04.076: (buffer-view)
>> 14:20:04.085: python -tt "/usr/share/lyx/scripts/fig_copy.py"
>> "/home/rudi/temp/ ufrgs/Coulomb_Law.fig" "/tmp/lyx_tmpdir.DFELBfPgzbQo/
>> lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig"
>> 14:20:04.104: Fatal Python error: init_sys_streams: can't initialize sys
>> standard streams
>>
>> There's a fatal error with python.  Is that it?  I had to force the
>> standard distribution for python in .bashrc with:
>>
>> alias python='/usr/bin/python3'
>>
>> otherwise the standard would fall to the Intel distribution.
>
> It seems that the problem was indeed a mix-up with different python
> distributions.  Got rid of the Intel python distribution and now the
> internal conversion of Xfig files is working again.

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


Re: Conversion failure for older format

2022-06-24 Thread Jean-Marc Lasgouttes

Le 24/06/2022 à 08:28, Dr Eberhard Lisse a écrit :

He did address it by complete path prefixed by python2.

I would think the scrip itself uses python3 and therefor works.



I saw that indeed.


Thanks,

JMarc



el

On 2022-06-21 12:06 , Jean-Marc Lasgouttes wrote:

Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :

That successfully converted the original to format 544, which the
frontend was able to render.  Is it possible that there's a bug in
the automagic process?
I'm running the installation from the rpm packages distributed for
Fedora core 35/36.


Could it be that you have another version of lyx2lyx on your path?

JMarc


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


Re: Conversion failure for older format

2022-06-24 Thread Dr Eberhard Lisse

He did address it by complete path prefixed by python2.

I would think the scrip itself uses python3 and therefor works.

el

On 2022-06-21 12:06 , Jean-Marc Lasgouttes wrote:

Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :

That successfully converted the original to format 544, which the
frontend was able to render.  Is it possible that there's a bug in
the automagic process?
I'm running the installation from the rpm packages distributed for
Fedora core 35/36.


Could it be that you have another version of lyx2lyx on your path?

JMarc


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


Re: Support for xfig graphics

2022-06-22 Thread José Abílio Matos
On Wednesday, 22 June 2022 03.54.53 WEST Steve Litt wrote:
> That can't be right. Python 2 has been deprecated for years. I'm sure
> LyX gives you the choice to use Python 3.

What I mean here is that LyX can still use python 2 as the python version. In 
the autodetection stage, in lyx 2.3, it can happen that lyx picks python2 as 
the python version. Although, for example, in Fedora I carry a patch where I 
force python3, and it has always worked.

In LyX 2.4 the autodetection always tries to pick python3 first although it 
(still) supports python2 and it will use as fallback.

After LyX 2.4 the support for python 2 will be removed from the code base. The 
need to currently write code is compatible with python 2 and 3 is a burden.

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


Re: Support for xfig graphics

2022-06-21 Thread Steve Litt
José Abílio Matos said on Tue, 21 Jun 2022 17:29:48 +0100


>LyX is choosing python2 as the python version and since that python2
>does not work then the converters that use python fail.

That can't be right. Python 2 has been deprecated for years. I'm sure
LyX gives you the choice to use Python 3.

SteveT

Steve Litt 
March 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Conversion failure for older format

2022-06-21 Thread Rudi Gaelzer
On terça-feira, 21 de junho de 2022 13:27:12 -03 José Abílio Matos wrote:
> 
> This is problematic on so many levels. :-)
> Notice that your python2 is using python3's standard library and so the
> disaster is unavoidable.
> 
> Something is wrong with your python2 installation because that should not
> happen in a regular Fedora installation. I am not even sure if that could
> have been caused by setting PYTHONPATH...
> 
> I have just tested a similar call like the one above and it works for me.
> 
> One way to solve the problem in lyx is to install the
> python-unversioned-command package.
> That will make /usr/bin/python point to python3 because currently lyx is
> getting python2 as the python version and thus the error that you get. But
> again in this case this is just a workaround the problem that you have.
> 
> I hope that this helps.

There was indeed a conflict between two python distributions installed in my 
system: the distribution from Fedora and Intel python.  This is also related 
to my other thread (Support for xfig graphics).
I removed the intel distribution and now it seems that everything is working 
as it should.

Thank you.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



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


Re: Support for xfig graphics (Solved)

2022-06-21 Thread Rudi Gaelzer
On terça-feira, 21 de junho de 2022 14:26:39 -03 Rudi Gaelzer wrote:
> Indeed there is:
> 
> 14:20:04.072: Previewing ...
> 14:20:04.076: (buffer-view)
> 14:20:04.085: python -tt "/usr/share/lyx/scripts/fig_copy.py"
> "/home/rudi/temp/ ufrgs/Coulomb_Law.fig" "/tmp/lyx_tmpdir.DFELBfPgzbQo/
> lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig"
> 14:20:04.104: Fatal Python error: init_sys_streams: can't initialize sys
> standard streams
> 
> There's a fatal error with python.  Is that it?
> I had to force the standard distribution for python in .bashrc with:
> alias python='/usr/bin/python3'
> otherwise the standard would fall to the Intel distribution.

It seems that the problem was indeed a mix-up with different python 
distributions.
Got rid of the Intel python distribution and now the internal conversion of 
Xfig files is working again.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



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


Re: Conversion failure for older format

2022-06-21 Thread José Abílio Matos
On Tuesday, 21 June 2022 17.06.00 WEST Jean-Marc Lasgouttes wrote:
> Are you sure that you do not have another file names "lyx2lyx"
> somewhere? "locate" may be able to determine that.
> 
> JMarc

It is unlikely because lyx always knows the relative location of lyx2lyx.
So even if there are two lyx2lyx in path each lyx versions always use the 
right version.

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


Re: Conversion failure for older format

2022-06-21 Thread José Abílio Matos
On Tuesday, 21 June 2022 13.44.01 WEST Rudi Gaelzer wrote:
> Hits a snag right at the beginning:
> 
> rudi@stix|Plasma Modes>python2 /usr/share/lyx/lyx2lyx/lyx2lyx Langmuir-
> lyxformat-508.lyx > /dev/null
>   File "/usr/lib64/python3.10/site.py", line 93
> print(message, file=sys.stderr)
>^
> SyntaxError: invalid syntax

This is problematic on so many levels. :-)
Notice that your python2 is using python3's standard library and so the 
disaster is unavoidable.

Something is wrong with your python2 installation because that should not 
happen in a regular Fedora installation. I am not even sure if that could have 
been caused by setting PYTHONPATH...

I have just tested a similar call like the one above and it works for me.

One way to solve the problem in lyx is to install the 
python-unversioned-command package.
That will make /usr/bin/python point to python3 because currently lyx is 
getting python2 as the python version and thus the error that you get. But 
again in this case this is just a workaround the problem that you have.

I hope that this helps.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Support for xfig graphics

2022-06-21 Thread José Abílio Matos
On Tuesday, 21 June 2022 14.12.14 WEST Rudi Gaelzer wrote:
> It seems that the support for xfig figures is not working on my system.  See
> the attached files.
> The Xfig file sets the TeX flag for text.

I think that this could be a manifestation of the problem that you have.

LyX is choosing python2 as the python version and since that python2 does not 
work then the converters that use python fail.
-- 
José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Support for xfig graphics

2022-06-21 Thread Rudi Gaelzer
On terça-feira, 21 de junho de 2022 13:09:22 -03 Jean-Marc Lasgouttes wrote:
> Le 21/06/2022 à 15:12, Rudi Gaelzer a écrit :
> > Running:
> > Fedora Core 36 on x64 box
> > KDE Plasma Version: 5.24.5
> > LyX Version 2.3.6.1 (provided by Fedora repo)
> > 
> > It seems that the support for xfig figures is not working on my system. 
> > See the attached files.
> > The Xfig file sets the TeX flag for text.
> 
> Hi again,
> 
> Do you have "transfig" installed?

Affirmative.

> 
> Are there some relevant error messages in the Messages pane?
> 
> JMarc

Indeed there is:

14:20:04.072: Previewing ...
14:20:04.076: (buffer-view)
14:20:04.085: python -tt "/usr/share/lyx/scripts/fig_copy.py" "/home/rudi/temp/
ufrgs/Coulomb_Law.fig" "/tmp/lyx_tmpdir.DFELBfPgzbQo/
lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig"
14:20:04.104: Fatal Python error: init_sys_streams: can't initialize sys 
standard streams
14:20:04.104: Python runtime state: core initialized
14:20:04.104: Traceback (most recent call last):
14:20:04.104:   File "/usr/lib64/python3.10/io.py", line 54, in 
14:20:04.105: ImportError: cannot import name 'text_encoding' from 'io' 
(unknown location)
14:20:04.117: pdflatex  "tes_xfig01.tex"
14:20:04.190: This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) 
(preloaded format=pdflatex)
14:20:04.190:  restricted \write18 enabled.
14:20:04.223: entering extended mode
14:20:04.223: (./tes_xfig01.tex
14:20:04.223: LaTeX2e <2020-10-01> patch level 4
14:20:04.226: L3 programming layer <2021-05-07>
Systemcall.cpp (276): Systemcall: 'python -tt "/usr/share/lyx/scripts/
fig_copy.py" "/home/rudi/temp/ufrgs/Coulomb_Law.fig" "/tmp/
lyx_tmpdir.DFELBfPgzbQo/lyx_tmpbuf25/40_home_rudi_temp_ufrgs_Coulomb_Law.fig"' 
finished with exit code 1
14:20:04.560: Error while exporting format: PDF (pdflatex)Systemcall.cpp (276): 
Systemcall: 'pdflatex  "tes_xfig01.tex"' finished with exit code 1
14:20:59.489: Automatic save done.
14:21:37.497: (dialog-toggle progress)

There's a fatal error with python.  Is that it?
I had to force the standard distribution for python in .bashrc with:
alias python='/usr/bin/python3'
otherwise the standard would fall to the Intel distribution.


-- 
Rudi Gaelzer
Instituto de Física
Departamento de Física
Universidade Federal do Rio Grande do Sul
Av. Bento Gonçalves, 9500
Caixa Postal 15051
91501-970 Porto Alegre - RS
Fone: (51) 3308-6474
FAX: (51) 3308-7286
Usuário de Linux registrado # 153741


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


Re: Support for xfig graphics

2022-06-21 Thread Jean-Marc Lasgouttes

Le 21/06/2022 à 15:12, Rudi Gaelzer a écrit :

Running:
Fedora Core 36 on x64 box
KDE Plasma Version: 5.24.5
LyX Version 2.3.6.1 (provided by Fedora repo)

It seems that the support for xfig figures is not working on my system.  See the
attached files.
The Xfig file sets the TeX flag for text.


Hi again,

Do you have "transfig" installed?

Are there some relevant error messages in the Messages pane?

JMarc

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


Re: Conversion failure for older format

2022-06-21 Thread Jean-Marc Lasgouttes

Le 21/06/2022 à 14:39, Rudi Gaelzer a écrit :

lyx2lyx is a python script.  How do I verify the path for python scripts?
It is not in the paths for shell commands, listed by which.

According to dnf, the only package that provides lyx2lyx is
lyx-common-2.3.6.1-6.fc36.noarch


Are you sure that you do not have another file names "lyx2lyx" 
somewhere? "locate" may be able to determine that.


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


Support for xfig graphics

2022-06-21 Thread Rudi Gaelzer
Running:
Fedora Core 36 on x64 box
KDE Plasma Version: 5.24.5
LyX Version 2.3.6.1 (provided by Fedora repo)

It seems that the support for xfig figures is not working on my system.  See 
the 
attached files.
The Xfig file sets the TeX flag for text.

In the LyX window, the preview fails.  When I try to view the document with 
pdflatex, the following error message appears in the latex log:

! LaTeX Error: File `0_home_rudi_temp_ufrgs_Coulomb_Law.pdftex_t' not found.

Exporting to LaTeX (pdflatex) generates the attached file.  Running on terminal:
rudi@stix|ufrgs>pdflatex tes_xfig01.tex
gives the expected error:
! LaTeX Error: File `Coulomb_Law.pdftex_t' not found.
because the exporter did not generate the Coulomb_Law.pdftex_t file.

-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741
%% LyX 2.3.6.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[brazil]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{graphicx}

\makeatletter

%% LyX specific LaTeX commands.
%% A simple dot to overcome graphicx limitations
\newcommand{\lyxdot}{.}


\makeatother

\usepackage{babel}
\begin{document}
\begin{center}
\resizebox{0.7\textwidth}{!}{\input{Coulomb_Law.pdftex_t}}
\par\end{center}
\end{document}


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


Re: Conversion failure for older format

2022-06-21 Thread Rudi Gaelzer
On segunda-feira, 20 de junho de 2022 13:44:47 -03 José Abílio Matos wrote:
> 
> If you still have the 508 format file could you run:
> 
> $ python2 /usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx >
> /dev/null
> 
> The only difference from your command above is that this is running the
> converter using python2 and not python3 as it happens above.
> 
> For what is worth this will ignore the output because we are only interest
> in any error that can occur...
> 
> > I'm running the installation from the rpm packages distributed for Fedora
> > core 35/36.
> 
> I am using the same and I am the package maintainer for those packages. :-)

Hits a snag right at the beginning:

rudi@stix|Plasma Modes>python2 /usr/share/lyx/lyx2lyx/lyx2lyx Langmuir-
lyxformat-508.lyx > /dev/null
  File "/usr/lib64/python3.10/site.py", line 93
print(message, file=sys.stderr)
   ^
SyntaxError: invalid syntax

-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



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


Re: Conversion failure for older format

2022-06-21 Thread Rudi Gaelzer
On terça-feira, 21 de junho de 2022 07:06:28 -03 Jean-Marc Lasgouttes wrote:
> Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :
> > That successfully converted the original to format 544, which the frontend
> > was able to render.
> > Is it possible that there's a bug in the automagic process?
> > I'm running the installation from the rpm packages distributed for Fedora
> > core 35/36.
> 
> Could it be that you have another version of lyx2lyx on your path?
> 
> JMarc

lyx2lyx is a python script.  How do I verify the path for python scripts?  
It is not in the paths for shell commands, listed by which.

According to dnf, the only package that provides lyx2lyx is 
lyx-common-2.3.6.1-6.fc36.noarch

$>dnf provides */lyx2lyx
Last metadata expiration check: 23:33:59 ago on seg 20 jun 2022 10:00:57.
lyx-common-2.3.6.1-6.fc36.noarch : Common files of lyx
Repo: @System
Matched from:
Filename: /usr/share/lyx/lyx2lyx
Filename: /usr/share/lyx/lyx2lyx/lyx2lyx

lyx-common-2.3.6.1-6.fc36.noarch : Common files of lyx
Repo: fedora
Matched from:
Filename: /usr/share/lyx/lyx2lyx
Filename: /usr/share/lyx/lyx2lyx/lyx2lyx


-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



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


Re: Conversion failure for older format

2022-06-21 Thread Jean-Marc Lasgouttes

Le 20/06/2022 à 15:28, Rudi Gaelzer a écrit :

That successfully converted the original to format 544, which the frontend was
able to render.
Is it possible that there's a bug in the automagic process?
I'm running the installation from the rpm packages distributed for Fedora core
35/36.


Could it be that you have another version of lyx2lyx on your path?

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


Re: Conversion failure for older format

2022-06-20 Thread José Abílio Matos
On Monday, 20 June 2022 14.28.18 WEST Rudi Gaelzer wrote:
> That worked.  First, I copied the original .lyx to
> -lyxformat-508.lyx, then ran
> $>/usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx -o .lyx
> 
> That successfully converted the original to format 544, which the frontend
> was able to render.
> Is it possible that there's a bug in the automagic process?

If you still have the 508 format file could you run:

$ python2 /usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx > /dev/null

The only difference from your command above is that this is running the 
converter using python2 and not python3 as it happens above.

For what is worth this will ignore the output because we are only interest in 
any error that can occur...

> I'm running the installation from the rpm packages distributed for Fedora
> core 35/36.

I am using the same and I am the package maintainer for those packages. :-)

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


Re: Conversion failure for older format

2022-06-20 Thread Rudi Gaelzer
On sexta-feira, 17 de junho de 2022 08:08:04 -03 José Abílio Matos wrote:
> On Wednesday, 15 June 2022 18.19.22 WEST Rudi Gaelzer wrote:
> > I'm trying to open a LyX file with an older format:
> > \lyxformat 508
> > 
> > But I got the error message: LyX: Conversion script failed
> > It says that the lyx2lyx script failed to convert the document.
> > 
> > What should I do in this case?
> 
> Rudi,
>   this should not ever happen, but bugs do happen.
> 
> Just as Paul said you can run lyx2lyx from the command line to see where the
> problem occurs and tell us here.
> 
> If you want you can send the file by private mail and I will look in to this
> issue directly.
> 
> Best regards,

That worked.  First, I copied the original .lyx to 
-lyxformat-508.lyx, then ran 
$>/usr/share/lyx/lyx2lyx/lyx2lyx -lyxformat-508.lyx -o .lyx

That successfully converted the original to format 544, which the frontend was 
able to render.
Is it possible that there's a bug in the automagic process?
I'm running the installation from the rpm packages distributed for Fedora core 
35/36.
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



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


Re: The programming language of lyx class files

2022-06-17 Thread tush via lyx-users
But is there such a programming language?

 Original Message 
On Jun 17, 2022, 12:12, José Abílio Matos wrote:

> On Friday, 17 June 2022 01.22.48 WEST tush via lyx-users wrote:
>
>> Github markdown allows the writer to type code snippets with syntax
>
>> highlighting.
>
>>
>
>> I want to write in such a markdown document a code snippet of a class file:
>
>> module file or layout file.
>
>>
>
>> What is the most appropriate programming language that fits best LyX's class
>
>> file syntax?
>
> Even if you find it you define a language you still have the problem of the 
> language keywords.
>
> --
>
> José Abílio-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: The programming language of lyx class files

2022-06-17 Thread José Abílio Matos
On Friday, 17 June 2022 01.22.48 WEST tush via lyx-users wrote:
> Github markdown allows the writer to type code snippets with syntax
> highlighting.
> 
> I want to write in such a markdown document a code snippet of a class file:
> module file or layout file.
> 
> What is the most appropriate programming language that fits best LyX's class
> file syntax?

Even if you find it you define a language you still have the problem of the 
language keywords.

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


Re: Conversion failure for older format

2022-06-17 Thread José Abílio Matos
On Wednesday, 15 June 2022 18.19.22 WEST Rudi Gaelzer wrote:
> I'm trying to open a LyX file with an older format:
> \lyxformat 508
> 
> But I got the error message: LyX: Conversion script failed
> It says that the lyx2lyx script failed to convert the document.
> 
> What should I do in this case?

Rudi,
  this should not ever happen, but bugs do happen.

Just as Paul said you can run lyx2lyx from the command line to see where the 
problem occurs and tell us here.

If you want you can send the file by private mail and I will look in to this 
issue directly.

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


Re: beamer

2022-06-17 Thread José Abílio Matos
On Thursday, 16 June 2022 17.32.06 WEST Daniel wrote:
> Apparently one can even hack the navigation icons away on a specific
> frame if that is desired. See attachment. Inspired by
> https://tex.stackexchange.com/questions/14796/beamer-blank-black-frame.
> 
> Daniel

That is also one of the reasons why I like the metropolis theme. :-)

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


The programming language of lyx class files

2022-06-16 Thread tush via lyx-users
Github markdown allows the writer to type code snippets with syntax 
highlighting.

I want to write in such a markdown document a code snippet of a class file: 
module file or layout file.

What is the most appropriate programming language that fits best LyX's class 
file syntax?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: beamer

2022-06-16 Thread Daniel

On 2022-06-16 17:01, Paul A. Rubin wrote:

On 6/16/22 07:22, Patrick Dupre wrote:

Hello,

Can I create a slide entirely blank?

Thanks

===
  Patrick DUPRÉ | | email: pdu...@gmx.com
  Laboratoire interdisciplinaire Carnot de Bourgogne
  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
  Tel: +33 (0)380395988    | | Room# D114A
===

You can insert a frame and set the environment to "PlainFrame" in the 
environment select box. Assuming you leave the frame title inset empty, 
the PDF page will be blank except for the little navigation icons in the 
lower right.


Paul



Apparently one can even hack the navigation icons away on a specific 
frame if that is desired. See attachment. Inspired by 
https://tex.stackexchange.com/questions/14796/beamer-blank-black-frame.


Daniel#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass beamer
\use_default_options true
\maintain_unincluded_children false
\language english
\language_package default
\inputencoding auto
\fontencoding global
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize default
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification false
\use_refstyle 1
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Frame
\begin_inset Argument 4
status open

\begin_layout Plain Layout
A frame
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Separator plain
\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
bgroup
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
setbeamertemplate{navigation symbols}{}
\end_layout

\end_inset


\end_layout

\begin_layout PlainFrame
\begin_inset Argument 4
status open

\begin_layout Plain Layout

\end_layout

\end_inset


\end_layout

\begin_layout PlainFrame

\end_layout

\begin_deeper
\begin_layout Standard
Completely empty frame
\end_layout

\end_deeper
\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
egroup
\end_layout

\end_inset


\end_layout

\begin_layout Frame
\begin_inset Argument 4
status open

\begin_layout Plain Layout
Another frame
\end_layout

\end_inset


\end_layout

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


Re: beamer

2022-06-16 Thread Paul A. Rubin

On 6/16/22 07:22, Patrick Dupre wrote:

Hello,

Can I create a slide entirely blank?

Thanks

===
  Patrick DUPRÉ | | email: pdu...@gmx.com
  Laboratoire interdisciplinaire Carnot de Bourgogne
  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
  Tel: +33 (0)380395988| | Room# D114A
===

You can insert a frame and set the environment to "PlainFrame" in the 
environment select box. Assuming you leave the frame title inset empty, 
the PDF page will be blank except for the little navigation icons in the 
lower right.


Paul

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


beamer

2022-06-16 Thread Patrick Dupre
Hello,

Can I create a slide entirely blank?

Thanks

===
 Patrick DUPRÉ | | email: pdu...@gmx.com
 Laboratoire interdisciplinaire Carnot de Bourgogne
 9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
 Tel: +33 (0)380395988| | Room# D114A
===

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


Re: Conversion failure for older format

2022-06-15 Thread Paul A. Rubin

On 6/15/22 13:19, Rudi Gaelzer wrote:

I'm trying to open a LyX file with an older format:
\lyxformat 508

But I got the error message: LyX: Conversion script failed
It says that the lyx2lyx script failed to convert the document.

What should I do in this case?
You can try running lyx2lyx on the source file from the command line, 
using one or more options. The -v option makes output "verbose", which 
might include specifics about the error. The -n option tells it to 
ignore any conversion errors, after which you could try opening the 
resulting file and see if (a) it opens and (b) if so, does any of the 
content appear to be missing or screwed up.


Paul

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


Conversion failure for older format

2022-06-15 Thread Rudi Gaelzer
I'm trying to open a LyX file with an older format:
\lyxformat 508

But I got the error message: LyX: Conversion script failed
It says that the lyx2lyx script failed to convert the document.

What should I do in this case?
-- 
Rudi Gaelzer
Physics Institute - UFRGS
BRAZIL
Registered Linux user # 153741



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


Re: Meaning of PageStyle as a class parameter

2022-06-14 Thread tush via lyx-users
Thanks very much! That solves the confusion.
Is it possible to eliminate and remove the "Default" page style from the 
drop-down list and make "fancy" as the only available page style?

--- Original Message ---
On Tuesday, June 14th, 2022 at 1:22 AM, Paul A. Rubin  
wrote:

> On 6/13/22 19:18, tush via lyx-users wrote:
>
>> By the way, I just checked two other layout files that consist of only one 
>> argument for PageStyle:
>>
>> aa.layout (Astronomy & Astrophysics) and amsart.layout (American 
>> Mathematical Society (AMS) Article).
>>
>> The first should allow the user to use only page style "plain" and the 
>> latter only "Headers".
>>
>> But opening a new file from the File->New.. menu and changing the new file's 
>> document class into either of these, keeps the full general list of the 
>> default article class just as it was before and doesn't make any effect to 
>> the page-layout drop down list.
>>
>> --- Original Message ---
>> On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin
>> [](mailto:parubi...@gmail.com)
>> wrote:
>>
>>> On 6/13/22 18:03, tush via lyx-users wrote:
>>>
 I am building my layout file and I want to better understand the effect of

 PageStyle empty|myheadings|...

 Inserting this line into my layout file does not make any apparent effect.

 Moreover, I looked at the content of `memoir.layout` and I see that there 
 are multiple page styles for this doc class:

 `PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion`

 After loading this layout file, when I go to Document Settings->Page 
 Layout, I see in the drop-down the only the four regular ones: 
 Default,empty,plain,headings and fancy.

 I expected the drop down list to be updated according to the arguments 
 pass to `PageStyle`.

 Then what is the meaning of this class parameter?
>>>
>>> After setting the document class to memoir and before switching to the
>>> page style setting, did you click OK or Apply to apply the layout
>>> change? When I start a new document (article layout) and switch the
>>> layout to memoir, I get the full list of page style choices.
>>>
>>> Paul
>>>
>>> --
>>> lyx-users mailing list
>>> lyx-users@lists.lyx.org
>>>
>>> http://lists.lyx.org/mailman/listinfo/lyx-users
>
> Take a look at the memoir.layout file and also the Customization help file. 
> Line 16 of the layout file reads "PageStyle Headings". As explained in 
> section 5.3.5 of the customization manual, this is the default page style for 
> the class. Now look at line 30 of the layout file: "PageStyle 
> empty|plain|headings|myheadings|ruled|Ruled|companion". Note that it is in a 
> section named "ClassOptions" (begins on line 28), which is explained in the 
> customization manual in section 5.3.6.
>
> What you are seeing in amsart.layout, for instance, is the default page 
> setting. There is no list of page styles in the class options section, so it 
> presumably reverts to the LyX default.
>
> Paul
>
> PS: Please bottom-post for legibility.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Can a layout file change the document language settings

2022-06-13 Thread Daniel

On 2022-06-13 14:52, tush via lyx-users wrote:

Thanks very much I will try that out.


By the way, I think you can set the path where the "New from Template" 
dialog starts via "Preferences" > "Paths" to the directory that contains 
your templates (for example to your LyX User Library "templates" directory).


Daniel


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


Re: Effect of FontSize as a class parameter

2022-06-13 Thread Jürgen Spitzmüller
Am Montag, dem 13.06.2022 um 22:13 + schrieb tush via lyx-users:
> What is the meaning of the class parameter FontSize when inserting it
> in a layout file inside ClassOptions?
> 
> The customization manual says:
> FontSize [string="10|11|12"] The list of available font sizes for the
> document’s main font, separated by “|”.
> 
> Does this command takes effect only inside the LyX editor? If so,
> where and how?
> Or rather does it make any changes to the latex preamble? I haven't
> seen any.

It defines which font sizes are available in Document Settings.

-- 
Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: What does Provides do?

2022-06-13 Thread Jürgen Spitzmüller
Am Montag, dem 13.06.2022 um 22:33 + schrieb tush via lyx-users:
> What does it mean that a class provides a feature such as amssymb or
> xcolor? 

That the class loads it, or has a similar inbuilt functionality.

> What changes should I see in the preamble of my tex file when
> including this command? 

You prevent LyX from loading this package also. This reduces unnesseary
code and sometimes also package options clashes.


-- 
Jürgen


signature.asc
Description: This is a digitally signed message part
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Meaning of PageStyle as a class parameter

2022-06-13 Thread Paul A. Rubin

On 6/13/22 19:18, tush via lyx-users wrote:

By the way, I just checked two other layout files that consist of only one 
argument for PageStyle:

aa.layout (Astronomy & Astrophysics) and amsart.layout (American Mathematical 
Society (AMS) Article).

The first should allow the user to use only page style "plain" and the latter only 
"Headers".

But opening a new file from the File->New.. menu and changing the new file's 
document class into either of these, keeps the full general list of the default 
article class just as it was before and doesn't make any effect to the page-layout 
drop down list.

--- Original Message ---
On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin  
wrote:



On 6/13/22 18:03, tush via lyx-users wrote:


I am building my layout file and I want to better understand the effect of

PageStyle empty|myheadings|...

Inserting this line into my layout file does not make any apparent effect.

Moreover, I looked at the content of `memoir.layout` and I see that there are 
multiple page styles for this doc class:

`PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion`

After loading this layout file, when I go to Document Settings->Page Layout, I 
see in the drop-down the only the four regular ones: Default,empty,plain,headings 
and fancy.

I expected the drop down list to be updated according to the arguments pass to 
`PageStyle`.

Then what is the meaning of this class parameter?

After setting the document class to memoir and before switching to the
page style setting, did you click OK or Apply to apply the layout
change? When I start a new document (article layout) and switch the
layout to memoir, I get the full list of page style choices.

Paul

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users
Take a look at the memoir.layout file and also the Customization help 
file. Line 16 of the layout file reads "PageStyle Headings". As 
explained in section 5.3.5 of the customization manual, this is the 
/default/ page style for the class. Now look at line 30 of the layout 
file: "PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion". 
Note that it is in a section named "ClassOptions" (begins on line 28), 
which is explained in the customization manual in section 5.3.6.


What you are seeing in amsart.layout, for instance, is the default page 
setting. There is no list of page styles in the class options section, 
so it presumably reverts to the LyX default.


Paul

PS: Please bottom-post for legibility.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Meaning of PageStyle as a class parameter

2022-06-13 Thread tush via lyx-users
By the way, I just checked two other layout files that consist of only one 
argument for PageStyle:

aa.layout (Astronomy & Astrophysics) and amsart.layout (American Mathematical 
Society (AMS) Article).

The first should allow the user to use only page style "plain" and the latter 
only "Headers".

But opening a new file from the File->New.. menu and changing the new file's 
document class into either of these, keeps the full general list of the default 
article class just as it was before and doesn't make any effect to the 
page-layout drop down list.

--- Original Message ---
On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin  
wrote:


> On 6/13/22 18:03, tush via lyx-users wrote:
>
> > I am building my layout file and I want to better understand the effect of
> >
> > PageStyle empty|myheadings|...
> >
> > Inserting this line into my layout file does not make any apparent effect.
> >
> > Moreover, I looked at the content of `memoir.layout` and I see that there 
> > are multiple page styles for this doc class:
> >
> > `PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion`
> >
> > After loading this layout file, when I go to Document Settings->Page 
> > Layout, I see in the drop-down the only the four regular ones: 
> > Default,empty,plain,headings and fancy.
> >
> > I expected the drop down list to be updated according to the arguments pass 
> > to `PageStyle`.
> >
> > Then what is the meaning of this class parameter?
>
> After setting the document class to memoir and before switching to the
> page style setting, did you click OK or Apply to apply the layout
> change? When I start a new document (article layout) and switch the
> layout to memoir, I get the full list of page style choices.
>
> Paul
>
> --
> 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: Meaning of PageStyle as a class parameter

2022-06-13 Thread tush via lyx-users
Thanks very much for the quick reply.

I just tried what you described and it and you are right. I see the full list.

But when I do it in my own layout file, it doesn't work. Maybe I am conflicting 
this setting with another one?

My Layout file reads:

# \DeclareLaTeXClass[book]{My Book}
# \DeclareCategory{Books}
# Author: humble author
# Layout file based on the book document class for my books.

Format 66
# This a copy of the content of the standard book.layout file shipped with LyX
Input stdclass.inc
Input numreport.inc


ClassOptions
  FontSize  10
  Other "a4paper,asdfleqno,fleqn,gretush"
End
PageStyleempty|plain|headings|myheadings|ruled|Ruled|companion



--- Original Message ---
On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin  
wrote:


> On 6/13/22 18:03, tush via lyx-users wrote:
>
> > I am building my layout file and I want to better understand the effect of
> >
> > PageStyle empty|myheadings|...
> >
> > Inserting this line into my layout file does not make any apparent effect.
> >
> > Moreover, I looked at the content of `memoir.layout` and I see that there 
> > are multiple page styles for this doc class:
> >
> > `PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion`
> >
> > After loading this layout file, when I go to Document Settings->Page 
> > Layout, I see in the drop-down the only the four regular ones: 
> > Default,empty,plain,headings and fancy.
> >
> > I expected the drop down list to be updated according to the arguments pass 
> > to `PageStyle`.
> >
> > Then what is the meaning of this class parameter?
>
> After setting the document class to memoir and before switching to the
> page style setting, did you click OK or Apply to apply the layout
> change? When I start a new document (article layout) and switch the
> layout to memoir, I get the full list of page style choices.
>
> Paul
>
> --
> 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: Meaning of PageStyle as a class parameter

2022-06-13 Thread Paul A. Rubin

On 6/13/22 18:03, tush via lyx-users wrote:

I am building my layout file and I want to better understand the effect of

PageStyle empty|myheadings|...

Inserting this line into my layout file does not make any apparent effect.

Moreover, I looked at the content of `memoir.layout` and I see that there are 
multiple page styles for this doc class:

`PageStyle   empty|plain|headings|myheadings|ruled|Ruled|companion`

After loading this layout file, when I go to Document Settings->Page Layout, I 
see in the drop-down the only the four regular ones: Default,empty,plain,headings 
and fancy.

I expected the drop down list to be updated according to the arguments pass to 
`PageStyle`.

Then what is the meaning of this class parameter?
After setting the document class to memoir and before switching to the 
page style setting, did you click OK or Apply to apply the layout 
change? When I start a new document (article layout) and switch the 
layout to memoir, I get the full list of page style choices.


Paul

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


What does Provides do?

2022-06-13 Thread tush via lyx-users
I am trying to understand the effect of the class parameter Provides when 
inserted into a layout file.

In the Customization manual, it says:
Provides [string] [0 , 1] Whether the class already provides the feature 
string. A feature is in general the name of a package (e. g. amsmath or 
makeidx) or a macro (e. g. url or boldsymbol). See Appendix A for the list of 
features.

What does it mean that a class provides a feature such as amssymb or xcolor? 
What changes should I see in the preamble of my tex file when including this 
command? And what about providing a macro. What is the macro "url", for example?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Effect of FontSize as a class parameter

2022-06-13 Thread tush via lyx-users
What is the meaning of the class parameter FontSize when inserting it in a 
layout file inside ClassOptions?

The customization manual says:
FontSize [string="10|11|12"] The list of available font sizes for the 
document’s main font, separated by “|”.

Does this command takes effect only inside the LyX editor? If so, where and how?
Or rather does it make any changes to the latex preamble? I haven't seen any.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Meaning of PageStyle as a class parameter

2022-06-13 Thread tush via lyx-users
I am building my layout file and I want to better understand the effect of

PageStyle empty|myheadings|...

Inserting this line into my layout file does not make any apparent effect.

Moreover, I looked at the content of `memoir.layout` and I see that there are 
multiple page styles for this doc class:

`PageStyle   empty|plain|headings|myheadings|ruled|Ruled|companion`

After loading this layout file, when I go to Document Settings->Page Layout, I 
see in the drop-down the only the four regular ones: 
Default,empty,plain,headings and fancy.

I expected the drop down list to be updated according to the arguments pass to 
`PageStyle`.

Then what is the meaning of this class parameter?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Can a layout file change the document language settings

2022-06-13 Thread tush via lyx-users
Thanks very much I will try that out.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Can a layout file change the document language settings

2022-06-13 Thread Daniel

On 2022-06-13 10:26, Daniel wrote:

On 2022-06-10 00:40, tush via lyx-users wrote:

I am writing a document in a non-English language.

To take care of that, one can navigate to Document Settings->Language 
and choose the document language and language package in that menu (I 
know, those settings are saved in the header of lyx file).


Either way, my question is: Can a new layout file that I write (let's 
call it myNewLayout.layout) which is later to be chosen as the 
document class in LyX, can make an effect on these two settings? I 
guess that the answer is no, since I never found such a class 
parameter in section 5.3.5 of the customization manual, but I want to 
be sure about it.


If it is not possible, maybe you could set up a template (see 
Customization 5.2.4) using your layout which is set to the language of 
your choice?


I meant: Create a document. Set it to your layout. Set it to your 
language. Save it in templates. Then open it via File > New from Template...


Daniel



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


Re: Can a layout file change the document language settings

2022-06-13 Thread Daniel

On 2022-06-10 00:40, tush via lyx-users wrote:

I am writing a document in a non-English language.

To take care of that, one can navigate to Document Settings->Language 
and choose the document language and language package in that menu (I 
know, those settings are saved in the header of lyx file).


Either way, my question is: Can a new layout file that I write (let's 
call it myNewLayout.layout) which is later to be chosen as the document 
class in LyX, can make an effect on these two settings? I guess that the 
answer is no, since I never found such a class parameter in section 
5.3.5 of the customization manual, but I want to be sure about it.


If it is not possible, maybe you could set up a template (see 
Customization 5.2.4) using your layout which is set to the language of 
your choice?


Daniel


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


Can a layout file change the document language settings

2022-06-09 Thread tush via lyx-users
I am writing a document in a non-English language.

To take care of that, one can navigate to Document Settings->Language and 
choose the document language and language package in that menu (I know, those 
settings are saved in the header of lyx file).

Either way, my question is: Can a new layout file that I write (let's call it 
myNewLayout.layout) which is later to be chosen as the document class in LyX, 
can make an effect on these two settings? I guess that the answer is no, since 
I never found such a class parameter in section 5.3.5 of the customization 
manual, but I want to be sure about it.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Settings file for lyx

2022-06-04 Thread Kornel Benko
Am Sat, 04 Jun 2022 14:34:10 +
schrieb tush via lyx-users :

> It might be a bit unrelated to my question but I am very interested to know:
> 
> I tried now to see what changes does ticking the mark on "Apply changes to 
> current
> session only" do. I don't see any changes to the preferences file in my user 
> directory
> and no additional commands appended to the header of my lyx file.
> 
> In what file are those changes being listed?
> 
> Thank you.

As the message states: "to current session only", so no need to save the 
changed values to
a file.

Kornel
-- 
lyx-devel mailing list
lyx-de...@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


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


Re: Settings file for lyx

2022-06-04 Thread tush via lyx-users
It might be a bit unrelated to my question but I am very interested to know:

I tried now to see what changes does ticking the mark on "Apply changes to 
current session only" do. I don't see any changes to the preferences file in my 
user directory and no additional commands appended to the header of my lyx file.

In what file are those changes being listed?

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


Re: Exercises at end of sections

2022-06-03 Thread Steve Litt
Joseph Hesse said on Mon, 30 May 2022 05:38:33 -0500

>Hello,
>I am writing a text book and want to have numbered exercises at the
>end of each section.  Please point me to the docs or packages that
>will let me do this.
>Thank you,
>Joe Hesse

Hi Joe,

If for some reason the answers you've received don't fit your needs,
please remember you can always put special text tokens in your LyX
file, then run a Python3 program of your own device to make necessary
insertions, changes and deletions to produce what you want.

For instance, in your text you could have a vvvQUESTIONSvvv and a
^^^QUESTIONS^^^ bookend your questions, and a >>>CORRECT<<< at the
beginning of each correct answer. The Python program would remove the
tokens after reading them, and put the answer section where it belongs,
with the correct answer(s) having a different character style.

I did this in the past, and it worked. Obviously an all-LyX solution is
better, but one nice thing about LyX is its native format is still
reasonably parsable so if nothing else works, writing such a program is
always a way to get what you need. Basically, it just adds one more
short step to the compile process. 

SteveT

Steve Litt 
Spring 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Exercises at end of sections

2022-06-03 Thread José Abílio Matos
On Wednesday, 1 June 2022 05.38.06 WEST Richard Kimberly Heck wrote:
> 
> There probably is some pre-existing package you could adapt. But this
> would be relatively easy to do from scratch. My first thought would be
> as in the attached file. Is there something you need that isn't here?
> 
> Riki

FWIW I use tasks together with xsim (eXercises and Solutions IMproved). This 
allows to place together exercises and solutions in LyX and to print the 
solution where we want to (e.g. at the end in a special section/chapter).

Attached follows the module file that I use for this. I need to clean it to 
add to lyx. :-)

-- 
José Abílio#\DeclareLyXModule[xsim.sty]{Exercise sheets}
#DescriptionBegin
# Adds Exercise and Solution environments from the xsim package.
# This package allows that solutions to exercises to appear where required. You 
will need to add
# \printsolutions in TeX-code where you want the solutions to appear.
#DescriptionEnd
#
#Author: José Matos

Format 60

Requires   xsim 

AddToPreamble

\let\beamersolution\solution
\let\endbeamersolution\endsolution

% "delete" the `solution' environment:
\let\solution\relax

\usepackage{xsim}
EndPreamble

Counter exercise
PrettyFormat "Exercise ##"
End

Counter solution
PrettyFormat "Solution ##"
End

InsetLayout Flex:Question
   LyXType custom
   LatexName   exercise
   LatexType   environment
   Counter exercise
   Decoration  classic  
   MultiPartrue
   LabelString Exercise
   Requiresxsim
End

InsetLayout Flex:Solution
   LyXType custom
   LatexName   solution
   LatexType   environment
   Counter solution
   Decoration  classic  
   MultiPartrue
   LabelString Solution
   Requiresxsim
End

Style Task
   CopyStyle   Enumerate
   LatexName   tasks
   ItemTag ***
End
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Settings file for lyx

2022-06-02 Thread Paul A. Rubin

On 6/2/22 09:03, tush via lyx-users wrote:

Thank you very much once again, Riki.

I found the file and I can see it being updated after I apply changes 
in the preferences menu inside LyX.


Where can I choose which preferences file to use? I want to save a 
copy of such a file and save it in the project's directory. How do I 
tell lyx to use that new file?

I can't see anything related to it in the menus.

Screen shot: https://i.ibb.co/cYyJdpk/screenshot.png

Ehud

--- Original Message ---
On Thursday, June 2nd, 2022 at 1:17 AM, Richard Kimberly Heck 
 wrote:



On 6/1/22 17:43, ehud.be...@protonmail.com wrote:

Thank you very much.

The last option you mentioned is the one I would like to adopt. But, 
where is this preferences file located?


If you look under Help > About LyX, it will tell you where your user 
directory is. The preferences file is in that directory. On Linux, 
this is (by default) at $HOME/.lyx/. It is of course elsewhere on 
Windows and OSX and also is, as I said, configurable at runtime via 
the -userdir option.


Riki





--- Original Message ---
On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck 
 wrote:



On 5/31/22 16:42, tush via lyx-users wrote:

Me and my colleagues are working on a multi-user project.
Is there any way to guarantee that all of us have the same LyX 
settings?
We can share screenshots of the settings window, but I prefer 
something more technical.


I mean, the document settings are part of the file.
But LyX settings definitely should not be the same for all users. 
Particularly, settings that are related to languages, font 
encoding and shortcuts, for example, could change if an expert 
user has made changes after the first installation.


I was wondering if I can write down a file to be sent via email to 
my colleagues so can double-click and open it, and after running 
it they would have the same settings for LyX as me, the project 
manager.


Is there such a thing?


Any document-specific settings are contained in the document 
itself. So you do not have to worry about those. They will travel 
with the document. You can see them yourself. Just open the LyX 
file with a text editor. It will look something like this:


#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 608
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass paper

The document settings are in the header, which ends with \end_header.

The system-wide settings are all contained in text files that you 
can find in your user directory, most importantly the 'preferences' 
file. So to synchronize those, you just need to send that file to 
other users. But I'm not sure that those are what you have in mind.


Note, by the way, that it is easy to use LyX with different 
configurations. The '-userdir' flag lets you specify a user 
directory, so your users could have one for use with this project 
and a different one that they use for other thingsif they want.


Riki









Riki covered this in the last paragraph of his first reply. Start LyX 
from a command prompt with "-userdir preferred preferences file>".


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


Re: Settings file for lyx

2022-06-02 Thread Dr Eberhard Lisse

You are not listening.

Don't do this, there is no need to and it'll confuse your colleagues.

Split the document into chapters and have each "owned" by a particular
colleague and then use GIT or CVS source control.  That's much more
productive with messing with the site installation, which has nothing to
do with the document you are working on.

el

On 02/06/2022 15:03, tush via lyx-users wrote:

Thank you very much once again, Riki.

I found the file and I can see it being updated after I apply changes
in the preferences menu inside LyX.

Where can I choose which preferences file to use?  I want to save a
copy of such a file and save it in the project's directory.  How do I
tell lyx to use that new file?  I can't see anything related to it in
the menus.

Screen shot: https://i.ibb.co/cYyJdpk/screenshot.png   
  >


Ehud

[...]

--
To email me replace 'nospam' with 'el'

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


Re: Settings file for lyx

2022-06-02 Thread tush via lyx-users
Thank you very much once again, Riki.

I found the file and I can see it being updated after I apply changes in the 
preferences menu inside LyX.

Where can I choose which preferences file to use? I want to save a copy of such 
a file and save it in the project's directory. How do I tell lyx to use that 
new file?
I can't see anything related to it in the menus.

Screen shot: https://i.ibb.co/cYyJdpk/screenshot.png

Ehud

--- Original Message ---
On Thursday, June 2nd, 2022 at 1:17 AM, Richard Kimberly Heck 
 wrote:

> On 6/1/22 17:43, ehud.be...@protonmail.com wrote:
>
>> Thank you very much.
>>
>> The last option you mentioned is the one I would like to adopt. But, where 
>> is this preferences file located?
>
> If you look under Help > About LyX, it will tell you where your user 
> directory is. The preferences file is in that directory. On Linux, this is 
> (by default) at $HOME/.lyx/. It is of course elsewhere on Windows and OSX and 
> also is, as I said, configurable at runtime via the -userdir option.
>
> Riki
>
>> --- Original Message ---
>> On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck 
>> [](mailto:rikih...@lyx.org) wrote:
>>
>>> On 5/31/22 16:42, tush via lyx-users wrote:
>>>
 Me and my colleagues are working on a multi-user project.
 Is there any way to guarantee that all of us have the same LyX settings?
 We can share screenshots of the settings window, but I prefer something 
 more technical.

 I mean, the document settings are part of the file.
 But LyX settings definitely should not be the same for all users. 
 Particularly, settings that are related to languages, font encoding and 
 shortcuts, for example, could change if an expert user has made changes 
 after the first installation.

 I was wondering if I can write down a file to be sent via email to my 
 colleagues so can double-click and open it, and after running it they 
 would have the same settings for LyX as me, the project manager.

 Is there such a thing?
>>>
>>> Any document-specific settings are contained in the document itself. So you 
>>> do not have to worry about those. They will travel with the document. You 
>>> can see them yourself. Just open the LyX file with a text editor. It will 
>>> look something like this:
>>>
>>> #LyX 2.4 created this file. For more info see https://www.lyx.org/
>>> \lyxformat 608
>>> \begin_document
>>> \begin_header
>>> \save_transient_properties true
>>> \origin unavailable
>>> \textclass paper
>>>
>>> The document settings are in the header, which ends with \end_header.
>>>
>>> The system-wide settings are all contained in text files that you can find 
>>> in your user directory, most importantly the 'preferences' file. So to 
>>> synchronize those, you just need to send that file to other users. But I'm 
>>> not sure that those are what you have in mind.
>>>
>>> Note, by the way, that it is easy to use LyX with different configurations. 
>>> The '-userdir' flag lets you specify a user directory, so your users could 
>>> have one for use with this project and a different one that they use for 
>>> other thingsif they want.
>>>
>>> Riki-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Settings file for lyx

2022-06-01 Thread Richard Kimberly Heck

On 6/1/22 17:43, ehud.be...@protonmail.com wrote:

Thank you very much.

The last option you mentioned is the one I would like to adopt. But, 
where is this preferences file located?


If you look under Help > About LyX, it will tell you where your user 
directory is. The preferences file is in that directory. On Linux, this 
is (by default) at $HOME/.lyx/. It is of course elsewhere on Windows and 
OSX and also is, as I said, configurable at runtime via the -userdir option.


Riki





--- Original Message ---
On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck 
 wrote:



On 5/31/22 16:42, tush via lyx-users wrote:

Me and my colleagues are working on a multi-user project.
Is there any way to guarantee that all of us have the same LyX settings?
We can share screenshots of the settings window, but I prefer 
something more technical.


I mean, the document settings are part of the file.
But LyX settings definitely should not be the same for all users. 
Particularly, settings that are related to languages, font encoding 
and shortcuts, for example, could change if an expert user has made 
changes after the first installation.


I was wondering if I can write down a file to be sent via email to 
my colleagues so can double-click and open it, and after running it 
they would have the same settings for LyX as me, the project manager.


Is there such a thing?


Any document-specific settings are contained in the document itself. 
So you do not have to worry about those. They will travel with the 
document. You can see them yourself. Just open the LyX file with a 
text editor. It will look something like this:


#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 608
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass paper

The document settings are in the header, which ends with \end_header.

The system-wide settings are all contained in text files that you can 
find in your user directory, most importantly the 'preferences' file. 
So to synchronize those, you just need to send that file to other 
users. But I'm not sure that those are what you have in mind.


Note, by the way, that it is easy to use LyX with different 
configurations. The '-userdir' flag lets you specify a user 
directory, so your users could have one for use with this project and 
a different one that they use for other thingsif they want.


Riki




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


Re: Settings file for lyx

2022-06-01 Thread tush via lyx-users
Thank you very much.

The last option you mentioned is the one I would like to adopt. But, where is 
this preferences file located?

Moreover, in the LyX->Preferences->Paths window, I don't see such a file.

Could you give me more instructions on how to find it?
--- Original Message ---
On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck 
 wrote:

> On 5/31/22 16:42, tush via lyx-users wrote:
>
>> Me and my colleagues are working on a multi-user project.
>> Is there any way to guarantee that all of us have the same LyX settings?
>> We can share screenshots of the settings window, but I prefer something more 
>> technical.
>>
>> I mean, the document settings are part of the file.
>> But LyX settings definitely should not be the same for all users. 
>> Particularly, settings that are related to languages, font encoding and 
>> shortcuts, for example, could change if an expert user has made changes 
>> after the first installation.
>>
>> I was wondering if I can write down a file to be sent via email to my 
>> colleagues so can double-click and open it, and after running it they would 
>> have the same settings for LyX as me, the project manager.
>>
>> Is there such a thing?
>
> Any document-specific settings are contained in the document itself. So you 
> do not have to worry about those. They will travel with the document. You can 
> see them yourself. Just open the LyX file with a text editor. It will look 
> something like this:
>
> #LyX 2.4 created this file. For more info see https://www.lyx.org/
> \lyxformat 608
> \begin_document
> \begin_header
> \save_transient_properties true
> \origin unavailable
> \textclass paper
>
> The document settings are in the header, which ends with \end_header.
>
> The system-wide settings are all contained in text files that you can find in 
> your user directory, most importantly the 'preferences' file. So to 
> synchronize those, you just need to send that file to other users. But I'm 
> not sure that those are what you have in mind.
>
> Note, by the way, that it is easy to use LyX with different configurations. 
> The '-userdir' flag lets you specify a user directory, so your users could 
> have one for use with this project and a different one that they use for 
> other thingsif they want.
>
> Riki-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Exercises at end of sections

2022-06-01 Thread Richard Kimberly Heck

On 6/1/22 14:20, Joseph Hesse wrote:

On 5/31/22 23:38, Richard Kimberly Heck wrote:

On 5/30/22 12:59, Tobias Hilbricht wrote:

Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse:

Hello,
I am writing a text book and want to have numbered exercises at the
end of each section.  Please point me to the docs or packages that will
let me do this.
Thank you,
Joe Hesse


There probably is some pre-existing package you could adapt. But this 
would be relatively easy to do from scratch. My first thought would 
be as in the attached file. Is there something you need that isn't here?


Riki



Riki,
Thank you for your reply.
Your example is what I would like.  How do I get "Chapter Exercises" 
and "Reasoning/Exercise" to appear in the environment drop down list 
at the top left of lyx?


I actually had not noticed the "Chapter Exercises" environment. Looking 
at it now, it is meant for exactly this, but it seems kind of broken. It 
hasn't been touched really since 2003. (The environment is provided by 
the AMS Book document class, at least in LyX's version of it. See 
Settings > Document Class in the example file I sent.) Maybe I'll try to 
fix it for 2.4.


So I was doing things more manually.

The Exercises heading is just a Section*, and I've typed "Exercises" as 
the section title.


For the exercises themselves, I used the Exercise environment that's 
provide by the Theorems (AMS, Numbered by Type within Chapters) module. 
Look under Document > Settings > Modules to see where it came from. (In 
LyX 2.4, the modules will be better organized.)


Note that you can write modules yourself, if you wish, to generate new 
environments of this kind. See Chapter 5 of the Help > Customization 
manual for details. Of just look at the modules themselves (which are in 
your LyX system directory, named whatever.module) to see how they work.


Riki



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


Re: Exercises at end of sections

2022-06-01 Thread Joseph Hesse

On 5/31/22 23:38, Richard Kimberly Heck wrote:

On 5/30/22 12:59, Tobias Hilbricht wrote:

Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse:

Hello,
I am writing a text book and want to have numbered exercises at the
end of each section.  Please point me to the docs or packages that will
let me do this.
Thank you,
Joe Hesse


There probably is some pre-existing package you could adapt. But this 
would be relatively easy to do from scratch. My first thought would be 
as in the attached file. Is there something you need that isn't here?


Riki



Riki,
Thank you for your reply.
Your example is what I would like.  How do I get "Chapter Exercises" and 
"Reasoning/Exercise" to appear in the environment drop down list at the 
top left of lyx?

Joe


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


Re: Exercises at end of sections

2022-05-31 Thread Richard Kimberly Heck

On 5/30/22 12:59, Tobias Hilbricht wrote:

Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse:

Hello,
I am writing a text book and want to have numbered exercises at the
end of each section.  Please point me to the docs or packages that will
let me do this.
Thank you,
Joe Hesse


There probably is some pre-existing package you could adapt. But this 
would be relatively easy to do from scratch. My first thought would be 
as in the attached file. Is there something you need that isn't here?


Riki



test.23.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Settings file for lyx

2022-05-31 Thread Richard Kimberly Heck

On 5/31/22 16:42, tush via lyx-users wrote:

Me and my colleagues are working on a multi-user project.
Is there any way to guarantee that all of us have the same LyX settings?
We can share screenshots of the settings window, but I prefer 
something more technical.


I mean, the document settings are part of the file.
But LyX settings definitely should not be the same for all users. 
Particularly, settings that are related to languages, font encoding 
and shortcuts, for example, could change if an expert user has made 
changes after the first installation.


I was wondering if I can write down a file to be sent via email to my 
colleagues so can double-click and open it, and after running it they 
would have the same settings for LyX as me, the project manager.


Is there such a thing?


Any document-specific settings are contained in the document itself. So 
you do not have to worry about those. They will travel with the 
document. You can see them yourself. Just open the LyX file with a text 
editor. It will look something like this:


#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 608
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass paper

The document settings are in the header, which ends with \end_header.

The system-wide settings are all contained in text files that you can 
find in your user directory, most importantly the 'preferences' file. So 
to synchronize those, you just need to send that file to other users. 
But I'm not sure that those are what you have in mind.


Note, by the way, that it is easy to use LyX with different 
configurations. The '-userdir' flag lets you specify a user directory, 
so your users could have one for use with this project and a different 
one that they use for other thingsif they want.


Riki

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


Settings file for lyx

2022-05-31 Thread tush via lyx-users
Me and my colleagues are working on a multi-user project.
Is there any way to guarantee that all of us have the same LyX settings?
We can share screenshots of the settings window, but I prefer something more 
technical.

I mean, the document settings are part of the file.
But LyX settings definitely should not be the same for all users. Particularly, 
settings that are related to languages, font encoding and shortcuts, for 
example, could change if an expert user has made changes after the first 
installation.

I was wondering if I can write down a file to be sent via email to my 
colleagues so can double-click and open it, and after running it they would 
have the same settings for LyX as me, the project manager.

Is there such a thing?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Formatting Python code

2022-05-30 Thread Dr Eberhard Lisse

STOP. USING. ERT! :-)-O

In Settings -> Document -> Listings you can set things into the window
which wind up in the generated tex file as \lstset{}

greetings, el


On 2022-05-27 23:20 , Rich Shepard wrote:

On Fri, 27 May 2022, Rich Shepard wrote:


Thanks for the pointer.


Paul,

Since all the code in the document is the same language I searched the
web for setting defaults.  Found a list archive thread from 10 years
ago and your response was to add the language and other attributes to
the preamble; here
I entered
\lset{language=Python, Tabulator size=4}

This makes no difference.  I closed and re-opened lyx; this had no
effect.

Each block of program code still defaults to Language=None and
Tabulator size=8.

Has anything changed in the past decade?

Regards,

Rich



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


Re: Exercises at end of sections

2022-05-30 Thread Tobias Hilbricht
Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse:
> Hello,
> I am writing a text book and want to have numbered exercises at the
> end 
> of each section.  Please point me to the docs or packages that will
> let 
> me do this.
> Thank you,
> Joe Hesse
> 

Joe,

for numbered exercises on my math and chemistry class worksheets and
tests I use and like the package tasks: https://ctan.org/pkg/tasks

Yours
Tobias

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


Re: Formatting Python code

2022-05-30 Thread Rich Shepard

On Mon, 30 May 2022, Rich Shepard wrote:


That's interesting. I don't find "showspaces" anywhere in the document
settings. Where do I turn it off?


Herbert,

Found it: Edit -> Listing settings -> Style -> Space in string as symbols.

Thanks again,

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


Re: Formatting Python code

2022-05-30 Thread Rich Shepard

On Mon, 30 May 2022, Herbert Voss wrote:


you have set the listings option "showspaces" and also one indention with
spaces instead of tabs.

"showspaces" makes no sense with python code.


Herbert,

That's interesting. I don't find "showspaces" anywhere in the document
settings. Where do I turn it off?

Thanks,

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


Re: Formatting Python code

2022-05-30 Thread Rich Shepard

On Mon, 30 May 2022, Herbert Voss wrote:


It _does_ support tab characters, e.g.


Herbert,

But not in the Tkinter widget code documentation I'm making into a readable
format using LyX.

The small space character issue in the pdflatex output is associated with
the Python-3.6+ formatted strings; those that begin with an f prefixing the
string within curly braces {}.

Thanks,

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


Re: Formatting Python code

2022-05-30 Thread Herbert Voss



Am 30.05.22 um 15:38 schrieb Rich Shepard:
Here's an issue that's appeared twice (so far) in the document and I 
cannot

find the reason.


you have set the listings option "showspaces" and also one indention 
with spaces

instead of tabs.

"showspaces" makes no sense with python code.

Herbert





The *.lyx code in a Program Listing environment looks like this:
-
\begin_layout Plain Layout

    self.sheet = Sheet(self.frame,
\end_layout

\begin_layout Plain Layout

  data = [[f"Row {r},
\end_layout

\begin_layout Plain Layout

  Column {c}
\backslash
nnewline1
\backslash
nnewline2"
\end_layout

\begin_layout Plain Layout

  for c in range(50)]
\end_layout

\begin_layout Plain Layout

  for r in range(500)]) \end_layout
-
The same code in the *.tex file is:
    self.sheet = Sheet(self.frame,
  data = [[f"Row {r},
  Column {c}\nnewline1\nnewline2"
  for c in range(50)]
  for r in range(500)]) --
So why does the pdflatex *.pdf display the attached with small space 
symbols?


Rich



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


Re: Formatting Python code

2022-05-30 Thread Rich Shepard

Here's an issue that's appeared twice (so far) in the document and I cannot
find the reason.

The *.lyx code in a Program Listing environment looks like this:
-
\begin_layout Plain Layout

self.sheet = Sheet(self.frame,
\end_layout

\begin_layout Plain Layout

  data = [[f"Row {r},
\end_layout

\begin_layout Plain Layout

  Column {c}
\backslash
nnewline1
\backslash
nnewline2"
\end_layout

\begin_layout Plain Layout

  for c in range(50)]
\end_layout

\begin_layout Plain Layout

  for r in range(500)]) 
\end_layout

-
The same code in the *.tex file is:
self.sheet = Sheet(self.frame,
  data = [[f"Row {r},
  Column {c}\nnewline1\nnewline2"
  for c in range(50)]
  for r in range(500)]) 
--

So why does the pdflatex *.pdf display the attached with small space symbols?

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


Re: Formatting Python code

2022-05-30 Thread Herbert Voss



Am 30.05.22 um 14:48 schrieb Rich Shepard:


I learned the reason for the spacing issues is that the program listing
environment does not support tabs for white space, only spaces. Kinda' 
hard

on the keyboard's space bar. :-)


It _does_ support tab characters, e.g.

\documentclass{article}
\usepackage{listings}
\begin{document}

\lstset{tabsize=8}
\begin{lstlisting}
123456789
    { one tabulator }
    { two tabs }
    123
    { 123+two tabs }
123
\end{lstlisting}
\end{document}


the output:


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


Re: Exercises at end of sections

2022-05-30 Thread Ricardo Berlasso
El lun, 30 may 2022 a las 12:39, Joseph Hesse ()
escribió:

> Hello,
> I am writing a text book and want to have numbered exercises at the end
> of each section.  Please point me to the docs or packages that will let
> me do this.
> Thank you,
> Joe Hesse
>

I've never used it, but you can try with this package:

https://ctan.org/pkg/exercises

Let us know if it works!

Regards,
Ricardo



>
> --
> 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: Exercises at end of sections

2022-05-30 Thread Rich Shepard

On Mon, 30 May 2022, Joseph Hesse wrote:


I am writing a text book and want to have numbered exercises at the end of
each section.  Please point me to the docs or packages that will let me do
this.


Joe,

While there's probably a better way, my first thought is to use the
Enumerate environment and separate lines using Ctrl-Enter so the entire
exercise is part of the same number. Or, just manually number each one.

HTH,

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


Re: Formatting Python code

2022-05-30 Thread Rich Shepard

On Fri, 27 May 2022, Paul A. Rubin wrote:


If the code was copied from outside LyX and pasted in, maybe there are
some stray nonprinting characters and/or one of the supposed end-of-line
characters is borked. The simplest way to test this would be to backspace
over the offending commas and surrounding spaces and then type them back
in.


Paul,

I learned the reason for the spacing issues is that the program listing
environment does not support tabs for white space, only spaces. Kinda' hard
on the keyboard's space bar. :-)

Best regareds,

Rich

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


Exercises at end of sections

2022-05-30 Thread Joseph Hesse

Hello,
I am writing a text book and want to have numbered exercises at the end 
of each section.  Please point me to the docs or packages that will let 
me do this.

Thank you,
Joe Hesse

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


Re: Formatting Python code

2022-05-27 Thread Paul A. Rubin

On 5/27/22 18:44, Rich Shepard wrote:

On Fri, 27 May 2022, Paul A. Rubin wrote:


AFAIK, \lstset{} is the correct command. In order to use it in the
preamble, you have to precede it with \usepackage{listings}.


Paul,

I overlooked that.

The correct syntax for setting the tabulator size is tabsize=4. 
"Tabulator

size=4" will cause an error.


Okay. I wondered about that string.


Setting package defaults in the preamble will not register in the LyX
settings dialog, but they will work. So the dialog will continue to say
"no language" and tab size 4 (or whatever the dialog defaults are), but
your preamble settings will work in the compiled document.


Good.

Now I find an error in the complied document that makes no sense.

In one code block are these lines:
row_index_width = 100,
auto_resize_default_row_index = True,
set_all_heights_and_widths = False,
row_height = "1",

but in the PDF the middle two lines are combined and there are spaces 
before

the terminating commas:
row_index_width = 100,
auto_resize_default_row_index = True , set_all_heights_and_widths = 
False ,

row_height = "1",

So far I've not been able to figure out why so I'll worry about this 
tomorrow.


Thanks,

Rich
If the code was copied from outside LyX and pasted in, maybe there are 
some stray nonprinting characters and/or one of the supposed end-of-line 
characters is borked. The simplest way to test this would be to 
backspace over the offending commas and surrounding spaces and then type 
them back in.


Paul

PS: For future reference, a simple alternative to mucking around with 
package defaults is to create an empty listing inset, fiddle with 
options in the settings dialog, then just copy the empty inset and paste 
the copy in wherever you need to enter code.

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


Re: Formatting Python code

2022-05-27 Thread Rich Shepard

On Fri, 27 May 2022, Paul A. Rubin wrote:


AFAIK, \lstset{} is the correct command. In order to use it in the
preamble, you have to precede it with \usepackage{listings}.


Paul,

I overlooked that.


The correct syntax for setting the tabulator size is tabsize=4. "Tabulator
size=4" will cause an error.


Okay. I wondered about that string.


Setting package defaults in the preamble will not register in the LyX
settings dialog, but they will work. So the dialog will continue to say
"no language" and tab size 4 (or whatever the dialog defaults are), but
your preamble settings will work in the compiled document.


Good.

Now I find an error in the complied document that makes no sense.

In one code block are these lines:
row_index_width = 100,
auto_resize_default_row_index = True,
set_all_heights_and_widths = False,
row_height = "1",

but in the PDF the middle two lines are combined and there are spaces before
the terminating commas:
row_index_width = 100,
auto_resize_default_row_index = True , set_all_heights_and_widths = False ,
row_height = "1",

So far I've not been able to figure out why so I'll worry about this tomorrow.

Thanks,

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


Re: Formatting Python code

2022-05-27 Thread Paul A. Rubin

On 5/27/22 17:39, Rich Shepard wrote:

On Fri, 27 May 2022, Rich Shepard wrote:


\lset{language=Python, Tabulator size=4}


Paul,

A more recent thread on program listings

shows the command as \lstset{} but this also fails to set the default and
throws an error when I try to compile the document.

Puzzled,

Rich
AFAIK, \lstset{} is the correct command. In order to use it in the 
preamble, you have to precede it with


\usepackage{listings}. LyX automatically inserts the use package command 
after the preamble, which means the \lstset command is undefined if you 
don't manually load the package first. (LyX will still insert another 
\usepackage after the preamble, which seems to be harmless.)


The correct syntax for setting the tabulator size is tabsize=4. 
"Tabulator size=4" will cause an error.


Setting package defaults in the preamble will not register in the LyX 
settings dialog, but they will work. So the dialog will continue to say 
"no language" and tab size 4 (or whatever the dialog defaults are), but 
your preamble settings will work in the compiled document.


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


Re: Formatting Python code

2022-05-27 Thread Rich Shepard

On Fri, 27 May 2022, Rich Shepard wrote:


\lset{language=Python, Tabulator size=4}


Paul,

A more recent thread on program listings

shows the command as \lstset{} but this also fails to set the default and
throws an error when I try to compile the document.

Puzzled,

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


Re: Formatting Python code

2022-05-27 Thread Rich Shepard

On Fri, 27 May 2022, Rich Shepard wrote:


Thanks for the pointer.


Paul,

Since all the code in the document is the same language I searched the web
for setting defaults. Found a list archive thread from 10 years ago and your
response was to add the language and other attributes to the preamble; here
I entered
\lset{language=Python, Tabulator size=4}

This makes no difference. I closed and re-opened lyx; this had no effect.

Each block of program code still defaults to Language=None and Tabulator
size=8.

Has anything changed in the past decade?

Regards,

Rich

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


Re: Formatting Python code

2022-05-27 Thread Rich Shepard

On Fri, 27 May 2022, Paul A. Rubin wrote:


Rather than LyX-Code, start with Insert > Program Listing to insert a
listings widget. Right click the widget, click Settings ..., and on the
main settings tab use the Language drop-down to select Python. Tweak other
settings at will.


Paul,

Ah ha! It's been years since I last entered any programming code in a lyx
document.

Thanks for the pointer.

Regards,

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


Re: Formatting Python code

2022-05-27 Thread Paul A. Rubin

On 5/27/22 15:01, Rich Shepard wrote:

I'm trying to format Python code in a document, but cannot properly set
indentation and long lines without them breaking. The document class 
is KOMA

Article.

I've set the code environment to LyX-Code.

Reading the User Guide, I don't find a section on LyX-Code; Section 
6.10 is

TeX Code and the LaTeX Syntax. That's not what I want.

What have I missed?

Rich
Rather than LyX-Code, start with Insert > Program Listing to insert a 
listings widget. Right click the widget, click Settings ..., and on the 
main settings tab use the Language drop-down to select Python. Tweak 
other settings at will.


Paul

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


Formatting Python code

2022-05-27 Thread Rich Shepard

I'm trying to format Python code in a document, but cannot properly set
indentation and long lines without them breaking. The document class is KOMA
Article.

I've set the code environment to LyX-Code.

Reading the User Guide, I don't find a section on LyX-Code; Section 6.10 is
TeX Code and the LaTeX Syntax. That's not what I want.

What have I missed?

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


Re: Missing prerequisites: lilypond-book->latex

2022-05-27 Thread Kevin Cole
> Hi,
>
> I'm running the latest -- and greatest(?)  -- release of Pop!_OS,
> which is effectively Ubuntu. Specifically, 22.04 LTS ("Jammy").
>
> I've just installed LyX and have not adjusted any preferences /
> options / configurations. When I try Help -> Specific Manuals ->
> LilyPond I get a pop-up:
> __
> The module lilypond requires a package that is not
> available in your LaTeX installation, or a converter that
> you have not installed. LaTeX output may not be possible.
> Missing prerequisites:
> lilypond-book->latex
> See section 3.1.2.3 (Modules) of the User's Guide for more information.
> __
>
> I've read elsewhere that it should just work "out of the box" on
> Ubuntu systems. What am I missing?
>
> P.S. For the record, I have:
>
> $ lyx --version
> LyX 2.3.6 (2020-11-27)
> Configuration
>   Host type:   x86_64-pc-linux-gnu
> ...
>
> $ lilypond --version
> GNU LilyPond 2.22.1
>
> $ lilypond-book --version
> 2.22.1
>
> $ latex --version
> pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
> kpathsea version 6.3.4/dev
> Copyright 2021 Han The Thanh (pdfTeX) et al.
>
> Just to be sure:
>
> $ dpkg -l | \
> > tr -s "\t " " " | \
> > cut -d " " -f 2-3 | \
> > egrep "(lyx|tex|lilypond)" | \
> > egrep -v "tex(t|port)"
> fonts-lyx 2.3.6-1
> fonts-texgyre 20180621-3.1
> geany-plugin-latex 1.38+dfsg-1
> latexmk 1:4.76-1
> libptexenc1:amd64 2021.20210626.59705-1build1
> libsynctex2:amd64 2021.20210626.59705-1build1
> libtexlua53:amd64 2021.20210626.59705-1build1
> libtexluajit2:amd64 2021.20210626.59705-1build1
> lilypond 2.22.1-2
> lilypond-data 2.22.1-2
> lilypond-doc 2.22.1-2
> lilypond-doc-html 2.22.1-2
> lilypond-doc-pdf 2.22.1-2
> lilypond-fonts 2.22.1-2
> lyx 2.3.6-1
> lyx-common 2.3.6-1
> pd-motex 1.1.4-4
> preview-latex-style 12.2-1ubuntu1
> tex-common 6.17
> tex-gyre 20180621-3.1
> texinfo 6.8-4build1
> texlive 2021.20220204-1
> texlive-base 2021.20220204-1
> texlive-binaries 2021.20210626.59705-1build1
> texlive-extra-utils 2021.20220204-1
> texlive-font-utils 2021.20220204-1
> texlive-fonts-recommended 2021.20220204-1
> texlive-fonts-recommended-doc 2021.20220204-1
> texlive-lang-english 2021.20220204-1
> texlive-lang-greek 2021.20220204-1
> texlive-latex-base 2021.20220204-1
> texlive-latex-base-doc 2021.20220204-1
> texlive-latex-extra 2021.20220204-1
> texlive-latex-extra-doc 2021.20220204-1
> texlive-latex-recommended 2021.20220204-1
> texlive-latex-recommended-doc 2021.20220204-1
> texlive-luatex 2021.20220204-1
> texlive-metapost 2021.20220204-1
> texlive-metapost-doc 2021.20220204-1
> texlive-pictures 2021.20220204-1
> texlive-pictures-doc 2021.20220204-1
> texlive-plain-generic 2021.20220204-1
> texlive-science 2021.20220204-1
> texlive-xetex 2021.20220204-1

P.S. Prior to sending the above, I ran the Tools->Reconfigure (though
from everything I read it wasn't necessary). No change. It still
didn't find what it's looking for.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Missing prerequisites: lilypond-book->latex

2022-05-27 Thread Kevin Cole
Hi,

I'm running the latest -- and greatest(?)  -- release of Pop!_OS,
which is effectively Ubuntu. Specifically, 22.04 LTS ("Jammy").

I've just installed LyX and have not adjusted any preferences /
options / configurations. When I try Help -> Specific Manuals ->
LilyPond I get a pop-up:
__
The module lilypond requires a package that is not
available in your LaTeX installation, or a converter that
you have not installed. LaTeX output may not be possible.
Missing prerequisites:
lilypond-book->latex
See section 3.1.2.3 (Modules) of the User's Guide for more information.
__

I've read elsewhere that it should just work "out of the box" on
Ubuntu systems. What am I missing?

P.S. For the record, I have:

$ lyx --version
LyX 2.3.6 (2020-11-27)
Configuration
  Host type:   x86_64-pc-linux-gnu
...

$ lilypond --version
GNU LilyPond 2.22.1

$ lilypond-book --version
2.22.1

$ latex --version
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
kpathsea version 6.3.4/dev
Copyright 2021 Han The Thanh (pdfTeX) et al.

Just to be sure:

$ dpkg -l | \
> tr -s "\t " " " | \
> cut -d " " -f 2-3 | \
> egrep "(lyx|tex|lilypond)" | \
> egrep -v "tex(t|port)"
fonts-lyx 2.3.6-1
fonts-texgyre 20180621-3.1
geany-plugin-latex 1.38+dfsg-1
latexmk 1:4.76-1
libptexenc1:amd64 2021.20210626.59705-1build1
libsynctex2:amd64 2021.20210626.59705-1build1
libtexlua53:amd64 2021.20210626.59705-1build1
libtexluajit2:amd64 2021.20210626.59705-1build1
lilypond 2.22.1-2
lilypond-data 2.22.1-2
lilypond-doc 2.22.1-2
lilypond-doc-html 2.22.1-2
lilypond-doc-pdf 2.22.1-2
lilypond-fonts 2.22.1-2
lyx 2.3.6-1
lyx-common 2.3.6-1
pd-motex 1.1.4-4
preview-latex-style 12.2-1ubuntu1
tex-common 6.17
tex-gyre 20180621-3.1
texinfo 6.8-4build1
texlive 2021.20220204-1
texlive-base 2021.20220204-1
texlive-binaries 2021.20210626.59705-1build1
texlive-extra-utils 2021.20220204-1
texlive-font-utils 2021.20220204-1
texlive-fonts-recommended 2021.20220204-1
texlive-fonts-recommended-doc 2021.20220204-1
texlive-lang-english 2021.20220204-1
texlive-lang-greek 2021.20220204-1
texlive-latex-base 2021.20220204-1
texlive-latex-base-doc 2021.20220204-1
texlive-latex-extra 2021.20220204-1
texlive-latex-extra-doc 2021.20220204-1
texlive-latex-recommended 2021.20220204-1
texlive-latex-recommended-doc 2021.20220204-1
texlive-luatex 2021.20220204-1
texlive-metapost 2021.20220204-1
texlive-metapost-doc 2021.20220204-1
texlive-pictures 2021.20220204-1
texlive-pictures-doc 2021.20220204-1
texlive-plain-generic 2021.20220204-1
texlive-science 2021.20220204-1
texlive-xetex 2021.20220204-1
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


[fixed] Re: Chrome and Edge says the LyX website is NOT private and NOT secure

2022-05-27 Thread Jean-Marc Lasgouttes

Le 27/05/2022 à 08:22, Herbert Voss a écrit :
Indeed, there is a problem on our side. Unfurtunately our certificate 
expert is not available right now. I tried to fix this myself, without 
much success. We'll fix that as fast as we can.


you are using lets encrypt:##

/usr/bin/certbot --quiet renew


Thanks Herbert for the tip.

For some reason, we have some scripts of our own that I did not manage 
to run yesterday. This got finally resolved today and the sites are back 
to normal life.


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


  1   2   3   4   5   6   7   8   9   10   >