Re: how to add this shortcut?

2024-05-04 Thread Andrew Parsloe

On 5/05/2024 9:52 am, Richard Kimberly Heck wrote:

On 5/4/24 15:03, matan guedj wrote:
I want to add a shortcut that will open a preview environment and 
inside it opens an ert environment and "insert-preview insert-ert" 
and "\insert-preview \insert-ert" aren't working, so I don't know if 
it's a syntax error or something more fundamental here.


You need to use the command-sequence LFUN to do this. It just tells 
LyX that you are going to give a series of commands. Otehrwise, it 
interprets everything as one command. So something like:


command-sequence insert-preview; insert-ert

Riki


Riki, I believe this is called a "thinko". It should be:

 command-sequence preview-insert; ert-insert

I've considered a shortcut for this sequence but prefer to insert the 
insets separately using  Ctrl+P to insert the preview inset and the LyX 
supplied Ctrl+L to  insert an ert inset. That way I can select text or a 
table and simply tap Ctrl+P to wrap it in a preview inset and see (after 
a pause) the result. If I want an ert inset inside a preview inset then 
I hold down the Ctrl key and tap P then L (which are diagonally adjacent 
on my keyboard).


Andrew

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


Re: how to add this shortcut?

2024-05-04 Thread Richard Kimberly Heck

On 5/4/24 15:03, matan guedj wrote:
I want to add a shortcut that will open a preview environment and 
inside it opens an ert environment and "insert-preview insert-ert" and 
"\insert-preview \insert-ert" aren't working, so I don't know if it's 
a syntax error or something more fundamental here.


You need to use the command-sequence LFUN to do this. It just tells LyX 
that you are going to give a series of commands. Otehrwise, it 
interprets everything as one command. So something like:


command-sequence insert-preview; insert-ert

Riki


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


how to add this shortcut?

2024-05-04 Thread matan guedj
I want to add a shortcut that will open a preview environment and inside it
opens an ert environment and "insert-preview insert-ert" and
"\insert-preview \insert-ert" aren't working, so I don't know if it's a
syntax error or something more fundamental here.
thanks in advance!
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to reduce code lineheight in LaTeX Beamer

2023-12-11 Thread Herbert Voss



Am 11.12.23 um 15:11 schrieb Herbert Voss:



Am 10.12.23 um 23:09 schrieb Steve Litt:

Hi all,

I'm using Beamer straight with LaTeX (no LyX). There's too much space
between lines of code, so it makes the code hard to read and also
pushes other content down too far. The following is a frame from my
presentation:

\begin{frame} [fragile]
    \frametitle{How to Design BNF}
    \begin{semiverbatim}


semiverbatim causes an error if used with [fragile], it works without it.


    wholefile ::= chunk | wholefile chunk
    chunk ::= paratext multinewline
    multinewline ::= NL NL | multinewline NL
    \end{semiverbatim}
\end{frame}

How can I reduce the space between lines of this code?


I cannot see it ... and a  working minimal example makes sense here ...


Sorry, herre is the  correct screenshot

Herbert

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


Re: How to reduce code lineheight in LaTeX Beamer

2023-12-11 Thread Herbert Voss



Am 10.12.23 um 23:09 schrieb Steve Litt:

Hi all,

I'm using Beamer straight with LaTeX (no LyX). There's too much space
between lines of code, so it makes the code hard to read and also
pushes other content down too far. The following is a frame from my
presentation:

\begin{frame} [fragile]
\frametitle{How to Design BNF}
\begin{semiverbatim}


semiverbatim causes an error if used with [fragile], it works without it.


wholefile ::= chunk | wholefile chunk
chunk ::= paratext multinewline
multinewline ::= NL NL | multinewline NL
\end{semiverbatim}
\end{frame}

How can I reduce the space between lines of this code?


I cannot see it ... and a  working minimal example makes sense here ...

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


How to reduce code lineheight in LaTeX Beamer

2023-12-10 Thread Steve Litt
Hi all,

I'm using Beamer straight with LaTeX (no LyX). There's too much space
between lines of code, so it makes the code hard to read and also
pushes other content down too far. The following is a frame from my
presentation:

\begin{frame} [fragile]
\frametitle{How to Design BNF}
\begin{semiverbatim}
wholefile ::= chunk | wholefile chunk
chunk ::= paratext multinewline
multinewline ::= NL NL | multinewline NL
\end{semiverbatim}
\end{frame}

How can I reduce the space between lines of this code?

Thanks,

SteveT

Steve Litt 

Autumn 2023 featured book: Rapid Learning for the 21st Century
http://www.troubleshooters.com/rl21
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to increase contrast of scrollbar

2023-09-05 Thread José Matos
On Mon, 2023-09-04 at 23:27 +0100, Paul Stansell wrote:
> Thanks for that advice.  You're right that the Application Style is
> what controls the scroll bar colour, but I like Fusion because the
> horizontal icon bars take up less vertical space which gives more
> space for the LyX document.  Is there a way to tweek just the scroll
> bar colour in a Fusion configuration file somewhere?

I have no idea, sorry. :-(
-- 
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to increase contrast of scrollbar

2023-09-04 Thread Paul Stansell
> As far as I understand the culprit here is the Application Style, what
> happens if you change that to, say, "Breeze Dark"?
>

Thanks for that advice.  You're right that the Application Style is what
controls the scroll bar colour, but I like Fusion because the horizontal
icon bars take up less vertical space which gives more space for the LyX
document.  Is there a way to tweek just the scroll bar colour in a Fusion
configuration file somewhere?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to increase contrast of scrollbar

2023-09-03 Thread José Matos
On Sun, 2023-09-03 at 23:36 +0100, Paul Stansell wrote:
> I'm using the following:
> - Global Theme: Breeze Twilight
> - Application Style: Fusion
> - Plasma Style: Breeze Dark
> - Colours: Breeze Light
> - Window Decorations: Plastik
> 
> KDE's program okular has the same invisible scroll bar as LyX.

As far as I understand the culprit here is the Application Style, what
happens if you change that to, say, "Breeze Dark"?

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


Re: How to increase contrast of scrollbar

2023-09-03 Thread Paul Stansell
> LyX follows the global theme.
> Which theme are you using? The default in KDE plasma is "Breeze" and
> the scrollbar is visible.
>

 I'm using the following:
- Global Theme: Breeze Twilight
- Application Style: Fusion
- Plasma Style: Breeze Dark
- Colours: Breeze Light
- Window Decorations: Plastik

KDE's program okular has the same invisible scroll bar as LyX.
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to increase contrast of scrollbar

2023-09-03 Thread José Matos
On Sat, 2023-09-02 at 22:10 +0100, Paul Stansell wrote:
> Hello,
> 
> How can I increase the contrast of the scrollbar in LyX?
> 
> In the image below the left scroll bar is from Brave and the right
> from LyX.  The LyX scroll bar is barely visible against the
> background.

LyX follows the global theme.
Which theme are you using? The default in KDE plasma is "Breeze" and
the scrollbar is visible.

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


How to increase contrast of scrollbar

2023-09-02 Thread Paul Stansell
Hello,

How can I increase the contrast of the scrollbar in LyX?

In the image below the left scroll bar is from Brave and the right from
LyX.  The LyX scroll bar is barely visible against the background.

[image: image.png]

Thanks,

Paul

I'm using the following versions:

  LyX Version 2.3.7
  Qt Version (run-time): 5.15.8 on platform xcb
  Qt Version (compile-time): 5.15.7

running on

  Operating System: Kubuntu 23.04
  KDE Plasma Version: 5.27.4
  KDE Frameworks Version: 5.104.0
  Qt Version: 5.15.8
  Kernel Version: 6.2.0-27-generic (64-bit)
  Graphics Platform: X11
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How locate LyX errors

2023-08-15 Thread Daniel

On 2023-08-14 18:35, Herbert Voss wrote:



Am 14.08.23 um 16:07 schrieb Edwin Burmeister:


I am using LyX 2.3.7 on a Mac (silicon chip) running OS Ventura 13.5.


From LaTeX Errors window:


“Selecting an error ... the cursor will jump to the location in the 
document where the error occurred.”



This does not happen for me. How can I get it to work?


I then tried to locate my errors via line number. But putting


\usepackage[left,modulo]{lineno}

\linenumbers


in the LaTeX Preamble did not work.



No problem on my macOS. Export the document to LaTeX and run it.
Then you should see an error message.


Just to be sure: This answer sounds as if the normal way to hunt down 
LaTeX errors in LyX is to export to LaTeX. That is not so (and probably 
not what is meant). It should work directly from the LaTeX Errors window.


However, there are some exceptions. Most notably errors in the preamble. 
I don't think those can be found the way LyX suggests. And since, 
unfortunately, the code preview pane does not have proper line numbers, 
it is hard to track those errors down. In that case exporting to another 
editor might be a better way indeed.


Daniel

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


Re: How locate LyX errors

2023-08-14 Thread Herbert Voss



Am 14.08.23 um 16:07 schrieb Edwin Burmeister:


I am using LyX 2.3.7 on a Mac (silicon chip) running OS Ventura 13.5.


From LaTeX Errors window:


“Selecting an error ... the cursor will jump to the location in the 
document where the error occurred.”



This does not happen for me. How can I get it to work?


I then tried to locate my errors via line number. But putting


\usepackage[left,modulo]{lineno}

\linenumbers


in the LaTeX Preamble did not work.



No problem on my macOS. Export the document to LaTeX and run it.
Then you should see an error message.

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


How locate LyX errors

2023-08-14 Thread Edwin Burmeister
I am using LyX 2.3.7 on a Mac (silicon chip) running OS Ventura 13.5.


From LaTeX Errors window:


“Selecting an error ... the cursor will jump to the location in the document 
where the error occurred.”


This does not happen for me. How can I get it to work?


I then tried to locate my errors via line number. But putting


\usepackage[left,modulo]{lineno}

\linenumbers


in the LaTeX Preamble did not work.


How can I obtain line numbers as an aid for locating errors?


***
Edwin Burmeister
Research Professor of Economics Emeritus
Duke University
Commonwealth Professor of Economics Emeritus
University of Virginia
e...@econ.duke.edu<mailto:e...@econ.duke.edu>



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


Re: How to put Figure (Floats) in Fancy coloured boxes in LyX.

2023-08-01 Thread Richard Kimberly Heck

On 8/1/23 02:52, Faseeh Muhammad wrote:

Hi,

I am creating examples for a lesson where i have to include figures 
(and some time subfigures) with labels and captions along with the text.


What i am trying to do is to use fancy color box module to mimic the 
tcolorbox environment in latex and then trying to put a figure (In Lyx 
Insert>Float>Figure) and then label and caption it. But result is in 
error that reads "Nor in outer par mode". So is there any way i can 
put figures (and subfigures, if possible) in these boxes.


I am no expert on this, but I will guess that you can't do it this way. 
The color box is stuck to a certain position on the page, and a float is 
not, so the combination does not make sense. What you'd need to do is 
insert the float and then apply the color to the caption, say. And 
probably INSIDE the caption, not the whole caption.



Riki

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


How to put Figure (Floats) in Fancy coloured boxes in LyX.

2023-08-01 Thread Faseeh Muhammad
Hi,

I am creating examples for a lesson where i have to include figures (and some 
time subfigures) with labels and captions along with the text.

What i am trying to do is to use fancy color box module to mimic the tcolorbox 
environment in latex and then trying to put a figure (In Lyx 
Insert>Float>Figure) and then label and caption it. But result is in error that 
reads "Nor in outer par mode". So is there any way i can put figures (and 
subfigures, if possible) in these boxes.

Currently I am using direct latex code for my work (I am using capt-of package 
for captions and labels).

Thank you,
Faseeh

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


Re: How do I increase TL2023 TeX capacity?

2023-07-03 Thread Dr Eberhard Lisse
BTW, make sure you have configured tlmgr to keep one or two versions of
updates in case you pull a misunderimproved version of something and so
can revert.

I do the updates manually (little shell script), so that I am aware of
things.


el

On 29/06/2023 14:41, Rich Shepard wrote:
[...]
> Sunday, when /etc/cron.weekly runs, there might be an official fix. If
> not, then next week.
[...]
-- 
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: How do I increase TL2023 TeX capacity?

2023-06-29 Thread Dr Eberhard W Lisse
And what Steve and I are saying, doing this successive reduction one
will find the location of the error.  Then one can either remove the
offending code or figure out what to do to make it work.


In the case of a KOMA bug, the author is extremely responsive and
helpful.

el

On 29/06/2023 14:41, Rich Shepard wrote:
> On Wed, 28 Jun 2023, Steve Litt wrote:
[...]
> In my case it's a bug in the KOMA-Script book class.  Herbert filed a
> bug report and sent me a temporary replacement class.  Sunday, when
> /etc/cron.weekly runs, there might be an official fix.  If not, then
> next week.
[...]

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


Re: How do I increase TL2023 TeX capacity?

2023-06-29 Thread Dr Eberhard W Lisse
Selective quote.

Eventually you locate the line that triggers the error.

el


On 28/06/2023 23:59, Rich Shepard wrote:
> On Wed, 28 Jun 2023, Dr Eberhard W Lisse wrote:
> 
>> Reduce the document by half and look at the half which triggers the
>> error.
> 
> Would make no difference.
> 
> TL2023 needed an update. Updating TL2023 is now included in
> /etc/cron.weekly.
> 
> Rich


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


Re: How do I increase TL2023 TeX capacity?

2023-06-29 Thread Rich Shepard

On Wed, 28 Jun 2023, Steve Litt wrote:


You can, and I suggest you try it just in case it works, but my experience
tells me that out of stack errors are caused by bad LaTeX authoring, not a
correct LaTeX file that just happens to need a little more stack.


Steve,

In my case it's a bug in the KOMA-Script book class. Herbert filed a bug
report and sent me a temporary replacement class. Sunday, when
/etc/cron.weekly runs, there might be an official fix. If not, then next
week.

Thanks,

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


Re: How do I increase TL2023 TeX capacity?

2023-06-28 Thread Steve Litt
Rich Shepard said on Wed, 28 Jun 2023 06:44:45 -0700 (PDT)

>On Wed, 28 Jun 2023, Herbert Voss wrote:
>
>> You can try to increase the stack.for example
>> stack_size = 2  % simultaneous input sources
>> Put this into a file /usr/local/texlive/2023/texmf.cnf
>> Create it, if not present. The main system configuration file is in 
>> .../texmf-dist/web2c/
>> but should not be touched. Then run fmtutil-sys --all  
>
>Herbert,
>
>Did all this.
>
>Tried compiling the book and get the same error, but with the
>stack_size at 2. The build stops at the same point: `Data' on line
>402.
>
>Should I increase the stack_size more (there's 32G RAM on this host)?

You can, and I suggest you try it just in case it works, but my
experience tells me that out of stack errors are caused by bad LaTeX
authoring, not a correct LaTeX file that just happens to need a little
more stack.

I know how to fix this. Archive what you currently have, copy it to
mwe.lyx, then start subtracting stuff until only the essentials of the
requirements to produce the error remain. Archive that file as mwe.lyx.
Then, with some experimentation, the root cause should stick out like a
sore thumb, and once you find it, you can fix it either by fixing the
root cause in the originally archived document, or by slowly building
up the fixed mwe until it becomes obvious how to fix the original file.

Even if this doesn't work for you, asking questions about mwe.lyx would
*greatly* increase the likelihood of somebody accurately answering your
questions.

I run into this hassle all the time. It's frustrating and time
consuming, but if you follow the process, fixing it isn't rocket
science.


SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How do I increase TL2023 TeX capacity?

2023-06-28 Thread Rich Shepard

On Wed, 28 Jun 2023, Dr Eberhard W Lisse wrote:


Reduce the document by half and look at the half which triggers the
error.


Would make no difference.

TL2023 needed an update. Updating TL2023 is now included in
/etc/cron.weekly.

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


Re: How do I increase TL2023 TeX capacity?

2023-06-28 Thread Dr Eberhard W Lisse
Reduce the document by half and look at the half which triggers the
error.

Rinse and Repeat until you locate the error in your (generated) LaTeX
which triggers this (misleading) error message and fix it.

el

On 28/06/2023 01:07, Rich Shepard wrote:
> On Tue, 27 Jun 2023, Rich Shepard wrote:
> 
>> This is another new one for me: TeX capacity exceeded when I tried
>> compiling my book.  The full error log is attached.
> 
> I forgot to add that I looked at several StackExchange threads but
> they did not seem relevant to my situation.
> 
> Rich

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


Re: How do I increase TL2023 TeX capacity?

2023-06-28 Thread Rich Shepard

On Wed, 28 Jun 2023, Herbert Voss wrote:


You can try to increase the stack.for example
stack_size = 2  % simultaneous input sources
Put this into a file /usr/local/texlive/2023/texmf.cnf
Create it, if not present. The main system configuration file is in 
.../texmf-dist/web2c/

but should not be touched. Then run fmtutil-sys --all


Herbert,

Did all this.

Tried compiling the book and get the same error, but with the stack_size at
2. The build stops at the same point: `Data' on line 402.

Should I increase the stack_size more (there's 32G RAM on this host)?

What might be causing this error? There are many figures and tables in the
book if that is an issue.

Thanks,

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


Re: How do I increase TL2023 TeX capacity?

2023-06-28 Thread Herbert Voss



Am 28.06.23 um 14:12 schrieb Rich Shepard:

On Wed, 28 Jun 2023, Herbert Voss wrote:


[11] [12]
chapter without number
[1]
! TeX capacity exceeded, sorry [input stack size=1].
\protect ->\noexpand \protect
  \noexpand
l.204 Data}



that looks like a recursion. In line 204 you are reading a file with
Data in its name. Right? Show that part of the source code.


Herbert,

I saw that in the log file and had no idea what it meant. The Preface 
is a
chapter without number, and I'm adding an Acknowledgement page before 
that

which will also be a chapter without number.

Here's the context for line 204 in the .tex file:

To appreciate why the statistical framework used for environmental
data is critical for decision-makers it is necessary to understand
the details of each one.

\section{\label{sec:Analyzing-Environmental-Data}Analyzing Environmental
Data}



Rich,
that looks ok.
You can try to increase the stack.for example

stack_size = 2  % simultaneous input sources


Put this into a file /usr/local/texlive/2023/texmf.cnf

Create it, if not present. The main system configuration file is in 
.../texmf-dist/web2c/

but should not be touched.

Then run

fmtutil-sys --all

(maybe as root)

Herbert





There are three statistical model frameworks applied to data sets.
They are not equivalent and each is most appropriate to answer questions
about different types of data. 

I want to learn more about incorporating LaTeX in my LyX documents. 
For this
book I want to modify the chapter headings and found code that does 
most of
that (chapter name left-aligned between two horizontal rules) and I 
want the
chapter number in words (all lower case) centered above that. This 
will wait

until I learn how to fix the capacity issue and prepare the index.

Regards,

Rich


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


Re: How do I increase TL2023 TeX capacity?

2023-06-28 Thread Rich Shepard

On Wed, 28 Jun 2023, Herbert Voss wrote:


[11] [12]
chapter without number
[1]
! TeX capacity exceeded, sorry [input stack size=1].
\protect ->\noexpand \protect
  \noexpand
l.204 Data}



