Fw: Re: Insert a command Before \documentclass&In-Reply-To=
Richard Kimberly Heck Hello I made a bit of a mess with the subject of the replied message. I ended up creating a new thread. Could you please delete it? I am really sorry to bother you, Ehud Behar --- Forwarded Message --- From: ehud.be...@protonmail.com Date: On Tuesday, February 28th, 2023 at 11:23 PM Subject: Re: Insert a command Before \documentclass&In-Reply-To= To: rgb.m...@gmail.com , lyx-users > Thanks for your reply. > I want to print a document with font size 11.5pt. > When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get the > warning > > LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not available size > <12> substituted on input line 44. > > If you have any idea how to come over this, you are more than welcome to post > it. > > Ehud @mail.gmail.com>-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Insert a command Before \documentclass
Thanks for your reply. I want to print a document with font size 11.5pt. When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get the warning LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not available size <12> substituted on input line 44. If you have any idea how to come over this, you are more than welcome to post it. Ehud-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Insert a command Before \documentclass&In-Reply-To=
Thanks for your reply. I want to print a document with font size 11.5pt. When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get the warning LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not available size <12> substituted on input line 44. If you have any idea how to come over this, you are more than welcome to post it. Ehud-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Insert a command Before \documentclass
I want to use the package fix-cm. In the manual it is stressed that one should load the packagebefore\documentclass, and use the command\RequirePackageto do so, rather than the normal\usepackage: \RequirePackage{fix-cm} \documentclass ... Any idea how I can do this in LyX?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: embedding video in Beamer
Maybe the information in this lecture notes book would help: https://atomoptics.uoregon.edu/~dsteck/teaching/optics/optics-notes.pdf,page 15-16 It is taken from here: https://atomoptics.uoregon.edu/~dsteck/teaching/optics/-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: speaker notes & Beamer
Try Présentation: http://iihm.imag.fr/blanch/software/osx-presentation/ I used it when I presented my thesis. If you do double display (e.g. connect your computer to a projector) then you can see on the laptop monitor your notes for the presentation together with a timer and a thumbnail of the next slide. However I don't know how you add in LaTeX those notes to the pdf, and I never dig deep into what it means in terms of adobe's pdf specs.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: create short-cut
Click View->Message Pane A pane with all the actions placed on LyX is now visible. Do your action (export ps2pdf or whatever) and watch for what the message pane says. Now go to preferences->shortcuts click new shortcut In function field, write exactly the action you see in the message pane. Now bind a key board shortcut to it. I just tried it with Export->Plain text and the message pane says "buffer-export text" and this what you need to write in the function field of your new shortcut That's it.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
How to modify tables with InsetLayout
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
multi paragraph inside a command
I created a style in my local layout that has "LatexType Command". Is it possible to allow the user to insert multiple lines of text inside this command? Something like the option MultiPar 1 (which is good only for InsetLayout Flex, not for Style.) What I want is to get the following Latex code: \mycommand{Lorem ipsum 〈¶〉 dolor 〈¶〉 sit amet}-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
hyperlink without a prefix
This is a follow up to a question on Latex.org: https://latex.org/forum/viewtopic.php?t=26966 I want to create a phone call link in my pdf, so the latex code would be \href{tel:+1202999}{+1--202--999--} But when I use the hyperlink inset in lyx the user most resort into one of three categories: - a webiste link starting with http:// - a mailto link - a file link Is there a way to overcome this and just do \href{whatever is in the Target field}{the text} ? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Why a copy of my graphics file is created in the temporary directory
When I insert a graphics into my LyX document with the gui ("Insert>Include graphics"), even when the graphics file is in the same root directory as the lyx file, a copy of that file (with a different name, though; its new name is `0_Users_username_long_path_to_file_myfile`) is created in the temporary directory. A look in the tex file that lyx creates in that temp dir also reveals the following few lines right at its beginning: \batchmode \makeatletter \def\input@path{{/Users/udi/Downloads/}} \makeatother Why is it? On the other hand, when I include the graphics with ERT code, a copy of the image file is not created in the temp dir, but the same tex code from above is still there. It's not a bug; Everything works fine, I just try to understand the way that LyX works. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Document Setting "Synchronize with output" doesn't work
Thanks. I actually checked if this problem is also found on Windows 10 and it isn't. So looks like you are right. --- Original Message --- On Monday, September 5th, 2022 at 9:11 PM, Stephan Witt wrote: > IMO it’s a bug in LyX 2.3.x - I’ve fixed it in upcoming 2.4.0 LyX. > > Stephan -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Document Setting "Synchronize with output" doesn't work
I tick the check-mark for "Synchronize with output" in Document Settings->Formats for my document, but no synctex.gz file is generated. The problem is on LyX 2.3.6.2, on macOS 12.1, and the line of code \synctex=-1 disappears from the preamble in code preview pane only when I tick a check mark on "Use Non Tex Fonts" setting. When I uncheck the check mark this line of code re appears. Why is it? Maybe there is a clash with some other option or setting that I changed in LyX's Preferences?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Numbering of Float doesn't change
I am trying to define a margin figure in my document. The tufte book document class makes use of this environment. In the file tufte-book.layout the following is defined: Counter marginfigure End Float Type marginfigure GuiName MarginFigure Placement tbp AllowedPlacement none AllowsSideways 0 AllowsWide 0 Extension lof NumberWithin none Style plain ListName "List of Figures" ListCommand listoffigures IsPredefined true UsesFloatPkg false End But margin figure and figure have two separate numberings. Figure is counted within chapters (2.3 for the 3rd figure in chapter 2) but margin figure has its own counter (margin figure 1, margin figure 2, margin figure 3 without any relation to chapters or the other figures). Am I missing something? Does it work the same in your installation? My goal is to have the two floats share the same counter (figure 2.3, margin figure 2.4, figure 2.5 etc.). Can I do it?-- 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?
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?
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
How figure and table numbering is defined?
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
Define an additional InsetLayout for captions
I want to insert figures in the page margins in my book. In order to have two figures one above the other, with each one having its own caption and label, I want to create inside lyx the following latex code: \usepackge{sidenotes,subcaption} % (<- in the preamble) \begin{marginfigure} \centering \subcaptionbox{caption for upper figure \label{upperfig}} {\includegraphics[width=\marginparwidth]{image1.png}} \subcaptionbox{caption for lower figure \label{lowerfig}} {\includegraphics[width=\marginparwidth]{image1.png}} \caption{Big Caption for two figures} \label{fig:physicsfig} \end{marginfigure} I copied to my layout the Float Style from tufte-book.layout. It defines a marginfigure environment. I am now struggling a bit with the \subcaptionbox command: 1. I can define a new Caption which is based on "InsetLayout Caption:Standard" found in the stdinsets.inc file. But I can't see it in the Insert menu, not even inside Custom Insets. 2. Let's say I overcome this issue, is it possible to make it "sensible" only inside the marginfigure environment? 3. If I don't want captions for the subfigures, then I don't need the \subcaption command. And then the include graphics doesn't have to be wrapped with {}. But if I change my mind and want a caption, then I do need the {} around the figure. Any idea how to handle it nicely? Thanks very much! -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Sumatra and LyX, Foreword search is not active
I think that yes: [Capture.PNG] --- Original Message --- On Tuesday, August 9th, 2022 at 7:28 AM, Stephan Witt st.w...@gmx.net wrote: > Am 09.08.2022 um 00:30 schrieb tush via lyx-users lyx-users@lists.lyx.org: > >> I am trying to see if LyX foreword search (through synctex) works on my >> windows 10. >> I have LyX 2.3.6 installed on windows 10. >> >> I have set up LyX so that Sumatra opens when compiling pdfs. >> >> I ticked a V in Document Settings->Formats->synchronize with output" and I >> have a synctex.gz file in the >> "C:\Users\USERNAME\AppData\Local\Temp\lyx_tmpdir.PgobcSaWjUZo\lyx_tmpbuf0" >> folder. >> >> But when I try to do "Navigate->Foreword search", the button is gray and >> inactive. >> >> Does anyone have an idea why? Have I forgotten something? > > Did you configure the PDF Command for forward-search in LyX output > preferences? > > Stephan-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Sumatra and LyX, Foreword search is not active
I am trying to see if LyX foreword search (through synctex) works on my windows 10. I have LyX 2.3.6 installed on windows 10. I have set up LyX so that Sumatra opens when compiling pdfs. I ticked a V in Document Settings->Formats->synchronize with output" and I have a synctex.gz file in the "C:\Users\USERNAME\AppData\Local\Temp\lyx_tmpdir.PgobcSaWjUZo\lyx_tmpbuf0" folder. But when I try to do "Navigate->Foreword search", the button is gray and inactive. Does anyone have an idea why? Have I forgotten something?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
convention for shortcut for foreword search (synctex command)
Is there a "convention" among you tex users to trigger the SyncTeX command for navigating the current view from the LyX cursor to its corresponding position in the pdf reader? I have seen "cmd+option+j" in the context of VScode users, but I wonder if other users use this shortcut too.-- 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
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
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
Re: LyX's temp directory
A great tip with a great detailed explanation. Thanks very much! --- Original Message --- On Wednesday, July 27th, 2022 at 10:47 PM, Andrew Parsloe wrote: > On 27/07/2022 10:27 pm, tush via lyx-users wrote: > >> When I export a lyx file to pdf, the tex output files (.aux, .lof, .synctex >> etc. as well as the pdf) are all located not in the project’s directory but >> in >> “/private/var/folders/vw/ry_x0fbs7rb3qz7v3_cmb_4hgn/T/lyx_tmpdir.ndQoOCZFjkaB/lyx_tmpbuf0/” >> on my macOS. >> >> 1. What is the reason that LyX developers decided to put those files there >> and not in the “intuitive” place - the project’s root directory? >> 2. And how can I change it to export the files to the project’s directory? >> >> This answer:https://tex.stackexchange.com/a/126747 says that one can achieve >> that by changing the preferences, but is there another way to do it? A less, >> “techy” way? > > I'm working on a windows system and have no idea how things are arranged on a > mac, but this works on windows. > > LyX has a copying mechanism for getting files out of the temporary directory > and into the document directory when a document is exported. To copy back the > log file for instance, go to Tools > Preferences > File Handling > File > Formats and find PDF (pdflatex), if you are exporting with pdflatex, in the > list of formats. (If its LuaTex, choose PDF (LuaTeX).) In the Copier slot of > the dialogue insert the following line of code: > > python -tt $$s/scripts/ext_copy.py -e log,pdf -d $$i $$o > > ext_copy.py is a python script that is supplied with LyX. The -e log,pdf -d > part of the line tells ext_copy.py that on export to pdf to copy any files > with the extensions .log or .pdf from the temporary directory where LyX does > its work back to the document directory – the -d option (which became > available with LyX 2.3.0). If you wanted to also copy the aux file, just add > that to the list: aux,log,pdf. > > The "documentation" that comes with ext_copy.py is found in the opening > comments of the script itself which can be found in the scripts subdirectory > of the Resources directory of the LyX directory. > > Also check "Copiers" in the Customization manual. > > Andrew-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: LyX's temp directory
--- Original Message --- On Wednesday, July 27th, 2022 at 11:58 AM, Kornel Benko wrote: > The files you see in the temp-dir are intermediate files only, not the > exported files. Well it is just that I don't see the .log file as an intermediate file... But thanks for pointing that out. Having said that, what is the meaning of the "View" (cmd+R) button and how is it different from "Export PDF (pdflatex)/(XeTeX)/(Luatex) etc."? Asked another way: what is the command that lyx passes to the terminal when I do "View" and what is the command when I do "Export"? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
LyX's temp directory
When I export a lyx file to pdf, the tex output files (.aux, .lof, .synctex etc. as well as the pdf) are all located not in the project’s directory but in “/private/var/folders/vw/ry_x0fbs7rb3qz7v3_cmb_4hgn/T/lyx_tmpdir.ndQoOCZFjkaB/lyx_tmpbuf0/” on my macOS. 1. What is the reason that LyX developers decided to put those files there and not in the “intuitive” place - the project’s root directory? 2. And how can I change it to export the files to the project’s directory? This answer:https://tex.stackexchange.com/a/126747 says that one can achieve that by changing the preferences, but is there another way to do it? A less, “techy” way?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Syncing skim with LyX
Stephan Witt, Thank you very much for your detailed reply. Only now did I try it. Alas, it doesn't work. I wrote a simple 2 pages document in LyX. A few words and then \cleardoublepage and the a few words. I select a word in LyX and go click Navigate->Foreword search and Skim is indeed raised but I can't see any red dot as the one seen in your screenshot. Any idea what is else is there to fix? --- Original Message --- On Friday, July 22nd, 2022 at 8:11 PM, Stephan Witt wrote: > Sorry, I don’t have the time for that. Instead I made some screen shots to > help you to activate forward search first. This is the prerequisite for > backward search. > > 1. You have to enable the „synchronize with output“ option in preferences. > > 2. Compile the document and wait for Skim to open. > > 3. Use the LyX menu item for Forward search. > > 4. Skim should raise and highlight the current LyX cursor position > > Beware: the is one question by Mac OS (only once!) you have to agree: > > If this works backward search is probably working too. > > BR, Stephan-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Syncing skim with LyX
> Use Cmd-Shift-Click to mark the text fragment around the clicked word in LyX. You mean, select some word in LyX and click it while pressing on the Cmd AND Shift keyboard buttons? Well, it doesn't work. I am attaching a screenshot of skim prefs. Maybe I have set up something incorrectly. Thanks very much! --- Original Message --- On Wednesday, July 20th, 2022 at 6:01 AM, Stephan Witt wrote: > > > > Am 20.07.2022 um 00:57 schrieb tush via lyx-users lyx-users@lists.lyx.org: > > > With the help of Stephan Witt and Udicoudco, I am now using Skim to open > > the pdf files produced by LyX. But I want to add SyncTeX to that. > > > > I configured LyX and Skim according to what is written in the wiki page > > (https://wiki.lyx.org/LyX/SyncTeX) but I am not sure if everything is set > > up correctly or no, since I don't know how to initiate SyncTeX to work. I > > double clicked a word of text in Skim and nothing happened (no change of > > active window to LyX). > > > > How does one uses SyncTeX with skim? > > > Use Cmd-Shift-Click to mark the text fragment around the clicked word in LyX. > The LyX wiki mentions the arguments for the Skim part with osascript. This is > required with LyX 2.3 to get the LyX window frontmost at the same time. The > lyxeditor script is part of the application bundle LyX on mac. > > BR, Stephan > > PS: the readers on this list prefer the use of inline citation or bottom post > in mails. > > > Thanks very much for your help! > > --- Original Message --- > > On Saturday, July 16th, 2022 at 11:22 PM, Ehud Behar > > ehud.be...@protonmail.com wrote: > > > > > I am using macOS and until now, after compiling the lyx file (to tex and > > > then) to a pdf file, the output was opened by the default pdf viewer > > > (macOS Preview, on my computer). > > > > > > I want to use the pdf viewer "Skim" to open the compiled pdf, with mainly > > > the advantage that there are no page jumps after making changes to the > > > document. > > > > > > What are the steps needed to change this in LyX in order to implement > > > skim as the pdf viewer? > > > > > > The closest thing I came across until now is appendix C in the User > > > manual, section File Handling, and section 3 in the customization manual, > > > "The Preferences dialog". > > > > > > It was a first reading and I haven't grasped everything, but at the > > > moment I am not sure if my answer is covered there at all. > > > > > > Therefore my question is if those are the places to look at all, and if > > > someone can maybe redirect me to a short guide for that? > > > > -- > > 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: Syncing skim with LyX
Thanks a lot. At the moment I am trying to get SyncTeX working on macOS. I don't have a folder with the name "bin" in "/Applications/LyX.app/Contents". I do have such folder in Program files in windows. I rather prefer Sumatra as the pdf viewer, not Okular. Should I follow these instructions anyway? --- Original Message --- On Wednesday, July 20th, 2022 at 12:42 AM, Udicoudco wrote: > Hi Ehud, > > Do you have a file called "lyxeditor.cmd" in lyx's bin folder? I'm not sure > it is delivered with lyx installation. If not, create one with the content > specified at the Okular section from the link you have sent (see attached > photo). > > [image.png] > > Best Regards, > Udi > > -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Syncing skim with LyX
With the help of Stephan Witt and Udicoudco, I am now using Skim to open the pdf files produced by LyX. But I want to add SyncTeX to that. I configured LyX and Skim according to what is written in the wiki page (https://wiki.lyx.org/LyX/SyncTeX) but I am not sure if everything is set up correctly or no, since I don't know how to initiate SyncTeX to work. I double clicked a word of text in Skim and nothing happened (no change of active window to LyX). How does one uses SyncTeX with skim? Thanks very much for your help! --- Original Message --- On Saturday, July 16th, 2022 at 11:22 PM, Ehud Behar wrote: > I am using macOS and until now, after compiling the lyx file (to tex and > then) to a pdf file, the output was opened by the default pdf viewer (macOS > Preview, on my computer). > > I want to use the pdf viewer "Skim" to open the compiled pdf, with mainly the > advantage that there are no page jumps after making changes to the document. > > What are the steps needed to change this in LyX in order to implement skim as > the pdf viewer? > > The closest thing I came across until now is appendix C in the User manual, > section File Handling, and section 3 in the customization manual, "The > Preferences dialog". > > It was a first reading and I haven't grasped everything, but at the moment I > am not sure if my answer is covered there at all. > > Therefore my question is if those are the places to look at all, and if > someone can maybe redirect me to a short guide for that?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Syncing skim with LyX
I don't export to tex and then to pdf, I said that just to clarify that .lyx is one type of a file extension, .tex is another one, and .pdf is yet another file.. By the way, what does the $$i option that you added to "open -a Skim.app" do? With the help of the other members my LyX is set to the first way you described. Thanks very much. --- Original Message --- On Tuesday, July 19th, 2022 at 11:19 PM, Dr Eberhard W Lisse wrote: > > > Ehud, > > First of all why compile to tex and then to pdf, instead of doing this > directly? > > > There are however (at least) two ways of doing this: > > First look in the > > Document > > pulldown for > > View [PDF (LuaTeX)] > > can be also > > [PDF (pdflatex)] > > which is tied (in my case) to CMD-R > > > Then in > > Perferences -> File Handling -> File Formats -> Format: > > > look for > > [PDF (LuaTeX)] > > and set > > Viewer: [Custom] [open -a Skim.app $$i] > > click > > Apply > > and perhaps do same for > > [PDF (pdflatex)] > > > You can also select an PDF in the finder and then enter > > CMD-I > > which will open a window with lots of information and you usually would > find > > Open With: ... > > showing > > Preview. > > You can change that in the Pulldown to Skim for this (single) file or > for all files, so that double clicking on a PDF will open it with skim, > and the default method of opening PDFs in Skim would also change to > skim. > > I do the latter, as I use skim for almost every PDF. > > greetings, el > > > > On 2022-07-17 00:22 , Ehud Behar via lyx-users wrote: > > > I am using macOS and until now, after compiling the lyx file (to tex and > > > then) to a pdf file, the output was opened by the default pdf viewer > > > (macOS Preview, on my computer). > > > I want to use the pdf viewer "Skim" to open the compiled pdf, with > > > mainly the advantage that there are no page jumps after making changes > > > to the document. > > > What are the steps needed to change this in LyX in order to implement > > > skim as the pdf viewer? > > > The closest thing I came across until now is appendix C in the User > > > manual, section File Handling, and section 3 in the customization > > > manual, "The Preferences dialog". > > > It was a first reading and I haven't grasped everything, but at the > > > moment I am not sure if my answer is covered there at all. > > > Therefore my question is if those are the places to look at all, and if > > > someone can maybe redirect me to a short guide for that? > > > -- > 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 update a template used by a team
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
How to achieve a simple element with LyXHTML
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
change xml info when exporting to LyXHTML
I want to override the default information LyX provides to my document when I export it to xml with Export->LyXHTML At the moment the info inserted to tag is http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd";> http://www.w3.org/1999/xhtml";> I am writing my own layout file in which all my customization will be inserted. I want for example to change the first line simply to to add and to include my style sheet: What changes should I make to the my .layout file? I haven't found this information I am looking for in the Customization manual.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
RE: An equivalent to microsot word "Show/Hide"
That's exactly what I was looking for. Thanks very much! --- Original Message --- On Friday, July 8th, 2022 at 7:38 AM, wrote: > > Van: lyx-users lyx-users-boun...@lists.lyx.org Namens tush via lyx-users > > … > > MS Word has a useful tool called "Show/Hide". According to the > > documentation (link at the bottom), > > "The Show/Hide ¶ button turns hidden characters like spaces, paragraph > > markers, or tab marks on and off." > > I am looking for a similar tool or feature in LyX. Can any one point it out > > for me? I couldn't find it. > > > I think LyX only has a toggle for end of paragraph markers: Tools / > Preferences / Look & Feel / Display / Mark end of paragraphs > > Best, > > Kees -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Extend the visible area of the text
Is it possible to extend to the bottom of the visible area where one types the text? At least, a bit lower than just to the bottom of the text (LyX's default)? To clarify my question, here is in image with an explanation. https://i.ibb.co/bKJPd8Q/visible-area.png-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
An equivalent to microsot word "Show/Hide"
MS Word has a useful tool called "Show/Hide". According to the documentation (link at the bottom), "The Show/Hide ¶ button turns hidden characters like spaces, paragraph markers, or tab marks on and off." I am looking for a similar tool or feature in LyX. Can any one point it out for me? I couldn't find it. https://support.microsoft.com/en-us/office/84a53213-5d02-404a-b022-09cae1a3958b-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Add options to begin{enumerate}
On 01/07/2022 12:11, Ricardo Berlasso via lyx-users wrote: >Check this article: >https://frommindtotype.wordpress.com/2020/02/27/lyx-another-way-to-change-numbered-lists/ > >It shows how to change numbered lists both globally (preamble code) and for >particular lists (through local layout and the creation of a new >environment). > >Regards, >Ricardo A great blog and a great book. Thanks a lot for sharing it. It has some beautiful nice lyx gems. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Add options to begin{enumerate}
On 02/07/2022 20:54, Daniel via lyx-users wrote: >Unfortunately, this is not as straight forward in LyX as in many other >word processors. The (minimal) LaTeX part is described in section >3.3.7.1 of the "User's Guide" (from the Help menu). > >/Daniel Thanks very much! This is exactly what I was looking for. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Add options to begin{enumerate}
The enumitem package allows the user to change the layout of the enumerate, itemize and description environments. The change takes effect in the following way: \begin{enumerate}[⟨key⟩=⟨value⟩ syntax goes here] % <-- NEW \item text... \item etc. \end{enumerate} I want to insert such ERT code to my lists in LyX. LyX allows the user to add such argument to each item, but this is not the same thing. As I see it, if I want to introduce such a change to my lists inside LyX, I have to make a change to the Styles defined in the file stdlists.inc in the layouts directory. Is that correct?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Entering special charcter with keyboard shortcut
I want to insert with a keyboard shortcut a special character that I use a lot in my document. Until now it was saved in my system clipboard and I would just paste it wherever I wanted, but I want to use a keyboard shortcut for that. For example, I want to insert this symbol: № (Unicode U+2116 or № in html). How can I do it? I tried to do it as seen in the attached picture but LyX gives the message Unknown or invalid LyX function.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: The programming language of lyx class files
But is there such a programming language? Original Message On Jun 17, 2022, 12:12, José Abílio Matos wrote: > On Friday, 17 June 2022 01.22.48 WEST tush via lyx-users wrote: > >> Github markdown allows the writer to type code snippets with syntax > >> highlighting. > >> > >> I want to write in such a markdown document a code snippet of a class file: > >> module file or layout file. > >> > >> What is the most appropriate programming language that fits best LyX's class > >> file syntax? > > Even if you find it you define a language you still have the problem of the > language keywords. > > -- > > José Abílio-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
The programming language of lyx class files
Github markdown allows the writer to type code snippets with syntax highlighting. I want to write in such a markdown document a code snippet of a class file: module file or layout file. What is the most appropriate programming language that fits best LyX's class file syntax?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Meaning of PageStyle as a class parameter
Thanks very much! That solves the confusion. Is it possible to eliminate and remove the "Default" page style from the drop-down list and make "fancy" as the only available page style? --- Original Message --- On Tuesday, June 14th, 2022 at 1:22 AM, Paul A. Rubin wrote: > On 6/13/22 19:18, tush via lyx-users wrote: > >> By the way, I just checked two other layout files that consist of only one >> argument for PageStyle: >> >> aa.layout (Astronomy & Astrophysics) and amsart.layout (American >> Mathematical Society (AMS) Article). >> >> The first should allow the user to use only page style "plain" and the >> latter only "Headers". >> >> But opening a new file from the File->New.. menu and changing the new file's >> document class into either of these, keeps the full general list of the >> default article class just as it was before and doesn't make any effect to >> the page-layout drop down list. >> >> --- Original Message --- >> On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin >> [](mailto:parubi...@gmail.com) >> wrote: >> >>> On 6/13/22 18:03, tush via lyx-users wrote: >>> >>>> I am building my layout file and I want to better understand the effect of >>>> >>>> PageStyle empty|myheadings|... >>>> >>>> Inserting this line into my layout file does not make any apparent effect. >>>> >>>> Moreover, I looked at the content of `memoir.layout` and I see that there >>>> are multiple page styles for this doc class: >>>> >>>> `PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion` >>>> >>>> After loading this layout file, when I go to Document Settings->Page >>>> Layout, I see in the drop-down the only the four regular ones: >>>> Default,empty,plain,headings and fancy. >>>> >>>> I expected the drop down list to be updated according to the arguments >>>> pass to `PageStyle`. >>>> >>>> Then what is the meaning of this class parameter? >>> >>> After setting the document class to memoir and before switching to the >>> page style setting, did you click OK or Apply to apply the layout >>> change? When I start a new document (article layout) and switch the >>> layout to memoir, I get the full list of page style choices. >>> >>> Paul >>> >>> -- >>> lyx-users mailing list >>> lyx-users@lists.lyx.org >>> >>> http://lists.lyx.org/mailman/listinfo/lyx-users > > Take a look at the memoir.layout file and also the Customization help file. > Line 16 of the layout file reads "PageStyle Headings". As explained in > section 5.3.5 of the customization manual, this is the default page style for > the class. Now look at line 30 of the layout file: "PageStyle > empty|plain|headings|myheadings|ruled|Ruled|companion". Note that it is in a > section named "ClassOptions" (begins on line 28), which is explained in the > customization manual in section 5.3.6. > > What you are seeing in amsart.layout, for instance, is the default page > setting. There is no list of page styles in the class options section, so it > presumably reverts to the LyX default. > > Paul > > PS: Please bottom-post for legibility.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Meaning of PageStyle as a class parameter
By the way, I just checked two other layout files that consist of only one argument for PageStyle: aa.layout (Astronomy & Astrophysics) and amsart.layout (American Mathematical Society (AMS) Article). The first should allow the user to use only page style "plain" and the latter only "Headers". But opening a new file from the File->New.. menu and changing the new file's document class into either of these, keeps the full general list of the default article class just as it was before and doesn't make any effect to the page-layout drop down list. --- Original Message --- On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin wrote: > On 6/13/22 18:03, tush via lyx-users wrote: > > > I am building my layout file and I want to better understand the effect of > > > > PageStyle empty|myheadings|... > > > > Inserting this line into my layout file does not make any apparent effect. > > > > Moreover, I looked at the content of `memoir.layout` and I see that there > > are multiple page styles for this doc class: > > > > `PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion` > > > > After loading this layout file, when I go to Document Settings->Page > > Layout, I see in the drop-down the only the four regular ones: > > Default,empty,plain,headings and fancy. > > > > I expected the drop down list to be updated according to the arguments pass > > to `PageStyle`. > > > > Then what is the meaning of this class parameter? > > After setting the document class to memoir and before switching to the > page style setting, did you click OK or Apply to apply the layout > change? When I start a new document (article layout) and switch the > layout to memoir, I get the full list of page style choices. > > Paul > > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Meaning of PageStyle as a class parameter
Thanks very much for the quick reply. I just tried what you described and it and you are right. I see the full list. But when I do it in my own layout file, it doesn't work. Maybe I am conflicting this setting with another one? My Layout file reads: # \DeclareLaTeXClass[book]{My Book} # \DeclareCategory{Books} # Author: humble author # Layout file based on the book document class for my books. Format 66 # This a copy of the content of the standard book.layout file shipped with LyX Input stdclass.inc Input numreport.inc ClassOptions FontSize 10 Other "a4paper,asdfleqno,fleqn,gretush" End PageStyleempty|plain|headings|myheadings|ruled|Ruled|companion --- Original Message --- On Monday, June 13th, 2022 at 11:43 PM, Paul A. Rubin wrote: > On 6/13/22 18:03, tush via lyx-users wrote: > > > I am building my layout file and I want to better understand the effect of > > > > PageStyle empty|myheadings|... > > > > Inserting this line into my layout file does not make any apparent effect. > > > > Moreover, I looked at the content of `memoir.layout` and I see that there > > are multiple page styles for this doc class: > > > > `PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion` > > > > After loading this layout file, when I go to Document Settings->Page > > Layout, I see in the drop-down the only the four regular ones: > > Default,empty,plain,headings and fancy. > > > > I expected the drop down list to be updated according to the arguments pass > > to `PageStyle`. > > > > Then what is the meaning of this class parameter? > > After setting the document class to memoir and before switching to the > page style setting, did you click OK or Apply to apply the layout > change? When I start a new document (article layout) and switch the > layout to memoir, I get the full list of page style choices. > > Paul > > -- > lyx-users mailing list > lyx-users@lists.lyx.org > http://lists.lyx.org/mailman/listinfo/lyx-users -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
What does Provides do?
I am trying to understand the effect of the class parameter Provides when inserted into a layout file. In the Customization manual, it says: Provides [string] [0 , 1] Whether the class already provides the feature string. A feature is in general the name of a package (e. g. amsmath or makeidx) or a macro (e. g. url or boldsymbol). See Appendix A for the list of features. What does it mean that a class provides a feature such as amssymb or xcolor? What changes should I see in the preamble of my tex file when including this command? And what about providing a macro. What is the macro "url", for example?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Effect of FontSize as a class parameter
What is the meaning of the class parameter FontSize when inserting it in a layout file inside ClassOptions? The customization manual says: FontSize [string="10|11|12"] The list of available font sizes for the document’s main font, separated by “|”. Does this command takes effect only inside the LyX editor? If so, where and how? Or rather does it make any changes to the latex preamble? I haven't seen any.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Meaning of PageStyle as a class parameter
I am building my layout file and I want to better understand the effect of PageStyle empty|myheadings|... Inserting this line into my layout file does not make any apparent effect. Moreover, I looked at the content of `memoir.layout` and I see that there are multiple page styles for this doc class: `PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion` After loading this layout file, when I go to Document Settings->Page Layout, I see in the drop-down the only the four regular ones: Default,empty,plain,headings and fancy. I expected the drop down list to be updated according to the arguments pass to `PageStyle`. Then what is the meaning of this class parameter? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Can a layout file change the document language settings
Thanks very much I will try that out.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Can a layout file change the document language settings
I am writing a document in a non-English language. To take care of that, one can navigate to Document Settings->Language and choose the document language and language package in that menu (I know, those settings are saved in the header of lyx file). Either way, my question is: Can a new layout file that I write (let's call it myNewLayout.layout) which is later to be chosen as the document class in LyX, can make an effect on these two settings? I guess that the answer is no, since I never found such a class parameter in section 5.3.5 of the customization manual, but I want to be sure about it.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Settings file for lyx
It might be a bit unrelated to my question but I am very interested to know: I tried now to see what changes does ticking the mark on "Apply changes to current session only" do. I don't see any changes to the preferences file in my user directory and no additional commands appended to the header of my lyx file. In what file are those changes being listed? Thank you.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Settings file for lyx
Thank you very much once again, Riki. I found the file and I can see it being updated after I apply changes in the preferences menu inside LyX. Where can I choose which preferences file to use? I want to save a copy of such a file and save it in the project's directory. How do I tell lyx to use that new file? I can't see anything related to it in the menus. Screen shot: https://i.ibb.co/cYyJdpk/screenshot.png Ehud --- Original Message --- On Thursday, June 2nd, 2022 at 1:17 AM, Richard Kimberly Heck wrote: > On 6/1/22 17:43, ehud.be...@protonmail.com wrote: > >> Thank you very much. >> >> The last option you mentioned is the one I would like to adopt. But, where >> is this preferences file located? > > If you look under Help > About LyX, it will tell you where your user > directory is. The preferences file is in that directory. On Linux, this is > (by default) at $HOME/.lyx/. It is of course elsewhere on Windows and OSX and > also is, as I said, configurable at runtime via the -userdir option. > > Riki > >> --- Original Message --- >> On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck >> [](mailto:rikih...@lyx.org) wrote: >> >>> On 5/31/22 16:42, tush via lyx-users wrote: >>> >>>> Me and my colleagues are working on a multi-user project. >>>> Is there any way to guarantee that all of us have the same LyX settings? >>>> We can share screenshots of the settings window, but I prefer something >>>> more technical. >>>> >>>> I mean, the document settings are part of the file. >>>> But LyX settings definitely should not be the same for all users. >>>> Particularly, settings that are related to languages, font encoding and >>>> shortcuts, for example, could change if an expert user has made changes >>>> after the first installation. >>>> >>>> I was wondering if I can write down a file to be sent via email to my >>>> colleagues so can double-click and open it, and after running it they >>>> would have the same settings for LyX as me, the project manager. >>>> >>>> Is there such a thing? >>> >>> Any document-specific settings are contained in the document itself. So you >>> do not have to worry about those. They will travel with the document. You >>> can see them yourself. Just open the LyX file with a text editor. It will >>> look something like this: >>> >>> #LyX 2.4 created this file. For more info see https://www.lyx.org/ >>> \lyxformat 608 >>> \begin_document >>> \begin_header >>> \save_transient_properties true >>> \origin unavailable >>> \textclass paper >>> >>> The document settings are in the header, which ends with \end_header. >>> >>> The system-wide settings are all contained in text files that you can find >>> in your user directory, most importantly the 'preferences' file. So to >>> synchronize those, you just need to send that file to other users. But I'm >>> not sure that those are what you have in mind. >>> >>> Note, by the way, that it is easy to use LyX with different configurations. >>> The '-userdir' flag lets you specify a user directory, so your users could >>> have one for use with this project and a different one that they use for >>> other thingsif they want. >>> >>> Riki-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Settings file for lyx
Thank you very much. The last option you mentioned is the one I would like to adopt. But, where is this preferences file located? Moreover, in the LyX->Preferences->Paths window, I don't see such a file. Could you give me more instructions on how to find it? --- Original Message --- On Wednesday, June 1st, 2022 at 5:27 AM, Richard Kimberly Heck wrote: > On 5/31/22 16:42, tush via lyx-users wrote: > >> Me and my colleagues are working on a multi-user project. >> Is there any way to guarantee that all of us have the same LyX settings? >> We can share screenshots of the settings window, but I prefer something more >> technical. >> >> I mean, the document settings are part of the file. >> But LyX settings definitely should not be the same for all users. >> Particularly, settings that are related to languages, font encoding and >> shortcuts, for example, could change if an expert user has made changes >> after the first installation. >> >> I was wondering if I can write down a file to be sent via email to my >> colleagues so can double-click and open it, and after running it they would >> have the same settings for LyX as me, the project manager. >> >> Is there such a thing? > > Any document-specific settings are contained in the document itself. So you > do not have to worry about those. They will travel with the document. You can > see them yourself. Just open the LyX file with a text editor. It will look > something like this: > > #LyX 2.4 created this file. For more info see https://www.lyx.org/ > \lyxformat 608 > \begin_document > \begin_header > \save_transient_properties true > \origin unavailable > \textclass paper > > The document settings are in the header, which ends with \end_header. > > The system-wide settings are all contained in text files that you can find in > your user directory, most importantly the 'preferences' file. So to > synchronize those, you just need to send that file to other users. But I'm > not sure that those are what you have in mind. > > Note, by the way, that it is easy to use LyX with different configurations. > The '-userdir' flag lets you specify a user directory, so your users could > have one for use with this project and a different one that they use for > other thingsif they want. > > Riki-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Settings file for lyx
Me and my colleagues are working on a multi-user project. Is there any way to guarantee that all of us have the same LyX settings? We can share screenshots of the settings window, but I prefer something more technical. I mean, the document settings are part of the file. But LyX settings definitely should not be the same for all users. Particularly, settings that are related to languages, font encoding and shortcuts, for example, could change if an expert user has made changes after the first installation. I was wondering if I can write down a file to be sent via email to my colleagues so can double-click and open it, and after running it they would have the same settings for LyX as me, the project manager. Is there such a thing?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Change lyx use of tex system
I got two tex installations on my computer running Windows. One is TeX live 2021, the other is miktex. Is there any way to tell lyx which one to use? Or is it rather determined by the computer via the control panel PATH (in the Environmental Variables menu)? I haven't seen any menu in LyX that lets the user to choose such a thing, so I tend to think that you can only make such decisions from the system's control panel. But I would like to be sure about it.-- 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
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
Re: Insert plain commands into the document with an Inset
If it is not possible to achieve, then I would like to know it isn't. --- Original Message --- On Wednesday, April 6th, 2022 at 9:57 PM, wrote: > How can I create an Inset that once inserted into the document, adds the > following commands to the document?: > > \mainmatter > \pagestyle{fancy} % new page style > \newgeometry{ new page layout goes here } > > Of course, I can insert these commands with ERT, but I prefer them to be > defined a more GUI friendly object. > > If I create a new flex inset, it either adds an environment (\begin{LatexName > }...\end{LatexName ) or a command (\LatexName{...}). I don't need any text > (ERT or anything else) to be inserted into this inset. Just to insert those > commands into the document. > > The List Of Figures insertion, for example, does something similar, but it > has some information such as Placement and Extension that are irrelevant in > my case.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Insert plain commands into the document with an Inset
How can I create an Inset that once inserted into the document, adds the following commands to the document?: \mainmatter \pagestyle{fancy} % new page style \newgeometry{ new page layout goes here } Of course, I can insert these commands with ERT, but I prefer them to be defined a more GUI friendly object. If I create a new flex inset, it either adds an environment (\begin{LatexName }...\end{LatexName ) or a command (\LatexName{...}). I don't need any text (ERT or anything else) to be inserted into this inset. Just to insert those commands into the document. The List Of Figures insertion, for example, does something similar, but it has some information such as Placement and Extension that are irrelevant in my case.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Specifying a package in Module declaration
Thanks a lot for your reply. 1. The geometry package is not listed in Appendix A of the customization manual, and I tried passing it to Requires but lyx doesn't add \usepackage{geometry} to the preamble. It does so when I specify a package that is indeed listed in the appendix. 2. I didn't understand. When using the additional argument inside the [] in the module specification, should LyX add the \uspackage{} line to the preamble or not? --- Original Message --- On Tuesday, April 5th, 2022 at 3:52 PM, Jürgen Spitzmüller wrote: > Am Dienstag, dem 05.04.2022 um 13:08 + schrieb tush via lyx-users: > > > Of course, I can do > > > > AddToPreamble > > \usepackage{geometry} > > \geometry{..page layout commands go here..} > > EndPreamble > > > > But I prefer the \usepackage{}` command to be inserted automatically, > > just like > > > > Requires packagename > > > > does. > > > Requires works for the packages that are hardcoded in LyX. geometry is > among them. > > > I read in the Customization manual that there is this optional > > argument for the Module specification (section 5.3.2. The Module > > declaration), for example: > > > > #\DeclareLyXModule[endnotes.sty]{Endnotes} > > > > It doesn't add to my preamble the \usepackage{endnotes} command > > automatically. If so, then what is good for? > > > It is read by Tools > Reconfigure. If the package in question is not > > there, the user will be informed about that in the document dialog. > > Jürgen -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Specifying a package in Module declaration
I want to write a module that calls for the geometry package and inserts page layout commands to my document, once it is chosen to be used. Of course, I can do AddToPreamble \usepackage{geometry} \geometry{..page layout commands go here..} EndPreamble But I prefer the \usepackage{}` command to be inserted automatically, just like Requires packagename does. I read in the Customization manual that there is this optional argument for the Module specification (section 5.3.2. The Module declaration), for example: #\DeclareLyXModule[endnotes.sty]{Endnotes} It doesn't add to my preamble the \usepackage{endnotes} command automatically. If so, then what is good for?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Re: About the effect General text class parameters
But I am not 100%, because I can still change the ToC depth and Sections depth in the editor.. And the latex code fortocdepth and secnumdepth changes in a way that I don't clearly understand.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: About the effect General text class parameters
I selected it through Document -> Settings -> Document Class then choose it from the list. But now I think that I understand the idea: Those parameters makes changes in the LaTeX code, not in the layout of the editor.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
About the effect General text class parameters
I just selected for my document the IEEE Transactions layout (IEEEtran.layout). In this file one can find the following content: Sides 1 SecNumDepth 3 TocDepth3 I expected to see a change for the corresponding parameters in the Document Settings dialog, but nothing changes: The table of contents depth and section depth keeps to be just the same as used by my settings for Document Defaults (chapters and onward is not included). I also don't see the removal of "twoside" option for the document class: It keeps to be \documentclass[twoside]{article} Should the statements of this kind (Sides, SecNumDepth, TocDepth) lock the corresponding buttons and menus in the document settings? If nothing changes or activates when I declare those styles, then what is the point of them? Or perhaps I am missing anything here?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
create an Inset for \marginnote{text}[arg]
I am having difficulties creating a Flex Inset that creates the following command: \marginnote{text} and \marginnote{text}[arg] Because sometimes the user needs to give the argument arg. If I do the following: InsetLayout Flex:MarginalNote LyXType custom LabelString "Margin Note" LatexType Command LatexName marginnote Decoration classic NeedProtect 0 Argument 1 LabelString vertical Mandatory 0 LeftDelim [ RightDelim ] EndArgument Argument 2 LabelString left #Mandatory 0 Requires 1 LeftDelim [ RightDelim ] EndArgument End Then I get the latex code \marginnote[arg]{text goes here}. I tried to follow the instruction written in section 5.3.7 (for "Requires") in the customization manual, but I can't figure it out my self. What changes should I make?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Hebrew document, numbers inside marginal note and footnote change to small font size
Consider the attached LyX file. The document's language is Hebrew and the Language package is set to "None". I inserted a marginal note and typed inside ``` א 1 ``` For some reason, the latex code for the "1" is transformed into ``` {\small{} }{\beginL 1\endL} ``` Same happens with footnotes. I noticed that changing the Language package to polyglossia removes the \beginL and \endL. Why is it? How can I avoid the \beginL and \endL when using "None" as the Language package, and also remove the \small{} change for the font size? However, inside a caption, digits doesn't seem to change font size I guess I need to amend the Inset Layout in the stdinsets.inc file for the marginal note and the footnote, but I don't know what needs to be changed. small font size digits.lyx Description: Binary data -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
How to add Hebrew hyphenruls?
I am writing a document in Hebrew. Choosing "Hebrew" as the document's language together with Language Package Automatic (and ticking "Use Non TeX font") adds the following to the preamble: \usepackage{polyglossia} \setdefaultlanguage{hebrew} \setotherlanguage{english} (which is correct) Now I want to add some Hebrew hyphenation rules. For that one should add after the above three lines the rules as an hyphenrules environment, like the following: \begin{hyphenrules}{hebrew} \hyphenation{או-פ-ט-י-מ-ליות} \end{hyphenrules} These kind of rules should appear after loading polyglossia. How can I tell LyX about those hyphenrules? If I insert it to the document preamble via the document settings dialogue, then the rules are called before polyglossia and I get an error. Any idea or suggestion for that? The other thing I can do is to choose "None" in the Language package and just type manually all the commands (use polyglossia, declare languages, state the hyphen rules). But that sort of misses the help LyX editor offers me - to type manually less commands.-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Create a custom inset for the listings package
I want to create a custom inset for the listings package. The LaTeX command for displayed code should be as follows: \lstinline$code goes here$ or \lstinline!code goes here! ( Sometimes it is better to type the code inside $$ or !! instead of {} ) How can I tell lyx that ! or $ should be the command delimiters? What I have at the moment is this: InsetLayout Flex:listing LyXTypecustom LabelString"lstlisting" LatexType Command LatexName lstlisting Decoration classic NeedProtect0 End-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Why LyX formats digits as small font size
I have created a module that creates a custom inset for marginal paragraphs. This inset is typed inside the Marginal Note inset. When I type Hebrew text inside this inset, digits are converted to small font size: instead of 1, it is formatted as `{\small{}1}`. Why is it? This is the module: #\DeclareLyXModule{Parbox} #DescriptionBegin #Adds custom inset to be inserted inside Marginal Note. #DescriptionEnd Format 66 InsetLayout Flex:MarginalRemark Requires amssymb LyXTypecustom LabelString"MarginalRemark" LatexType Command LatexName parbox{\dimexpr\marginparwidth-2\fboxsep} Decoration classic NeedProtect0 LeftDelim "$\vartriangleleft$ " End And a MWE file is attached. small digit.lyx Description: Binary data -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: How to pass marginparwidth to includegraphics
Great. Thanks a lot for the quick reply. --- Original Message --- On Thursday, February 24th, 2022 at 11:25 PM, Paul A. Rubin via lyx-users wrote: > On 2/24/22 16:18, tush via lyx-users wrote: > >> I have some figures which I want to include in the marginal part of the >> document. >> The graphics to be included should be of width \marginparwidth. >> How can I pass this width to the include graphics tool (Insert->Graphics) >> within the editor? >> >> In plain LaTeX I would have typed >> >> \begin{marginfigure} >> \includegraphics[width=\marginparwidth]{file.png} >> \end{marginfigure} >> >> (I created a customized marginfigure inset with a module file) >> >> So after inserting the graphics file, I don't see any way to specify the >> above width. >> >> The only options I have are those in the attached picture, non of which is >> marginparwidth. > > Click the "LaTeX and LyX options" tab and enter "width=\marginparwidth" in > the "LaTeX options" box. > > Paul-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: avoid prepending \protect to custom inset
Thanks a lot. That's right. Modifying InsetLayout Marginal located in the stdinsets.inc file indeed controls the presence or absence of "\protect". The reason I want to get rid of it is because that without the protect, the exported tex file looks more the way I would have typed in a text editor outside of LyX. From the TeX point of view, is there really a reason for the protect in this case? --- Original Message --- On Tuesday, February 22nd, 2022 at 9:28 AM, Jürgen Spitzmüller wrote: > Am Mo., 21. Feb. 2022 um 18:23 Uhr schrieb tush via lyx-users > : > >> I created the following module that adds the parbox command to LyX. That is, >> inserts the latex code "\parbox{\marginparwidth}{text goes here}" as an >> inset. >> >> For some reason lyx prepends "\protect" to this command when inserted inside >> a box, which itself is inserted inside a marginal note. See image. > > This is since InsetMargin has NeedProtect. > >> I added the NeedProtect option for this Inset and toggled both boolean >> values but the "\protect" is still there. >> >> I don't want it to appear there. > > Why? It is most likely needed. Is there a reason you want to get rid of it? > > Jürgen > >>-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: English environment is changed to textenglish
Well done. Thanks a lot! --- Original Message --- On Monday, February 21st, 2022 at 11:20 AM, tush via lyx-users wrote: > What do you mean "I have just fixed it"? > > Original Message > On Feb 21, 2022, 10:55, Jürgen Spitzmüller via lyx-users < > lyx-users@lists.lyx.org> wrote: > >> Am Sonntag, dem 20.02.2022 um 18:00 + schrieb tush via lyx-users: >>> Please consider the two lyx files attached. >>> It is a MWE of a book that includes mainly Hebrew but also some >>> English. >>> >>> The wrong thing here is that the last line is converted in LyX (via >>> the Code Preview Pane) as >>> \begin{english} >>> Some text in English. This should be left aligned. >>> \end{english} >>> >>> but when exporting `main.lyx` to tex (via XeTeX), this English >>> sentence is formatted as >>> >>> \textenglish[variant=american]{Some text in English. This should >>> be left aligned.} >>> >>> which causes the line to be right aligned. >>> >>> Why is it? >> >> This is a bug in LyX. I have just fixed it. >> >>> How to keep the English line of text to be inside an English >>> environment? >> >> Workaround is to write \setLTR in TeX mode at the beginning of the >> English paragraph, having the TeX mode inset itself in Hebrew. See >> attached. >> >> 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: English environment is changed to textenglish
What do you mean "I have just fixed it"? Original Message On Feb 21, 2022, 10:55, Jürgen Spitzmüller via lyx-users wrote: > Am Sonntag, dem 20.02.2022 um 18:00 + schrieb tush via lyx-users: >> Please consider the two lyx files attached. >> It is a MWE of a book that includes mainly Hebrew but also some >> English. >> >> The wrong thing here is that the last line is converted in LyX (via >> the Code Preview Pane) as >> \begin{english} >> Some text in English. This should be left aligned. >> \end{english} >> >> but when exporting `main.lyx` to tex (via XeTeX), this English >> sentence is formatted as >> >> \textenglish[variant=american]{Some text in English. This should >> be left aligned.} >> >> which causes the line to be right aligned. >> >> Why is it? > > This is a bug in LyX. I have just fixed it. > >> How to keep the English line of text to be inside an English >> environment? > > Workaround is to write \setLTR in TeX mode at the beginning of the > English paragraph, having the TeX mode inset itself in Hebrew. See > attached. > > 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
English environment is changed to textenglish
Please consider the two lyx files attached. It is a MWE of a book that includes mainly Hebrew but also some English. The wrong thing here is that the last line is converted in LyX (via the Code Preview Pane) as \begin{english} Some text in English. This should be left aligned. \end{english} but when exporting `main.lyx` to tex (via XeTeX), this English sentence is formatted as \textenglish[variant=american]{Some text in English. This should be left aligned.} which causes the line to be right aligned. Why is it? How to keep the English line of text to be inside an English environment?<> -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Compiling child document with bibliography
I am writing a book where each chapter is typed in a child document. The book contains citation from a bib file. I am following the instructions here (https://wiki.lyx.org/FAQ/Multidoc#multipart-bib) and am pretty sure I created my branch correctly. I created a master file, inserted the bib database into it, created a branch, created a child document, activated the branch in this child doc, and also deativated the branch in the master doc. However, I now compile the first chapter and it seems that no information regarding the bib database is included in it. When I export this child document to a tex file, nothing related to biblatex is in the preamble. How can I print the cited work when compiling only this chapter? A MWE is attached as a zip file.<> -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: How to (correctly) insert large and slanted text
That is certainly an advance. Thanks a lot! The output I get is \textsl{\Large{}Here is some text in large size and slanted style.} Any possibility to make it {\textsl{\large Here is some text in large size and slanted style.}} ? ‐‐‐ Original Message ‐‐‐ On Sunday, January 16th, 2022 at 11:16 PM, Paul A. Rubin via lyx-users wrote: > On 1/16/22 4:02 PM, tush via lyx-users wrote: > >> Sure, I will take notice of the thread organization. I am new to mailing >> lists. >> >> Yes, the "unwanted formatting" refer to {\large\par}. >> >> Here is a (really) MWE. >> >> On 1/16/22 3:46 PM, tush via lyx-users wrote: >>> >> >> The shape works the way I want, but the sizing rather gives the >> >>> >> >> unwanted formatting. >> >>> >> >>> >> >> ‐‐‐ Original Message ‐‐‐ >> >>> >> >> On Sunday, January 16th, 2022 at 10:43 PM, < >> [ehud.behar at >> protonmail.com](http://lists.lyx.org/mailman/listinfo/lyx-users) >>> >> >>> >> >> wrote: >> >>>> >> >> Could you tell me how to apply the style so that the code is the way >> >>>> >> >> I want it to be? >> >>>> >> >>>> >> >> I selected the whole line, maybe lyx sees it as a paragraph. >> >>>> >> >>>> >> >>>> >> >> ‐‐‐ Original Message ‐‐‐ >> >>>> >> >> On Sunday, January 16th, 2022 at 10:38 PM, Paul A. Rubin via >> >>>> >> >> lyx-users < >> [lyx-users at lists.lyx.org](http://lists.lyx.org/mailman/listinfo/lyx-users) >>> wrote: >> >>>>> >> >> On 1/16/22 3:05 PM, tush via lyx-users wrote: >> >>>>>> >> >> I want to insert the following styled text to my document: >> >>>>>> >> >>>>>> >> >> {\large{\textsl{Some text goes here}} >> >>>>>> >> >>>>>> >> >>>>>> >> >> This is what a a LaTeX user would have inserted into his .tex file. >> >>>>>> >> >>>>>> >> >> If I select my text in LyX and right click it and choose Text Style >> >>>>>> >> >> -> Customized... >> >>>>>> >> >>>>>> >> >> I can apply the aforementioned features, i.e. slanted shape and >> >>>>>> >> >> large size, but the command LyX inserts is not the one above, but >> >>>>>> >> >> rather >> >>>>>> >> >>>>>> >> >> \textsl{\large{}Some text goes here}{\large\par} >> >>>>>> >> >>>>>> >> >>>>>> >> >> Is it possible to achieve what I first wrote, rather than inserting >> >>>>>> >> >> ERT commands? >> >>>>>> >> >>>>> >> >> That last {\large\par} may have something to do with how you >> >>>>> >> >> selected the text before applying the style change. In a test >> >>>>> >> >> document, I did not encounter that. Comparing your ERT version with >> >>>>> >> >> the customized style version, I can confirm the difference in the >> >>>>> >> >> LaTeX commands but see no difference in the output. Is there a >> >>>>> >> >> reason why you are unhappy with what LyX enters? >> >>>>> >> >>>>> >> >> Paul >> >>>>> >> >>>> >> >>> >> >>> >> >> First, please bottom post. >> >> Second, does the "unwanted formatting" refer to {\large\par}? If so, we >> would need a minimal example. It would need to be a self-contained >> document (your previous MWE had include commands for child documents not >> attached to the message), preferably with as little customization as >> possible. Every package you add, font or language change you make, etc. >> makes it a bit less likely that someone on the list has all the packages >> necessary to compile your MWE. >> >> If by "unwanted formatting" you mean that you really want the LaTeX >> commands entered in the order you used in your ERT, I doubt that is >> possible without resorting to ERT. >> >> Paul > > As I suspected, the issue is that the text you are formatting occurs at the > very end of a paragraph. The following is a bit "hacky" but solves the > problem. First, add a space after the end of the text. Then select the text > (excluding that extra space) and make the style change. The trailing space on > the first line is harmless, but feel free to delete it if you wish. > > Paul-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: How to (correctly) insert large and slanted text
Sure, I will take notice of the thread organization. I am new to mailing lists. Yes, the "unwanted formatting" refer to {\large\par}. Here is a (really) MWE. On 1/16/22 3:46 PM, tush via lyx-users wrote: > The shape works the way I want, but the sizing rather gives the > unwanted formatting. > > ‐‐‐ Original Message ‐‐‐ > On Sunday, January 16th, 2022 at 10:43 PM, < [ehud.behar at protonmail.com](http://lists.lyx.org/mailman/listinfo/lyx-users) > > wrote: >> Could you tell me how to apply the style so that the code is the way >> I want it to be? >> >> I selected the whole line, maybe lyx sees it as a paragraph. >> >> >> ‐‐‐ Original Message ‐‐‐ >> On Sunday, January 16th, 2022 at 10:38 PM, Paul A. Rubin via >> lyx-users < [lyx-users at lists.lyx.org](http://lists.lyx.org/mailman/listinfo/lyx-users) > wrote: >>> On 1/16/22 3:05 PM, tush via lyx-users wrote: >>>> I want to insert the following styled text to my document: >>>> >>>> {\large{\textsl{Some text goes here}} >>>> >>>> >>>> This is what a a LaTeX user would have inserted into his .tex file. >>>> >>>> If I select my text in LyX and right click it and choose Text Style >>>> -> Customized... >>>> >>>> I can apply the aforementioned features, i.e. slanted shape and >>>> large size, but the command LyX inserts is not the one above, but >>>> rather >>>> >>>> \textsl{\large{}Some text goes here}{\large\par} >>>> >>>> >>>> Is it possible to achieve what I first wrote, rather than inserting >>>> ERT commands? >>>> >>> That last {\large\par} may have something to do with how you >>> selected the text before applying the style change. In a test >>> document, I did not encounter that. Comparing your ERT version with >>> the customized style version, I can confirm the difference in the >>> LaTeX commands but see no difference in the output. Is there a >>> reason why you are unhappy with what LyX enters? >>> >>> Paul >>> >> > > First, please bottom post. Second, does the "unwanted formatting" refer to {\large\par}? If so, we would need a minimal example. It would need to be a self-contained document (your previous MWE had include commands for child documents not attached to the message), preferably with as little customization as possible. Every package you add, font or language change you make, etc. makes it a bit less likely that someone on the list has all the packages necessary to compile your MWE. If by "unwanted formatting" you mean that you really want the LaTeX commands entered in the order you used in your ERT, I doubt that is possible without resorting to ERT. Paul mwe large slanted text.lyx Description: Binary data -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: How to (correctly) insert large and slanted text
The shape works the way I want, but the sizing rather gives the unwanted formatting. ‐‐‐ Original Message ‐‐‐ On Sunday, January 16th, 2022 at 10:43 PM, wrote: > Could you tell me how to apply the style so that the code is the way I want > it to be? > > I selected the whole line, maybe lyx sees it as a paragraph. > > ‐‐‐ Original Message ‐‐‐ > On Sunday, January 16th, 2022 at 10:38 PM, Paul A. Rubin via lyx-users > wrote: > >> On 1/16/22 3:05 PM, tush via lyx-users wrote: >> >>> I want to insert the following styled text to my document: >>> >>> {\large{\textsl{Some text goes here}} >>> >>> This is what a a LaTeX user would have inserted into his .tex file. >>> >>> If I select my text in LyX and right click it and choose Text Style -> >>> Customized... >>> >>> I can apply the aforementioned features, i.e. slanted shape and large size, >>> but the command LyX inserts is not the one above, but rather >>> >>> \textsl{\large{}Some text goes here}{\large\par} >>> >>> Is it possible to achieve what I first wrote, rather than inserting ERT >>> commands? >> >> That last {\large\par} may have something to do with how you selected the >> text before applying the style change. In a test document, I did not >> encounter that. Comparing your ERT version with the customized style >> version, I can confirm the difference in the LaTeX commands but see no >> difference in the output. Is there a reason why you are unhappy with what >> LyX enters? >> >> Paul-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: How to (correctly) insert large and slanted text
Could you tell me how to apply the style so that the code is the way I want it to be? I selected the whole line, maybe lyx sees it as a paragraph. ‐‐‐ Original Message ‐‐‐ On Sunday, January 16th, 2022 at 10:38 PM, Paul A. Rubin via lyx-users wrote: > On 1/16/22 3:05 PM, tush via lyx-users wrote: > >> I want to insert the following styled text to my document: >> >> {\large{\textsl{Some text goes here}} >> >> This is what a a LaTeX user would have inserted into his .tex file. >> >> If I select my text in LyX and right click it and choose Text Style -> >> Customized... >> >> I can apply the aforementioned features, i.e. slanted shape and large size, >> but the command LyX inserts is not the one above, but rather >> >> \textsl{\large{}Some text goes here}{\large\par} >> >> Is it possible to achieve what I first wrote, rather than inserting ERT >> commands? > > That last {\large\par} may have something to do with how you selected the > text before applying the style change. In a test document, I did not > encounter that. Comparing your ERT version with the customized style version, > I can confirm the difference in the LaTeX commands but see no difference in > the output. Is there a reason why you are unhappy with what LyX enters? > > Paul-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
How to (correctly) insert large and slanted text
I want to insert the following styled text to my document: {\large{\textsl{Some text goes here}} This is what a a LaTeX user would have inserted into his .tex file. If I select my text in LyX and right click it and choose Text Style -> Customized... I can apply the aforementioned features, i.e. slanted shape and large size, but the command LyX inserts is not the one above, but rather \textsl{\large{}Some text goes here}{\large\par} Is it possible to achieve what I first wrote, rather than inserting ERT commands?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Remove textquotedblplain from preamble
That's right. Thanks a lot! ‐‐‐ Original Message ‐‐‐ On Sunday, January 16th, 2022 at 9:48 PM, Jürgen Spitzmüller via lyx-users wrote: > Am Sonntag, dem 16.01.2022 um 19:34 + schrieb tush via lyx-users: > > > I want to remove it because I don't have any idea what it add or > > > > alters in the shape of my output file. I want to have control over > > > > what is inserted and what is absent in my project. > > It adds the possibility to output a plain (non-typographic) quotation > > mark. This preamble code is only inserted if you use such a character > > in your document. Remove the character, and the preamble code will > > disappear. > > HTH, > > 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: Remove textquotedblplain from preamble
I want to remove it because I don't have any idea what it add or alters in the shape of my output file. I want to have control over what is inserted and what is absent in my project. The MWE is attached. Thanks a lot! ‐‐‐ Original Message ‐‐‐ On Sunday, January 16th, 2022 at 9:16 PM, Scott Kostyshak via lyx-users wrote: > On Sun, Jan 16, 2022 at 06:49:37PM +0000, tush via lyx-users wrote: > > > I noticed that LyX adds the following to my document preable: > > > > LyX specific LaTeX commands. > > > > \providecommand\textquotedblplain{% > > > > \bgroup\addfontfeatures{Mapping=}\char34\egroup} > > > > Where in the document settings or in the LyX preferences is the specific > > setting that is related to the above? How do I remove it? > > Hi tush, > > I might be able to help if you provide a minimal example .lyx file > > (i.e., a small .lyx file where the above code is indeed added to the > > preamble). > > Could you also please explain why you want to remove that code? > > Best, > > Scott > --- > > lyx-users mailing list > > lyx-users@lists.lyx.org > > http://lists.lyx.org/mailman/listinfo/lyx-users main.lyx Description: Binary data -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Remove textquotedblplain from preamble
I noticed that LyX adds the following to my document preable: LyX specific LaTeX commands. \providecommand\textquotedblplain{% \bgroup\addfontfeatures{Mapping=}\char34\egroup} Where in the document settings or in the LyX preferences is the specific setting that is related to the above? How do I remove it?-- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
LyX adds unwanted stuff into index entries
Please consider the attached .lyx file. The file mainly consists of two index entries inserted via the Insert->Index Entry button in the editor. It is a MWE for a larger project to be compiled with XeLaTeX. The exported tex commands are not as clean as they could be. Instead of the simple `\index{Dirac, Paul}`, I get `\index{Dirac, Paul@\textenglish[variant=american]{Dirac, Paul}}` or `\textenglish[variant=american]{\index{Dirac, Paul}}` The latter seems to be more correct, but I would like LyX to get those entries cleaner. Can anyone see the reason for this? Can I change it? Of course, I can bypass: Create a new custom inset with the following inserted into the layout: InsetLayout Flex:index LyXType custom LabelString "Index" LatexType Command LatexName index Decoration classic End But I prefer using the default LyX tools. english text in index.lyx Description: Binary data -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users