Re: Remove the automatically added amssymb

2013-05-21 Thread dianzi.ben
Thanks a lot to both of you. I tested both of the  solutions and they all works 
well, at least for me. So I’ll make a summary here so you can help me to post 
this into the mail archive to help others


The  provides a polished fonts for many magazines, although it’s not 
free. However, it may conflict with , which is automatically called by 
LyX if needed. You may get the error “LaTeX Error: Command \Bbbk already 
defined.” Here is the solution to this problem:

(Recommended) add the option when you call the  as: 
\usepackage[noamssymbols]{mtpro2}.
If you get other problems due to the conflict between the two, you can fool LyX 
not to call the amssymb anymore by add following in LyX at >document settings > 
local layout:
 Format 35
 Provides amssymb 1
(Small Trick) Repalce the amssymb.sty in your local file with an empty text 
file. When you submit you tex file, remove the command about amssymb.


Thanks a lot and best wishes.


Xin GUO




发自 Windows 邮件



发件人: Uwe Stöhr
发送时间: ‎2013‎年‎5‎月‎21‎日 ‎星期二 ‎17‎:‎49
收件人: Julien Rioux
抄送: LyX Users; dianzi@gmail.com

Am 21.05.2013 21:39, schrieb Julien Rioux:

> As Paul Rubin commented (if you did not see his reply, concider subscribing 
> to the list)

I read the list via Gmane.

> there is
> indeed a way to suppress amssymb. You can use the module that he provided or 
> directly put the
> following in document settings > local layout:
 >
> Format 35
> Provides amssymb 1

I am not sure this is safe for every case. I think using mtpro2's native 
solution cannot be wrong. 
Moreover having it in the Wiki does not harm.

In the upcoming LyX 2.1 you can uncheck amssymb but 2.1 is not released yet.

regards Uwe

Re: Remove the automatically added amssymb

2013-05-21 Thread Uwe Stöhr

Am 21.05.2013 21:39, schrieb Julien Rioux:


As Paul Rubin commented (if you did not see his reply, concider subscribing to 
the list)


I read the list via Gmane.


there is
indeed a way to suppress amssymb. You can use the module that he provided or 
directly put the
following in document settings > local layout:

>

Format 35
Provides amssymb 1


I am not sure this is safe for every case. I think using mtpro2's native solution cannot be wrong. 
Moreover having it in the Wiki does not harm.


In the upcoming LyX 2.1 you can uncheck amssymb but 2.1 is not released yet.

regards Uwe


Re: Remove the automatically added amssymb

2013-05-21 Thread Julien Rioux

On 20/05/2013 7:54 PM, Uwe Stöhr wrote:

Am 20.05.2013 03:33, schrieb dianzi@gmail.com:


Removing the amssymb is the official solution to the conflict problem
between them. You can see it on the web of mtpro2.


I cannot test this because mtpro2 is not part of MiKTeX and TeXLive
because of its license. Seems it is not free.

However, it is a bug that a font package cannot handle the amsmath
packages. amsmath is the de-facto standard for years in the LaTeX world
and that is the first time I heard they cannot be handled. Please report
this as bug to the mtpro2 developers to get this fixed.

As amsmath is standard LyX does not offer a way to remove the amssymb
package. Maybe you can do it via the document preamble that is placed
after the call of amssymb.



As Paul Rubin commented (if you did not see his reply, concider 
subscribing to the list) there is indeed a way to suppress amssymb. You 
can use the module that he provided or directly put the following in 
document settings > local layout:


Format 35
Provides amssymb 1

But then it is up to you to make sure any needed macro is defined.

Cheers,
Julien


Re: Remove the automatically added amssymb

2013-05-21 Thread Julien Rioux

On 20/05/2013 7:54 PM, Uwe Stöhr wrote:

Am 20.05.2013 03:33, schrieb dianzi@gmail.com:


Removing the amssymb is the official solution to the conflict problem
between them. You can see it on the web of mtpro2.


I cannot test this because mtpro2 is not part of MiKTeX and TeXLive
because of its license. Seems it is not free.