that looks like a recursion. In line 204 you are reading a file with
Data in its name. Right? Show that part of the source code.


Herbert,

I saw that in the log file and had no idea what it meant. The Preface is a
chapter without number, and I'm adding an Acknowledgement page before that
which will also be a chapter without number.

Here's the context for line 204 in the .tex file:

To appreciate why the statistical framework used for environmental
data is critical for decision-makers it is necessary to understand
the details of each one.

\section{\label{sec:Analyzing-Environmental-Data}Analyzing Environmental
Data}

There are three statistical model frameworks applied to data sets.
They are not equivalent and each is most appropriate to answer questions
about different types of data. 



I want to learn more about incorporating LaTeX in my LyX documents. For this
book I want to modify the chapter headings and found code that does most of
that (chapter name left-aligned between two horizontal rules) and I want the
chapter number in words (all lower case) centered above that. This will wait
until I learn how to fix the capacity issue and prepare the index.

Regards,

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


Re: How do I increase TL2023 TeX capacity?

2023-06-27 Thread Herbert Voss



Am 28.06.23 um 01:04 schrieb Rich Shepard:
This is another new one for me: TeX capacity exceeded when I tried 
compiling

my book. The full error log is attached.



[11] [12]
chapter without number
[1]
! TeX capacity exceeded, sorry [input stack size=1].
\protect ->\noexpand \protect
  \noexpand
l.204 Data}


that looks like a recursion. In line 204 you are reading a file with
Data in its name. Right? Show that part of the source code.

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


Re: How do I increase TL2023 TeX capacity?

2023-06-27 Thread Rich Shepard

On Tue, 27 Jun 2023, Rich Shepard wrote:


This is another new one for me: TeX capacity exceeded when I tried compiling
my book. The full error log is attached.


I forgot to add that I looked at several StackExchange threads but they did
not seem relevant to my situation.

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


How do I increase TL2023 TeX capacity?

2023-06-27 Thread Rich Shepard
nt shape `U/msb/m/n' will be
(Font)  scaled to size 8.33606pt on input line 73.
[3

{/usr/local/texlive/2023/texmf-dist/fonts/enc/dvips/classico/clsc_tyth7d.enc}]
LaTeX Font Info:Trying to load font information for TS1+pplx on input line 
73.
(/usr/local/texlive/2023/texmf-dist/tex/latex/psnfss/ts1pplx.fd
File: ts1pplx.fd 2004/09/06 font definitions for TS1/pplx.
) [4

] (./quantifying-ambient-conditions.toc)
\tf@toc=\write4
\openout4 = `quantifying-ambient-conditions.toc'.

LaTeX Font Info:Font shape `T1/pplx/m/sl' in size <10.95> not available
(Font)  Font shape `T1/pplx/m/it' tried instead on input line 75.
LaTeX Font Info:Font shape `U/msa/m/n' will be
(Font)  scaled to size 11.40997pt on input line 75.
LaTeX Font Info:Font shape `U/msa/m/n' will be
(Font)  scaled to size 6.25204pt on input line 75.
LaTeX Font Info:Font shape `U/msb/m/n' will be
(Font)  scaled to size 11.40997pt on input line 75.
LaTeX Font Info:Font shape `U/msb/m/n' will be
(Font)  scaled to size 6.25204pt on input line 75.
[5


] [6


] (./quantifying-ambient-conditions.lof)
\tf@lof=\write5
\openout5 = `quantifying-ambient-conditions.lof'.

[7] [8


] (./quantifying-ambient-conditions.lot)
\tf@lot=\write6
\openout6 = `quantifying-ambient-conditions.lot'.

[9] [10


]
chapter without number
LaTeX Font Info:Font shape `U/msa/m/n' will be
(Font)  scaled to size 9.37807pt on input line 120.
LaTeX Font Info:Font shape `U/msa/m/n' will be
(Font)  scaled to size 7.29405pt on input line 120.
LaTeX Font Info:Font shape `U/msa/m/n' will be
(Font)  scaled to size 5.21004pt on input line 120.
LaTeX Font Info:Font shape `U/msb/m/n' will be
(Font)  scaled to size 9.37807pt on input line 120.
LaTeX Font Info:Font shape `U/msb/m/n' will be
(Font)  scaled to size 7.29405pt on input line 120.
LaTeX Font Info:Font shape `U/msb/m/n' will be
(Font)  scaled to size 5.21004pt on input line 120.
[11] [12]
chapter without number
[1]
! TeX capacity exceeded, sorry [input stack size=1].
\protect ->\noexpand \protect 
  \noexpand 
l.204 Data}
   
If you really absolutely need more capacity,
you can ask a wizard to enlarge me.

 
Here is how much of TeX's memory you used:
 15240 strings out of 475723
 321904 string characters out of 5781843
 1863769 words of memory out of 500
 35826 multiletter control sequences out of 15000+60
 580894 words of font info for 120 fonts, out of 800 for 9000
 1141 hyphenation exceptions out of 8191
 1i,21n,10008p,10950b,803s stack positions out of 
1i,1000n,2p,20b,20s
!  ==> Fatal error occurred, no output PDF file produced!
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


SOLVED: How to change citation in Biblatex spbasic

2023-06-12 Thread Wolfgang Engelmann

Thanks, Herbert and Jürgen.

Good to know it is quite easy to get the desired change in the output.

Wolfgang

Am 11.06.23 um 10:14 schrieb Jürgen Spitzmüller:

Am Sonntag, dem 11.06.2023 um 09:02 +0200 schrieb Herbert Voss:

Only for authors with the same familyname the given names are used.


And this could be omitted by uniquename=false or maybe a less radical
uniquename value (in Document > Settings > Bibliography > Cite Style >
Options).

See biblatex manual, 4.11.4 Name Disambiguation.


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


Re: How to change citation in Biblatex spbasic

2023-06-11 Thread Jürgen Spitzmüller
Am Sonntag, dem 11.06.2023 um 09:02 +0200 schrieb Herbert Voss:
> Only for authors with the same familyname the given names are used.

And this could be omitted by uniquename=false or maybe a less radical
uniquename value (in Document > Settings > Bibliography > Cite Style >
Options).

See biblatex manual, 4.11.4 Name Disambiguation.

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


Re: How to change citation in Biblatex spbasic

2023-06-11 Thread Herbert Voss



Am 10.06.23 um 09:58 schrieb Wolfgang Engelmann:
I use for my literature biblatex (author year) citation style spbasic, 
processor biber.


I would like to change the citation in the text slightly.
Example:

S Daan, DGM Beersma (1984)
should be

Daan, Beersma (1984)

or Daan and Beersma (1984)

Can I obtain this in the Style options and what should be entered there?



Wolfgang,

that is already the default of the style biblatex-spbasic. Only for 
authors with the

same familyname the given names are used.

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


How to change citation in Biblatex spbasic

2023-06-10 Thread Wolfgang Engelmann
I use for my literature biblatex (author year) citation style spbasic, 
processor biber.


I would like to change the citation in the text slightly.
Example:

S Daan, DGM Beersma (1984)
should be

