Re: how to add this shortcut?
On 5/05/2024 9:52 am, Richard Kimberly Heck wrote: On 5/4/24 15:03, matan guedj wrote: I want to add a shortcut that will open a preview environment and inside it opens an ert environment and "insert-preview insert-ert" and "\insert-preview \insert-ert" aren't working, so I don't know if it's a syntax error or something more fundamental here. You need to use the command-sequence LFUN to do this. It just tells LyX that you are going to give a series of commands. Otehrwise, it interprets everything as one command. So something like: command-sequence insert-preview; insert-ert Riki Riki, I believe this is called a "thinko". It should be: command-sequence preview-insert; ert-insert I've considered a shortcut for this sequence but prefer to insert the insets separately using Ctrl+P to insert the preview inset and the LyX supplied Ctrl+L to insert an ert inset. That way I can select text or a table and simply tap Ctrl+P to wrap it in a preview inset and see (after a pause) the result. If I want an ert inset inside a preview inset then I hold down the Ctrl key and tap P then L (which are diagonally adjacent on my keyboard). Andrew -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: centering all ert environments in document
On 5/4/24 18:12, matan guedj wrote: hello, I have multiple ert environments in a lyx document I also put each inside a preview environment so that the rendered output is aligned to the left, I want to have it such that all the ert (inside preview) are aligned to the center, I imagine it's doable with some commands in the preamble but I couldn't find out how. The preview inset is a LyX-only thing, so to speak. It does not correspond to anything in LaTeX. It just causes whatever's in it to be displayed in LyX as a 'preview'. So there's no way to affect the LaTeX output of these, since there isn't any. To do something like this, you would probably do best to define a custom inset that just wraps whatever's inside it in \begin{center} and \end{center}. Or, if these previews are in their own paragraph, then define a paragraph style to do the same thing. Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
centering all ert environments in document
hello, I have multiple ert environments in a lyx document I also put each inside a preview environment so that the rendered output is aligned to the left, I want to have it such that all the ert (inside preview) are aligned to the center, I imagine it's doable with some commands in the preamble but I couldn't find out how. thanks in advance for the help. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: how to add this shortcut?
On 5/4/24 15:03, matan guedj wrote: I want to add a shortcut that will open a preview environment and inside it opens an ert environment and "insert-preview insert-ert" and "\insert-preview \insert-ert" aren't working, so I don't know if it's a syntax error or something more fundamental here. You need to use the command-sequence LFUN to do this. It just tells LyX that you are going to give a series of commands. Otehrwise, it interprets everything as one command. So something like: command-sequence insert-preview; insert-ert Riki -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
how to add this shortcut?
I want to add a shortcut that will open a preview environment and inside it opens an ert environment and "insert-preview insert-ert" and "\insert-preview \insert-ert" aren't working, so I don't know if it's a syntax error or something more fundamental here. thanks in advance! -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Page break completely destroyed
On Sat, 4 May 2024, Andreas Plihal via lyx-users wrote: A few days ago, when compiling my 250-page KOMA script book, the page break was completely destroyed. In my opinion, this error was related to the problems that MikTeX has also been having for a few days. I was able to fix the problem (by using the command line), but compiling still produces extremely poor and completely broken pagination. Please help me! Andreas, I don't use MikTeX, but if you provide a minimal document that exhibits the problem it will allow others to assist you. Regards, Rich -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Page break completely destroyed
Hi, A few days ago, when compiling my 250-page KOMA script book, the page break was completely destroyed. In my opinion, this error was related to the problems that MikTeX has also been having for a few days. I was able to fix the problem (by using the command line), but compiling still produces extremely poor and completely broken pagination. Please help me! Andreas -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users