Re: Insert a command Before \documentclass

2023-03-01 Thread Jürgen Spitzmüller
Am Dienstag, dem 28.02.2023 um 19:13 + schrieb tush via lyx-users:
> I want to use the package fix-cm.
> 
> In the manual it is stressed that one should load the
> packagebefore\documentclass, and use the command\RequirePackageto do
> so, rather than the normal\usepackage:
> 
> \RequirePackage{fix-cm}
> \documentclass ...
> 
> Any idea how I can do this in LyX?

Use the fix-cm module in Document > Settings > Modules.

-- 
Jürgen
-- 
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 Herbert Voss



Am 01.03.23 um 11:31 schrieb 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}


then try

\usepackage{unicode-math}
%\setmathfont[]{Latin Modern Math}
\setmathfont[version=bold]{STIX Two Math}

and use

foo $y=f(\symbf{x})$

Herbert
--
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: Insert a command Before \documentclass

2023-02-28 Thread Herbert Voss




Am 28.02.23 um 22:25 schrieb tush via lyx-users:

Thanks for your reply.
I want to print a document with font size 11.5pt.
When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get 
the warning


LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not 
available size <12> substituted on input line 44.


If you have any idea how to come over this, you are more than welcome 
to post it.



I do not get such a warning with lualatex:

\usepackage{unicode-math}
\setmathfont{Latin Modern Math}


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


Re: Insert a command Before \documentclass=

2023-02-28 Thread Steve Litt
tush via lyx-users said on Tue, 28 Feb 2023 21:23:36 +

>Thanks for your reply.
>I want to print a document with font size 11.5pt.
>When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get
>the warning
>
>LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not
>available size <12> substituted on input line 44.
>
>If you have any idea how to come over this, you are more than welcome
>to post it.
>

I don't know if this would work, but just for fun try using luatex and
lualatex to compile. I think you specify luatex in one of the LyX
config windows. Luatex and lualatex enable you to do a lot more with
fonts than the other compilers.

SteveT

Steve Litt 
Autumn 2022 featured book: Thriving in Tough Times
http://www.troubleshooters.com/bookstore/thrive.htm
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Fw: Re: Insert a command Before \documentclass=

2023-02-28 Thread tush via lyx-users
Richard Kimberly Heck Hello
I made a bit of a mess with the subject of the replied message. I ended up 
creating a new thread. Could you please delete it?
I am really sorry to bother you,
Ehud Behar
--- Forwarded Message ---
From: ehud.be...@protonmail.com 
Date: On Tuesday, February 28th, 2023 at 11:23 PM
Subject: Re: Insert a command Before \documentclass=
To: rgb.m...@gmail.com , lyx-users 

> Thanks for your reply.
> I want to print a document with font size 11.5pt.
> When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get the 
> warning
>
> LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not available size 
> <12> substituted on input line 44.
>
> If you have any idea how to come over this, you are more than welcome to post 
> it.
>
> Ehud

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


Re: Insert a command Before \documentclass

2023-02-28 Thread tush via lyx-users
Thanks for your reply.
I want to print a document with font size 11.5pt.
When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get the 
warning

LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not available size 
<12> substituted on input line 44.

If you have any idea how to come over this, you are more than welcome to post 
it.

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


Re: Insert a command Before \documentclass=

2023-02-28 Thread tush via lyx-users
Thanks for your reply.
I want to print a document with font size 11.5pt.
When I do the fontspec command '\setmathrm{Latin Modern Roman}' I get the 
warning

LaTeX Font Warning: Font shape OML/cmm/m/it in size <11.5> not available size 
<12> substituted on input line 44.

If you have any idea how to come over this, you are more than welcome to post 
it.

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


Re: Insert a command Before \documentclass

2023-02-28 Thread Ricardo Berlasso
El mar, 28 feb 2023 a las 20:14, tush via lyx-users (<
lyx-users@lists.lyx.org>) escribió:

> I want to use the package fix-cm.
>

Not a direct answer to your problem,(1) but why do you want to use fix-cm
package? AFAIK this package is used only to fix limitations with the old
Computer Modern fonts (hence the -cm in the name). But if that's the case
you'll be better switching to Latin Modern which is better than the old CM
fonts. You can even move to [Xe|Lua]LaTeX and use an OpenType conversion
such as NewComputerModern.

(1) I think there is a command to force code to go at the beginning of the
preamble, but I cannot remember it right now. Maybe someone here have
better memory than me? ;)

Regards,
Ricardo



>
> In the manual it is stressed that one should load the package before
> \documentclass, and use the command \RequirePackage to do so, rather than
> the normal \usepackage:
>
> \RequirePackage{fix-cm}
> \documentclass ...
>
> Any idea how I can do this in LyX?
> --
> lyx-users mailing list
> lyx-users@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-users
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Insert a command Before \documentclass

2023-02-28 Thread tush via lyx-users
I want to use the package fix-cm.

In the manual it is stressed that one should load the 
packagebefore\documentclass, and use the command\RequirePackageto do so, rather 
than the normal\usepackage:

\RequirePackage{fix-cm}
\documentclass ...

Any idea how I can do this in LyX?-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users