Daan, Beersma (1984)

or Daan and Beersma (1984)

Can I obtain this in the Style options and what should be entered there?

If not, how would I change it in the citation style spbasic which was 
modified for LyX by Herbert Voss?


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


Re: How to Insert a Custom Float

2023-06-05 Thread Ricardo Berlasso
El lun, 5 jun 2023 a las 16:25, Doug Martin ()
escribió:

> Stoyan Stoyanov and I have a paper accepted by a Journal that does not
> use Figures or Tables,
> and instead uses Exhibits for both.  Stoyan points out the following:
>
> We can load the newfloat package and define a custom Exhibit float
> environment trivially in the preamble in this way:
>
> \usepackage{newfloat}
> \DeclareFloatingEnvironment{exhibit}
>
> Then, in latex one use it the usual way:
> \begin{exhibit}
> ...
> \end{exhibit}
>
> Although we can include those two lines in the preamble in LyX, the menu
> in Inset -> Float does not have a "custom" option.
> How can we insert a custom float in LyX?
>
> Any guidance that anyone can provide would be very much appreciated.
>


You need to define a new local layout (Documents → Settings → Local
layout). The following example uses the photo package, but you can adapt it
to your needs. Once set, you'll have the a new inset under Insert → Float.

Format 66
AddToPreamble
\usepackage[]{photo}
\usepackage[english]{babel}
\addto\captionsenglish{
\def\photoname{Photograph}
\def\listphotoname{Index of Photographs}
}
EndPreamble
Float
Type photo
GuiName "Photo"
Placement tbp
Extension loscf
NumberWithin none
Style plain
ListCommand listofphotos
ListName "Index of Photographs"
RefPrefix Photo
IsPredefined 1
UsesFloatPkg 0
End


Regards,
Ricardo



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


How to Insert a Custom Float

2023-06-05 Thread Doug Martin
Stoyan Stoyanov and I have a paper accepted by a Journal that does not use
Figures or Tables,
and instead uses Exhibits for both.  Stoyan points out the following:

We can load the newfloat package and define a custom Exhibit float
environment trivially in the preamble in this way:

\usepackage{newfloat}
\DeclareFloatingEnvironment{exhibit}

Then, in latex one use it the usual way:
\begin{exhibit}
...
\end{exhibit}

Although we can include those two lines in the preamble in LyX, the menu in
Inset -> Float does not have a "custom" option.
How can we insert a custom float in LyX?

Any guidance that anyone can provide would be very much appreciated.

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


Re: SOLVED > Re: how to tell LyX that there is a 2023 texlive

2023-05-05 Thread Dr Eberhard W Lisse
On the Mac I use Homebrew's basictex with a small script to save the
installed packages so it can pull the additional ones after the upgrade
via tlmgr.  LyX works out of the box because Homebrew and tlmgr run
texhash and the binary directories are symlinked by Homebrew.

I can then usually just remove the older version.

el

On 02/05/2023 18:09, Wolfgang Engelmann wrote:
> 
> 
> Am 02.05.23 um 17:42 schrieb José Matos:
>> On Tue, 2023-05-02 at 16:43 +0200, Wolfgang Engelmann wrote:
>>> How can I tell LyX that there is a 2023 texlive which I installed
>>> just now.
>>>
>>> It is in
>>> /usr/local/texlive/2023
>>> and I have the PATHs set in ~/.profile.
>>>
>>> However, LyX uses still
>>> /usr/local/texlive/2022
>>>
>>> Wolfgang
>>
>> What happens if you try:
>> Tools -> Reconfigure
>>
>> then restart LyX.
>>
>> Does that works?
> 
> Thanks, José, for the reminder. I forgot the reconfigure,
> and thanks, Steve, for the texhash. Now its working.
> 
> Wolfgang

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


SOLVED > Re: how to tell LyX that there is a 2023 texlive

2023-05-02 Thread Wolfgang Engelmann



Am 02.05.23 um 17:42 schrieb José Matos:

On Tue, 2023-05-02 at 16:43 +0200, Wolfgang Engelmann wrote:

How can I tell LyX that there is a 2023 texlive which I installed
just now.

It is in
/usr/local/texlive/2023
and I have the PATHs set in ~/.profile.

However, LyX uses still
/usr/local/texlive/2022

Wolfgang


What happens if you try:
Tools -> Reconfigure

then restart LyX.

Does that works?


Thanks, José, for the reminder. I forgot the reconfigure,
and thanks, Steve, for the texhash. Now its working.

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


Re: how to tell LyX that there is a 2023 texlive

2023-05-02 Thread Steve Litt
José Matos said on Tue, 02 May 2023 16:42:17 +0100

>On Tue, 2023-05-02 at 16:43 +0200, Wolfgang Engelmann wrote:
>> How can I tell LyX that there is a 2023 texlive which I installed
>> just now.
>> 
>> It is in
>> /usr/local/texlive/2023
>> and I have the PATHs set in ~/.profile.
>> 
>> However, LyX uses still
>> /usr/local/texlive/2022
>> 
>> Wolfgang  
>
>What happens if you try:
>Tools -> Reconfigure
>
>then restart LyX.
>
>Does that works?

Before doing that, if I were you I'd do a texhash as root.

SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: how to tell LyX that there is a 2023 texlive

2023-05-02 Thread José Matos
On Tue, 2023-05-02 at 16:43 +0200, Wolfgang Engelmann wrote:
> How can I tell LyX that there is a 2023 texlive which I installed
> just now.
> 
> It is in
> /usr/local/texlive/2023
> and I have the PATHs set in ~/.profile.
> 
> However, LyX uses still
> /usr/local/texlive/2022
> 
> Wolfgang

What happens if you try:
Tools -> Reconfigure

then restart LyX.

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


how to tell LyX that there is a 2023 texlive

2023-05-02 Thread Wolfgang Engelmann

How can I tell LyX that there is a 2023 texlive which I installed just now.

It is in
/usr/local/texlive/2023
and I have the PATHs set in ~/.profile.

However, LyX uses still
/usr/local/texlive/2022

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


how to list listings

2023-04-28 Thread Wolfgang Engelmann

For long algorithms (exceeding a page) I use a listing.

1. How can I make it to appear in the Contents?

2. And how can I avoid, that in the pdf output figures are inserted in 
the Listing output?


Listing
.
.
.
Fig. x
continued Listing
.
.
.

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


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Hongyi Zhao
On Wed, Apr 19, 2023 at 9:46 PM Udicoudco  wrote:
>
>
>
>
> On Wed, Apr 19, 2023 at 4:15 PM Hongyi Zhao  wrote:
> >
> > On Wed, Apr 19, 2023 at 9:00 PM Udicoudco  wrote:
> > >
> > > On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao  wrote:
> > > >
> > > > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> > > > >
> > > > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  
> > > > > wrote:
> > > > > >
> > > > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > > > > >  wrote:
> > > > > > >
> > > > > > > If I understand your question, you should open the following menu:
> > > > > > >
> > > > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you 
> > > > > > > have to
> > > > > > > open the menu: Look & Feel --> Display.
> > > > > > >
> > > > > > > and to set On the Instant preview
> > > > > >
> > > > > > I've enabled this option, but the formulae still show as LaTeX
> > > > > > commands. See the attachment for more details.
> > > > > >
> > > > > > > Stefano
> > > > > >
> > > > > > Regards,
> > > > > > Zhao
> > > > > >
> > > > >
> > > > > Instead of copy a LaTeX code try to import it via
> > > > > File->Import->LaTeX (Plain).
> > > > > Then the equations should appear in a new LyX file,
> > > > > and you can copy them from there.
> > > >
> > > > This method really fixed the problem of equations display, but the
> > > > Chinese characters are displayed as chaos, as shown in the attached
> > > > file.
> > > >
> > >
> > > In what encodings the latex
> >
> > See the following for encoding info of the original TeX file which is
> > being imported into LyX:
> >
> > werner@X10DAi:~$ encguess test.tex
> > test.texUTF-8
> > werner@X10DAi:~$ uchardet test.tex
> > UTF-8
> > werner@X10DAi:~$ file -i test.tex
> > test.tex: text/plain; charset=utf-8
> >
> > > and LyX files are written?
> >
> > I don't know what do you mean by saying this. I just do the import via
> > File->Import->LaTeX (Plain).
>
> You need to add \usepackage[utf8]{inputenc} to the latex preamble so that LyX 
> will
> know what is the correct encoding.
>
> Attached is a .tex file that  I successfully imported to LyX (I think), the 
> text is taken
> from here.

Thank you very much, and it does the trick.

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


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 4:15 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 9:00 PM Udicoudco  wrote:
> >
> > On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao 
wrote:
> > >
> > > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> > > >
> > > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao 
wrote:
> > > > >
> > > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > > > >  wrote:
> > > > > >
> > > > > > If I understand your question, you should open the following
menu:
> > > > > >
> > > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you
have to
> > > > > > open the menu: Look & Feel --> Display.
> > > > > >
> > > > > > and to set On the Instant preview
> > > > >
> > > > > I've enabled this option, but the formulae still show as LaTeX
> > > > > commands. See the attachment for more details.
> > > > >
> > > > > > Stefano
> > > > >
> > > > > Regards,
> > > > > Zhao
> > > > >
> > > >
> > > > Instead of copy a LaTeX code try to import it via
> > > > File->Import->LaTeX (Plain).
> > > > Then the equations should appear in a new LyX file,
> > > > and you can copy them from there.
> > >
> > > This method really fixed the problem of equations display, but the
> > > Chinese characters are displayed as chaos, as shown in the attached
> > > file.
> > >
> >
> > In what encodings the latex
>
> See the following for encoding info of the original TeX file which is
> being imported into LyX:
>
> werner@X10DAi:~$ encguess test.tex
> test.texUTF-8
> werner@X10DAi:~$ uchardet test.tex
> UTF-8
> werner@X10DAi:~$ file -i test.tex
> test.tex: text/plain; charset=utf-8
>
> > and LyX files are written?
>
> I don't know what do you mean by saying this. I just do the import via
> File->Import->LaTeX (Plain).

You need to add \usepackage[utf8]{inputenc} to the latex preamble so that
LyX will
know what is the correct encoding.

Attached is a .tex file that  I successfully imported to LyX (I think), the
text is taken
from here .


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


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Hongyi Zhao
On Wed, Apr 19, 2023 at 9:00 PM Udicoudco  wrote:
>
> On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao  wrote:
> >
> > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> > >
> > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
> > > >
> > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > > >  wrote:
> > > > >
> > > > > If I understand your question, you should open the following menu:
> > > > >
> > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > > > > open the menu: Look & Feel --> Display.
> > > > >
> > > > > and to set On the Instant preview
> > > >
> > > > I've enabled this option, but the formulae still show as LaTeX
> > > > commands. See the attachment for more details.
> > > >
> > > > > Stefano
> > > >
> > > > Regards,
> > > > Zhao
> > > >
> > >
> > > Instead of copy a LaTeX code try to import it via
> > > File->Import->LaTeX (Plain).
> > > Then the equations should appear in a new LyX file,
> > > and you can copy them from there.
> >
> > This method really fixed the problem of equations display, but the
> > Chinese characters are displayed as chaos, as shown in the attached
> > file.
> >
>
> In what encodings the latex

See the following for encoding info of the original TeX file which is
being imported into LyX:

werner@X10DAi:~$ encguess test.tex
test.texUTF-8
werner@X10DAi:~$ uchardet test.tex
UTF-8
werner@X10DAi:~$ file -i test.tex
test.tex: text/plain; charset=utf-8

> and LyX files are written?

I don't know what do you mean by saying this. I just do the import via
File->Import->LaTeX (Plain).

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


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> >
> > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
> > >
> > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > >  wrote:
> > > >
> > > > If I understand your question, you should open the following menu:
> > > >
> > > > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > > > open the menu: Look & Feel --> Display.
> > > >
> > > > and to set On the Instant preview
> > >
> > > I've enabled this option, but the formulae still show as LaTeX
> > > commands. See the attachment for more details.
> > >
> > > > Stefano
> > >
> > > Regards,
> > > Zhao
> > >
> >
> > Instead of copy a LaTeX code try to import it via
> > File->Import->LaTeX (Plain).
> > Then the equations should appear in a new LyX file,
> > and you can copy them from there.
>
> This method really fixed the problem of equations display, but the
> Chinese characters are displayed as chaos, as shown in the attached
> file.
>

In what encodings the latex and LyX files are written?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Hongyi Zhao
On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
>
> On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
> >
> > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> >  wrote:
> > >
> > > If I understand your question, you should open the following menu:
> > >
> > > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > > open the menu: Look & Feel --> Display.
> > >
> > > and to set On the Instant preview
> >
> > I've enabled this option, but the formulae still show as LaTeX
> > commands. See the attachment for more details.
> >
> > > Stefano
> >
> > Regards,
> > Zhao
> >
>
> Instead of copy a LaTeX code try to import it via
> File->Import->LaTeX (Plain).
> Then the equations should appear in a new LyX file,
> and you can copy them from there.

This method really fixed the problem of equations display, but the
Chinese characters are displayed as chaos, as shown in the attached
file.

