Insert preamble code when one of two styles are in use

2023-08-22 Thread ehud . behar
Suppose I create two styles. When Style 1 is in use, I want the LyX editor to add to the preamble the following code: usepackage{x} latex code for style 1 When style 2 is in use, I want to add to the preamble the following code: usepackage{x} latex code for style 2 What I do now to achieve

Re: Insert an empty line in beamer

2023-03-18 Thread Ehud Behar
Kind of. Inside a frame, it puts the cursor outside the last \end{frame} line and suggests me to insert a new frame with a new frame title etc. If not inside a frame (which is non sense in beamer) it does create an empty line. --

Re: Insert an empty line in beamer

2023-03-18 Thread Ehud Behar
Kind of. Inside a frame, it puts the cursor outside the last \end{frame} line and suggests me to insert a new frame with a new frame title etc. If not inside a frame (which is non sense in beamer) it does create an empty line. --

Re: Insert an empty line in beamer

2023-03-18 Thread Ehud Behar
Kind of. Inside a frame, it puts the cursor outside the last \end{frame} line and suggests me to insert a new frame with a new frame title etc. If not inside a frame (which is non sense in beamer) it does create an empty line. -- lyx-users mailing list lyx-users@lists.lyx.org

Re: Insert an empty line in beamer

2023-03-19 Thread Ehud Behar
I now realized that this problem is only when the document language is set to Hebrew. In the link you can see a screen shot of the problem. https://gcdnb.pbrd.co/images/hqN0FDHQNahA.png I am still looking for a solution with better legibility that an ERT code as here:

Re: Insert an empty line in beamer

2023-03-19 Thread Ehud Behar
Thanks for this piece of information! I've never tried beamer-article so I didn't know there is a meaning to content which is outside of a frame. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

Create a shortcut to insert the frames separator for beamer documents

2023-03-15 Thread Ehud Behar
I want to create a shortcut to insert the short thin red line that separates frames when the document class is Beamer. I know how to create shortcuts, I just don't know the name of the "function" that actually inserts this red line. In the lyx file this red line is called "Separator plain".

Re: Create a shortcut to insert the frames separator for beamer documents

2023-03-15 Thread Ehud Behar
Just created it. The message pane says "Unknown function. Warning: unknown command definition 'newframe' Are you sure it is this name for the function? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

Insert an empty line in beamer

2023-03-18 Thread Ehud Behar
I want to print the following in my beamer document: " First line Second line " The beamer lyx doc class allows the user to insert empty line in the Standard layout. But even if insert more than 2 empty lines between "First line" and "Second line" in lyx, still there is no any empty line (or

Add parameter to the index entry

2023-05-01 Thread Ehud Behar
I want to insert a "people" index into my document so that an index entry has the [people] "parameter" appended to it. Like this: \index[people]{Dirac, Paul} and \index[people]{Maxwell, James Clerk} So I want to make some changes to the index entry that is defined in the stdinsets.inc file.

Re: Add parameter to the index entry

2023-05-01 Thread Ehud Behar
Sorry, I don't understand your question. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

Re: Add parameter to the index entry

2023-05-01 Thread Ehud Behar
Sorry, I don't understand your question. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

LatexParam before Argument

2023-04-08 Thread Ehud Behar
I want to create the following latex code in my Lyx document: begin{myenv}{} [arg 1] code end{myenv} So I inserted this into the Local Layout: Style myenv LatexType Environment LatexName myenv LatexParam "{}" Argument 1 LabelString "entry 1" AutoInsert 1 LeftDelim "[" RightDelim "]"

Re: LatexParam before Argument

2023-04-08 Thread Ehud Behar
I actually adopted the "add a second argument" approach, but I like the first solution. Thanks very much! -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

Re: Remove the maketitle command

2023-05-21 Thread Ehud Behar
> you could use the TitleLaTeXName layout tag and set it to a dummy command Nice. Can you point me to where the "command" TitleLatexName is defined? Thanks very much. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users

Remove the maketitle command

2023-05-21 Thread Ehud Behar
In a lyx document, after inserting either title, author or date insets, lyx automatically puts a maketitle command after begin{document}. I want to have in my document a \title{} and an `\author{}` but I don't want the `\maketitle`. Is there any way to tell LyX not put it at all? (The other

Syncing skim with LyX

2022-07-16 Thread Ehud Behar via lyx-users
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

Re: margin figure's label counter

2022-07-16 Thread Ehud Behar via lyx-users
ain ListName "List of Figures" IsPredefined 1 UsesFloatPkg 0 RefPrefix fig End --- Original Message --- On Saturday, July 16th, 2022 at 9:07 PM, Ehud Behar via lyx-users wrote: > Sure. I wrote a short version to de-clutter the q

margin figure's label counter

2022-07-16 Thread Ehud Behar via lyx-users
I want to define a new float in my document - margin figure. I defined a new float using a module file with a Style: Float Type marginfigure GuiName MarginFigure NumberWithin figure # < RefPrefix fig more commands etc. End The document class is book, and inside chapter 1, as you can see in

Re: margin figure's label counter

2022-07-16 Thread Ehud Behar via lyx-users
, 2022 at 8:47 PM, Jean-Marc Lasgouttes wrote: > Le 16/07/2022 à 21:03, Ehud Behar via lyx-users a écrit : > > > I want to define a new float in my document - margin figure. > > > > I defined a new float using a module file with a Style: > > > > Float > >

Re: margin figure's label counter

2022-07-16 Thread Ehud Behar via lyx-users
No, it completely removes and overrides the existing figure from stdfloats.inc. I want to have *both* figure and margin figure. --- Original Message --- On Saturday, July 16th, 2022 at 8:51 PM, Jean-Marc Lasgouttes wrote: > Le 16/07/2022 à 21:47, Jean-Marc Lasgouttes a écrit : > > >

Re: margin figure's label counter

2022-07-16 Thread Ehud Behar via lyx-users
- Original Message --- On Saturday, July 16th, 2022 at 9:04 PM, Jean-Marc Lasgouttes wrote: > Le 16/07/2022 à 22:00, Ehud Behar via lyx-users a écrit : > > > No, it completely removes and overrides the existing figure from > > stdfloats.inc. I want to have both figure and