RE: grammar check

2024-04-24 Thread Bernt Lie via lyx-users
(The procedure worked, even though I see that I misspelled "grammar"...)

-Original Message-
From: lyx-users  On Behalf Of Bernt Lie via 
lyx-users
Sent: Wednesday, April 24, 2024 12:17 PM
To: Saša Janiška ; lyx-users@lists.lyx.org
Subject: RE: grammar check

Not a perfect solution...

I copied text from LyX into Microsoft Edge co-pilot following 
(https://www.microsoft.com/en-us/bing/do-more-with-ai/how-to-check-your-grammar-using-bing-chat?form=MA13KP).

I used command: "Can you check this text for spelling errors and grammer 
errors?", and passed in the text to check *after* a line break (Ctrl+Enter, I 
think), and then clicked on the start button.

The results seems to be quite good, although it "fixed" a handful of errors 
that were not really errors, but rather words that co-pilot didn't know (some 
technical words from dna analysis). 
--
I then copied the corrected text from MS Edge back into LyX.

The "downside" of this procedure is that some structure was lost in the copying 
back-and-forth process (a slash "/", some bullet symbols in lists, etc.). 

-B

-Original Message-
From: lyx-users  On Behalf Of Saša Janiška
Sent: Wednesday, April 24, 2024 11:24 AM
To: lyx-users@lists.lyx.org
Subject: grammar check

Hello,

I've decided to do my note-taking (Zettelkasten) by just using pen & paper and 
when I want to produce some context I'll just use LyX - exporting to markdown 
when I want something for the web (using Tiki
CMS) or LyX/LaTeX for writing articles (pdfs), slide-presentations, books…

However, being non-native speaker/writer I do find useful to use some grammar 
checkers.