> Regards,
> Udi

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


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
>  wrote:
> >
> > If I understand your question, you should open the following menu:
> >
> > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > open the menu: Look & Feel --> Display.
> >
> > and to set On the Instant preview
>
> I've enabled this option, but the formulae still show as LaTeX
> commands. See the attachment for more details.
>
> > Stefano
>
> Regards,
> Zhao
>

Instead of copy a LaTeX code try to import it via
File->Import->LaTeX (Plain).
Then the equations should appear in a new LyX file,
and you can copy them from there.

Regards,
Udi

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


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-18 Thread Stefano Simonucci

If I understand your question, you should open the following menu:

Tools --> Preferences. Then in the window Lyx: Prefrences you have to 
open the menu: Look & Feel --> Display.


and to set On the Instant preview

Stefano

On 19/04/23 03:11, Hongyi Zhao wrote:

Dear LyX mailing list,

I am writing to ask for your help regarding a question about LyX.
Specifically, I am wondering how to display all equations as intuitive
formulas in LyX once for all when I open my LyX document or paste some
LaTeX code into a newly created LyX document.

I would like to know how to change the display of all equations in my
LyX document so that they are shown as formulas. I have tried with
`Ctrl-M` shortcut, and it only works for separated formulas. But I
haven't been able to figure out how to make this change for all
equations at once.

Can you please provide me with some guidance on how to display all
equations as intuitive formulas in LyX all at once? Any help would be
greatly appreciated.

Thank you in advance for your time and assistance.

Best regards,
Zhao

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


How to automatically display all equations as intuitive formulas in LyX?

2023-04-18 Thread Hongyi Zhao
Dear LyX mailing list,

I am writing to ask for your help regarding a question about LyX.
Specifically, I am wondering how to display all equations as intuitive
formulas in LyX once for all when I open my LyX document or paste some
LaTeX code into a newly created LyX document.

I would like to know how to change the display of all equations in my
LyX document so that they are shown as formulas. I have tried with
`Ctrl-M` shortcut, and it only works for separated formulas. But I
haven't been able to figure out how to make this change for all
equations at once.

Can you please provide me with some guidance on how to display all
equations as intuitive formulas in LyX all at once? Any help would be
greatly appreciated.

Thank you in advance for your time and assistance.

Best regards,
Zhao
-- 
Assoc. Prof. Hongsheng Zhao 
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: how to get the cited references

2023-04-14 Thread Wolfgang Engelmann



Am 14.04.23 um 10:49 schrieb Herbert Voss:



Am 14.04.23 um 10:20 schrieb Wolfgang Engelmann:
I need the cited references from a document (Koma script, book A5, 
Luatex). I use Debian Bullseye and Jabref 5.6 as a reference manager 
(LyX see below).


The bib file contains much more citation.
I used to export the .tex file of the document and to run latex 
thrice. However, I am using now luatex and running luatex MyDocument 
gives many errors such as


(./A-SP-WITTE-E-2023Apr13.tex
! Undefined control sequence.
l.3 \documentclass
    [paper=a5,ngerman,british]{scrbook}


It looks like a run with luatex and _not_ lualatex

Herbert


I see! I should have used

lualatex ./A-SP-WITTE-E-2023Apr13.tex

instead of luatex ./A-SP-WITTE-E-2023Apr13.tex

Now it works.

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


Re: how to get the cited references

2023-04-14 Thread Herbert Voss



Am 14.04.23 um 10:20 schrieb Wolfgang Engelmann:
I need the cited references from a document (Koma script, book A5, 
Luatex). I use Debian Bullseye and Jabref 5.6 as a reference manager 
(LyX see below).


The bib file contains much more citation.
I used to export the .tex file of the document and to run latex 
thrice. However, I am using now luatex and running luatex MyDocument 
gives many errors such as


(./A-SP-WITTE-E-2023Apr13.tex
! Undefined control sequence.
l.3 \documentclass
    [paper=a5,ngerman,british]{scrbook}


It looks like a run with luatex and _not_ lualatex

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


how to get the cited references

2023-04-14 Thread Wolfgang Engelmann
I need the cited references from a document (Koma script, book A5, 
Luatex). I use Debian Bullseye and Jabref 5.6 as a reference manager 
(LyX see below).


The bib file contains much more citation.
I used to export the .tex file of the document and to run latex thrice. 
However, I am using now luatex and running luatex MyDocument gives many 
errors such as


(./A-SP-WITTE-E-2023Apr13.tex
! Undefined control sequence.
l.3 \documentclass
[paper=a5,ngerman,british]{scrbook}

! Undefined control sequence.
l.4 \usepackage
 {amstext}
?
! Undefined control sequence.
l.5 \usepackage
 {amssymb}

! Undefined control sequence.
l.6 \usepackage
 {fontspec}

! Undefined control sequence.
l.7 \setcounter
 {secnumdepth}{3}

it does not produce an aux file which I would like to refer to in Jabref 
in order to get the cited references.


I use LyX Version 2.4.0-beta2
OS-Version (bei Erstellung): Debian GNU/Linux 11 (bullseye)
Python-Aufruf: python3 -tt)

Could somebody tell me how I should proceed? I would very much 
appreciate it!


Wolfgang

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


Re: How to Embed lyx within an app

2023-03-02 Thread Richard Kimberly Heck

On 3/2/23 04:59, Zero Infinity wrote:
I am interested in embedding lyx within an app. I would like to use 
the lyx wysiwym to make latex that I then feed to the wolfram engine 
for computation.


Ideally I would like to use just the wysiwym engine behind lyx but I 
imagine that that's not easy to extract so maybe I would add lyx as a 
dependency and embed it within the app if that's possible.


Thank you for any clarifications

Was there a question?

Riki


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


How to Embed lyx within an app

2023-03-02 Thread Zero Infinity
I am interested in embedding lyx within an app. I would like to use the lyx
wysiwym to make latex that I then feed to the wolfram engine for
computation.

Ideally I would like to use just the wysiwym engine behind lyx but I
imagine that that's not easy to extract so maybe I would add lyx as a
dependency and embed it within the app if that's possible.

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


how to update Version 2.4.0-beta2

2023-02-27 Thread Wolfgang Engelmann

My present version is

Version 2.4.0-beta2 (Sonntag, 11. Dezember 2022)
Qt-Version (Laufzeit): 5.15.2 (Plattform: xcb)
Qt-Version (bei Erstellung): 5.15.2
OS-Version (bei Erstellung): Debian GNU/Linux 11 (bullseye)
Python-Aufruf: python3 -tt

What is the recommended way of updating it?
Or should I wait for the
Version 2.4.0 release?

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


Re: how to report crash recorded with gdb

2023-02-25 Thread Richard Kimberly Heck

On 2/25/23 09:01, Wolfgang Engelmann wrote:
I ran a lyx document under 2.4 which was started with gdb. It crashed 
and I do not know how to report it to the maintainers. 


You can either email the lyx-devel list or file a bug here:

https://www.lyx.org/trac/newticket

Riki


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


Re: How to modify tables with InsetLayout

2023-02-25 Thread Richard Kimberly Heck

On 2/21/23 13:57, tush via lyx-users wrote:
In the help file "Customizing LyX: Features for the Advanced User", 
section 5.3.10, it is said that by using an "InsertLayout table" one 
can modify this pre-existing inset.

I am curious to know what changes can I make to tables?


I am not sure about this. Let me have a look.

Riki

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


Re: how to report crash recorded with gdb

2023-02-25 Thread Neal Becker
"where" should give a traceback

On Sat, Feb 25, 2023, 9:01 AM Wolfgang Engelmann 
wrote:

> I ran a lyx document under 2.4 which was started with gdb. It crashed
> and I do not know how to report it to the maintainers. This is the
> terminal >
>
> text-user-interface -- TUI is the GDB text based interface.
> tracepoints -- Tracing of program execution without stopping the program.
> user-defined -- User-defined commands.
>
> Type "help" followed by a class name for a list of commands in
> that class.
> Type "help all" for the list of all commands.
> Type "help" followed by command name for full documentation.
> Type "apropos word" to search for commands related to "word".
> Type "apropos -v word" for full documentation
>   of commands related to "word".
> Command name abbreviations are allowed if unambiguous.
> (gdb) q
> A debugging session is active.
>
>  Inferior 1 [process 2797] will be killed.
>
> Quit anyway? (y or n) n
> Not confirmed.
> (gdb)
>
> It is still running, so if you or somebody else could tell me what to do
> to report it.
>
> Wolfgang
> --
> 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


how to report crash recorded with gdb

2023-02-25 Thread Wolfgang Engelmann
I ran a lyx document under 2.4 which was started with gdb. It crashed 
and I do not know how to report it to the maintainers. This is the 
terminal >


text-user-interface -- TUI is the GDB text based interface.
tracepoints -- Tracing of program execution without stopping the program.
user-defined -- User-defined commands.

Type "help" followed by a class name for a list of commands in
that class.
Type "help all" for the list of all commands.
Type "help" followed by command name for full documentation.
Type "apropos word" to search for commands related to "word".
Type "apropos -v word" for full documentation
 of commands related to "word".
Command name abbreviations are allowed if unambiguous.
(gdb) q
A debugging session is active.

Inferior 1 [process 2797] will be killed.

Quit anyway? (y or n) n
Not confirmed.
(gdb)

It is still running, so if you or somebody else could tell me what to do 
to report it.


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


How to modify tables with InsetLayout

2023-02-21 Thread tush via lyx-users
In the help file "Customizing LyX: Features for the Advanced User", section 
5.3.10, it is said that by using an "InsertLayout table" one can modify this 
pre-existing inset.
I am curious to know what changes can I make to tables? Looks like tables are 
set-up using the many buttons of the gui. Nothing is mentioned about it in the 
help file "Embedded Objects" nor anywhere in the customization help file.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX 2.4 Beta 2 — How to use dark theme on windows10 ?

2023-02-05 Thread didiergabory
Thanks Daniel for your help. I will look at it. 

- Mail original -

| On 2023-02-01 21:18, didiergab...@free.fr wrote:
| > Thank you for your feedback. Regarding the preferences file... It
| > occurred to me that the color configuration file that I use with
| > 2.3.7
| > does not give satisfaction with 2.4... The names of the dynamic
| > colors
| > may have changed? The background, for example, does not appear in
| > black…
| > That's why I was asking if someone would agree to share their "dark
| > color preferences" file from 2.4... Because it's not an easy
| > exercise.

| The dark mode colors that are currently part of LyX 2.4 are hard
| coded.
| You can see them here:

| https://www.lyx.org/trac/browser/lyxgit/src/Color.cpp

| There you will find a comment

| // ColorCode, gui, latex, x11hexname, x11darkhexname, lyx

| So, for example,

| { Color_footlabel, N_("footnote label"), "footlabel", "#00aaff",
| blue,
| "footlabel" }

| means that the color "footlabel" will be set to "blue" in dark mode.
| So,
| without dark mode support, this corresponds to the following line in
| the
| Preferences file:

| \set_color "footlabel" "blue" "blue"

| (Setting the light mode color to the same color as the dark mode
| color.)

| In this way you should be able use the same colors in the work area
| (!)
| that LyX uses where it supports dark mode.

| Granted, it is a bit cumbersome to transfer all the colors.

| It might be a good idea to add a button to the color dialog for
| manually
| switching to dark mode/light mode colors.

| Hope that helps!

| Daniel

| --
| 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: LyX 2.4 Beta 2 — How to use dark theme on windows10 ?

2023-02-01 Thread Daniel

On 2023-02-02 07:51, Daniel wrote:

On 2023-02-01 21:18, didiergab...@free.fr wrote:
Thank you for your feedback. Regarding the preferences file... It 
occurred to me that the color configuration file that I use with 2.3.7 
does not give satisfaction with 2.4... The names of the dynamic colors 
may have changed? The background, for example, does not appear in 
black… That's why I was asking if someone would agree to share their 
"dark color preferences" file from 2.4... Because it's not an easy 
exercise.


The dark mode colors that are currently part of LyX 2.4 are hard coded. 
You can see them here:


https://www.lyx.org/trac/browser/lyxgit/src/Color.cpp

There you will find a comment

//  ColorCode, gui, latex, x11hexname, x11darkhexname, lyx

So, for example,

{ Color_footlabel, N_("footnote label"), "footlabel", "#00aaff", blue, 
"footlabel" }


means that the color "footlabel" will be set to "blue" in dark mode. So, 
without dark mode support, this corresponds to the following line in the 
Preferences file:


\set_color "footlabel" "blue" "blue"

(Setting the light mode color to the same color as the dark mode color.)

In this way you should be able use the same colors in the work area (!) 
that LyX uses where it supports dark mode.


Granted, it is a bit cumbersome to transfer all the colors.

It might be a good idea to add a button to the color dialog for manually 
switching to dark mode/light mode colors.


Hope that helps!

Daniel


I have filed an bug at https://www.lyx.org/trac/ticket/12652. If none of 
the developers complains, I might even create a patch at some point.


Daniel



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


Re: LyX 2.4 Beta 2 — How to use dark theme on windows10 ?

2023-02-01 Thread Daniel

On 2023-02-01 21:18, didiergab...@free.fr wrote:
Thank you for your feedback. Regarding the preferences file... It 
occurred to me that the color configuration file that I use with 2.3.7 
does not give satisfaction with 2.4... The names of the dynamic colors 
may have changed? The background, for example, does not appear in black… 
That's why I was asking if someone would agree to share their "dark 
color preferences" file from 2.4... Because it's not an easy exercise.


The dark mode colors that are currently part of LyX 2.4 are hard coded. 
You can see them here:


https://www.lyx.org/trac/browser/lyxgit/src/Color.cpp

There you will find a comment

//  ColorCode, gui, latex, x11hexname, x11darkhexname, lyx

So, for example,

{ Color_footlabel, N_("footnote label"), "footlabel", "#00aaff", blue, 
"footlabel" }


means that the color "footlabel" will be set to "blue" in dark mode. So, 
without dark mode support, this corresponds to the following line in the 
Preferences file:


\set_color "footlabel" "blue" "blue"

(Setting the light mode color to the same color as the dark mode color.)

In this way you should be able use the same colors in the work area (!) 
that LyX uses where it supports dark mode.


Granted, it is a bit cumbersome to transfer all the colors.

It might be a good idea to add a button to the color dialog for manually 
switching to dark mode/light mode colors.


Hope that helps!

Daniel


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


Re: LyX 2.4 Beta 2 — How to use dark theme on windows10 ?

2023-02-01 Thread didiergabory
Thank you for your feedback.
Regarding the preferences file... It occurred to me that the color 
configuration file that I use with 2.3.7 does not give satisfaction with 2.4... 
The names of the dynamic colors may have changed? The background, for example, 
does not appear in black…
That's why I was asking if someone would agree to share their "dark color 
preferences" file from 2.4... Because it's not an easy exercise.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: LyX 2.4 Beta 2 — How to use dark theme on windows10 ?

2023-01-30 Thread Daniel

On 2023-01-30 07:15, Jürgen Spitzmüller wrote:

Am Sonntag, dem 29.01.2023 um 18:29 +0100 schrieb didiergab...@free.fr:

I use windows10. I naively thought that with version 2.4 it was now
possible to activate the dark theme. But I can't find anything like
that... Is there something I missed?
In addition, the color options (see attachment. Not terrible,
especially with the mathematical macros in edit mode) that I use with
3.7 do not seem to work with this latest V2.4.


You need to use a "dark" Qt style. I do not use Windows myself, but
according to the web, it seems not as straightforward than on Linux and
Mac:
https://forum.qt.io/topic/101391/windows-10-dark-theme

Maybe a Windows user around here has a good solution.


As far as I know:

1) There is no native Qt dark-theme on Windows
2) There is no Qt theme switcher on Windows
3) LyX does not support custom themes

