Re: Insert cross-reference shortcut
On Wed, Apr 10, 2024 at 10:16 AM Folsk Pratima wrote: > You can make a shortcut for inserting a label, but I did not find a way > to do it for inserting a cross-reference, so every time I have to use > mouse to click on the toolbar. > > Any suggestions? > > LyX 2.3.7 (2023-01-01) > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users Folsk, To find the command needed, use View -> Messages Pane, and then insert the cross-reference label manually. You should see `dialog-show-new-inset ref` appear in the Messages pane. This is the command that you need to add to the shortcut's Function specification when you go to Preferences -> Editing -> Shortcuts -> New. Hope this helps, Joel -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Lyx error
Paolo M said on Wed, 10 Apr 2024 22:22:31 +0200 >On opensuse 15, i have just installed the noto font, but probably lyx >has also been upgrated to 2.4.0-RC4. Now lyx doe not work eny more. >Opening a file, see the enclosed one as an example, i get the error >below p. Just so we're all on the same page, you know your attachment contains no string "noto", right? Not only that, but on my computer using LyX 2.3.6.1 on an up-to-date Void Linux, your document works perfectly. But you knew that already. In order to use Noto fonts, I took your document in LyX and did the following: 1) On Document>Settings>Fonts I checked "Use non-TeX fonts. 2) Document>Settings>Fonts>Roman I chose Noto Serif [GOOG] 3) Document>Settings>Fonts>Sans Serif I chose Noto Sans [GOOG] 4) Document>Settings>Fonts>Typewriter I chose Noto Sans Mono [GOOG] 5) Document>View [PDF (LuaTeX)] to compile and view the result. I've attached my doc with Noto fonts. Maybe you'll get lucky and my file will compile. Try it. HTH, SteveT Steve Litt Autumn 2023 featured book: Rapid Learning for the 21st Century http://www.troubleshooters.com/rl21 noto_tweaked.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Lyx error
On opensuse 15, i have just installed the noto font, but probably lyx has also been upgrated to 2.4.0-RC4. Now lyx doe not work eny more. Opening a file, see the enclosed one as an example, i get the error below p. Moreover, the pdf rendering cannot be viewenc. my error message The selected document class Article (Standard Class) requires external files that are not available. The document class can still be used, but the document cannot be compiled until the following prerequisites are installed: article.cls See section 3.1.2.2 (Class Availability) of the User's Guide for more information. mb.lyx Description: application/lyx -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Insert cross-reference shortcut
You can make a shortcut for inserting a label, but I did not find a way to do it for inserting a cross-reference, so every time I have to use mouse to click on the toolbar. Any suggestions? LyX 2.3.7 (2023-01-01) -- 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?
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
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
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
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
RE: LyX 2.4.0 & Jupyter Notebooks
> 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
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
size of graphics with inlineimg
Hello I'm trying to use inline-images in a document with base64 encoded pictures : \inlineimg{picture.png}{base64 code} It works fine with TeXstudio, but with LyX i get a "cannot determine size of graphics, no bounding box" error. I suspect it comes from the place where LyX put the temp files picture.png, but I don't know how to control that. Thanks Philippe -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users