Re: Avoid inserting \beginL

2024-05-15 Thread Udicoudco
On Fri, May 10, 2024 at 10:56 PM Ron Yutkin  wrote:
>>
>> You can specify in the Language package "always babel" and pass the option 
>> in the document class options.
>>
>
> How do I specify options in the document class options?

In Document->Settings->Document Class->Class Options->Custom.
I attached an example file.

Udi


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


Re: Avoid inserting \beginL

2024-05-10 Thread Udicoudco
On Fri, May 10, 2024, 9:06 PM Ron Yutkin  wrote:

> Hi,
>
> I'm using LyX for university and I'm trying to write a document in Hebrew
> but I had to switch to using babel and LuaLaTeX due to some annoying
> packages like so:
> 1. Document Settings > Language > Language package > none
> 2. Latex preamble:
>
> \usepackage[bidi=basic, layout=tabular, provide=*]{babel}
>
> \babelprovide[main, import]{hebrew}
>
> \babelprovide{rl}
>
> 3. File > Export > PDF (LuaTeX)
>
>
> Once I try to export, I "undefined control sequence" on the following
> commands: \beginL, \endL, \beginR, \endR, \R, \L
>
> It seems like LyX adds these around numbers and words in english.
>

Should be fixed in 2.4.0 which is about to release. Can you test with
2.4RC4? It is available in the download page in LyX's web page.

You can specify in the Language package "always babel" and pass the option
in the document class options.

Udi


> --
> 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: Trying to get a straight single quote

2024-01-02 Thread Udicoudco
On Tue, Jan 2, 2024 at 3:42 PM Daniel via lyx-users
 wrote:
>
> On 2023-12-31 21:59, Paul Rubin wrote:
> >
> > On 12/31/23 13:08, Blake McBride wrote:
> >> Greetings,
> >>
> >> I am using LyX 2.3.7 on a Linux box.  I have some text in which I'd
> >> like to use the straight, type-writer-like single quote instead of a
> >> curved one.  I tried adding the TeX code \texttt{'} but that didn't
> >> work.  I then went into Document / Settings / Fonts and played with
> >> the Typewriter setting.  That changed the quiet but I never got the
> >> straight single quote I am looking for.  Sure appreciate some help.
>

Using  XeTeX or LuaTeX you can deactivate the default font feature
(Ligatures=TeX in fontspec's jargon), the whole purpose of this feature
is to mimic the ligatures knuth created in his fonts, which are not very
common in modern fonts.

You can do that by adding the line
\defaultfontfeatures[\rmfamily,\sffamily]{}
before you load any font. Because LyX loads
the fonts very early, you will need to load the fonts
in the preamble (in LyX 2.4 you'll be able to pass options
to the selected fonts in the fonts dialog).

Note that it will not affect anything other than the straight quotes
because LyX inserts the appropriate unicode character directly for
e.g. en dash, which is the recommended thing to do.

I attached an example file, Times New Roman is not necessary for that,
but you will need a font that supports straight quotes.


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


Re: Some bugs with Lyx 2.3 and a lot of bugs with Lyx 2.4 using abntex2 document class

2023-12-30 Thread Udicoudco
On Sat, Dec 30, 2023 at 3:16 PM Jéssica Milaré  wrote:
>
> But I think Lyx should not change a literal LaTeX code that I insert manually.

I agree. I opened a ticket: https://www.lyx.org/trac/ticket/13022

>> Best regards,
>> Udi
>> > --
>> > 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: Some bugs with Lyx 2.3 and a lot of bugs with Lyx 2.4 using abntex2 document class

2023-12-30 Thread Udicoudco
On Mon, Dec 25, 2023 at 3:21 PM Jéssica Milaré  wrote:

> However, I tried to port it to Lyx 2.4 (Beta 5) and came across several 
> errors which I believe to be Lyx's bugs. Besides the above problem, I've also 
> got the following ones:
>
> Undefined "\textgreek" error message. I've inserted some section titles with 
> literal unicode greek character using code like the following:
>   "\texorpdfstring{$\varepsilon$}{ε}"
> Lyx 2.4 replaces "ε" with "\textgreek{ε}". The problem is not resolved with  
> "usepackage{textgreek}". Adding "greek" as a secondary language within 
> 'documentclass' seems to suppress this problem but creates a bunch of other 
> issues.

Until it is fixed, you can use a unicode aware engine (xetex/luatex).
In general, if you want to use unicode, it is probably a wise idea to
do so.

Best regards,
Udi
> --
> 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: Any Windows users test Beta 5 yet?

2023-09-11 Thread Udicoudco
On Tue, Sep 12, 2023 at 3:38 AM Andrew Parsloe  wrote:
>
>
> On 12/09/2023 9:01 am, Scott Kostyshak wrote:
> > 2.4.0 Beta 5 was recently released (available here: 
> > http://ftp.lyx.org/pub/lyx/devel/lyx-2.4/).
> >
> > Have any Windows users tested it yet? If so, has it gone smoothly?

Works great on my laptop.

> > Also, can you remind me: the beta 5 installs in parallel to your 2.3.x
> > release right? So you can still use 2.3.x after installing it? Which one
> > is default? For example, if you double-click to open a .lyx file, does
> > it open with 2.3.x or with the newly installed Beta 5?

Yes to all, I think the default is the last one installed, but I'm not sure.

> I've just installed beta 5 on windows 10. It runs in parallel to 2.3.x.
> The document I was working on in beta 3 opens and everything seems to be
> OK except for the desktop icon which is featureless (lacks the LyX).
> beta 5 is the default, even when clicking on old 2.3.x files.

Note that the the logo in 2.3.x on windows was not the correct one,
it should be as in the attached image.

>
> --
> 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: No display of file icon, the slanted blue coloured L

2023-08-21 Thread Udicoudco
On Sat, Aug 5, 2023 at 2:28 PM Yu Jin  wrote:
> This is definitely not what it looks like on my system. It looks like the 
> icon just does not work on yours. Try to uninstall all versions of LyX on 
> your PC and then freshly install the new Version of LyX.

FWIW, I've seen two posts on facebook reporting the exact same
fenomena. One of them also specified he installed LyX on a new windows
11 laptop, so I don't think that having other installations is the
problem. The posts are in hebrew, a link for them will help?

Best Regards,
Udi

> 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: I don't understand this

2023-06-12 Thread Udicoudco
On Mon, Jun 12, 2023 at 8:32 PM Herbert Voss  wrote:
> No, because unicode-math loads amsmath by default which defines \mathbb

\mathbb isn't defined in amsmath, but in amsfonts, which should not be used
with unicode-math (and as a consequence, neither amssymb should be used
with unicode-math).
> --
> 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: I don't understand this

2023-06-12 Thread Udicoudco
On Mon, Jun 12, 2023 at 11:04 AM Scott Kostyshak  wrote:
> >
> > On 2023-06-10 21:49, Richard Kimberly Heck wrote:

> > >
> > > It's because the 'blackboard' font is quite limited (to ASCII caps, I
> > > think). If you type characters not present in that font, you get weird
> > > results.
> > >

With modern math fonts (open type) the range of 'blackboard'
characters is wider,
and it includes small latin letters, and arabic numerals as well.

> In this case, LyX creates the corresponding LaTeX code "$\mathbb{0}$", which 
> is valid LaTeX. It is true that the output is counter-intuitive. I'm not 
> convinced we should do anything here.

With unicode-math, "$\mathbb{0}$" should be rendered as "ퟘ" (U+1D7D8),
but it seems that  LyX is not aware of that. Attached is an example.
Should I open
a ticket? I don't currently have access to my Linux machine, and can't
test it with master.

Regards,
Udi

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


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


Re: Adjusting the vertical placement of margin notes

2023-05-27 Thread Udicoudco
On Tue, May 23, 2023 at 8:44 AM R. H. van der Gaag
 wrote:
>
> I write most of my longer copy using the (beautiful and eminently readable) 
> Tufte Book and Tufte Handout document class. One advantage of this is that 
> footnotes are displayed as margin notes. If a note is added near the bottom 
> of the page, though, this causes the note text to extend beyond the lower 
> edge of the main text column. Obviously, the note should either scoot 
> upwards, enough for its last line to land at the same vertical position as 
> the main text column’s last line, or the note should break off at that 
> vertical position, and continue on the next page. But I don’t know how to 
> accomplish this.

Tufte Book uses \marginpar for all the sidenotes, footnotes etc., so
you can use the package marginfix to automatically adjust the vertical
placement of a side note. I don't know if someone wrote a package to
allow page breaks in \marginpar but that would be interesting.

Attached is an example file, this is the first page of the example
file of Tufte Book that is shipped with LyX, written by
Jason Waskiewicz, and edited slightly to demonstrate the package functionality.

Please read the documentation of the package for further details.

Regards,
Udi
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users


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


Re: missing characters

2023-05-08 Thread Udicoudco
On Mon, May 8, 2023 at 3:14 PM Wolfgang Engelmann
 wrote:
>
> where would
> unicode-math and the \mathrm macro. > \mathrm
> be set in LyX?

In Document->Settings->Fonts->Math (the non-TeX option loads
unicode-math). Regarding \mathrm,
it is a macro that you probably used in the body of the document.

>
> and in the preamble I use
>
> \usepackage{libertinus-otf}
> \setmonofont[Scale=MatchLowercase,FakeStretch=0.88,Ligatures=ResetAll]{AnonymousPro}

Ah, I see! so that is the origin of the problem. It seems that
libertinus-otf loads unicode-math.
So either use \symrm instead of \mathrm, as mentioned in the previous
mail, or pass the nomath
option to libertinus-otf, but that would prevent libertinus-otf to
change the math font altogether.

> --
> 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: missing characters

2023-05-08 Thread Udicoudco
On Mon, May 8, 2023 at 12:11 PM Wolfgang Engelmann
 wrote:
>
> In my lyx document (Koma script book) under no TeX (via LuaTX) I get
> these errors:
>
> Missing character: There is no 휇 (U+1D707) in font
> [LibertinusSerif-Regular.o
> tf]:mode=base;script=latn;language=dflt;+tnum;+lnum;!
> .
>  ...rdinate) and growth rate ($\mathrm {\mu m/sec}$
>, red, right
> ordinate) of ...
>

Looks like you are using unicode-math and the \mathrm macro.
\mathrm will switch to the text font, which does not contain some
of the mathematical symbols (greek letters in this case). Use \symup
or \symrm instead.

If you want you can pass the option mathrm=sym to unicode math
so that \mathrm will work as \symrm, but that can prevent kerning
in operator names (\sin etc.).

> --
> 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: My book isn't compiling, having something to do with refstyle

2023-05-02 Thread Udicoudco
On Wed, May 3, 2023 at 12:11 AM Steve Litt  wrote:
>
> One of my books, which a couple weeks ago compiled just fine, now
> errors out as follows:'
>
> Argument of \eqref has an extra }.
>
> 1) Did something change about the refstyle package in the last few
> weeks?