So, I think Windows users are out of luck, dark-theme wise.

I have not understood what about the custom colors did not work with 2.4 
that used to work with 2.3.


Daniel


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


Re: LyX 2.4 Beta 2 — How to use dark theme on windows10 ?

2023-01-29 Thread Jürgen Spitzmüller
Am Sonntag, dem 29.01.2023 um 18:29 +0100 schrieb didiergab...@free.fr:
> I use windows10. I naively thought that with version 2.4 it was now
> possible to activate the dark theme. But I can't find anything like
> that... Is there something I missed?
> In addition, the color options (see attachment. Not terrible,
> especially with the mathematical macros in edit mode) that I use with
> 3.7 do not seem to work with this latest V2.4.

You need to use a "dark" Qt style. I do not use Windows myself, but
according to the web, it seems not as straightforward than on Linux and
Mac:
https://forum.qt.io/topic/101391/windows-10-dark-theme

Maybe a Windows user around here has a good solution.

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


LyX 2.4 Beta 2 — How to use dark theme on windows10 ?

2023-01-29 Thread didiergabory
I use windows10. I naively thought that with version 2.4 it was now possible to 
activate the dark theme. But I can't find anything like that... Is there 
something I missed?
In addition, the color options (see attachment. Not terrible, especially with 
the mathematical macros in edit mode) that I use with 3.7 do not seem to work 
with this latest V2.4.

Failing a possible "activation", could someone share their "2.4 dark theme" 
color option file ? 

A big thank you to the entire development team for this absolutely great tool! #
# COLOR SECTION ###
#

\set_color "cursor" "#ffaa00"
\set_color "background" "#262728"
\set_color "foreground" "#d4d7d6"
\set_color "selection" "#646496"
\set_color "selectiontext" "#fefefe"
\set_color "latex" "#7f"
\set_color "preview" "#ff"
\set_color "inlinecompletion" "#AE81FF"
\set_color "nonuniqueinlinecompletion" "#AE81FF"
\set_color "note" "#75715E"
\set_color "notebg" "#252728"
\set_color "commentbg" "#252728"
\set_color "greyedoutbg" "#252728"
\set_color "shaded" "#dc322f"
\set_color "listingsbg" "#75715E"
\set_color "footlabel" "#AE81FF"
\set_color "urllabel" "#ff"
\set_color "urltext" "#55aaff"
\set_color "depthbar" "#A6E22E"
\set_color "language" "#A6E22E"
\set_color "command" "#ff"
\set_color "commandbg" "#f0"
\set_color "commandframe" "#AE81FF"
\set_color "special" "#66D9EF"
\set_color "graphicsbg" "#FF"
\set_color "math" "#00"
\set_color "mathbg" "#737679"
\set_color "mathmacrobg" "#ff"
\set_color "mathmacroframe" "#50504f"
\set_color "mathmacroblend" "#A6E22E"
\set_color "mathmacronewarg" "#A6E22E"
\set_color "mathframe" "#00"
\set_color "mathcorners" "#262728"
\set_color "mathline" "#ff"
\set_color "insetframe" "#262728"
\set_color "eolmarker" "#A6E22E"
\set_color "added_space" "#A6E22E"
\set_color "appendix" "#dc322f"
\set_color "changebar" "#4d4d4c"
\set_color "addedtext" "#8b"
\set_color "changedtextauthor1" "#A6E22E"
\set_color "changedtextauthor2" "#d33682"
\set_color "changedtextauthor3" "#cf4b16"
\set_color "changedtextauthor4" "#b58900"
\set_color "changedtextauthor5" "#859900"
\set_color "tabularline" "#A6E22E"
\set_color "tabularonoffline" "#AE81FF"
\set_color "newpage" "#A6E22E"
\set_color "pagebreak" "#7f"
\set_color "buttonframe" "#50504f"
\set_color "buttonbg" "#262728"
\set_color "buttonhoverbg" "#ff"
\set_color "paragraphmarker" "#8abeb7"
\set_color "previewframe" "#A6E22E"-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-15 Thread Scott Kostyshak
On Thu, Dec 15, 2022 at 04:38:40PM +0100, Stephan Witt wrote:
> Am 15.12.2022 um 16:22 schrieb Scott Kostyshak :
> > 
> > On Thu, Dec 15, 2022 at 04:05:27PM +0100, Stephan Witt wrote:
> >> Am 14.12.2022 um 17:02 schrieb Scott Kostyshak :
> >>> 
> >>> On Wed, Dec 14, 2022 at 05:55:17PM +0200, Dr Eberhard Lisse wrote:
> >>>> Hal,
> >>>> 
> >>>> the command is
> >>>> 
> >>>>   sudo xcode-select --install
> >>>> 
> >>>> you will then be asked for your password.
> >>>> 
> >>>> It is a system wide installation of the command line tools (of XCode)
> >>>> and hence must be done as administrator (technically root).
> >>>> 
> >>>> The complete XCode will of course also install python3 but is a few GB
> >>>> too much.
> >>>> 
> >>>> el
> >>> 
> >>> Is there a way from the command line to install only Python on macOS?
> >> 
> >> AFAIK you can choose either so called „Xcode Command Line Tools“ or „Xcode 
> >> Developer Package“.
> >> 
> >> The command line tools include e.g. clang, git and python3 and SDKs. 
> >> The disk image of version 12.2 has 431M and 14.2 has 672M. 
> >> The unpacked files require approximately 2GB..3GB.
> >> 
> >> Without the command line tools installed there is a small python3 utility 
> >> only.
> >> The execution of this python3 triggers a popup asking the user for 
> >> installation of the command line tools.
> >> 
> >> https://www.lyx.org/trac/ticket/12523
> >> 
> >> Unfortunately this popup is raised on first python presence check by LyX. 
> >> Shortly after this LyX raises its own popup to tell the user the 
> >> configuration has failed.
> >> This 2nd popup hides the first one partially and distracts users from the 
> >> first.
> >> 
> >> The easiest solution for users would be to allow download and install of 
> >> the command line
> >> tools by confirmation of the first question, wait until it is finished (it 
> >> really takes a while)
> >> and restart LyX's configuration.
> > 
> > Thanks for that detailed explanation, Stephan. Do I understand then that
> > this issue is a long-term issue on macOS that we should expect for
> > future versions as well? That is, it is not just an issue that appears
> > when upgrading to Ventura. As is, even a new Apple computer that comes
> > with Ventura pre-installed will not have Python by default and thus will
> > have the issue.
> 
> Yes, that’s true.
> 
> > It's good to know that LyX's own python check triggers the popup. Would
> > it make sense to have a lighter python check that does not raise the
> > popup, and conditional on that check LyX can give a user-friendly
> > message like "macOS will prompt you to install python, which is
> > necessary for LyX. We suggest you click on yes/accept/install“ ?
> 
> Something like that I had in mind too. Probably it’s enough to check for the 
> platform and version (now we know how to do so :) ) and to modify the LyX
> message prompt on configuration failure. The hard thing would be to debug
> the solution. But I’ll try to come up with a solution for it.

If Python is not found on a system, do we still try to run configure.py?
I can test this on Linux at some point, but I guess the best on all
platforms is to then not even try to run configure.py and instead give a
clear message "Python not found. LyX will not work correctly.", and then
maybe link to platform specific info on what to do if Python is not
found.

In any case, this definitely seems tricky.

Scott


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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-15 Thread Stephan Witt
Am 15.12.2022 um 16:22 schrieb Scott Kostyshak :
> 
> On Thu, Dec 15, 2022 at 04:05:27PM +0100, Stephan Witt wrote:
>> Am 14.12.2022 um 17:02 schrieb Scott Kostyshak :
>>> 
>>> On Wed, Dec 14, 2022 at 05:55:17PM +0200, Dr Eberhard Lisse wrote:
>>>> Hal,
>>>> 
>>>> the command is
>>>> 
>>>> sudo xcode-select --install
>>>> 
>>>> you will then be asked for your password.
>>>> 
>>>> It is a system wide installation of the command line tools (of XCode)
>>>> and hence must be done as administrator (technically root).
>>>> 
>>>> The complete XCode will of course also install python3 but is a few GB
>>>> too much.
>>>> 
>>>> el
>>> 
>>> Is there a way from the command line to install only Python on macOS?
>> 
>> AFAIK you can choose either so called „Xcode Command Line Tools“ or „Xcode 
>> Developer Package“.
>> 
>> The command line tools include e.g. clang, git and python3 and SDKs. 
>> The disk image of version 12.2 has 431M and 14.2 has 672M. 
>> The unpacked files require approximately 2GB..3GB.
>> 
>> Without the command line tools installed there is a small python3 utility 
>> only.
>> The execution of this python3 triggers a popup asking the user for 
>> installation of the command line tools.
>> 
>> https://www.lyx.org/trac/ticket/12523
>> 
>> Unfortunately this popup is raised on first python presence check by LyX. 
>> Shortly after this LyX raises its own popup to tell the user the 
>> configuration has failed.
>> This 2nd popup hides the first one partially and distracts users from the 
>> first.
>> 
>> The easiest solution for users would be to allow download and install of the 
>> command line
>> tools by confirmation of the first question, wait until it is finished (it 
>> really takes a while)
>> and restart LyX's configuration.
> 
> Thanks for that detailed explanation, Stephan. Do I understand then that
> this issue is a long-term issue on macOS that we should expect for
> future versions as well? That is, it is not just an issue that appears
> when upgrading to Ventura. As is, even a new Apple computer that comes
> with Ventura pre-installed will not have Python by default and thus will
> have the issue.

Yes, that’s true.

> It's good to know that LyX's own python check triggers the popup. Would
> it make sense to have a lighter python check that does not raise the
> popup, and conditional on that check LyX can give a user-friendly
> message like "macOS will prompt you to install python, which is
> necessary for LyX. We suggest you click on yes/accept/install“ ?

Something like that I had in mind too. Probably it’s enough to check for the 
platform and version (now we know how to do so :) ) and to modify the LyX
message prompt on configuration failure. The hard thing would be to debug
the solution. But I’ll try to come up with a solution for it.

Stephan