To support LanguageTool I've subscribed to Premium version, but found out that 
despite being open-source etc. it has its limitations (see e.g. 
https://github.com/valentjn/ltex-ls/issues/215).

Otoh, I've a licence for proprietary Antidote
(https://www.druide.com/en) which can check text provided as e.g.
markdown, LaTeX...

Now I wonder if you have any suggestion how to review lyx-gc to either support 
newer versions of LanguageTool or to use Antidote's ability to grammar-check 
LaTeX markup considering that lyx-gc was using chktex to do the task.

Any other suggestion how to add grammar-check feature to LyX?


Sincerely,
Saša

--
As the embodied soul continuously passes, in this body, from boyhood to youth 
to old age, the soul similarly passes into another body at death. A sober 
person is not bewildered by such a change.


-- 
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
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: grammar check

2024-04-24 Thread Bernt Lie via lyx-users
Not a perfect solution...

I copied text from LyX into Microsoft Edge co-pilot following 
(https://www.microsoft.com/en-us/bing/do-more-with-ai/how-to-check-your-grammar-using-bing-chat?form=MA13KP).

I used command: "Can you check this text for spelling errors and grammer 
errors?", and passed in the text to check *after* a line break (Ctrl+Enter, I 
think), and then clicked on the start button.

The results seems to be quite good, although it "fixed" a handful of errors 
that were not really errors, but rather words that co-pilot didn't know (some 
technical words from dna analysis). 
--
I then copied the corrected text from MS Edge back into LyX.

The "downside" of this procedure is that some structure was lost in the copying 
back-and-forth process (a slash "/", some bullet symbols in lists, etc.). 

-B

-Original Message-
From: lyx-users  On Behalf Of Saša Janiška
Sent: Wednesday, April 24, 2024 11:24 AM
To: lyx-users@lists.lyx.org
Subject: grammar check

Hello,

I've decided to do my note-taking (Zettelkasten) by just using pen & paper and 
when I want to produce some context I'll just use LyX - exporting to markdown 
when I want something for the web (using Tiki
CMS) or LyX/LaTeX for writing articles (pdfs), slide-presentations, books…

However, being non-native speaker/writer I do find useful to use some grammar 
checkers.

To support LanguageTool I've subscribed to Premium version, but found out that 
despite being open-source etc. it has its limitations (see e.g. 
https://github.com/valentjn/ltex-ls/issues/215).

Otoh, I've a licence for proprietary Antidote
(https://www.druide.com/en) which can check text provided as e.g.
markdown, LaTeX...

Now I wonder if you have any suggestion how to review lyx-gc to either support 
newer versions of LanguageTool or to use Antidote's ability to grammar-check 
LaTeX markup considering that lyx-gc was using chktex to do the task.

Any other suggestion how to add grammar-check feature to LyX?


Sincerely,
Saša

--
As the embodied soul continuously passes, in this body, from boyhood to youth 
to old age, the soul similarly passes into another body at death. A sober 
person is not bewildered by such a change.


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


LyX v2.4.0 RC4 -> Table styles??

2024-04-17 Thread Bernt Lie via lyx-users
I've read large portions of the documentation, and am eager to try the Table 
style facility of LyX v2.4.0. I'm on Windows 11, and play with RC4.



When I do Insert/Table…, this is what I get.

[cid:image001.png@01DA9106.80E67870]



In the Style menu, “Default” is the only possible option. If I click on the 
[cid:image002.png@01DA9106.80E67870]  icon, the only possibility is to choose 
the table size.



If I insert the table and right-click on it, everything related to other styles 
than the default is grayed out:

[cid:image003.png@01DA9106.B1A0AEE0]



  *   I’m confused. What is it that I do that is incorrect?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: LyX v2.4.0 RC4 -> Unicode in Program Listing (again...)

2024-04-17 Thread Bernt Lie via lyx-users
I'm not using gnuplot at all. But I assume you mean that as long as I have 
produced the input (e.g., Unicode files, plots, etc.), there should be no 
problem. 

-Original Message-
From: José Matos  
Sent: Wednesday, April 17, 2024 6:52 PM
To: Bernt Lie ; lyx-de...@lists.lyx.org; lyx-users 

Subject: Re: LyX v2.4.0 RC4 -> Unicode in Program Listing (again...)

On Wed, 2024-04-17 at 13:17 +, Bernt Lie wrote:
> Question 1:
>  * Dangerous, because LyX is more likely to *crash*, or
>  * Dangerous, because it opens up my computer to hacking??

The script that you call can run any code using the gnuplot "system"
call. That is the same as having access to a shell...

If the gnuplot files that you use are your own, or from one that you trust, 
then there is no risk... or actually the same risk that you had if you run the 
script outside of LyX.
--
José Abílio
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


LyX v2.4 RC4 - keyboard shortcut

2024-04-17 Thread Bernt Lie via lyx-users
I just discovered the “character” shortcuts Alt + C…, e.g., Alt + C R for 
mathroman in math.



  *   I’m a touch typist, so I prefer to use keyboard shortcuts over menus
  *   I’m not a pianist, so I don’t have extremely independent movement of 
fingers
  *   Because the “Alt” key is on the lefthand side of the keyboard and the “C” 
 key also is on the lefthand side, this makes it very awkward to hold down the 
Alt key and at the same time hold down the C key.
  *   This difficulty is increased by that the Alt key should be hit with the 
*middle finger* (which must be bent in an awkward way to hit the Alt key). The 
problem is much less pronounced with the Ctrl key, which is hit with the pinkie.



Probably not a popular suggestion, but it would be much simpler to use Alt with 
a key on the righthand side of the keyboard, e.g., replacing Alt+C with Alt+K.






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


RE: LyX v2.4.0 RC4 -> Unicode in Program Listing (again...)

2024-04-17 Thread Bernt Lie via lyx-users
OK… I just found I had put the “-shell-escape” string in the wrong cell…

I have now changed the preferences, and inserted this string in both of the 
XeTeX and LuaTeX converters from LaTeX to PDF.

Now, I get the (expected) warning that using the “-shell-escape” string is 
*dangerous*.

Question 1:

  *   Dangerous, because LyX is more likely to *crash*, or
  *   Dangerous, because it opens up my computer to hacking??

Experience – here is some listing in LyX:
[cid:image003.png@01DA90D8.A23B6C70]
This expression is taken from a Jupyter Notebook running in VSCode (language: 
Julia), where the symbols are created by “\frakm + TAB \dot + TAB = m\dot + TAB 
v”
…and here is what it looks like when I use XeTeX/LuaTeX:

[cid:image004.png@01DA90D8.F0F27C50]

Questions 2:

  *   Could I expect a better response if I install a font that supports 
Unicode, and specifies this font in the fonts scheme of Listings?
  *   If I install such a font with Unicode support (e.g., JuliaMono), would 
that rule out using XeTeX so that I should use LuaTeX?

Question 3:

  *   If I should use LuaTeX, how can I change LyX so that issuing command 
Ctrl+r produces the PDF using LuaTeX?

-B

From: Bernt Lie 
Sent: Tuesday, April 16, 2024 7:22 PM
To: Bernt Lie ; lyx-de...@lists.lyx.org; lyx-users 

Subject: LyX v2.4.0 RC4 -> Unicode in Program Listing (again...)


OK -- this is the status on my on-going experimentation on Windows 11... (I 
hope I'm almost there):



1. I experiment with KOMA script Book

2. I have:

* Upgraded all packages in MikTeX

* Installed Pygments ("pip install Pygments" in Windows Prompt)

* Figured out where the "pygmetize" script is located on my computer,

  and added location to PATH.

* In the LyX document, Documents/Settings/Fonts, checked "use non-TeX fonts

* In the Documents/Settings/Listings, changed "Syntax Highlighting Package" 
to "minted"

  [This didn't work until I set the PATH to "pygmetize"]

* In Tools/Preferences/File Handling/Converters, added "-shell-escape" at 
the end

  of the Converter line:

[cid:image001.png@01DA90D8.479231F0]

  [This line is slightly different from the Embedded document, 
since that assumed pdflatex as converter).



3. STATUS:

[cid:image002.png@01DA90D8.479231F0]



QUESTION 1: What is wrong? I *did* envoke the “-shell-escape” flag, didn’t I?



QUESTION 2: By default, Ctrl+R is keyboard shortcut for generating PDF via 
pdflatex. After I chose “use non-TeX fonts”, Ctrl+R implies generating PDF via 
XeTeX. How can I change the set-up so that Ctrl+R implies using luatex?


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


LyX v2.4.0 RC4 -> Unicode in Program Listing (again...)

2024-04-16 Thread Bernt Lie via lyx-users
OK -- this is the status on my on-going experimentation on Windows 11... (I 
hope I'm almost there):



1. I experiment with KOMA script Book

2. I have:

* Upgraded all packages in MikTeX

* Installed Pygments ("pip install Pygments" in Windows Prompt)

* Figured out where the "pygmetize" script is located on my computer,

  and added location to PATH.

* In the LyX document, Documents/Settings/Fonts, checked "use non-TeX fonts

* In the Documents/Settings/Listings, changed "Syntax Highlighting Package" 
to "minted"

  [This didn't work until I set the PATH to "pygmetize"]

* In Tools/Preferences/File Handling/Converters, added "-shell-escape" at 
the end

  of the Converter line:

[cid:image001.png@01DA9032.84834190]

  [This line is slightly different from the Embedded document, 
since that assumed pdflatex as converter).



3. STATUS:

[cid:image002.png@01DA9032.E4467C00]



QUESTION 1: What is wrong? I *did* envoke the “-shell-escape” flag, didn’t I?



QUESTION 2: By default, Ctrl+R is keyboard shortcut for generating PDF via 
pdflatex. After I chose “use non-TeX fonts”, Ctrl+R implies generating PDF via 
XeTeX. How can I change the set-up so that Ctrl+R implies using luatex?


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


RE: LyX 2.4.0 RC4 - bug? Abstract headline is missing + bits and pieces

2024-04-13 Thread Bernt Lie via lyx-users
A difference - perhaps -- between a missing Abstract label and the Chapter 
label in *LyX* is that sections headings are quite big compared to the standard 
text, so it is easy to see the difference. While the abstract text font is only 
marginally smaller than the standard text font, so it is more difficult to see 
what it is.

*If* one sets "abstract=on" to enforce "Abstract" to be printed in the PDF 
file, it would perhaps be natural if this text also shows up in LyX.
--
Anyways, this is not a major problem -- I can always switch to the standard 
article style.
--
Thanks a lot for your great job with creating v. 2.4. I really appreciate all 
the work you have put into it, and look forward to start reading the manuals. 
Although I've used LyX for some 10 years or so, I think it will be useful to 
re-read the documentation to better familiarize myself with what is new.

So far,...
* I greatly appreciate that you have not changed the main parts of the user 
interface. I hate it when developers come out with a new version of a tool, and 
the user doesn't recognize where the menus are, etc.

* I have already used the improved system for finding missing citations and 
broken references.

* The search system looks improved.

* These are the main things I have had time to notice in some 3 days, while 
converting a large portion of my key documents from v. 2.3.x to v. 2.4
--

As a person who combines text with loads of math and computer code...
* The Program Listing settings ---
--> Do I set them individually every time I insert a program listing?
--> Or are they document settings, so that if I change one setting (e.g., font 
setting), then this takes precedence for the entire document?
--> The above question is related to how to keep consistency in listings...

Also, I'm using a couple of computer languages that are not supported by 
Program Listing...
* Modelica (for specifying mathematical models)
* Julia

Is there an ASCII file where it is possible to add specifications for more 
computer languages so that they show up in the Program Listing settings?



-Original Message-
From: lyx-users  On Behalf Of Richard Kimberly 
Heck
Sent: Friday, April 12, 2024 10:02 PM
To: Herbert Voss ; lyx-users@lists.lyx.org
Subject: Re: LyX 2.4.0 RC4 - bug? Abstract headline is missing

On 4/12/24 12:42, Herbert Voss wrote:
> Am 12.04.24 um 13:41 schrieb Bernt Lie via lyx-users:
>> Aha! It only adds "Abstract" to the PDF file when using KOMA-script, 
>> not in the LyX editor itself!
>>
>> For the Standard Article style, "Abstract" is inserted into the LyX 
>> editor by default. I find that clarifying, and it would be nice if 
>> the same happened when using KOMA-script.
>
> It is easy to add the abstract part into the LyX layout file of the 
> scrartcl class or creating an own layout file.

For some reason, scrclass.inc explicitly removes the heading:

Input stdstruct.inc

Style Abstract
     LabelType No_Label
End

If we're agreed that's wrong, it's easy enough to fix.

Riki


--
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.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread Bernt Lie via lyx-users
As far as I know, KOMA is independent of LyX. So I don't understand why 
inserting the label "Abstract" in the LyX *editor* can be seen as overriding 
KOMA's default settings. 

At least not if the user inserts the command "abstract=on" in the settings.


-Original Message-
From: lyx-users  On Behalf Of Jürgen 
Spitzmüller
Sent: Friday, April 12, 2024 1:52 PM
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.4.0 RC4 - bug? Abstract headline is missing

Am Freitag, dem 12.04.2024 um 11:41 +0000 schrieb Bernt Lie via lyx-
users:
> For the Standard Article style, "Abstract" is inserted into the LyX 
> editor by default. I find that clarifying, and it would be nice if the 
> same happened when using KOMA-script.

No, we don't want to override KOMA's default settings, which are well 
rationalized in the manual.

--
Jürgen
--
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.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread Bernt Lie via lyx-users
Aha! It only adds "Abstract" to the PDF file when using KOMA-script, not in the 
LyX editor itself!

For the Standard Article style, "Abstract" is inserted into the LyX editor by 
default. I find that clarifying, and it would be nice if the same happened when 
using KOMA-script.

-Original Message-
From: lyx-users  On Behalf Of José Matos
Sent: Friday, April 12, 2024 1:02 PM
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.4.0 RC4 - bug? Abstract headline is missing

On Fri, 2024-04-12 at 09:57 +0000, Bernt Lie via lyx-users wrote:
> 
> Thanks.
>  
> I have tried with inserting the text “abstract=on” (with and withough 
> prepending/appending it with “), but this has no effect.

Note that the abstract=on option only changes the (pdf) output, it does not 
change how the document looks in lyx.

--
José Abílio
--
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.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread Bernt Lie via lyx-users
OK -- in 2.3.7, I did not use KOMA script article, but standard LaTeX article. 
And there the label shows up in my installation. 

The "problem" to me is that it is not just that the "label" is missing in the 
LyX editor, but the word "Abstract" does not show up in the pdf file either. 

-Original Message-
From: José Matos  
Sent: Friday, April 12, 2024 11:55 AM
To: Bernt Lie ; lyx-de...@lists.lyx.org; lyx-users 

Subject: Re: LyX 2.4.0 RC4 - bug? Abstract headline is missing

On Fri, 2024-04-12 at 09:41 +, Bernt Lie via lyx-users wrote:
> When I use KOMA script and Article style, and insert an Abstract, the 
> headline "Abstract" is not inserted. This is different from previous 
> versions, I think??
> 
> Is this a bug?

I tested in 2.3.x and it does not show there as well.
So at least the change is not specific to lyx 2.4.

If you change to the standard class then the label is there both for
2.3 and 2.4.

So the question is if the label should be there for consistency.
I am inclined to say yes but I have no strong feelings about this. :-)

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


RE: LyX 2.4.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread Bernt Lie via lyx-users
Thanks.



I have tried with inserting the text "abstract=on" (with and withough 
prepending/appending it with "), but this has no effect.

[cid:image001.png@01DA8CD0.A6429AC0]



-Original Message-
From: lyx-users  On Behalf Of Herbert Voss
Sent: Friday, April 12, 2024 11:50 AM
To: lyx-users@lists.lyx.org
Subject: Re: LyX 2.4.0 RC4 - bug? Abstract headline is missing







Am 12.04.24 um 11:41 schrieb Bernt Lie via lyx-users:

> When I use KOMA script and Article style, and insert an Abstract, the 
> headline "Abstract" is not inserted. This is different from previous 
> versions, I think??

>

> Is this a bug?



Use documentclass option "abstract=on"



Herbert

--

lyx-users mailing list

lyx-users@lists.lyx.org<mailto: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


LyX 2.4.0 RC4 - bug? Abstract headline is missing

2024-04-12 Thread Bernt Lie via lyx-users
When I use KOMA script and Article style, and insert an Abstract, the headline 
"Abstract" is not inserted. This is different from previous versions, I think??

Is this a bug?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


LyX 2.4.0, Listing, and computer language?

2024-04-10 Thread Bernt Lie via lyx-users
How can I add another computer language to the Program Listing Settings?



  *   Is there a file where I can add reserved words, etc.?
  *   ...and then have it show up in the Program Listing Settings language 
choice?



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


RE: LyX 2.4.0 & Jupyter Notebooks

2024-04-10 Thread Bernt Lie via lyx-users
Experimenting with LyX 2.4 RC4... Specifically, I'm testing whether there is 
Unicode support.



  *   I have successfully pasted in a Unicode character from VSCode into a LyX 
2.4 RC4 document, so this seems to work:

[cid:image001.png@01DA8B60.FFE8A950]

Here, the first symbol is produced in VSCode using "\frakm + TAB", and then 
pasted into a LyX text line.  The second occurrence (slightly different in 
form) is produced as in-line math "\mathfrak{m}".



I can also decorate this symbol with a dot on top, "\frakm + TAB \dot + TAB" in 
VSCode. When I paste this symbol into LyX, the dot on top of "\frakm + TAB" is 
somewhat skewed to the right.



OK - so Unicode in LyX seems to work. It also works if I preview the document 
as a PDF file.

--

Next, I try to use Unicode in listings. That does not work at the moment... 
Here is what I do:

  *   Insert/Program Listing
  *   I paste the "\frakm + TAB" symbol from VSCode into this box.
  *   This gives a paste error message:

[cid:image003.png@01DA8B61.C58642D0]



  *   I then go to Document/Settings/Listings, and change Syntax Highlighting 
Package to *minted*, which provides a message:

[cid:image004.png@01DA8B62.5053B550]



I don't understand this message...

  *   I'm on Windows, and the documentation says that Pygments driver is 
installed by default (??). Anyways, reading this warning...
  *   Where am I supposed to place command "\AtBeginDocument{...}"?? Are we 
talking about putting this command in the Document/Settings/LaTeX Preamble 
window??? Or should I open the LyX document in an ASCII editor and add the 
line... somewhere?
  *   What is the "driver command", i.e., the string I'm supposed to insert 
instead of `driver`? Is it simply `pygmentize`??

  *   Anyways, for now I just neglect this command, and go to 
Tools/Preferences/File Handling/Converters, and scroll down to

[cid:image002.png@01DA8B63.945591F0]

Here I have changed Converter from `pdflatex $$i` to what is shown above.



When I go back to the document and insert a listing, and then paste the Unicode 
symbol into the listing, I get the same error message with paste error as shown 
at the top of this e-mail.



--

So - I'm stuck. The only possible reason for the problem now are:

  *   I need to find the correct place to insert the string 
"\AtBeginDocument..." string with the correct `driver` (whatever that is), and 
live with the warning of mint & `-shell-escape` causing a security risk. 
Perhaps this will solve the problem.
  *   Or: it is not possible to use Unicode characters in LyX 2.4 listings.



Any suggestions?



-B


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


RE: LyX 2.4.0 & Jupyter Notebooks

2024-04-10 Thread Bernt Lie via lyx-users
Ah. OK.

-Original Message-
From: lyx-users  On Behalf Of Pavel Sanda
Sent: Wednesday, April 10, 2024 2:51 PM
To: lyx-de...@lists.lyx.org; lyx-users 
Subject: Re: LyX 2.4.0 & Jupyter Notebooks

On Wed, Apr 10, 2024 at 12:11:08PM +, Bernt Lie wrote:
> > knitr integration...
> 
> Thanks.
> 
> I don't use R, so I guess knitr is not useful to me.

I did not mean that you will use R, but that you can check how knitr scripts 
establish two-way communication street and reuse it for jupyter instead of R

Pavel
--
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.0 & Jupyter Notebooks

2024-04-10 Thread Bernt Lie via lyx-users
> knitr integration...

Thanks.

I don't use R, so I guess knitr is not useful to me. [In in the JU corner of 
Jupyter...] There is also Quarto which is developed in the R community, 
although it can also be used with other languages. Don't know how Quarto scales 
to large documents, though... My experience is that Jupyter Notebooks start to 
become slow with documents in the order of some 30 pages (i.e., with plenty of 
plots), while LyX is still quick with documents in the order of 1000 pages.

-B

-Original Message-
From: lyx-users  On Behalf Of Pavel Sanda
Sent: Wednesday, April 10, 2024 11:05 AM
To: lyx-de...@lists.lyx.org; lyx-users 
Subject: Re: LyX 2.4.0 & Jupyter Notebooks

On Tue, Apr 09, 2024 at 11:37:48AM -0400, Richard Kimberly Heck wrote:
> On 4/9/24 08:48, Bernt Lie wrote:
> >Is there a way to import Jupyter Notebooks into LyX 2.4.0 (when v. 2.4.0 is 
> >released)?
> >
> >I'm particularly interested in the possibility to...
> >
> >* link the notebooks into LyX so that I always get the latest 
> >version/computations in the notebook, i.e., preferably not a static 
> >import
> >
> >* inclusion of mark-up text with headlines, math, etc.
> >
> >* inclusion of input and output cells, with figures, etc.
> >
> >* linked-in notebooks would be multipage. Perhaps it should be possible to 
> >embed the notebooks in some theorem-like environment.
> >
> >OK -- don't know if this is possible, but it would go a long way towards 
> >getting a literal programming environment.
> 
> The most plausible way to do this would be to use an external inset. 
> That's the way that Lilypond files (music) are included, for example. 
> Such insets are user definable. Basically, you tell LyX how to convert 
> the file to something LaTeX can process. This is discussed in section 
> 7.1 of the Embedded Objects manual. You can use the existing xtemplate 
> files as a starting point, too.

You might also want to check how knitr integrates into lyx (basically embedding 
R code into lyx).

Pavel
--
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.0 & Jupyter Notebooks

2024-04-09 Thread Bernt Lie via lyx-users
OK -- so I could just as well start using RC4?

I'm not super software savvy, so I have been hesitant not knowing:
* Can I install RC4 and still use LyX 2.7.1?
* Do I have to uninstall RC4 and install the official release when it becomes 
available?
* With 2.7.1, I have used MikTeX. Should I still use MikTeX, or use something 
else? (Does MikTeX also come with LuaTeX, XeTeX, TeXLive, or whatever?)

If these three bullet points do not cause any problems, I may try to download 
and use RC4.
 

-Original Message-
From: Richard Kimberly Heck  
Sent: Tuesday, April 9, 2024 9:51 PM
To: Bernt Lie ; LyX Developers ; 
lyx-users 
Subject: Re: LyX 2.4.0 & Jupyter Notebooks

On 4/9/24 12:00, Bernt Lie wrote:
> Thanks. Will look at it when the new version is released.

I don't think there have been any major changes in that machinery. And there 
definitely won't be any before the final release. Changes from RC4 to the 
official release are going to be pretty minor (as one would hope).

Riki


> -Original Message-
> From: Richard Kimberly Heck 
> Sent: Tuesday, April 9, 2024 5:38 PM
> To: Bernt Lie ; LyX Developers 
> ; lyx-users 
> Subject: Re: LyX 2.4.0 & Jupyter Notebooks
>
> On 4/9/24 08:48, Bernt Lie wrote:
>> Is there a way to import Jupyter Notebooks into LyX 2.4.0 (when v. 2.4.0 is 
>> released)?
>>
>> I'm particularly interested in the possibility to...
>>
>> * link the notebooks into LyX so that I always get the latest 
>> version/computations in the notebook, i.e., preferably not a static 
>> import
>>
>> * inclusion of mark-up text with headlines, math, etc.
>>
>> * inclusion of input and output cells, with figures, etc.
>>
>> * linked-in notebooks would be multipage. Perhaps it should be possible to 
>> embed the notebooks in some theorem-like environment.
>>
>> OK -- don't know if this is possible, but it would go a long way towards 
>> getting a literal programming environment.
> The most plausible way to do this would be to use an external inset.
> That's the way that Lilypond files (music) are included, for example.
> Such insets are user definable. Basically, you tell LyX how to convert 
> the file to something LaTeX can process. This is discussed in section
> 7.1 of the Embedded Objects manual. You can use the existing xtemplate files 
> as a starting point, too.
>
> Riki
>
>

--

Richard Kimberly (Riki) Heck
Professor of Philosophy
Brown University

Pronouns: they/them/their
Website:  http://rkheck.frege.org/

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


RE: LyX 2.4.0 & Jupyter Notebooks

2024-04-09 Thread Bernt Lie via lyx-users
Thanks. Will look at it when the new version is released.

-Original Message-
From: Richard Kimberly Heck  
Sent: Tuesday, April 9, 2024 5:38 PM
To: Bernt Lie ; LyX Developers ; 
lyx-users 
Subject: Re: LyX 2.4.0 & Jupyter Notebooks

On 4/9/24 08:48, Bernt Lie wrote:
> Is there a way to import Jupyter Notebooks into LyX 2.4.0 (when v. 2.4.0 is 
> released)?
>
> I'm particularly interested in the possibility to...
>
> * link the notebooks into LyX so that I always get the latest 
> version/computations in the notebook, i.e., preferably not a static 
> import
>
> * inclusion of mark-up text with headlines, math, etc.
>
> * inclusion of input and output cells, with figures, etc.
>
> * linked-in notebooks would be multipage. Perhaps it should be possible to 
> embed the notebooks in some theorem-like environment.
>
> OK -- don't know if this is possible, but it would go a long way towards 
> getting a literal programming environment.

The most plausible way to do this would be to use an external inset. 
That's the way that Lilypond files (music) are included, for example. 
Such insets are user definable. Basically, you tell LyX how to convert the file 
to something LaTeX can process. This is discussed in section
7.1 of the Embedded Objects manual. You can use the existing xtemplate files as 
a starting point, too.

Riki


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


LyX 2.4.0 & Jupyter Notebooks

2024-04-09 Thread Bernt Lie via lyx-users
Is there a way to import Jupyter Notebooks into LyX 2.4.0 (when v. 2.4.0 is 
released)? 

I'm particularly interested in the possibility to...

* link the notebooks into LyX so that I always get the latest 
version/computations in the notebook, i.e., preferably not a static import

* inclusion of mark-up text with headlines, math, etc.

* inclusion of input and output cells, with figures, etc.

* linked-in notebooks would be multipage. Perhaps it should be possible to 
embed the notebooks in some theorem-like environment.

OK -- don't know if this is possible, but it would go a long way towards 
getting a literal programming environment. 

-B

-Original Message-
From: lyx-users  On Behalf Of Rich Shepard
Sent: Monday, April 1, 2024 11:58 PM
To: LyX Developers ; lyx-users 

Subject: Re: LyX 2.4.0 RC4

On Sun, 31 Mar 2024, Richard Kimberly Heck wrote:

> What we hope will be the final release candidate for 2.4.0 is now 
> available
> here:
> http://ftp.lyx.org/pub/lyx/devel/lyx-2.4/
>
> Please report bugs to lyx-de...@lists.lyx.org.

Riki,

Just upgraded from 2.3.7.1 to 2.4.0~RC4 on Slackware64-15.0 on a ThinkPad T430; 
no bugs seen crawling around. The issues that bugged me in 2.3.6.2 and
2.3.7.1 (not finding biblatex.sty and biber, needing to use the File menu to 
export a pdflatex because c-x h wouldn't work) are gone.

I had a concern about Tools -> Preferences -> Look & Feel -> Display showed 
Default when I use emacs turned out that (at least on my system) emacs key 
chords are the default.

Congratulations and many thanks to all devs.

Best regards,

Rich

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

2024-02-28 Thread Bernt Lie via lyx-users
> I am a complete newbi to LyX - which documentation set should I use for the 
> current release  please ?

If you by "current release" mean LyX 2.3.7 (of January 2023), have you looked 
at the LyX documents linked under Help? They are relatively comprehensive.

Good luck!
-B

-Original Message-
From: lyx-users  On Behalf Of Brian Kneller 
via lyx-users
Sent: Tuesday, February 27, 2024 11:24 PM
To: lyx-users@lists.lyx.org
Subject: Documentation

Hi,

I am a complete newbi to LyX - which documentation set should I use for the 
current release  please ?

Thank you

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


LyX 2.3.7 & BibLaTeX?

2023-10-27 Thread Bernt Lie via lyx-users
I'm on LyX 2.3.7, eagerly awaiting the release of 2.4 (whenever that will be).

While I'm waiting, I'm starting to use Zotero to manage bibliography files, and 
had some help from a more IT knowledgeable colleague. He set up Zotero to store 
bibliography files as BibLaTeX. Some experience:


  1.  In the past, I have used the AGSM bibliography style file. This style 
doesn't seem to work with BibLaTeX?? Is there another, similar bibliography 
style that works with BibLaTeX (i.e., Harvard style, etc.)?? [One change from 
BibTeX to BibLaTeX seems to be change of field name "year" to field name 
"date"??)
  2.  One *bad* (?) experience with Zotero is that it *changed* all the 
bibliography *label* names. I assume this means that all past LyX/LaTeX 
documents I have written will show up with *broken* references if I switch to 
the new *.bib file generated by Zotero.

To repeat: my question is:

  *   Is there a BibLaTeX compatible bibliography style file with LyX 2.3.7 
that works similarly to how AGSM works?
  *   Or do I have to wait for LyX 2.4 for BibLaTeX compatibility?

Thanks,
BL

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


RE: Newcommand -- make symbol independent of font size

2023-07-30 Thread Bernt Lie via lyx-users
Thanks. OK -- then I have to switch to luatex... (I use MikTeX -- does that 
distribution contain luatex?)

Anyways, I'll defer it to when LyX 2.4 is released. At that stage, I also need 
to make sure that I can have Unicode fonts in computer listing.

BL

-Original Message-
From: lyx-users  On Behalf Of Herbert Voss
Sent: Sunday, July 30, 2023 11:12 AM
To: lyx-users@lists.lyx.org
Subject: Re: Newcommand -- make symbol independent of font size



Am 30.07.23 um 10:35 schrieb Bernt Lie via lyx-users:
>
> I'm trying to define the "plimsoll" symbol (used to indicate 
> thermodynamic standard condition). I found on the internet the 
> following suggestion:
>
> \newcommand\plimsoll{{\circ\kern-0.495em-}}
>
> Seems like a good number ("0.495" -- I've also tried with "0.415") 
> depends on the font size... Here is what it looks like in a Section 
> heading (ok with “0.415”):
>

use lualatex and unicode-math. Write into the preamble

\usepackage{unicode-math}
\setmainfont{XITS-Regular.otf}
\setmathfont{XITSMath-Regular.otf}

\newcommand\plimsoll{\ensuremath{\scriptscriptstyle\circlehbar}}



then the following will work:


H${}^{\plimsoll}$ $G^{\plimsoll}$

\Huge
H${}^{\plimsoll}$ $G^{\plimsoll}$


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


Newcommand -- make symbol independent of font size

2023-07-30 Thread Bernt Lie via lyx-users
I'm trying to define the "plimsoll" symbol (used to indicate thermodynamic 
standard condition). I found on the internet the following suggestion:



\newcommand\plimsoll{{\circ\kern-0.495em-}}



Seems like a good number ("0.495" -- I've also tried with "0.415") depends on 
the font size... Here is what it looks like in a Section heading (ok with 
"0.415"):

[cid:image001.png@01D9C2D1.91829D70]



And here is what it looks like in displayed equation (ugly):

[cid:image002.png@01D9C2D1.91829D70]



  *   How can I make the definition so that it looks fine in any font size?



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


RE: LyX and Unicode in computer listing

2023-03-17 Thread Bernt Lie via lyx-users
Ah -- yes, the font could be the problem.

Is there a Unicode font for LyX 2.3.7 that is suitable for computer listing?
--
BL


-Original Message-
From: lyx-users  On Behalf Of José Matos
Sent: Friday, March 17, 2023 8:32 AM
To: lyx-users@lists.lyx.org
Subject: Re: LyX and Unicode in computer listing

On Tue, 2023-03-14 at 13:47 +, Bernt Lie via lyx-users wrote:
> Question 1: Will LyX 2.4 support Unicode characters, also in computer 
> listing?

I suspect that the problem could be related with the fonts you use. Not all 
fonts have all the glyphs.
Sometimes it is a mater of choosing the right font,

> Question 2: Any wild guesses of when LyX 2.4 will be released? [I know 
> this is difficult to predict, so I’m more looking for answers like 
> “Before August 2023”, or “In 2024, the earliest”, etc.]

I would say, without binding no one, that at least this year it should be out. 
:-)

Basically there are no (major) new developments and all the focus is on bug 
fixing.

> -BL

Regards,
--
José Abílio
--
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


LyX and Unicode in computer listing

2023-03-14 Thread Bernt Lie via lyx-users
I have some computer code containing Unicode characters, e.g.
[cid:image001.png@01D95683.DF87E530]

Currently, I use LyX 2.3.7 under Windows 11. When I generate a PDF file, LyX 
simply removes those characters (some Greek characters above, symbols with dot 
on top, etc.).
--
Question 1: Will LyX 2.4 support Unicode characters, also in computer listing?

Question 2: Any wild guesses of when LyX 2.4 will be released? [I know this is 
difficult to predict, so I’m more looking for answers like “Before August 
2023”, or “In 2024, the earliest”, etc.]

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


RE: Individual counters for Problems, Examples, etc.?

2022-10-03 Thread Bernt Lie via lyx-users
Thanks, Daniel

The "clue" was to know that it is under Modules... I tried to search the User's 
Guide, etc., but didn't find the needed help there.

-B

-Original Message-
From: lyx-users  On Behalf Of Daniel CLEMENT 
via lyx-users
Sent: Monday, October 3, 2022 3:05 PM
To: lyx-users@lists.lyx.org
Subject: Re: Individual counters for Problems, Examples, etc.?

Le lundi 03 octobre 2022 à 11:49 +0000, Bernt Lie via lyx-users a écrit :
> In LyX 2.3.6.1 under Windows 11, I have a document of Document Class 
> "Article (Standard Class with Extra Fontsizes)".
>  
> Currently, all "theorem-like" elements use the same counter, e.g., 
> Examples, Problems, etc., use the same counter.

AFAIK this is indeed the default behavior.
>  
> I want to use separate counters for the various elements.
>  
> How do I do that in LyX? [In LaTeX, I put a "newtheorem" command in 
> the Preamble I think.  But in LyX, these elements already exist. so I 
> assume that I mess things up if I create a new "Problem", etc.
>  
> Thanks for help.
>  
> -B

I think it's just a matter of choosing the right "theorems..." module:

document > parameters > modules

Scroll down to the end to see the various "theorems..." options. They are well 
explained, and I guess you should find one that does what you want.

HTH,
--
Daniel CLEMENT
--
lyx-users mailing list
lyx-users@lists.lyx.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.lyx.org%2Fmailman%2Flistinfo%2Flyx-usersdata=05%7C01%7CBernt.Lie%40usn.no%7C80f16c3df81246677dfb08daa53fec3c%7Cbc758dd0ab5343729a7ce98a9620862c%7C0%7C0%7C638003991211858136%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7Csdata=j%2BpyDyOO%2FPjx0hVBbQyAZxKooNEDe3by6ouQZVE9nP4%3Dreserved=0
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


RE: Individual counters for Problems, Examples, etc.?

2022-10-03 Thread Bernt Lie via lyx-users
Thanks for quick response, Udi

This works perfectly!

-B

-Original Message-
From: Udicoudco  
Sent: Monday, October 3, 2022 2:56 PM
To: Bernt Lie 
Cc: lyx-users@lists.lyx.org
Subject: Re: Individual counters for Problems, Examples, etc.?

On Mon, Oct 3, 2022 at 2:50 PM Bernt Lie via lyx-users 
 wrote:
>
> In LyX 2.3.6.1 under Windows 11, I have a document of Document Class "Article 
> (Standard Class with Extra Fontsizes)".
>
>
>
> Currently, all "theorem-like" elements use the same counter, e.g., Examples, 
> Problems, etc., use the same counter.
>
>
>
> I want to use separate counters for the various elements.
>
>
>
> How do I do that in LyX? [In LaTeX, I put a "newtheorem" command in the 
> Preamble I think.  But in LyX, these elements already exist... so I assume 
> that I mess things up if I create a new "Problem", etc.
>
>
>
> Thanks for help.
>
>
>
> -B

Hello Bernt,

Note that there are no theorem layouts that are defined in the article class, 
you are probably using a theorem module.

Go to Documents->Settings-Modules and see which module you are using.
What you are looking for is a module that defines the theorems to be numbered 
by type, so for example you can select the Theorems (Numbered By Type) module.

If you also want the theorems to be conutered within another counter (say 
section), then there are also modules for that too.

To get more information about modules, you can read section 3.1.2.3 LyX's 
User's Guide, which can be found in Help->User's Guide.

There are also a few examples for the usage of modules in different sections.

Regards,
Udi
> lyx-users mailing list
> lyx-users@lists.lyx.org
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists
> .lyx.org%2Fmailman%2Flistinfo%2Flyx-usersdata=05%7C01%7CBernt.Lie
> %40usn.no%7C84b815e9d5fa48a7aa4208daa53e9846%7Cbc758dd0ab5343729a7ce98
> a9620862c%7C0%7C0%7C638003985503069062%7CUnknown%7CTWFpbGZsb3d8eyJWIjo
> iMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%
> 7C%7Csdata=vtIgP4%2FnLaqIrfg9tJZJnfUMybBGciMpsmQrPjLsE%2Fo%3D
> ;reserved=0
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Individual counters for Problems, Examples, etc.?

2022-10-03 Thread Bernt Lie via lyx-users
In LyX 2.3.6.1 under Windows 11, I have a document of Document Class “Article 
(Standard Class with Extra Fontsizes)”.

Currently, all “theorem-like” elements use the same counter, e.g., Examples, 
Problems, etc., use the same counter.

I want to use separate counters for the various elements.


  *   How do I do that in LyX? [In LaTeX, I put a “newtheorem” command in the 
Preamble I think.  But in LyX, these elements already exist… so I assume that I 
mess things up if I create a new “Problem”, etc.

Thanks for help.

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