The amsmath package robustified \eqref and it broke how refstyle
handled amsmath.

> 2) Did LyX make a change that affected how the refstyle package works?

No that I'm aware of.

> 3) Within the LyX user interface, where can I see the configuration
> that affects the usage of the refstyle package?

What exactly do you mean?

FWIW, Jürgen Spitzmüller notified the author of refstly,
and he replied that he will fix it.

See also https://www.lyx.org/trac/ticket/12708 and
https://www.mail-archive.com/lyx-users@lists.lyx.org/msg114795.html

Best,
Udi

> 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: Bulk changing environments in Lyx

2023-04-19 Thread Udicoudco
On Thu, Apr 20, 2023 at 2:10 AM Steve Litt  wrote:
>
> Dr Paul Verschueren said on Tue, 18 Apr 2023 15:12:10 +
>
> >Dear all -
> >I just had to change the AMS document type for a long paper.
>
> Does long paper really require a change of doctype? I think you can do
> what you need by putting the following two lines in your
> Docuument=>settings=>Latex_preamble:
>
> 
> \pageheight=14in %Paper height
> \pagewidth=8.5in  %Paper width
> 
>
> The preceding works as long as you compile with luatex, which is the
> best way to compile anyway. I don't know about the AMS document type,
> but my best guess would be it would accommodate the preceding.
> Naturally you'd need to change all the margins in LyX, but that's easy.
>
>

The primitives macros called \pageheight and \pagewidth are not
responsible for the size of the text block, they are only changing
the size of the media box that the pdf reader displays.

They were first introduced in pdftex
(where they are called \pdfpageheight
and \pdfpagewidth, and in xetex as well)
since the pdf format is not meant to be used
just for printing.

On the other hand, LaTeX is using
two macros called \paperheight and \paperwidth
to control the text block (they are basically \textwidth and \textheight
plus some extra space for the margins).

Some driver aware packages (such as geometry) are setting
\(pdf)pageheight and \(pdf)pagewidth to be equal to \paperheight and
\paperwidth, but this is not done by default (I think that I saw LyX 2.4
adds \(pdf)pageheight\(pdf)paperheight in the preamble in some cases).

In any case I think the best approach to modify the geometry of the page
is to use the geometry package, this way you won't have to change the code
depending on the engine or driver that you use to convert your files.
>
> --
> 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 to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 4:15 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 9:00 PM Udicoudco  wrote:
> >
> > On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao 
wrote:
> > >
> > > On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> > > >
> > > > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao 
wrote:
> > > > >
> > > > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > > > >  wrote:
> > > > > >
> > > > > > If I understand your question, you should open the following
menu:
> > > > > >
> > > > > > Tools --> Preferences. Then in the window Lyx: Prefrences you
have to
> > > > > > open the menu: Look & Feel --> Display.
> > > > > >
> > > > > > and to set On the Instant preview
> > > > >
> > > > > I've enabled this option, but the formulae still show as LaTeX
> > > > > commands. See the attachment for more details.
> > > > >
> > > > > > Stefano
> > > > >
> > > > > Regards,
> > > > > Zhao
> > > > >
> > > >
> > > > Instead of copy a LaTeX code try to import it via
> > > > File->Import->LaTeX (Plain).
> > > > Then the equations should appear in a new LyX file,
> > > > and you can copy them from there.
> > >
> > > This method really fixed the problem of equations display, but the
> > > Chinese characters are displayed as chaos, as shown in the attached
> > > file.
> > >
> >
> > In what encodings the latex
>
> See the following for encoding info of the original TeX file which is
> being imported into LyX:
>
> werner@X10DAi:~$ encguess test.tex
> test.texUTF-8
> werner@X10DAi:~$ uchardet test.tex
> UTF-8
> werner@X10DAi:~$ file -i test.tex
> test.tex: text/plain; charset=utf-8
>
> > and LyX files are written?
>
> I don't know what do you mean by saying this. I just do the import via
> File->Import->LaTeX (Plain).

You need to add \usepackage[utf8]{inputenc} to the latex preamble so that
LyX will
know what is the correct encoding.

Attached is a .tex file that  I successfully imported to LyX (I think), the
text is taken
from here <https://zh.wikipedia.org/wiki/%E6%98%A5%E7%AF%80>.


ww.tex
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 3:36 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 8:27 PM Udicoudco  wrote:
> >
> > On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
> > >
> > > On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
> > >  wrote:
> > > >
> > > > If I understand your question, you should open the following menu:
> > > >
> > > > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > > > open the menu: Look & Feel --> Display.
> > > >
> > > > and to set On the Instant preview
> > >
> > > I've enabled this option, but the formulae still show as LaTeX
> > > commands. See the attachment for more details.
> > >
> > > > Stefano
> > >
> > > Regards,
> > > Zhao
> > >
> >
> > Instead of copy a LaTeX code try to import it via
> > File->Import->LaTeX (Plain).
> > Then the equations should appear in a new LyX file,
> > and you can copy them from there.
>
> This method really fixed the problem of equations display, but the
> Chinese characters are displayed as chaos, as shown in the attached
> file.
>

In what encodings the latex and LyX files are written?
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: How to automatically display all equations as intuitive formulas in LyX?

2023-04-19 Thread Udicoudco
On Wed, Apr 19, 2023 at 3:18 PM Hongyi Zhao  wrote:
>
> On Wed, Apr 19, 2023 at 1:33 PM Stefano Simonucci
>  wrote:
> >
> > If I understand your question, you should open the following menu:
> >
> > Tools --> Preferences. Then in the window Lyx: Prefrences you have to
> > open the menu: Look & Feel --> Display.
> >
> > and to set On the Instant preview
>
> I've enabled this option, but the formulae still show as LaTeX
> commands. See the attachment for more details.
>
> > Stefano
>
> Regards,
> Zhao
>

Instead of copy a LaTeX code try to import it via
File->Import->LaTeX (Plain).
Then the equations should appear in a new LyX file,
and you can copy them from there.

Regards,
Udi

> --
> 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: LatexParam before Argument

2023-04-08 Thread Udicoudco
On Sat, Apr 8, 2023 at 6:20 PM Ehud Behar  wrote:
>
> 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"
> AutoInsert1
> LeftDelim "["
> RightDelim "]"
> EndArgument
> End
>
> But turns out that LyX sweeps the order of "Argument" and "LatexParam", 
> because what this local layout gives is
> \begin{myenv}
> [arg 1]{}
> code
> \end{myenv}