> Of course, this will not cover all of the cases. For example, if a
> different program triggered the prompt and they said "no", then I
> imagine they will not see the popup again.
> 
> Scott

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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-15 Thread Scott Kostyshak
On Thu, Dec 15, 2022 at 04:05:27PM +0100, Stephan Witt wrote:
> Am 14.12.2022 um 17:02 schrieb Scott Kostyshak :
> > 
> > On Wed, Dec 14, 2022 at 05:55:17PM +0200, Dr Eberhard Lisse wrote:
> >> Hal,
> >> 
> >> the command is
> >> 
> >> sudo xcode-select --install
> >> 
> >> you will then be asked for your password.
> >> 
> >> It is a system wide installation of the command line tools (of XCode)
> >> and hence must be done as administrator (technically root).
> >> 
> >> The complete XCode will of course also install python3 but is a few GB
> >> too much.
> >> 
> >> el
> > 
> > Is there a way from the command line to install only Python on macOS?
> 
> AFAIK you can choose either so called „Xcode Command Line Tools“ or „Xcode 
> Developer Package“.
> 
> The command line tools include e.g. clang, git and python3 and SDKs. 
> The disk image of version 12.2 has 431M and 14.2 has 672M. 
> The unpacked files require approximately 2GB..3GB.
> 
> Without the command line tools installed there is a small python3 utility 
> only.
> The execution of this python3 triggers a popup asking the user for 
> installation of the command line tools.
> 
> https://www.lyx.org/trac/ticket/12523
> 
> Unfortunately this popup is raised on first python presence check by LyX. 
> Shortly after this LyX raises its own popup to tell the user the 
> configuration has failed.
> This 2nd popup hides the first one partially and distracts users from the 
> first.
> 
> The easiest solution for users would be to allow download and install of the 
> command line
> tools by confirmation of the first question, wait until it is finished (it 
> really takes a while)
> and restart LyX's configuration.

Thanks for that detailed explanation, Stephan. Do I understand then that
this issue is a long-term issue on macOS that we should expect for
future versions as well? That is, it is not just an issue that appears
when upgrading to Ventura. As is, even a new Apple computer that comes
with Ventura pre-installed will not have Python by default and thus will
have the issue.

It's good to know that LyX's own python check triggers the popup. Would
it make sense to have a lighter python check that does not raise the
popup, and conditional on that check LyX can give a user-friendly
message like "macOS will prompt you to install python, which is
necessary for LyX. We suggest you click on yes/accept/install" ?

Of course, this will not cover all of the cases. For example, if a
different program triggered the prompt and they said "no", then I
imagine they will not see the popup again.

Scott


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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-15 Thread Stephan Witt
Am 14.12.2022 um 17:02 schrieb Scott Kostyshak :
> 
> On Wed, Dec 14, 2022 at 05:55:17PM +0200, Dr Eberhard Lisse wrote:
>> Hal,
>> 
>> the command is
>> 
>>   sudo xcode-select --install
>> 
>> you will then be asked for your password.
>> 
>> It is a system wide installation of the command line tools (of XCode)
>> and hence must be done as administrator (technically root).
>> 
>> The complete XCode will of course also install python3 but is a few GB
>> too much.
>> 
>> el
> 
> Is there a way from the command line to install only Python on macOS?

AFAIK you can choose either so called „Xcode Command Line Tools“ or „Xcode 
Developer Package“.

The command line tools include e.g. clang, git and python3 and SDKs. 
The disk image of version 12.2 has 431M and 14.2 has 672M. 
The unpacked files require approximately 2GB..3GB.

Without the command line tools installed there is a small python3 utility only.
The execution of this python3 triggers a popup asking the user for installation 
of the command line tools.

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

Unfortunately this popup is raised on first python presence check by LyX. 
Shortly after this LyX raises its own popup to tell the user the configuration 
has failed.
This 2nd popup hides the first one partially and distracts users from the first.

The easiest solution for users would be to allow download and install of the 
command line
tools by confirmation of the first question, wait until it is finished (it 
really takes a while)
and restart LyX's configuration.

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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-15 Thread Dr Eberhard Lisse
I don't really think so, as Apple has what it calls Framework(s).

Even homebrew (which in itself needs to install a number of packages)
needs the XCode Command Line Tools.

So, my advice, remember to install them :-)-O

el


On 14/12/2022 18:02, Scott Kostyshak wrote:
> On Wed, Dec 14, 2022 at 05:55:17PM +0200, Dr Eberhard Lisse wrote:
>> Hal,
>>
>> the command is
>>
>>   sudo xcode-select --install
>>
>> you will then be asked for your password.
>>
>> It is a system wide installation of the command line tools (of XCode)
>> and hence must be done as administrator (technically root).
>>
>> The complete XCode will of course also install python3 but is a few GB
>> too much.
>>
>> el
> 
> Is there a way from the command line to install only Python on macOS?
> 
> Scott
> 
> 

-- 
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: How to make LyX work with Mac OS 13.1:solved

2022-12-14 Thread Dr Eberhard W Lisse
Hal,

I use the python3 installed by the Homebrew package manager which will
remind me during my (almost) daily upgrade if the XCode Command Line
Tools are not installed to do the xcode-select, so I am used to that
(without having to pay attention to Python).

greetings, el


On 14/12/2022 18:08, Hal Kierstead via lyx-users wrote:
> 
> 
>> On Dec 14, 2022, at 8:55 AM, Dr Eberhard Lisse  wrote:
>>
>> Hal,
>>
>> the command is
>>
>>   sudo xcode-select --install
>>
>> you will then be asked for your password.
>>
>> It is a system wide installation of the command line tools (of XCode)
>> and hence must be done as administrator (technically root).
>>
>> The complete XCode will of course also install python3 but is a few GB
>> too much.
>>
>> el
>>
> El -
> 
> Thanks. I thought you had posted something like this, but could not find it.
> 
> Hal

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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-14 Thread Hal Kierstead via lyx-users



> On Dec 14, 2022, at 8:55 AM, Dr Eberhard Lisse  wrote:
> 
> Hal,
> 
> the command is
> 
>sudo xcode-select --install
> 
> you will then be asked for your password.
> 
> It is a system wide installation of the command line tools (of XCode)
> and hence must be done as administrator (technically root).
> 
> The complete XCode will of course also install python3 but is a few GB
> too much.
> 
> el
> 
El -

Thanks. I thought you had posted something like this, but could not find it.

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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-14 Thread Scott Kostyshak
On Wed, Dec 14, 2022 at 05:55:17PM +0200, Dr Eberhard Lisse wrote:
> Hal,
> 
> the command is
> 
>sudo xcode-select --install
> 
> you will then be asked for your password.
> 
> It is a system wide installation of the command line tools (of XCode)
> and hence must be done as administrator (technically root).
> 
> The complete XCode will of course also install python3 but is a few GB
> too much.
> 
> el

Is there a way from the command line to install only Python on macOS?

Scott


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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-14 Thread Dr Eberhard Lisse
Hal,

the command is

 sudo xcode-select --install

you will then be asked for your password.

It is a system wide installation of the command line tools (of XCode)
and hence must be done as administrator (technically root).

The complete XCode will of course also install python3 but is a few GB
too much.

el


On 14/12/2022 13:50, Hal Kierstead via lyx-users wrote:
>> On Dec 13, 2022, at 5:38 PM, Scott Kostyshak  wrote:
>>
>> On Tue, Dec 13, 2022 at 05:02:30PM -0700, Hal Kierstead via lyx-users wrote:
>>> All -
>>>
>>> I just upgraded to Mac OS 13.1. I was not given a chance to install
>>> python. How do I check if I have the right version of python?
>>>
>>> I cannot reconfigure LyX. I get the message: The system
>>> reconfiguration has failed. Default textclass is used but LyX may
>>> not be able to work properly. Please reconfigure again if needed.
>>>
>>> Reconfiguring again does not work either.
>>>
>>> Also, I have a bind file that LyX finds, but does not use. Is this
>>> because LyX needs to be reconfigured?
>>>
>>> I tried reinstalling LyX, but that did not help.
>>>
>>> What should I do next?
>>
>> I don't have any experience with macOS, but one user found that the
>> following worked:
>>
>>  xcode-select --install
>>
>> source: https://twitter.com/IvanWerning/status/1599544006962139136
>>
>> Scott --
> Thanks Scott. I forgot to reply to the list.
> 
>  For some reason this failed to install xcode, but downloading it from
>  the app store worked, and now my LyX is working. Probably I should
>  not have needed to download all of xcode, but it is simple this way.
> 
> Hal
> 

-- 
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: How to make LyX work with Mac OS 13.1:solved

2022-12-14 Thread Scott Kostyshak
On Wed, Dec 14, 2022 at 04:50:02AM -0700, Hal Kierstead wrote:
> 
> 
> > On Dec 13, 2022, at 5:38 PM, Scott Kostyshak  wrote:
> > 
> > On Tue, Dec 13, 2022 at 05:02:30PM -0700, Hal Kierstead via lyx-users wrote:
> >> All -
> >> 
> >> I just upgraded to Mac OS 13.1. I was not given a chance to install 
> >> python. How do I check if I have the right version of python?
> >> 
> >> I cannot reconfigure LyX. I get the message: The system reconfiguration 
> >> has failed. Default textclass is used but LyX may not be able to work 
> >> properly. Please reconfigure again if needed. 
> >> 
> >> Reconfiguring again does not work either.
> >> 
> >> Also, I have a bind file that LyX finds, but does not use. Is this because 
> >> LyX needs to be reconfigured?
> >> 
> >> I tried reinstalling LyX, but that did not help.
> >> 
> >> What should I do next?
> > 
> > I don't have any experience with macOS, but one user found that the 
> > following worked:
> > 
> >  xcode-select --install
> > 
> > source: https://twitter.com/IvanWerning/status/1599544006962139136
> > 
> > Scott
> > -- 
> Thanks Scott. I forgot to reply to the list.
> 
>  For some reason this failed to install xcode, but downloading it from the 
> app store worked, and now my LyX is working. Probably I should not have 
> needed to download all of xcode, but it is simple this way.

Good to know, Hal! Indeed, probably there is a more simple way.

Scott


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


Re: How to make LyX work with Mac OS 13.1:solved

2022-12-14 Thread Hal Kierstead via lyx-users



> On Dec 13, 2022, at 5:38 PM, Scott Kostyshak  wrote:
> 
> On Tue, Dec 13, 2022 at 05:02:30PM -0700, Hal Kierstead via lyx-users wrote:
>> All -
>> 
>> I just upgraded to Mac OS 13.1. I was not given a chance to install python. 
>> How do I check if I have the right version of python?
>> 
>> I cannot reconfigure LyX. I get the message: The system reconfiguration has 
>> failed. Default textclass is used but LyX may not be able to work properly. 
>> Please reconfigure again if needed. 
>> 
>> Reconfiguring again does not work either.
>> 
>> Also, I have a bind file that LyX finds, but does not use. Is this because 
>> LyX needs to be reconfigured?
>> 
>> I tried reinstalling LyX, but that did not help.
>> 
>> What should I do next?
> 
> I don't have any experience with macOS, but one user found that the following 
> worked:
> 
>  xcode-select --install
> 
> source: https://twitter.com/IvanWerning/status/1599544006962139136
> 
> Scott
> -- 
Thanks Scott. I forgot to reply to the list.

 For some reason this failed to install xcode, but downloading it from the app 
store worked, and now my LyX is working. Probably I should not have needed to 
download all of xcode, but it is simple this way.

Hal

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


Re: How to make LyX work with Mac OS 13.1?

2022-12-13 Thread Scott Kostyshak
On Tue, Dec 13, 2022 at 05:02:30PM -0700, Hal Kierstead via lyx-users wrote:
> All -
> 
> I just upgraded to Mac OS 13.1. I was not given a chance to install python. 
> How do I check if I have the right version of python?
> 
> I cannot reconfigure LyX. I get the message: The system reconfiguration has 
> failed. Default textclass is used but LyX may not be able to work properly. 
> Please reconfigure again if needed. 
> 
> Reconfiguring again does not work either.
> 
> Also, I have a bind file that LyX finds, but does not use. Is this because 
> LyX needs to be reconfigured?
> 
> I tried reinstalling LyX, but that did not help.
> 
> What should I do next?

I don't have any experience with macOS, but one user found that the following 
worked:

  xcode-select --install
  
source: https://twitter.com/IvanWerning/status/1599544006962139136

Scott


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


How to make LyX work with Mac OS 13.1?

2022-12-13 Thread Hal Kierstead via lyx-users
All -

I just upgraded to Mac OS 13.1. I was not given a chance to install python. How 
do I check if I have the right version of python?

I cannot reconfigure LyX. I get the message: The system reconfiguration has 
failed. Default textclass is used but LyX may not be able to work properly. 
Please reconfigure again if needed. 

Reconfiguring again does not work either.

Also, I have a bind file that LyX finds, but does not use. Is this because LyX 
needs to be reconfigured?

I tried reinstalling LyX, but that did not help.

What should I do next?

Thanks,

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


Re: How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
Thanks Daniel. I never looked at the content of numreport.inc.