However, it is a bug that a font package cannot handle the amsmath
packages. amsmath is the de-facto standard for years in the LaTeX world
and that is the first time I heard they cannot be handled. Please report
this as bug to the mtpro2 developers to get this fixed.

As amsmath is standard LyX does not offer a way to remove the amssymb
package. Maybe you can do it via the document preamble that is placed
after the call of amssymb.



As Paul Rubin commented (if you did not see his reply, concider 
subscribing to the list) there is indeed a way to suppress amssymb. You 
can use the module that he provided or directly put the following in 
document settings > local layout:


Format 35
Provides amssymb 1

But then it is up to you to make sure any needed macro is defined.

Cheers,
Julien



Re: Remove the automatically added amssymb

2013-05-21 Thread Uwe Stöhr

Am 21.05.2013 20:25, schrieb xin guo:


All right. Anyway, I have already finished my paper this time. However, I
am sad, as a lyx fan, that there is a package works in Latex but fails in
LyX. Actually, mtpro2 has been the official font of many IEEE magazines.


Don't give up that quickly. Please help to improve the situation as others will run into the same 
situation as you.


I googled a bit and found that for example the beamer document class solved 
this by providing an option:
https://bitbucket.org/rivanvx/beamer/commits/24853e6b98cf

I googled further and the mtpro2 manual seems to state a solution in sec. 2.15:

"The definitions of the AMS symbols consume a huge amount of TEX re-
sources, so you can disable them through the package option noamssymbols."

Can you please try this out by adding

noamssymbols

to the document class options field in the document settings of your document? 
Does it then work?

If yes, can you please add it to our Wiki page?:
http://wiki.lyx.org/Examples/IEEE

(LyX is free and lives form the fact that many users help to get it better!)


thanks for your help and patience
Uwe


Re: Remove the automatically added amssymb

2013-05-20 Thread Uwe Stöhr

Am 20.05.2013 03:33, schrieb dianzi@gmail.com:


Removing the amssymb is the official solution to the conflict problem between 
them. You can see it on the web of mtpro2.


I cannot test this because mtpro2 is not part of MiKTeX and TeXLive because of its license. Seems it 
is not free.


However, it is a bug that a font package cannot handle the amsmath packages. amsmath is the de-facto 
standard for years in the LaTeX world and that is the first time I heard they cannot be handled. 
Please report this as bug to the mtpro2 developers to get this fixed.


As amsmath is standard LyX does not offer a way to remove the amssymb package. Maybe you can do it 
via the document preamble that is placed after the call of amssymb.


sorry that I cannot help you and regards
Uwe


Re: Remove the automatically added amssymb

2013-05-19 Thread Uwe Stöhr

Am 19.05.2013 22:31, schrieb dianzi@gmail.com:


Yes, when I add some math equations including ”\mathbb{R}”, the amssymb is 
loaded. However, I don’t need the  amssymb because I’m using the package mtpro2.


But mtpro2 is only a font. Are you sure it would work without amssymb? To check that export a small 
example your file as LaTeX. Open the LaTeX file with a text editor and remove there the line with 
amssymb. Finally compile the file manually using a console with the command


pdflatex yourfile.tex

(assuming your filename is "yourfile.tex")

I bet it won't work. If you have problems, send a small example LyX file.

regards Uwe


Re: Remove the automatically added amssymb

2013-05-19 Thread Paul A . Rubin
 Have a look at ticket 5058 ( http://www.lyx.org/trac/ticket/5058), which I 
filled some time back. 
I attached a module ( 
http://www.lyx.org/trac/attachment/ticket/5058/noamssymb.module) 
that fools LyX into thinking amssymb is already loaded. 

Paul







Re: Remove the automatically added amssymb

2013-05-19 Thread Uwe Stöhr

Am 19.05.2013 21:50, schrieb dianzi@gmail.com:


However I cannot understand why the LyX use the  package by default, 
even I remove everything in Math Option. I need to remove the package. Can you give 
me any suggestion or help about how to remove this?


LyX only adds amssymb if it is needed to compile the file. Can you provide a _small_ LyX testfile 
where you think that amssymb is not necessary?


regards Uwe