As the customization guide states, the LatexParam will be output as is
after all LaTeX Arguments.


> Any idea how to solve it? Or a different approach to get the code I want?

You can add the extra curly brackets to the LatexName, e.g.,

Style myenv
LatexType Environment
LatexName myenv}{
Argument  1
LabelString"entry 1"
AutoInsert1
LeftDelim "["
RightDelim "]"
EndArgument
End

Or you can add a second argument:

Style myenv
LatexType Environment
LatexName myenv
Argument  1
LabelString"Something"
 Mandatory1
EndArgument
Argument  2
LabelString"entry 1"
AutoInsert1
LeftDelim "["
RightDelim "]"
EndArgument
End

But my approach feels a bit hackey.
Maybe someone else will have a better
solution.

> --
> 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: Insert an empty line in beamer

2023-03-19 Thread Udicoudco
On Sun, Mar 19, 2023 at 11:34 AM Ehud Behar  wrote:
>
> I now realized that this problem is only when the document language is
> set to Hebrew.
>

Strange, it seems to only happen with Hebrew and LuaTeX.
To overcome this problem you can use the latexpar separator.

It can be inserted via the minibuffer, and you can create a shortcut
for it. The LFUN is separator-insert latexpar. see the attached file
for an example.

Regards,
Udi


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


Re: Broken document

2023-03-16 Thread Udicoudco
On Thu, Mar 16, 2023 at 11:13 AM Daniel  wrote:
>
> On 16/03/2023 08:18, Daniel wrote:
> > On 15/03/2023 15:54, Udicoudco wrote:
> >>
> >>
> >> On Wed, Mar 15, 2023 at 10:57 AM Daniel  >> <mailto:xraco...@gmx.de>> wrote:
> >>
> >> Hi!
> >>
> >> I somehow managed to break one of my documents and cannot see
> >> where the
> >> problem is. I have attached a minimal example that I produced after a
> >> longer error hunt (because LyX did not give me helpful error
> >> feedback on
> >> this).
> >>
> >> Does someone have an idea how the error occurred or how I might be
> >> able
> >> to fix it?
> >>
> >> The LaTeX error message does not tell me much and LyX did not even
> >> point
> >> me to the position in the document where the error occurred.
> >>
> >> --- LaTeX Error ---
> >>
> >>   lsttxt= \RSlsttxt}
> >>
> >> I've run across a `}' that doesn't seem to match anything.
> >> For example, `\def\a#1{...}' and `\a}' would produce
> >> this error. If you simply proceed now, the `\par' that
> >> I've just inserted will cause me to report a runaway
> >> argument that might be the root of the problem. But if
> >> your `}' was spurious, just type `2' and it will go away.
> >>
> >> --- End ---
> >>
> >>
> >>
> >> You get the error because you load amsmath (it is loaded via
> >> newtxmath) before refstyle. See the attached .tex file which produces
> >> the same error.  If you will load newtxmath via
> >> Document->Settings->Latex Preamble and set the Math Font in
> >> Document->Settings->Fonts->Math to automatic, there will be no error
> >> (see the attached LyX file)
> >>
> >> Regards,
> >> Udi
> >
> > Thanks, awesome!
> >
> > Maybe a solution would be if LyX loads fonts later in general? Or would
> > that lead to other problems?
> >
> > Daniel
>
> I filed a bug report at https://www.lyx.org/trac/ticket/12708.

I don't know if it should be considered a bug of LyX.
The error is due to recent changes of the amsmath package.
The maintainer of refstyle should fix this (if he is still active).

Regards,
Udi
>
> --
> 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: Broken document

2023-03-15 Thread Udicoudco
On Wed, Mar 15, 2023 at 4:54 PM Udicoudco  wrote:

>
>
> On Wed, Mar 15, 2023 at 10:57 AM Daniel  wrote:
>
>> Hi!
>>
>> I somehow managed to break one of my documents and cannot see where the
>> problem is. I have attached a minimal example that I produced after a
>> longer error hunt (because LyX did not give me helpful error feedback on
>> this).
>>
>> Does someone have an idea how the error occurred or how I might be able
>> to fix it?
>>
>> The LaTeX error message does not tell me much and LyX did not even point
>> me to the position in the document where the error occurred.
>>
>> --- LaTeX Error ---
>>
>>  lsttxt= \RSlsttxt}
>>
>> I've run across a `}' that doesn't seem to match anything.
>> For example, `\def\a#1{...}' and `\a}' would produce
>> this error. If you simply proceed now, the `\par' that
>> I've just inserted will cause me to report a runaway
>> argument that might be the root of the problem. But if
>> your `}' was spurious, just type `2' and it will go away.
>>
>> --- End ---
>>
>>
>>
> You get the error because you load amsmath (it is loaded via newtxmath)
> before refstyle. See the attached .tex file which produces the same error.
> If you will load newtxmath via Document->Settings->Latex Preamble and set
> the Math Font in Document->Settings->Fonts->Math to automatic, there will
> be no error (see the attached LyX file)
>
>
See also
https://tex.stackexchange.com/questions/672975/refstyle-is-conflicted-with-amsmath


> Regards,
> Udi
>


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: Broken document

2023-03-15 Thread Udicoudco
On Wed, Mar 15, 2023 at 10:57 AM Daniel  wrote:

> Hi!
>
> I somehow managed to break one of my documents and cannot see where the
> problem is. I have attached a minimal example that I produced after a
> longer error hunt (because LyX did not give me helpful error feedback on
> this).
>
> Does someone have an idea how the error occurred or how I might be able
> to fix it?
>
> The LaTeX error message does not tell me much and LyX did not even point
> me to the position in the document where the error occurred.
>
> --- LaTeX Error ---
>
>  lsttxt= \RSlsttxt}
>
> I've run across a `}' that doesn't seem to match anything.
> For example, `\def\a#1{...}' and `\a}' would produce
> this error. If you simply proceed now, the `\par' that
> I've just inserted will cause me to report a runaway
> argument that might be the root of the problem. But if
> your `}' was spurious, just type `2' and it will go away.
>
> --- End ---
>
>
>
You get the error because you load amsmath (it is loaded via newtxmath)
before refstyle. See the attached .tex file which produces the same error.
If you will load newtxmath via Document->Settings->Latex Preamble and set
the Math Font in Document->Settings->Fonts->Math to automatic, there will
be no error (see the attached LyX file)

Regards,
Udi

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


refstyle-amsmath.tex
Description: Binary data


test.23.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Insert a command Before \documentclass

2023-03-01 Thread Udicoudco
On Wed, Mar 1, 2023 at 9:17 AM Herbert Voss  wrote:
>
>
>
>
> I do not get such a warning with lualatex:
>
> \usepackage{unicode-math}
> \setmathfont{Latin Modern Math}
>
>
> Herbert

the package unicode-math sets Latin Modern Math
as the math font by default, so there is no need for
\setmathfont{Latin Modern Math}

Regards,
Udi
> --
> 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: Change to English on entering math environment

2023-02-27 Thread Udicoudco
On Sat, Feb 25, 2023 at 10:44 PM Richard Kimberly Heck
 wrote:
>
> On 2/25/23 15:22, Yotam Ohad wrote:
> > Hi all,
> >
> > I usually write in Hebrew on Lyx, and when I create a math environment
> > with `ctrl+m` I need to manually change the language to english.
> >
> > I tried looking for how to add something like this and saw that there
> > are custom insets I can add. But I couldn't find how to actually do it
> > (only how the syntax of the definition of the custom inset should be)
>
> I'm not sure what you want to add. Do you want a special inset that will
> automatically change to English?
>
> One thing you can do is set up a shortcut to do the language change.
> That would at least save fussing with the mouse.
>
> Riki
>
> PS Posting to this list is restricted to subscribers, to fight spam. I
> manually accpeted your post, but you may want to subscribe before
> posting again.
>
>

I suggest using keyboard mapping, I think this is disabled inside math insets.
Go to Tools->Preferences->Editing->Keyboard/Mouse, check the
"use keyboard map" box, then write in the primary field null, and in the
secondary field hebrew.