Perhaps you have an idea for my problem I uploaded here before? 
(https://lists.lyx.org/pipermail/lyx-users/2022-August/004205.html)

Thanks very much

Ehud

--- Original Message ---
On Sunday, August 28th, 2022 at 8:45 PM, Daniel  wrote:


> On 2022-08-28 20:30, tush via lyx-users wrote:
> 
> > I am just wondering how lyx knows how to display the numbering of floats
> > when the document class is book and according to what rule to change the
> > numbering when the document class is changed to article, for example.
> > 
> > Yes yes, LyX "doesn't know anything about latex", and it is actually
> > latex that takes care of the numbering, but only in the output (pdf or
> > dvi). My question is about the numbering inside the editor.
> 
> 
> stdfloats.inc contains the basic definition of the float, e.g.
> 
> 
> Float
> Type table
> GuiName Table
> Placement tbp
> Extension lot
> NumberWithin none
> Style plain
> ListName "List of Tables"
> IsPredefined true
> UsesFloatPkg false
> ListCommand listoftables
> RefPrefix tab
> End
> 
> 
> numreport.inc switches the numbering for reports and books to be within
> chapters, e.g.
> 
> 
> Float
> Type table
> NumberWithin chapter
> End
> 
> 
> Best,
> Daniel
> 
> 
> --
> 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: How figure and table numbering is defined?

2022-08-28 Thread Daniel

On 2022-08-28 20:30, tush via lyx-users wrote:
I am just wondering how lyx knows how to display the numbering of floats 
when the document class is book and according to what rule to change the 
numbering when the document class is changed to article, for example.


Yes yes, LyX "doesn't know anything about latex", and it is actually 
latex that takes care of the numbering, but only in the output (pdf or 
dvi). My question is about the numbering *inside*​ the editor.


stdfloats.inc contains the basic definition of the float, e.g.


Float
Type  table
GuiName   Table
Placement tbp
Extension lot
NumberWithin  none
Style plain
ListName  "List of Tables"
IsPredefined  true
UsesFloatPkg  false
ListCommand   listoftables
RefPrefix tab
End


numreport.inc switches the numbering for reports and books to be within 
chapters, e.g.



Float
Type  table
NumberWithin  chapter
End


Best,
Daniel


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


Re: How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
I am just wondering how lyx knows how to display the numbering of floats when 
the document class is book and according to what rule to change the numbering 
when the document class is changed to article, for example.

Yes yes, LyX "doesn't know anything about latex", and it is actually latex that 
takes care of the numbering, but only in the output (pdf or dvi). My question 
is about the numbering inside​ the editor.

 Original Message 
On Aug 28, 2022, 19:11, Ricardo Berlasso < rgb.m...@gmail.com> wrote:

> El dom, 28 ago 2022 a las 18:44, tush via lyx-users 
> () escribió:
>
>> I tried to look where the numbering (within the lyx editor) of figures and 
>> tables is defined.
>>
>> If I choose book doc class, a figure gets the number 
>> "chapter-number.figurenumber-within-the-chapter", whereas if I choose 
>> article doc class, it changes to "figure-number-within-the-whole-article".
>>
>> Nothing is mentioned about floats numbers in stdfloats.inc, stdcounters.inc 
>> or the like.
>>
>> I hope that if I will have the answer to how this numbering is done, I might 
>> be able to set nicely the numbering of a new float I want to insert into my 
>> document.
>
> LyX follows LaTeX to do the numbering, and that means you need to use either 
> modules, local formatting or code in the preamble (the "caption" package) to 
> modify the numbering beyond the standard formatting. Under Document → 
> Settings → Modules it's possible to activate modules that restart the 
> numbering for figures and tables on each sections. For more, you need to tell 
> us what you need (roman numerals?, small caps for the labels?, etc.).
>
> 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: How figure and table numbering is defined?

2022-08-28 Thread Ricardo Berlasso
El dom, 28 ago 2022 a las 18:44, tush via lyx-users (<
lyx-users@lists.lyx.org>) escribió:

> I tried to look where the numbering (within the lyx editor) of figures and
> tables is defined.
>
> If I choose book doc class, a figure gets the number
> "chapter-number.figurenumber-within-the-chapter", whereas if I choose
> article doc class, it changes to "figure-number-within-the-whole-article".
>
> Nothing is mentioned about floats numbers in stdfloats.inc,
> stdcounters.inc or the like.
>
> I hope that if I will have the answer to how this numbering is done, I
> might be able to set nicely the numbering of a new float I want to insert
> into my document.
>

LyX follows LaTeX to do the numbering, and that means you need to use
either modules, local formatting or code in the preamble (the "caption"
package) to modify the numbering beyond the standard formatting. Under
Document → Settings → Modules it's possible to activate modules that
restart the numbering for figures and tables on each sections. For more,
you need to tell us what you need (roman numerals?, small caps for the
labels?, etc.).

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


How figure and table numbering is defined?

2022-08-28 Thread tush via lyx-users
I tried to look where the numbering (within the lyx editor) of figures and 
tables is defined.

If I choose book doc class, a figure gets the number 
"chapter-number.figurenumber-within-the-chapter", whereas if I choose article 
doc class, it changes to "figure-number-within-the-whole-article".

Nothing is mentioned about floats numbers in stdfloats.inc, stdcounters.inc or 
the like.

I hope that if I will have the answer to how this numbering is done, I might be 
able to set nicely the numbering of a new float I want to insert into my 
document.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to insert a tabular array to LyX

2022-08-17 Thread Udicoudco
‫

> >
> > I want to insert a tblr environment (from the tabularray package) into
> my lyx document.
> >
> > I read that currently LyX supports only tabular environments for tables,
> and not even tabularx.
> >
> > But still I would like to get some thoughts or ideas from the members
> how to insert (graphically, not through ERT) something like the following
> environment:
> >
> > >\begin{tblr}[t]{width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines}
> > >item 1
> > >\\
> > >item 2
> > >\\
> > >item 3
> > >\end{tblr}
> >
> > Thanks very much.
>
> You could redefine the tabular environment used by LyX. However, you
> cannot use the GUI for setting tabular properties. Another difficulty is
> the fact that LyX uses \tabularnewline instead of \\ to end a line and,
> seemingly, the tabularray package does not understand it. So you have
> also to redefine \tabularnewline and remember to add \\ in ERT at the
> end of each table line.
>
> Arguments such as "width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines"
> can be passed through the "LaTeX argument" in the "Tabular Settings"
> paying attention to avoid any space character.
>
> See the attached example containing two examples in both ERT and a
> somewhat LyXfied form as explained above. This last form is marginally
> better than the ERT one.
>
> --
> Enrico
>


Hello Enrico,

You can overcome the \tabularnewline problem more easily if you will
replace "\renewenvironment{tabular}{\begin{tblr}[t]}{\end{tblr}}"  in the
preamble with
"\renewenvironment{tabular}{\begin{tblr}[t,expand=\tabularnewline]}{\end{tblr}}",
this way you won't have to add "\\'' manually at the end of a line.  See
the attached file.

Regards,
Udi


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


Re: How to insert a tabular array to LyX

2022-08-17 Thread Enrico Forestieri
On Sat, Jul 30, 2022 at 05:42:50PM +, tush via lyx-users wrote:
> 
> I want to insert a tblr environment (from the tabularray package) into my lyx 
> document.
> 
> I read that currently LyX supports only tabular environments for tables, and 
> not even tabularx.
> 
> But still I would like to get some thoughts or ideas from the members how to 
> insert (graphically, not through ERT) something like the following 
> environment:
> 
> >\begin{tblr}[t]{width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines}
> >item 1
> >\\
> >item 2
> >\\
> >item 3
> >\end{tblr}
> 
> Thanks very much.

You could redefine the tabular environment used by LyX. However, you
cannot use the GUI for setting tabular properties. Another difficulty is
the fact that LyX uses \tabularnewline instead of \\ to end a line and,
seemingly, the tabularray package does not understand it. So you have
also to redefine \tabularnewline and remember to add \\ in ERT at the
end of each table line.

Arguments such as "width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines"
can be passed through the "LaTeX argument" in the "Tabular Settings"
paying attention to avoid any space character.

See the attached example containing two examples in both ERT and a
somewhat LyXfied form as explained above. This last form is marginally
better than the ERT one.

-- 
Enrico
#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 article
\begin_preamble
\usepackage{tabularray,xcolor}
\renewenvironment{tabular}{\begin{tblr}[t]}{\end{tblr}}
\def\tabularnewline{\relax}
\end_preamble
\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 false
\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 true
\use_refstyle 1
\use_minted 0
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 1cm
\topmargin 2cm
\rightmargin 1cm
\bottommargin 2cm
\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 Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
begin{tblr}[t]{width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines}
\end_layout

\begin_layout Plain Layout

item 1
\end_layout

\begin_layout Plain Layout


\backslash

\backslash

\end_layout

\begin_layout Plain Layout

item 2
\end_layout

\begin_layout Plain Layout


\backslash

\backslash

\end_layout

\begin_layout Plain Layout

item 3
\end_layout

\begin_layout Plain Layout


\backslash
end{tblr}
\end_layout

\end_inset


\end_layout

\begin_layout Standard
\begin_inset Tabular





\begin_inset Text

\begin_layout Plain Layout
item 1
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash

\backslash

\end_layout

\end_inset


\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout
item 2
\begin_inset ERT
status collapsed

\begin_layout Plain Layout


\backslash

\backslash

\end_layout

\end_inset


\end_layout

\end_inset




\begin_inset Text

\begin_layout Plain Layout
item 3
\end_layout

\end_inset




\end_inset


\end_layout

\begin_layout Standard
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
begin{tblr}{
\end_layout

\begin_layout Plain Layout

colspec = {rX}, colsep = 8mm, hlines = {2pt, white},
\end_layout

\begin_layout Plain Layout

row{odd} = {azure8}, row{even} = {gray8},
\end_layout

\begin_layout Plain Layout

row{1} = {6em,azure2,fg=white,font=
\backslash
LARGE
\backslash
bfseries
\backslash
sffamily},
\end_layout

\begin_layout Plain Layout

row{2-Z} =

Re: How to insert a tabular array to LyX

2022-08-03 Thread Udicoudco
‫

> On Jul 30, 2022, 18:42, tush via lyx-users < lyx-users@lists.lyx.org>
> wrote:
>
>
> I want to insert a tblr environment (from the tabularray package) into my
> lyx document.
>
> I read that currently LyX supports only tabular environments for tables,
> and not even tabularx.
>
> But still I would like to get some thoughts or ideas from the members how
> to insert (graphically, not through ERT) something like the following
> environment:
>
> >\begin{tblr}[t]{width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines}
> >item 1
> >\\
> >item 2
> >\\
> >item 3
> >\end{tblr}
>
> Thanks very much.
>
>
Hello Ehud,

I am not sure if the last message  I've sent was received as it  does not
appear in the mail list archive.
I wrote a module to solve your problem, you can get it here
<https://github.com/Udi-Fogiel/Tabularray-Module---Lyx>.  I apologize in
advance for any misspelling in the example file, as I am not a native
english speaker. Please read section 3 in Tabularray.pdf before you start
to use the module.

Regards,
Udi

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


Re: How to insert a tabular array to LyX

2022-08-02 Thread tush via lyx-users
If anyone have any thing to say about this issue, I would be very glad to hear.

Regards

 Original Message 
On Jul 30, 2022, 18:42, tush via lyx-users wrote:

> I want to insert a tblr environment (from the tabularray package) into my lyx 
> document.
>
> I read that currently LyX supports only tabular environments for tables, and 
> not even tabularx.
>
> But still I would like to get some thoughts or ideas from the members how to 
> insert (graphically, not through ERT) something like the following 
> environment:
>
>>\begin{tblr}[t]{width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines}
>>item 1
>>\\
>>item 2
>>\\
>>item 3
>>\end{tblr}
>
> Thanks very much.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


How to insert a tabular array to LyX

2022-07-30 Thread tush via lyx-users
I want to insert a tblr environment (from the tabularray package) into my lyx 
document.

I read that currently LyX supports only tabular environments for tables, and 
not even tabularx.

But still I would like to get some thoughts or ideas from the members how to 
insert (graphically, not through ERT) something like the following environment:

>\begin{tblr}[t]{width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines}
>item 1
>\\
>item 2
>\\
>item 3
>\end{tblr}

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


How to update a template used by a team

2022-07-18 Thread tush via lyx-users
I am writing a template to be used by my colleagues.

The template is mainly based on a module file that changes the WYSIWYG in the 
lyx editor to look close enough to what you would see in the printed pdf file.

But, not all latex commands you can write in a module file.

For example, changing the page style with the fancyhdr package,

\pagestyle{fancy}

is a command that should be inserted as an ERT code somewhere in the lyx file.

I have sent over to one of my colleagues a beta version of this template, and 
he started using it and inserted his own content in it.

But after improving the layout I understand that I need to place this command 
somewhere else in a different position in the document.

So in order for the writer to line-up with this change, it has to be done 
manually by him since this is not a command inserted by the module file. This 
is an example for a minor change, and of course, I can send him an email 
telling him what changes should be made, but this is not considered a smooth 
and correct workflow.

Do you have any insight or idea how we can work better as a team?

Thanks very much!-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to achieve a simple element with LyXHTML

2022-07-11 Thread Lorenzo Bertini

Il 11/07/22 09:24, Steve Litt ha scritto:

Lorenzo Bertini said on Mon, 11 Jul 2022 04:01:06 +0200



[About the idea of a compilation shellscript, Lorenzo said...]


A solution of this kind could work well, but remove the thing that
makes LyX so convenient: one click compile and show.


I can't speak for Windows, but in Linux I use shellscripts to compile
all my books, and it works perfectly. I just run the shellscript and it
runs lualatex, and watermarks my PDF. It could just as easily run a
postprocessor. If I wanted to make it "one click", I'd just assign it
an icon on my desktop.


I'm on linux too, but what i meant was that sometimes it's nice to only 
have to use the "eyes" button in the top right.




I hear Windows has Powerscript now.


We really need a
robust LyXHTML output, and I don't think it's that far away.

Right now the devs lack the manpower to tackle LyXHTML problems fully,
but I believe it's also a matter of demand. It's nice to see there are
people on lyx-users asking about it.


If manpower's so short and it's moving so slowly, perhaps we should just
fix things post-conversion. I have about 3 hours a week to devote to it,
and I'm pretty conversant with the xml.etree.ElementTree XML parser for
Python. It sounds like you know what should go in an HTML/ePub
document. If we get a couple more people with Python and document
expertise, we could fix this, as long as the LyX->HTML export remains
well-formed XML.

I bet maybe four of us could get this done in 3 months, no C++ required.

SteveT

Steve Litt
Summer 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm


Sorry, but I would much prefer to just work on the code, this seems to 
me not necessarily easier than fixing LyX directly, which would be the 
preferred solution in the long run.


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


Re: How to achieve a simple element with LyXHTML

2022-07-11 Thread Steve Litt
Lorenzo Bertini said on Mon, 11 Jul 2022 04:01:06 +0200



[About the idea of a compilation shellscript, Lorenzo said...]

>A solution of this kind could work well, but remove the thing that
>makes LyX so convenient: one click compile and show. 

I can't speak for Windows, but in Linux I use shellscripts to compile
all my books, and it works perfectly. I just run the shellscript and it
runs lualatex, and watermarks my PDF. It could just as easily run a
postprocessor. If I wanted to make it "one click", I'd just assign it
an icon on my desktop. 

I hear Windows has Powerscript now.

> We really need a
>robust LyXHTML output, and I don't think it's that far away.
>
>Right now the devs lack the manpower to tackle LyXHTML problems fully, 
>but I believe it's also a matter of demand. It's nice to see there are 
>people on lyx-users asking about it.

If manpower's so short and it's moving so slowly, perhaps we should just
fix things post-conversion. I have about 3 hours a week to devote to it,
and I'm pretty conversant with the xml.etree.ElementTree XML parser for
Python. It sounds like you know what should go in an HTML/ePub
document. If we get a couple more people with Python and document
expertise, we could fix this, as long as the LyX->HTML export remains
well-formed XML.

I bet maybe four of us could get this done in 3 months, no C++ required.

SteveT

Steve Litt 
Summer 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: How to achieve a simple element with LyXHTML

2022-07-10 Thread Lorenzo Bertini

Il 11/07/22 00:11, Steve Litt ha scritto:

tush via lyx-users said on Sat, 09 Jul 2022 18:59:53 +


I am trying to remove the html attributes assigned by LyXHTML to the
Standard text inserted in the editor.

LyX's default is to render Standard as

This is text inserted in
Standard

together with

p.standard {

text-align: left;

}

appearing in the header.

What I want is to get the simple html code

This is text inserted in Standard
In order to do that I am writing my Style in a layout file. What I
have at the moment is the following:

(I copied the first rows from stdclass.inc)

Style Standard
Category  MainText
MarginStatic
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip   0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label

HTMLAttr " "

End


I think this exchange from lyx-devel will provide some explanation:

On 9/6/21 6:36 PM, Lorenzo Bertini wrote:

Hello list!

LyXHTML outputs standard paragraphs with  a ... (as is the
standard for many insets), but i would much prefer 

I know i can change the tag of other insets by going in the local
layout section of Document->Setting, and write something like

InsetLayout Foot
  HTMLTag p
End


but i cant find anything about the standard paragraph. I don't mean
the "sectioning" paragraph, that is mapped to "HTMLTag h5", but the
piece of text you get after pressing RET in LyX.


It's a paragraph layout: Standard. See stdclass.inc.

But yes, at the moment, that is hardcoded. The reason is that the tag
turns up inside other tags and nested 's are invalid. But it probably
should be made customizable.

RikiRemoval of this hardcoded stuff would require a bit of lyxhtml output 
rewrite, which should be under way right now. Unfortunately, I think 
it's just one dev working on it (Thibaut).




After a lot of trial and error, using the last line I eliminated the
"div class="standard"" from the p element but still LyX assigns to it
an id="some number" which I want to eliminate too.

Any idea about it would be very welcome.


If you're referring to the "magicparlabel", it's hardcoded. I was 
thinking about making a patch to remove it, but LyX relies on this 
"magic labels" to do a lot of the referencing (a quick glance at how the 
TOC is done will give you an idea). I am not that knowlodgeable about 
HTML referencing, so this will take some time.




Yeahh, this is one of the reasons I don't use LyX for ePub. Last
time I looked, LyX exports used the deprecated and now with HTML5
eliminated  inside a div specially made to contain
one . What could *possibly* go wrong?

If I had to eliminate these redundant  things, I'd do it
with a postprocessor that corrects LyX' complexifications. It's not
easy, but you can use Python with the "import xml.etree.ElementTree as
ET" library. You'd analyze every DOM element, and for every 
whose only purpose is to encase one , get rid of the div after
reading metadata from that  and any  silliness, applying
the information to attributes of the  itself.

Seriously, LyX has failed to export common sense XMLized HTML for 14
years now, and I doubt they ever will. Best you can hope for is to
either switch to another authoring program, or repair LyX' mistakes
post-export. I think trying to repair this stuff from within your LyX
document is walking the highway to heartache.

Also, the good thing about the XML-parsing Python post-processor
approach is that, as time goes on, you can fix any problems newly
discovered and/or newly added by LyX: You're in control as long as they
continue to export well-formed XML HTML, which of course isn't a
for-sure thing.

SteveT

Steve Litt
Summer 2022 featured book: Making Mental Models: Advanced Edition
http://www.troubleshooters.com/mmm


A solution of this kind could work well, but remove the thing that makes 
LyX so convenient: one click compile and show. We really need a robust 
LyXHTML output, and I don't think it's that far away.


Right now the devs lack the manpower to tackle LyXHTML problems fully, 
but I believe it's also a matter of demand. It's nice to see there are 
people on lyx-users asking about it.


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


Re: How to achieve a simple element with LyXHTML

2022-07-10 Thread Steve Litt
tush via lyx-users said on Sat, 09 Jul 2022 18:59:53 +

>I am trying to remove the html attributes assigned by LyXHTML to the
>Standard text inserted in the editor.
>
>LyX's default is to render Standard as
>
>This is text inserted in
>Standard
>
>together with
>
>p.standard {
>
>text-align: left;
>
>}
>
>appearing in the header.
>
>What I want is to get the simple html code
>
>This is text inserted in Standard
>In order to do that I am writing my Style in a layout file. What I
>have at the moment is the following:
>
>(I copied the first rows from stdclass.inc)
>
>Style Standard
>   Category  MainText
>   MarginStatic
>   LatexType Paragraph
>   LatexName dummy
>   ParIndent MM
>   ParSkip   0.4
>   Align Block
>   AlignPossible Block, Left, Right, Center
>   LabelType No_Label
>
>HTMLAttr " "
>
>End
>
>After a lot of trial and error, using the last line I eliminated the
>"div class="standard"" from the p element but still LyX assigns to it
>an id="some number" which I want to eliminate too.
>
>Any idea about it would be very welcome.

Yeahh, this is one of the reasons I don't use LyX for ePub. Last
time I looked, LyX exports used the deprecated and now with HTML5
eliminated  inside a div specially made to contain
one . What could *possibly* go wrong?

If I had to eliminate these redundant  things, I'd do it
with a postprocessor that corrects LyX' complexifications. It's not
easy, but you can use Python with the "import xml.etree.ElementTree as
ET" library. You'd analyze every DOM element, and for every 
whose only purpose is to encase one , get rid of the div after
reading metadata from that  and any  silliness, applying
the information to attributes of the  itself.

Seriously, LyX has failed to export common sense XMLized HTML for 14
years now, and I doubt they ever will. Best you can hope for is to
either switch to another authoring program, or repair LyX' mistakes
post-export. I think trying to repair this stuff from within your LyX
document is walking the highway to heartache.

Also, the good thing about the XML-parsing Python post-processor
approach is that, as time goes on, you can fix any problems newly
discovered and/or newly added by LyX: You're in control as long as they
continue to export well-formed XML HTML, which of course isn't a
for-sure thing.

SteveT

Steve Litt 
Summer 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


How to achieve a simple element with LyXHTML

2022-07-09 Thread tush via lyx-users
I am trying to remove the html attributes assigned by LyXHTML to the Standard 
text inserted in the editor.

LyX's default is to render Standard as

This is text inserted in 
Standard

together with

p.standard {

text-align: left;

}

appearing in the header.

What I want is to get the simple html code

This is text inserted in Standard
In order to do that I am writing my Style in a layout file. What I have at the 
moment is the following:

(I copied the first rows from stdclass.inc)

Style Standard
Category  MainText
MarginStatic
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip   0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label

HTMLAttr " "

End

After a lot of trial and error, using the last line I eliminated the "div 
class="standard"" from the p element but still LyX assigns to it an id="some 
number" which I want to eliminate too.

Any idea about it would be very welcome.-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to include a bunch of tex commands globally

2022-04-18 Thread Jean-Marc Lasgouttes

Le 17/04/2022 à 20:00, tush via lyx-users a écrit :
I have a big block of tex commands (about 80 lines in length) that set 
up theorem environments using the |amsthm|​ and |thmtools|​ packages.


To this bunch of tex commands there is also a corresponding LyX module 
that defines the theorems in the editor (paragraph styles, section 5.3.7 
in the customization manual).


I want to avoid this 80 lines code block in my document preamble. It 
clutters the document structure.


In your module, each of your theorems can be associated to its own 
preamble, that will only be incorporated when needed. It is also 
possible to specify with DependsOn that a style needs the preamble of 
another one.


With this, you could make sure that only the required code gets included.

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


Re: How to include a bunch of tex commands globally

2022-04-18 Thread Dr Eberhard Lisse

That will not survive LyX Updates.  Local Layouts should go into the
local layout difrectory (which on the Mac is below ~/Library/Application
Support/LyX-2.3).

Never mind that "must be located" is incorrect.  LaTeX finds documents
in many places (find out what texhash does :-)-O)

I don't understand the issue, however. Why do you need (look at) the
TeX files generated by LyX? And even if so, why the concern about the
"clutter"?

That's what the Preamble is for (put in ton's of LaTeX and never look
at it again :-)-O)

I have a large include.tex for my handbook whih is included by the
master document and all child documents, so I have the same
"environment" for all and even setting up conditionals so font changes
depending on Landscape vs Portrait and similar.

greetings, el

On 2022-04-17 20:00 , tush via lyx-users wrote:

I have a big block of tex commands (about 80 lines in length) that set
up theorem environments using the |amsthm| and |thmtools| packages.

To this bunch of tex commands there is also a corresponding LyX module
that defines the theorems in the editor (paragraph styles, section
5.3.7 in the customization manual).

I want to avoid this 80 lines code block in my document preamble.  It
clutters the document structure.

Of course, one can insert the code block as it is inside this:

Preamble
⟨80 lines of code go here⟩
EndPreamble

But this adds the big code block right into my preamble, which, as I
said, I want to avoid.

The other option is to save the code block in a tex file
(`myPreable.tex` for example) and to load it into my document:
Preamble
\input{myPreamble}
EndPreamble

But this means that the file `myPreamble.tex` must be located in the
root directory of the LyX project.

Is there any way to load the code block while it is located in the
"Applications/LyX.app/Contents/Resources/layouts/" directory?  I am
about to send this module file and all its accompanying files to a
colleague, and I want to spare him from the task of taking care which
files go where.

I hope my question is clear.




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


How to include a bunch of tex commands globally

2022-04-17 Thread tush via lyx-users
I have a big block of tex commands (about 80 lines in length) that set up 
theorem environments using the amsthm​ and thmtools​ packages.

To this bunch of tex commands there is also a corresponding LyX module that 
defines the theorems in the editor (paragraph styles, section 5.3.7 in the 
customization manual).

I want to avoid this 80 lines code block in my document preamble. It clutters 
the document structure.

Of course, one can insert the code block as it is inside this:

Preamble
⟨80 lines of code go here⟩
EndPreamble

But this adds the big code block right into my preamble, which, as I said, I 
want to avoid.

The other option is to save the code block in a tex file (`myPreable.tex` for 
example) and to load it into my document:

Preamble
\input{myPreamble}EndPreamble

But this means that the file `myPreamble.tex` must be located in the root 
directory of the LyX project.

Is there any way to load the code block while it is located in the 
"Applications/LyX.app/Contents/Resources/layouts/" directory? I am about to 
send this module file and all its accompanying files to a colleague, and I want 
to spare him from the task of taking care which files go where.

I hope my question is clear.-- 
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   >