Now when you write outside of math insets it should be in Hebrew,
even if your keyboard is in english (so you won't have to switch).

But how will you be able to write in english? as Riki suggested, create
a shortcut to switch between the languages. To do so, go to
Tools->Preferences->Editing->Shortcuts, press on New, in the Function
field write (without the quotation marks) "language hebrew", and in the
shortcut field, well, press the keys you want for the short cut.

Regards,
Udi

>
> --
> 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: Tables: Setting width for entire column

2023-02-10 Thread Udicoudco
The column headers are in the first row, and centered. Unchecking
> multicolumn for the two header cells doesn't allow me to center them above
> the left-aligned cells beneath them.
>

 The column headers are in the second row, the first row is the caption.
You don't need to uncheck multicolumn in the headers, just keep the
width field empty, see the attached file I sent in the previous mail.

Regards,
Udi

--
>
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: Tables: Setting width for entire column

2023-02-10 Thread Udicoudco
On Fri, Feb 10, 2023 at 7:30 PM Rich Shepard 
wrote:

> On Fri, 10 Feb 2023, Paul A. Rubin wrote:
>
> > I'm with Udi on this. Maybe you should post a MWE?
>
> Paul, Udi:
>
> I placed the cursor in a cell below the first row (for each column) and
> changed the widths from inches to % text area (43%, 53%). Not using the top
> row cell made a difference.
>
> The table heading and the cell underlines overhang the right margin a bit.
> I
> don't know how fix this.
>
> MWE attached.
>
> Regards,
>
> Rich--
>

Since the alignment of the text inside the second
row is centered, contrary to the rest of the tabular,
these cells are typeset inside \multicell, and in this
case their width can be independent from the width
of their column.

If you will keep the column width field in the settings empty,
they will have the same width as the rest of the column
(currently they have widths of 45% and 55% of \textwidth, thus
the table flows out of the screen).
Change the column width only when the cursor is below
the headings.

Regards,
Udi


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


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


Re: Tables: Setting width for entire column

2023-02-10 Thread Udicoudco
On Fri, Feb 10, 2023 at 5:59 PM Rich Shepard 
wrote:

> I've looked at the table settings, the User Guide, and the Wiki without
> learning how to set the width of an entire column. One table has many rows
> (it's a multipage table), and I'm able to change the width of only the cell
> in which the cursor is located.
>
> What am I missing?
>
> TIA,
>
> Rich
> --
>

Right click on the table and select "settings..." to open the tabular
settings dialog.
Put the  cursor in a cell inside the column you want to change, and in the
settings dialog in Table settings->Column settings change the width to the
desired one.

Regards,
Udi

> 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: URL question

2023-02-08 Thread Udicoudco
On Wed, Feb 8, 2023 at 5:55 PM Rich Shepard 
wrote:

> I thought that after inserting a URL (either from the Insert menu or as
> ERT)
> compiling with pdflatex would automatically break the string to fit the
> text
> area. This one doesn't fit the line.
>
> A MWE is attached.
>
> Rich--
>

I would suggest loading the xurl package (using \sloppy can change other
layouts in the documents...).
The xurl package  allows line breaks in URLs at alphanumeric characters and
= / . : * - ~ ' ".

> 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: Using the return value of "server-get-layout"

2023-01-23 Thread Udicoudco
On Sun, Jan 8, 2023 at 1:16 AM Pavel Sanda  wrote:

> On Wed, Dec 28, 2022 at 04:53:30PM +0200, Udicoudco wrote:
> > I was wondering, is there a way to manipulate
> > the string returned by the LFUN "server-get-layout"
> > and pass the result as an argument to the LFUN "layout"
> > using only LFUN's?
>
> You could use scripting, e.g. if you are on linux:
> $ LAYOUT=`lyxclient -c LYXCMD:server-get-layout|sed
> s/INFO:server-get-layout://`
>
> Then manipulate the result in LAYOUT variable and pass it back again via
> lyxclient.
>
> Pavel
> --
>

Thank you for the advice! It helped me alot.

Best regards,
Udi


> 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: Ventura graphics Mac

2023-01-21 Thread Udicoudco
On Sat, Jan 21, 2023 at 9:20 PM Frederic Mynard  wrote:

> I am still with 2.3.6.
> Fred
>
> On Sat, Jan 21, 2023, 1:43 PM Richard Kimberly Heck 
> wrote:
>
>> On 1/21/23 13:03, Frederic Mynard wrote:
>>
>> I just updated to Ventura and hence had not realized this yet, but I just
>> checked and I have the exact same issue (Mac Mini M1). I’m also using LyX
>> among others for lecture notes, so this is a critical issue for me too.
>>
>> Thanks in advance for your guidance in addressing this.
>>
>> CCing Stephan, our Mac expert.
>>
>> Has either of you tried downgrading to 2.3.6? It would be good to know if
>> this is a new problem or another Ventura problem.
>>
>> Riki
>>
>>
>>
>>
>> *From: *lyx-users 
>>  on behalf of mark salmon
>>  
>> *Date: *Saturday, January 21, 2023 at 11:38 AM
>> *To: *lyx-users@lists.lyx.org 
>> 
>> *Subject: *Ventura graphics Mac
>>
>> I have just upgraded to ventura on an Imac- as far as I know I have
>> resolved the gatekeeper and python issues but one problem remains- if
>> anyone can help me please? I can no longer insert graphics in lyx
>> documents- this is critical for my lecture notes and really urgent. I do
>> example the same as before and am running with lyx 2.3.7 and ventura 13.1.
>>  Graphics already within the document are not affected  and still there
>> but I can no longer browse and click on the graphic to get ta new graph
>> copied into the Lyx document!! Seems to be a problem with Lyx /ventura not
>> recognising the clicked link??? any help please please.
>> Thank you
>> Mark
>>
>> --
>>
>> The more we know, the more we realise how little we know.
>>
>>
>>
>> --
>> 
>> Richard Kimberly (Riki) Heck
>> Professor of Philosophy
>> Brown University
>>
>> Pronouns: they/them/their
>>
>> Website: http://rkheck.frege.org/
>> Blog:http://rikiheck.blogspot.com/
>> Amazon:  http://amazon.com/author/richardgheckjr
>> Google Scholar:  https://scholar.google.com/citations?user=QUKBG6EJ
>> ORCID:   http://orcid.org/-0002-2961-2663
>> Research Gate:   https://www.researchgate.net/profile/Richard_Heck
>>
>>
>  I think this bug is already reported here
, it seems that you can enter the
Unix file path into the "File:" field manually.

It's not a perfect solution, but it might solve your problem in the
meantime.

Regards,
Udi



> 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: multi paragraph inside a command

2022-12-31 Thread Udicoudco
On Sat, Dec 31, 2022 at 10:32 PM tush via lyx-users 
wrote:

> I created a style in my local layout that has "LatexTypeCommand".
> 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}
>
>
Hello ehud,

I don't know if it can be done in lyx, but i can suggest a workaround for
that (of course it is only
valid if your command is long in the first place).

You can set your style to be of "Latex TypeEnvironment" and create an
environment
that passes its body to \mycommand.

To do that, add to your style definition the following:

LatexNamemyenv
Preamble
\newcommand\mycommand[1]{}
\usepackage{environ}
\NewEnviron{myenv}{\mycommand{\BODY}}
EndPreamble

Note that with some commands it wont work due expansion order of \BODY,
so you might need to write

LatexNamemyenv
Preamble
\newcommand\mycommand[1]{}
\usepackage{environ}
\NewEnviron{myenv}{\expandafter\mycommand\expandafter{\BODY}}
EndPreamble

instead.

Hope it helps,
Udi

> 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


Using the return value of "server-get-layout"

2022-12-28 Thread Udicoudco
Hello LyX users,

I was wondering, is there a way to manipulate
the string returned by the LFUN "server-get-layout"
and pass the result as an argument to the LFUN "layout"
using only LFUN's?

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


Re: Greek letter bold problem

2022-12-21 Thread Udicoudco
On Wed, Dec 21, 2022 at 3:32 PM ZHOU SHUAI  wrote:

> Hi,
>
> I am using the Elsevier template to write the paper, but I have found that
> it doesn't work when I bold the Greek letters ($\mathbf{\sigma}$). Did you
> have any solution for this problem?
>
>
>
> Regards.
>
>
> --
>

Hello,

There are few options. you can use either \boldsymbol of the amsbsy package
or \bm of the package bm package, both are supported natively by LyX (so
you don't even need to load the packages, lyx will do that for you).

If you are compiling with XeLaTeX or LuaTeX and using unicode-math, you can
also use \symbf, but lyx does not support this macro natively (you can
define a macro for that).

Regards,
Udi

> 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: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Fri, Dec 2, 2022 at 12:12 AM Rich Shepard  wrote:
>
> On Fri, 2 Dec 2022, Udicoudco wrote:
>
>
> Udi,
>
> Interesting result:
> # texindy biota-to-set-wq-standards.idx
> texindy: not a symlink as required for TeX Live at /usr/bin/texindy line 414.
>
> Here's that function, starting at line 409:
> if ( $is_TL ) { # TeX Live
>
>  if ( $is_w32 ) {
>  $xindy = "$cmd_dir/xindy.pl";
>  } else { # LINE 414 follows immediately:
>  die "$cmd: not a symlink as required for TeX Live"  unless -l $0;
>  # FIXME: What this good for? Ain't xindy not also
>  # "$cmd_dir/xindy.pl" in a Unix TL installation? Why does
>  # Peter use the directory of the last symlink, where it just
>  # finds the symlink again that is then expanded by xindy.pl?
>  $real_cmd = $0;
>  $cmd_dir = dirname($real_cmd);
>  # Follow symlinks, but remember last one
>  my $lcmd_dir;
>  while ( -l $real_cmd ) {
>  $lcmd_dir = $cmd_dir;
>  $real_cmd = readlink($real_cmd);
>  $real_cmd = "$lcmd_dir/$real_cmd"  unless $real_cmd =~ 
> m,^[\\/],; # relative link
>  $cmd_dir = dirname($real_cmd);
>  }
>  $xindy = "$lcmd_dir/xindy";
>  }
>  # FIXME: That's a very ugly kludge to achieve that the VERSION
>  # file is found in output_xindy_release(). The real solution is to
>  # copy the code from xindy.pl that determines $modules_dir and
>  # $lib_dir and use that code as well.
>  $cmd_dir = Cwd::realpath("$cmd_dir/../../xindy/modules");
>  die "Cannot locate xindy modules directory"  unless -f 
> "$cmd_dir/../VERSION";
> } else {
> ...
>
> And I don't know perl.
>
> Rich

Rich,

Which latex distribution did you install and which operating system
are you working on?

Regards,
Udi
> --
> 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: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 11:48 PM Rich Shepard  wrote:
>
> On Thu, 1 Dec 2022, Herbert Voss wrote:
>
> Herbert,
>
> That's what I thought, but it's not there. Where should I look for the
> reason?
>
> Thanks,
>
> Rich

Rich,

If you open your terminal, cd to the temp directory and write:texindy
biota-to-set-wq-standards.idx
does this produce a file called biota-to-set-wq-standards.ind?

Regards,
Udi
> --
> 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: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 11:31 PM Rich Shepard  wrote:
>
> On Thu, 1 Dec 2022, Udicoudco wrote:
>

> Udi,
>
> I mis-remembered the Tools -> Preferences -> Output/LaTeX -> Index
> generation processor. It's texindy.
>
> Thanks,
>
> Rich

Rich,

Try to delete the files in the temporary directory and export  to pdf again.

Regards,
Udi

> 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: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 10:16 PM Rich Shepard  wrote:
>
> On Thu, 1 Dec 2022, Rich Shepard wrote:
>
> > Your memory is correct. I did that yesterday and I have the little
> > white-filled box with 'Index' placed after the bibliography. But, when the
> > file is compiled with pdflatex there's no index at the end. That's the
> > part I'm missiing.
>
> And, yes, I added a few items using the Add Index icon on the tool bar. So,
> there's content to be displayed.
>
> Rich
> --


I've tried to compile a few minimal documents to see the differences
between the index tools.  I've noticed that unlike makeindex and
texindy, xindy does not produce a .ind file that should be processed
by latex and create an index list, but only an .idx file, which
usually gets converted to .ind file.

On the first page of Xindy manual it is stated that

"xindy is the formatter-indepedent command of xindy, the flexible
indexing system. It takes a raw index as
input, and produces a merged, sorted and tagged index. Merging,
sorting, and tagging is controlled by xindy
style files.

Files with the raw index are passed as arguments. If no arguments are
passed, the raw index will be read
from standard input.

xindy is completely described in its manual that you will find on its
Web Site, http://www.xindy.org/. A
good introductionary description appears in the indexing chapter of
the LaTeX Companion (2nd ed.)

If you want to produce an index for LaTeX documents, the command
texindy (1) is probably more of inter-
est for you. It is a wrapper for xindy that turns on many LaTeX
conventions by default."

So it seems you should use texindy and not xindy directly. I also
suggest that  after you switch from xindy to texindy (or makeindex) in
the preferences menu, open the temporary directory where lyx compiles
all the files (to do so, create a latex error on purpose by writing
\undefined in ERT for example, press on view complete log, and then
open containing directory),  and delete all the files there (or
atleast files with .idx and .ind extensions).

Regards,
Udi

> 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: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 10:01 PM Rich Shepard 
wrote:

> On Thu, 1 Dec 2022, Udicoudco wrote:
>
> > If I remember correctly, it can be found in Insert->List/TOC->Index
> > List.
>
> Udi,
>
> Your memory is correct. I did that yesterday and I have the little
> white-filled box with 'Index' placed after the bibliography. But, when the
> file is compiled with pdflatex there's no index at the end. That's the part
> I'm missiing.
>
> Thanks,
>
> Rich
>

Do you currently have any index entry in the document? otherwise no index
will be generated (not even the title).

Regards,
Udi

> 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: Generating index when compiling document

2022-12-01 Thread Udicoudco
On Thu, Dec 1, 2022 at 9:54 PM Rich Shepard 
wrote:

> Section 6.6.6 (Index Program) in the User Guide told me to look in the
> document's preferences for the index-related tools installed here. I have
> both xindy and makeindex installed (xindy is the default selection), and
> I've no idea what options I might want to use with it (following the link
> in
> the manual showed me the available options.)
>
> Regardless, what do I do to have the index generated and appended to the
> document after the References (Bibliography)? I don't see that in the index
> section of the UG. It was in 2004 when I last generated a book index and
> I've not remembered what I did then. :-)
>
> Regards,
>
> Rich
>
>
Hi Rich,

If I remember correctly,   it can be found in Insert->List/TOC->Index List.

Regards,
Udi

--
> 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: Un-spanning multicolumns

2022-11-30 Thread Udicoudco
On Thu, Dec 1, 2022 at 2:14 AM Rich Shepard 
wrote:

> Unintentionally, I set 3 columns as a multicolumn span when I meant to span
> only 2 columns.
>
> I've read the tables sections of the User Guide, Embedded Tools, and the
> LyX
> Wiki and didn't see how to unspan multiple columns.
>
> Please point me to the appropriate reference so I can separate the columns
> and do it correctly.
>
> TIA,
>
> Rich
>
>
Hi Rich,

If I understand the problem, you can always press undo (ctrl+z) or while in
the spanned column with  the cursor,  press on the set-multicolumn button.


Regards,
Udi

> --
> 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: KOMA-Script book: duplicate ToC pages [RESOLVED]

2022-11-30 Thread Udicoudco
On Wed, Nov 30, 2022 at 10:03 PM Rich Shepard 
wrote:

> On Wed, 30 Nov 2022, Rich Shepard wrote:
>
> > The reason is that I somehow put the ToC and lists after the Preface,
> too.
>
> Okay. One more issue: Why does the second page of the Preface have 'List of
> Tables' in the header rather than 'Preface'?
>
> Rich
>
Hello,

DId you use \chapter* for the preface title? The starred version does not
affect headers. I saw in the preamble that you sent that you use
\pagenumbering{roman}, I'm guessing that means you are unaware of the
\frontmatter, \mainmatter, \backmatter commands.

These macros are usually defined in book document classes. The purpose of
\frontmatter is to make the pages numbered in lower case roman numerals,
and the chapters to be unnumbered (even the unstarred version), but the
chapters (using \chapter not \chapter*) will appear in in the ToC and will
change \chaptermark as usual.

I think currently lyx is not supporting \frontmatter, so you will need to
use it with ERT, and you should note that because of that chapters in the
front matter will be numbered in the GUI but not in the exported pdf. The
problem with that is it will affect the numbers in the main matter, that's
why i usually write the chapters in the front matter in ERT (i.e i write
\chapter{Chapter Name} in ERT). I've provided a minimal example to
demonstrate that (note the page numbering although i did not write anything
in the preamble, and see which chapters are in the ToC).

For more information I suggest you read this page

.

Regards,
Udi

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


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


Re: insert a url into a lyx/beamer presentation

2022-10-05 Thread Udicoudco
On Tue, Oct 4, 2022 at 1:56 PM UD K  wrote:
>
> This little exercise has uncovered some bad things.  The Examples folder,
as well as several other folders under .lyx, was empty.  I don't know
whether anything crucial is also missing, which could account for the
failure.  When I tried to re-install Lyx, I got several errors. I am doing
this under MX Linux 21, and the Lyx version they provide is 2.3.6-1.  I am
reluctant to un-install and re-install, because I need this to work for the
next few days.
>Thanks,
> Udi
>
> On 10/4/22 11:00 AM, Udicoudco wrote:
>
> On Tue, Oct 4, 2022 at 11:38 AM UD K  wrote:
>
> Shalom Udi,
> Without reading the manual, which provides only minimal instructions
about inserting a url, I did exactly what the manual recommends, and it did
not work, which is why I bothered the community with my request for help.
I still do not know how to insert a functioning, clickable url into a
lyx/beamer presentation.
> Yours,
> Udi
>
> Hi Udi,
>
> There should be an example file for the beamer class in the examples
> directory called beamer.lyx, in its appendix there is a url, are you
> able to compile this file without any errors?
>
> If so, can you provide a minimal file that demonstrates your error?
>
> Regards,
> Udi
>
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
>
> --
> Ehud Kaplan, Ph.D.
>  Visiting Professor
>  Dept. of Philosophy & History of Science
>  Charles University, Prague
>  &
>  the National Institute of Mental Health,
>  Topolová 748, Klecany
>  Czechia
> -Formerly:
>  Jules and Doris Stein Research to Prevent Blindness Professor
>  Director, Center of Excellence for Computational & System
Neuroscience,
>  The Friedman Brain Institute, MSSM
>  Director, The laboratory of Visual & Computational Neuroscience
>  Depts. of Neuroscience, Ophthalmology, Chemical & Structural Biology
>  Icahn school of medicine at Mount Sinai
>  One Gustave Levy Place
>  New York, NY, 10029
>  USA

Hi Ehud,

You might have looked into the examples folder in the user directory. This
folder should be empty with fresh lyx installation.

You can find the location of lyx's system directory in Help->About LyX,
this is the directory I meant for you to look, sorry for not clarifying
that.

You can find more information about LyX's directories in Lyx wiki
<https://wiki.lyx.org/LyX/SystemDir>.

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


Re: insert a url into a lyx/beamer presentation

2022-10-04 Thread Udicoudco
On Tue, Oct 4, 2022 at 11:38 AM UD K  wrote:
>
> Shalom Udi,
> Without reading the manual, which provides only minimal instructions about 
> inserting a url, I did exactly what the manual recommends, and it did not 
> work, which is why I bothered the community with my request for help.  I 
> still do not know how to insert a functioning, clickable url into a 
> lyx/beamer presentation.
> Yours,
> Udi

Hi Udi,

There should be an example file for the beamer class in the examples
directory called beamer.lyx, in its appendix there is a url, are you
able to compile this file without any errors?

If so, can you provide a minimal file that demonstrates your error?

Regards,
Udi

> 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: Individual counters for Problems, Examples, etc.?

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

Hello Bernt,

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

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

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

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

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

Regards,
Udi
> lyx-users mailing list
> lyx-users@lists.lyx.org
> 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: insert a url into a lyx/beamer presentation

2022-10-03 Thread Udicoudco
On Mon, Oct 3, 2022 at 2:16 PM Murat Yildizoglu  wrote:
>
>
>
> On 3 October 2022, at 16:54, UD K  wrote:
>
> I tried to insert a url into a lyx/beamer document. I naively thought that 
> all I had to do was click: Insert/url with the cursor at the frame where I 
> waned the url to appear and be clickable.  Unfortunately, all I got was the 
> text of the url, and clicking on it did nothing.
>For some reason I am convinced that Lyx CAN do that, but it failed in my 
> hands.  What am I doing wrong here?
> Thanks,
> Ehud Kaplan
>
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
>
> Dear Ehud,
> I think that what you are looking for is Insert Hyperlink.
> Best,
> Murat
>

Hi Ehud,

You can find a detailed explanation about ho to inert URLs and
Hyperlinks in section 6.3 of LyX's User's Guide, which you can find in
Help->User's Guide

Best Regards,
Udi
> 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: Drawing an arc

2022-10-02 Thread Udicoudco
On Sun, Oct 2, 2022 at 8:55 PM Dan  wrote:
>
> Hello!  I'm having troubles with drawing an arc.  The rest of the diagram 
> works fine and the code seems to parse but nothing shows up on the picture.
>
> Here's the code:
> \begin{tikzpicture}[domain=3:10]
>  \draw (0,0) rectangle (3,5);
>  \draw (0,0) -- (10, 0);
>  \draw [<->] (2,0) -- (2,5);
>  \coordinate [label=left:{$h$}] (h) at (2,2.5);
>  \draw [<->] (3,-0.5) -- (10,-0.5);
>  \coordinate [label=below:{$R$}] (R) at(6.5,-0.5);
>  \draw (3,5) -- (5,5);
>  \draw[->] (3,5) -- (5,7);
>  \path (3,5) to node [above] {$v_0$} (5,8);
>  \path (3,5) arc [start angle=0, end angle=45, radius=3mm];
>  \coordinate [label={$\theta$}] (t) at (4, 5.1);
>  \draw [dashed] plot 
> (\x,{5+tan(45)*((\x)-3)-4.9*(((\x)-3)/(6.33*cos(45)))^2});
> \end{tikzpicture}
>
> The problem is the path line 4 lines above the bottom.  This is practically a 
> copy of a line I got out of a manual but I can't seem to make it work.   The 
> arc is supposed to appear in the corner next to the symbol theta.  See the 
> attachment.  (It's a little fuzzy, but it will do.)
>
> Thanks!
>
> -Dan

Hi Dan,

Note that the path command will not actually draw anything, unless you
will tell it to draw the path with the optional argument, i.e.,
\path[draw].

If I understand your problem, this will also not solve it, as the arc
key draw an arc that starts at the point you mention, and not centered
around it.

If you want to draw an arc for the angle, I recommend using the angles
and quotes (for the node) libraries (for more information see
https://tikz.dev/library-angle). I attached a file with what I think
is the desired output.

Regards,
Udi
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users


tikz_arc.tex
Description: Binary data
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: old lyx document in lyx 2.3.6 doesn't compile

2022-09-21 Thread Udicoudco
Hello,

I think you can solve the problem in the following way:
copy the enumitem.module to the user layout directory, then change the
following paragraph

ModifyStyle Enumerate
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem manual)"
EndArgument
Requires enumitem
End

to this

ModifyStyle Enumerate
Argument 1
LabelString   "Enumerate Options"
Tooltip   "Optional arguments for this list (see enumitem manual)"
PassThru1
EndArgument
Requires enumitem
End

After that, reconfigure lyx and restart it.

Regards,
Udi


On Wed, Sep 21, 2022 at 10:58 PM Csikos Bela  wrote:
>
>
> On 9/14/22 13:16, Csikos Bela wrote:
>
> Hello:
>
> I have an old document I made in lyx 2.0. Lyx 2.3.6.1 opens is but interprets 
> the code incorrectly and gives compilation error:
>
> In lyx 2.0 the latex code is:
>
> \selectlanguage{magyar}%
> \begin{enumerate}[nosep]
> \inputencoding{latin2}%
> \item Első item.\inputencoding{latin9}\foreignlanguage{english}{}\\
> \foreignlanguage{english}{First item. }\selectlanguage{english}%
> \end{enumerate}
>
> Opening the file in lyx 2.3.6.1 latex code is:
>
> \selectlanguage{magyar}%
> \begin{enumerate}[\foreignlanguage{english}{nosep}]
> \inputencoding{latin2}%
> \item Első item.\inputencoding{latin9}\foreignlanguage{english}{}\\
> \foreignlanguage{english}{First item. }\selectlanguage{english}%
> \end{enumerate}
>
> How can I convert or open my lyx 2.0 document in lyx 2.3 so that it would 
> work correctly?
>
> I attach the the lyx 2.0 file (MWE).
>
> Thanks,
>
> bcsikos
>
>
> The problem seems to be that the "nosep" option for the enumeration is in the 
> wrong place. It might be getting crosswise with the language changes. I got 
> it to compile as follows.
>
> I removed the magyar option from the line in the preamble that loads babel. 
> This may not be necessary for you, but on my system "magyar" is not 
> recognized by babel as a language name.
> I deleted the "enumerate options" inset.
> I put the cursor at the start of item 1 and hit enter, temporarily changing 
> the text to item 2.
> In the new (empty) item 1 (which has reverted to English), I used Insert > 
> Enumerate Options to add back the "nosep" option, then put the cursor after 
> the inset and hit delete to bring the original text back to item 1.
>
> HTH,
>
> Paul
>
>
> Hello:
>
> Adding an option to enumitem in lyx 2.3.6. doesn't work if the list item has 
> different language than the previous text. It works in lyx 2.0.6. It is a 
> regression. I attach lyx, exported latex and compiled pdf files created with 
> lyx 2.0.6 and 2.3.6.1.
>
> bcsikos
>
>
> --
> 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: centered text's line spacing

2022-09-21 Thread Udicoudco
Hi,

You need to use \\ (force new line) instead of \par. The way to do that in
lyx is ctr+return. See the attached file.

Regards,
Udi

On Wed, Sep 21, 2022 at 11:05 PM Csikos Bela  wrote:

> Hello:
>
> In  lyx centering text changes line spacing. I can't write centered text
> with the same spacing as the normal text. Centering should not change line
> spacing.  I attach example files (lyx, tex, pdf).
>
> bcsikos
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>


centered-text-linespace-lyx-2.3.6.1.lyx
Description: application/lyx


centered-text-linespace-lyx-2.3.6.1.pdf
Description: Adobe PDF document
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Fw: error with CV

2022-09-10 Thread Udicoudco
Hello Patrick,

It seems that moderncv is loading the inputenc package with the option
utf8, while you are loading this package with the option latin9.

 In latex it is only possible to load a package several times if all
the calls after the first one, is with a list of options that is a
subset of the options of the first call.

You can fix this issue in two ways. The firs way, as suggested by the
error message, you can add both options globally through the
\documentclass declaration. The way to do that in lyx, is to write the
options "utf8,latin9" (without the quotation marks)  in the text filed
called custom in Settings->Document Class. This will make lyx put
\documentclass[utf8,latin9,...]{moderncv} in the first line of the
output latex file. Note that any option written in the \documentclass
declaration will pass to all packages loaded after the declaration
(see the file attached).

The other solution is to change your language encoding to utf8 as
well. This can be done in Settings->Language, then check the radio
button called other, and select utf8 from the list. This will change
the call of \usepackage[latin9]{inputenc} to
\usepackage[utf8]{inputenc}, which will not produce an option clash.

As a final note, i would also write in the preamble

\firstname{}
\familyname{}

since moderncv expects these macros to be defined (you can also define
it as your name).

Regards,
Udi

On Sat, Sep 10, 2022 at 10:22 AM Patrick Dupre  wrote:
>
> Hello,
>
> I would appreciate if you could help me in solving this issue
> due to moderncv
> What would be the alternative?
>
> Thank
>
> >
> > Hello,
> >
> > Could you tell me what is wrong with this file?
> > I get
> >  \usepackage
> >[a4paper]{geometry}
> > The package inputenc has already been loaded with options:
> >   [utf8]
> > There has now been an attempt to load it with options
> >   [latin9]
> > Adding the global options:
> >   utf8,latin9
> > to your \documentclass declaration may fix this.
> > Try typingto proceed.
> >
> >
> >
> > #LyX 2.3 created this file. For more info see http://www.lyx.org/
> > \lyxformat 544
> > \begin_document
> > \begin_header
> > \save_transient_properties true
> > \origin unavailable
> > \textclass moderncv
> > \begin_preamble
> >
> > \end_preamble
> > \use_default_options true
> > \maintain_unincluded_children false
> > \language english
> > \language_package default
> > \inputencoding auto
> > \fontencoding global
> > \font_roman "default" "default"
> > \font_sans "default" "default"
> > \font_typewriter "default" "default"
> > \font_math "auto" "auto"
> > \font_default_family default
> > \use_non_tex_fonts false
> > \font_sc false
> > \font_osf false
> > \font_sf_scale 100 100
> > \font_tt_scale 100 100
> > \use_microtype false
> > \use_dash_ligatures false
> > \graphics default
> > \default_output_format default
> > \output_sync 0
> > \bibtex_command default
> > \index_command default
> > \paperfontsize 10
> > \spacing single
> > \use_hyperref false
> > \papersize a4paper
> > \use_geometry true
> > \use_package amsmath 1
> > \use_package amssymb 1
> > \use_package cancel 0
> > \use_package esint 1
> > \use_package mathdots 1
> > \use_package mathtools 0
> > \use_package mhchem 1
> > \use_package stackrel 0
> > \use_package stmaryrd 0
> > \use_package undertilde 0
> > \cite_engine basic
> > \cite_engine_type default
> > \biblio_style plain
> > \use_bibtopic false
> > \use_indices false
> > \paperorientation portrait
> > \suppress_date false
> > \justification true
> > \use_refstyle 0
> > \use_minted 0
> > \index Index
> > \shortcut idx
> > \color #008000
> > \end_index
> > \leftmargin 2.2cm
> > \topmargin 2.2cm
> > \rightmargin 2.2cm
> > \bottommargin 2.2cm
> > \secnumdepth 0
> > \tocdepth -1
> > \paragraph_separation skip
> > \defskip medskip
> > \is_math_indent 0
> > \math_numbering_side default
> > \quotes_style english
> > \dynamic_quotes 0
> > \papercolumns 1
> > \papersides 1
> > \paperpagestyle default
> > \tracking_changes false
> > \output_changes false
> > \html_math_output 0
> > \html_css_as_file 0
> > \html_be_strict false
> > \end_header
> >
> > \begin_body
> >
> > \begin_layout Standard
> > p
> > \end_layout
> >
> > \end_body
> > \end_document
> >
> >
> > ===
> >  Patrick DUPRÉ | | email: pdu...@gmx.com
> >  Laboratoire interdisciplinaire Carnot de Bourgogne
> >  9 Avenue Alain Savary, BP 47870, 21078 DIJON Cedex FRANCE
> >  Tel: +33 (0)380395988| | Room# D114A
> > ===
> >
> > --
> > 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


mwe-moderncv.lyx
Description: application/lyx
-- 
lyx-users mailing list
lyx-users@lists.lyx.org

Re: Table of contents and links in pdf

2022-08-31 Thread Udicoudco
Hello Dan,

To use hyperlinks in lyx you should assure that you use hyperref support.
To do so go to Document->Settings->PDF Properties and check the box named
"Use Hyperref Support", this will automatically create links in the table
of contents.

For more information about customizing the appearance of the links you
should read section 6.9 of  LyX's user guide, which can be found in
Help->User's Guide.

Regards,
Udi

On Thu, Sep 1, 2022 at 2:22 AM Dan  wrote:

> Is it possible to construct a table of contents in LyX that will allow a
> person viewing the pdf to click a link to get to a specific section?  Or is
> this an Adobe feature?
>
> Thanks!
>
> -Dan
> --
> 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: advices for layout modification

2022-08-21 Thread Udicoudco
> Thanks Steve, I have a lot to read I have started by
> http://troubleshooters.com/linux/lyx/self_publish_lyx.htm just to get
> along with your tutorials and the way you wrote them.
>
> As I am not always focused, I have tried to add that in my layout file:
>
> Style Dialogue
>LatexType Environment
>LatexName dialog_l
>ParSep0.5
>
>Font
>  Shape   Bold
>EndFont
>Preamble
>  \newenvironment{dialog_l}
>  {
>  \begin{list}{}
>  \item[---]
>  }
>  {
>  \par
>  \end{list}
>  }
>EndPreamble
> End
>
> But that doesn't work at all. It leads to what I was afraid of. The
> first line of my dialog has the — sign, but not the others...
>
>
> I definitely have much more reading to do, but if you have an obvious
> solution to my problem, I'll be happy with it. Still, starting to be
> late for me. I'll see that another day.
>
>
> Pierig
>
>
>
>
>
> On 21/08/2022 13:01, Steve Litt wrote:
> > On Sun, 2022-08-21 at 11:04 +0800, pierig wrote:
> >> Hello,
> >>
> >> I have been using Lyx for years, and I am very happy with it. I am
> >> writing novels, so my needs are pretty simple. (I would happily share
> >> the novels here, but they are in French [Sci Fi])
> >>
> >> In a novel, I have two main type of text. The main one, and dialogues.
I
> >> was using "Quote" for the dialogues, convenient enough.
> > I think you're going to be quite pleased with making your own text
types (LyX-speak
> > "environments") instead of hijacking environments meant for other
purposes. You're
> > moving from two to three, but if your books are anything like mine, now
that you can
> > make your own types, you'll want more of them. Just as a for instance,
you have
> > dialog and thoughts, but what about narration? What about narration of
stories and
> > back stories? When you can make your own environments, the world is
your oyster.
> >
> >> But now I need a
> >> third one to show the thoughts of a character. Then I have decided to
> >> try to adapt the layout of "Book (standard class)"
> > I congratulate you on choosing Book class. It works with everything,
and it's very
> > adaptable. 7 of my 9 books use Book class, and I'd never again use Koma
or Memoir.
> >
> >> I have looked at some advice on the net and manage to add a /dialogue/
> >> and /pensée/ (thoughts). For /dialogue/ it should be an itemized style,
> >> (in French we add — for each change of speaker). Which means the code
> >> for first line of a dialogue, the last line of dialogue and other lines
> >> of dialogues are different
> >>
> >> *1st line*
> >>
> >>\begin{itemize}
> >>\item
> >>
> >>
> >> *other lines*
> >>\item
> >>
> >>
> >> *last line*
> >>\item
> >>
> >> \end{itemize}
> > I'm confused about the preceding. Are you intending to insert ERT code
"/item"
> > between every speaker? Doing so would make for slow authoring.
> >
> >>
> >> Would you have any advice for where to look for this kind of
> >> modification which doesn't involve a single line? For a single line, I
> >> have done something very simple as a try, but I don't have any idea for
> >> this multiple line problem
> >>
> >>
> >> Example of single line:
> >>
> >> Style Pensée
> >> LatexType Environment
> >> LatexName pensee_l
> >> ParSep0.7
> >>
> >> Font
> >>   Shape   Italic
> >> EndFont
> >> Preamble
> >>   \newenvironment{pensee_l}
> >>   {
> >>   \itshape
> >>   }
> >>   {
> >>   \par
> >>   }
> >> EndPreamble
> >> End
> >>
> >>
> >>
> >> Thanks for your help.
> > I suggest you find the LaTeX source for the Book document class
standard paragraph.
> > I don't remember where it is, but other people do. Modify as needed for
each of your
> > desired environments.
> >
> > Having the first and last whatever different from the middle ones might
require
> > three different paragraph styles. I think LyX has a "next style"
property you can
> > put in the LyX part of the environment definition, so that pretty much
makes
> > everything except the last whatever automatic.
> >
> > Here's a doc I wrote 13 years ago discussing making your own layout
file:
> >
> > http://troubleshooters.com/linux/lyx/surefire_layout.htm
> >
> >
> > Also read http://www.troubleshooters.com/lpm/200210/200210.htm . It's
almost 20
> > years old, but it has ways to modify existing LaTeX environments
without rewriting
> > them from scratch. Combined with CopyStyle, this just might simplify
your task.
> >
> > If you ever need to make your own list environments, see
> > http://troubleshooters.com/linux/lyx/ownlists.htm
> >
> > Actually, you might want to acquaint yourself with my whole LyX subsite,
> > 

Re: KOMA-Script article float numbering

2022-08-18 Thread Udicoudco
> > 1. Post a .lyx file that is more minimal (e.g. does not contain
> > unnecessary external material). Try to strip off everything that is
> > unnecessary, including preamble material.
>
> > 2. The file should contain what does *not* work (e.g. you seem to suggest
> > that the problem is in a KOMA-Script article but your attached lyx file
> is
> > a KOMA-Script report).
>
> > 3. State clearly what is the actual and expected result.
>
> Daniel,
>
> I did all this in my original post.
>
> 1. I removed the extraneous preamble material.
>
> 2. The figure on page 2 is labled 0.1 rather than 1. Yes, this document's
> class is report, not article. I thought I had changed the class, but did
> not
> do so. What does *not* work is \automark*{section} in this document when it
> did in previous ones..
>
> 3. The actual result is the figure labeled 0.1 and the expected result is
> the figure labeled 1.
>
> Regards,
>
> Rich
> --
>
>
Hi Rich,

I don't have much  experience with KOMA-Script document classes, but from
what I've been reading in the documentation, automark does not have
anything to do with figure numbering, the command changes the page marks
above the headrule.

The reason the figure is numbered differently in the report class is that
in this class the chapter command is defined,  and as a convention when it
is  defined, usually figures are numbered within the chapter counter. On
the contrary, in report class, chapters are not defined.

To remove the figure counter from the reset list of chapter, you can simply
write in the preamble \counterwithout{figure}{chapter}, it will also change
the format of \thefigure to be \@arabic{\c@figure} which is what I believe
you want.

Note that this will only change the counter in the output file, and not in
the lyx file. To change the counter in the lyx file you can write in the
local layout

Float
Type  figure
NumberWithin  none
End

I attached a file with the changes specified above, i also suggest that you
see the preamble in my file and notice that none of what was written was
related to the problem, but only customized the page marks above the
headrule.

As a final remark, it is preferable that a MWE will be with no external
files, unless necessary. In this case, a figure can be created with no
external graphics within it, and because the inclusion of an external file
is path dependent, I could not compile your file without removing the
graphics from lyx, or downloading your pdf and changing the path in lyx. If
you will write a suitable MWE it will help people to help you.

Regards,
Udi


mwe.lyx
Description: application/lyx


gotch-site-plan.pdf
Description: Adobe PDF document
-- 
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

2022-08-17 Thread Udicoudco
‫

> >
> > 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.
>
> You could redefine the tabular environment used by LyX. However, you
> cannot use the GUI for setting tabular properties. Another difficulty is
> the fact that LyX uses \tabularnewline instead of \\ to end a line and,
> seemingly, the tabularray package does not understand it. So you have
> also to redefine \tabularnewline and remember to add \\ in ERT at the
> end of each table line.
>
> Arguments such as "width=10cm,colspec={X[c]},rows={ht=2cm},hlines,vlines"
> can be passed through the "LaTeX argument" in the "Tabular Settings"
> paying attention to avoid any space character.
>
> See the attached example containing two examples in both ERT and a
> somewhat LyXfied form as explained above. This last form is marginally
> better than the ERT one.
>
> --
> Enrico
>


Hello Enrico,

You can overcome the \tabularnewline problem more easily if you will
replace "\renewenvironment{tabular}{\begin{tblr}[t]}{\end{tblr}}"  in the
preamble with
"\renewenvironment{tabular}{\begin{tblr}[t,expand=\tabularnewline]}{\end{tblr}}",
this way you won't have to add "\\'' manually at the end of a line.  See
the attached file.

Regards,
Udi


newfile1.lyx
Description: application/lyx
-- 
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

2022-08-03 Thread Udicoudco
‫

> On Jul 30, 2022, 18:42, tush via lyx-users < lyx-users@lists.lyx.org>
> 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.
>
>
Hello Ehud,

I am not sure if the last message  I've sent was received as it  does not
appear in the mail list archive.
I wrote a module to solve your problem, you can get it here
.  I apologize in
advance for any misspelling in the example file, as I am not a native
english speaker. Please read section 3 in Tabularray.pdf before you start
to use the module.

Regards,
Udi

-- 
> 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: KOMA-Script report: float numbering [RESOLVED]

2022-07-29 Thread Udicoudco
>
>
>>
‫בתאריך יום ה׳, 28 ביולי 2022 ב-19:19 מאת ‪Rich Shepard‬‏ <‪
rshep...@appl-ecosys.com‬‏>:‬

> On Thu, 28 Jul 2022, Ricardo Berlasso wrote:
>
> > Try with
> > \usepackage{chngcntr}
> > \counterwithout{figure}{section}
>
> Ricardo,
>
> Boy howdy! That's a new lesson for me, and a valuable one.
>
> Works like a charm.
>
> Thanks,
>
> Rich
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org

http://lists.lyx.org/mailman/listinfo/lyx-users



Hi Rick,

Please note that since 2018 the "chngcntr" package has been integrated into
LaTeX2e (see LaTeX2e News Issue 28
),
So, if you are using up to date LaTeX format there is no need to load  the
chngcntr package.

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


Re: Syncing skim with LyX

2022-07-19 Thread Udicoudco
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: 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

2022-07-17 Thread Udicoudco
‫

>
>
>
> >What I tried is to to set in Preferences->Outout->General: PDF command
> "/Applications/Skim.app" as seen in the picture.
>
> >And also adding "Contents/SharedSupport/displayline $$n $$o $$t" after
> "Skim.app/".
>
> >But everything is just the same. LyX views the rendered file with macOS
> Preview.
>
> >Any help?
>

Hi Ehud,

I think you should go to "Tools->Preferences>File Handling->File Formats",
over there select the format you are compiling with and then choose the
application you want in the "viewer" menu  (if the application is not in
the menu you need to add the path of the exe file of the pdf viewer to the
PATH prefix in "Tools->Preferences->Path" and then in
"Tools->Preferences>File Handling->File Formats" select in viewer custom
and write the path to the exe of the pdf viewer in the text field that will
open up). I've attached photos of my configuration to compile with PDF
(XeTeX) (my viewer is sumatrapdf).
[image: image.png]
[image: image.png]
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Re: Rotate text

2022-06-27 Thread Udicoudco
Hello Carlos.

To rotate a text in the middle of a paragraph go to
Document->Settings->Modules.
In there add a module called GraphicBoxes. Afterwards go to Insert->Custom
Insets and click on RotateBox.
Now there should be an inset layout with an argument titled "angle". In the
argument write the desired angle that you want the text to be rotated, and
inside the layout itself the text to be rotated. For more information and
examples you can read  section 5.8.1. of the Embedded Objects guide, which
you can find in Help-> Embedded Object.

Regards,
Udi

‫בתאריך יום ב׳, 27 ביוני 2022 ב-18:09 מאת ‪Carlos Knauer‬‏ <‪
carlos.kna...@gmail.com‬‏>:‬

> Can I rotate text in LyX ? How do I do ?
> --
> 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