Re: possible issue with newtxmath?

2017-01-21 Thread Kees Zeelenberg (iPad)
2017-01-20 23:23 GMT+01:00 Guenter Milde :

>
> * Generally (i.e. with document classes that do not select a font), I
> recommend
>
>   - Latin Modern with standard AMS math, or
>
>   - Times or Palatino or Linux Libertine with newtxmath, or
>
>   - Fourier (the Fourier package combines the Utopia text font with its
> own math fonts).
>
>
> Günter
>
> I have had good results with the stix package and the stix fonts. They
contain a large number of mathematical symbols, whcih fit in nicely with
Times Roman..

Kees


Re: possible issue with newtxmath?

2017-01-20 Thread Guenter Milde
On 2017-01-20, Neal Becker wrote:
> Guenter Milde wrote:
>> On 2017-01-20, Neal Becker wrote:
>>> Guenter Milde wrote:

...

 Leaving both "font encoding" and "Serif font" at "Default" leads to
 suboptimal fonts beeing used (fontenc becomes T1 and the default
 Computer Modern fonts are substituted by bitmap EC (or, if installed
 CM-Super).

>>> What settings do you recommend?


>> Sorry, I missed the IEEEtran documentclass setting. In this case, the
>> class file selects a Times font and your settings are correct.
>> I don't know whether the font selection is done before or after this,
>> though (look into IEEEtran.cls to find out if you are curious).


>> Generally, I recommend Latin Modern instead of Computer Modern if you want
>> the "classic TeX fonts" and optical sizes (good looking fonts at small
>> scales for indices, fractions, etc.) and newtxmath to go with Times,
>> Palatino or Libertine. I also like Fourier.
> ...
> Unfortunately if I select "Latin Modern Roman" then it seems to defeat the 
> newtxmath - the math symbols don't match well with the text - it looks quite 
> ugly.  Selecting all defaults for font settings, together with using 
> \usepackage{newtxmath} at the end, looks good.

OK, to be clear: 

* with IEEEtran document class, I recommend GUI settings Default for text
  fonts (as IEEEtran selects Times) and newtxmath.

* Generally (i.e. with document classes that do not select a font), I recommend

  - Latin Modern with standard AMS math, or

  - Times or Palatino or Linux Libertine with newtxmath, or

  - Fourier (the Fourier package combines the Utopia text font with its
own math fonts).


Günter



Re: possible issue with newtxmath?

2017-01-20 Thread Neal Becker
Guenter Milde wrote:

> On 2017-01-20, Neal Becker wrote:
>> Guenter Milde wrote:
>>> On 2017-01-19, Neal Becker wrote:
 Neal Becker wrote:
> 
> http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf
> 
> The package invoked by
> \usepackage{newtxmath}
> loads the math part of the txfonts (with revised metrics and
> additional glyphs) and should be loaded after
> the text font and its encoding have been specified, as it uses the
> text font settings to define how operators,
> numbers, math accents, \mathrm, \mathbf etc. are rendered
> 
> But if I select
> document/settings/fonts/Math: Times Roman (New TX)
> 
> Generated TeX says:
> \documentclass[american,journal,comsoc]{IEEEtran}
> \usepackage{amsmath}
> \usepackage{newtxmath}
> \usepackage[T1]{fontenc}
> \usepackage[latin9]{luainputenc}
> 
> 
> Is this OK?
> 
>>> Leaving both "font encoding" and "Serif font" at "Default" leads to
>>> suboptimal fonts beeing used (fontenc becomes T1 and the default
>>> Computer Modern fonts are substituted by bitmap EC (or, if installed
>>> CM-Super).
> 
>> What settings do you recommend?
> 
> 
> Sorry, I missed the IEEEtran documentclass setting. In this case, the
> class file selects a Times font and your settings are correct.
> I don't know whether the font selection is done before or after this,
> though (look into IEEEtran.cls to find out if you are curious).
> 
> 
> Generally, I recommend Latin Modern instead of Computer Modern if you want
> the "classic TeX fonts" and optical sizes (good looking fonts at small
> scales for indices, fractions, etc.) and newtxmath to go with Times,
> Palatino or Libertine. I also like Fourier.
...
Unfortunately if I select "Latin Modern Roman" then it seems to defeat the 
newtxmath - the math symbols don't match well with the text - it looks quite 
ugly.  Selecting all defaults for font settings, together with using 
\usepackage{newtxmath} at the end, looks good.



Re: possible issue with newtxmath?

2017-01-20 Thread Guenter Milde
On 2017-01-20, Neal Becker wrote:
> Guenter Milde wrote:
>> On 2017-01-19, Neal Becker wrote:
>>> Neal Becker wrote:

 http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf

 The package invoked by
 \usepackage{newtxmath}
 loads the math part of the txfonts (with revised metrics and additional
 glyphs) and should be loaded after
 the text font and its encoding have been specified, as it uses the text
 font settings to define how operators,
 numbers, math accents, \mathrm, \mathbf etc. are rendered

 But if I select
 document/settings/fonts/Math: Times Roman (New TX)

 Generated TeX says:
 \documentclass[american,journal,comsoc]{IEEEtran}
 \usepackage{amsmath}
 \usepackage{newtxmath}
 \usepackage[T1]{fontenc}
 \usepackage[latin9]{luainputenc}


 Is this OK?

>> Leaving both "font encoding" and "Serif font" at "Default" leads to
>> suboptimal fonts beeing used (fontenc becomes T1 and the default Computer
>> Modern fonts are substituted by bitmap EC (or, if installed CM-Super).

> What settings do you recommend?


Sorry, I missed the IEEEtran documentclass setting. In this case, the class
file selects a Times font and your settings are correct.
I don't know whether the font selection is done before or after this, though
(look into IEEEtran.cls to find out if you are curious).


Generally, I recommend Latin Modern instead of Computer Modern if you want
the "classic TeX fonts" and optical sizes (good looking fonts at small
scales for indices, fractions, etc.) and newtxmath to go with Times,
Palatino or Libertine. I also like Fourier.



>> Why do you compile with LuaTeX when using 8-bit fonts? (This is not
>> necessarily evil but I am curious.)

> Just because LuaTeX is the latest thing - don't actually need any of it's 
> features.

It may help, if you need many math alphabets. Otherwise, luatex takes longer
to run and there are still packages out there that just test for the TeX
engine and with Xe/LuaTeX assume both inputencoding and fontencoding to be
utf8.  -> beware of strange errors, in case something goes wrong try with
pdflatex (of course this does not solve every error).

 Does \usepackage{newtxmath} need to be moved later in the
 preamble?

>> May be, you can try by leaving the GUI math-package setting at default and
>> inserting \usepackage{newtxmath} in the user preamble. Please report
>> differences, if found.


> I haven't really seen any differences but maybe I don't know what to look 
> for.

So keep it the way you are more comfortable with (or closer to the template
documentation), it will not matter much.

OTOH, it might be an idea to change the LyX font GUI to insert newtxmath
after the fontenc call.

Günter



Re: possible issue with newtxmath?

2017-01-20 Thread Neal Becker
I should add that I'm using newtxmath because:


http://ctan.math.washington.edu/tex-archive/macros/latex/contrib/IEEEtran/IEEEtran_HOWTO.pdf

says:

1) Comsoc Mode: Comsoc mode only affects the math font
so that it will more closely match the Times Roman main text.
Either Michael Sharpe’s freely available newtxmath package
[8] (version 1.451, July 28, 2015 or later is recommended)
or the commercial MathTime [9] math fonts (as mtpro2.sty,
mt11p.sty or mathtime.sty) are acceptable. Under comsoc
mode, if one of these packages has not been loaded by the
user at the start of the document, IEEEtran will attempt to
enforce their use based on what is available on the system.
The recommended loading procedure and order for newtxmath
is:
\usepackage[T1]{fontenc} % optional
\usepackage{amsmath}
\usepackage[cmintegrals]{newtxmath}
\usepackage{bm} % optional



Re: possible issue with newtxmath?

2017-01-20 Thread Neal Becker
Guenter Milde wrote:

> Dear Neal,
> 
> thank you for the report.
> 
> On 2017-01-19, Neal Becker wrote:
>> Neal Becker wrote:
> 
>>> http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf
> 
>>> The package invoked by
>>> \usepackage{newtxmath}
>>> loads the math part of the txfonts (with revised metrics and additional
>>> glyphs) and should be loaded after
>>> the text font and its encoding have been specified, as it uses the text
>>> font settings to define how operators,
>>> numbers, math accents, \mathrm, \mathbf etc. are rendered
> 
>>> But if I select
>>> document/settings/fonts/Math: Times Roman (New TX)
> 
>>> Generated TeX says:
>>> \documentclass[american,journal,comsoc]{IEEEtran}
>>> \usepackage{amsmath}
>>> \usepackage{newtxmath}
>>> \usepackage[T1]{fontenc}
>>> \usepackage[latin9]{luainputenc}
> 
> 
>>> Is this OK?
> 
> Leaving both "font encoding" and "Serif font" at "Default" leads to
> suboptimal fonts beeing used (fontenc becomes T1 and the default Computer
> Modern fonts are substituted by bitmap EC (or, if installed CM-Super).

What settings do you recommend?
>   
> Adding Times math fonts to this mix makes matters worse.
> 
> Why do you compile with LuaTeX when using 8-bit fonts? (This is not
> necessarily evil but I am curious.)
>
Just because LuaTeX is the latest thing - don't actually need any of it's 
features.
 
>>> Does \usepackage{newtxmath} need to be moved later in the
>>> preamble?
> 
> May be, you can try by leaving the GUI math-package setting at default and
> inserting \usepackage{newtxmath} in the user preamble. Please report
> differences, if found.
> 

I haven't really seen any differences but maybe I don't know what to look 
for.

> 
>> Similarly, this advice seems to be violated:
>> "If you use the babel package, you should load it before newtxtext—for
>> example:"...
> 
> OTOH, babel itself advises to be loaded last. (The Greek babel
> definitions, e.g., analyse the fontencoding setup for proper working.)
> 
> Again, this may be changed if we have evidence of problems or improvements
> with either order.
> 
> Günter




Re: possible issue with newtxmath?

2017-01-19 Thread Guenter Milde
Dear Neal,

thank you for the report.

On 2017-01-19, Neal Becker wrote:
> Neal Becker wrote:

>> http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf

>> The package invoked by
>> \usepackage{newtxmath}
>> loads the math part of the txfonts (with revised metrics and additional
>> glyphs) and should be loaded after
>> the text font and its encoding have been specified, as it uses the text
>> font settings to define how operators,
>> numbers, math accents, \mathrm, \mathbf etc. are rendered

>> But if I select
>> document/settings/fonts/Math: Times Roman (New TX)

>> Generated TeX says:
>> \documentclass[american,journal,comsoc]{IEEEtran}
>> \usepackage{amsmath}
>> \usepackage{newtxmath}
>> \usepackage[T1]{fontenc}
>> \usepackage[latin9]{luainputenc}


>> Is this OK?

Leaving both "font encoding" and "Serif font" at "Default" leads to
suboptimal fonts beeing used (fontenc becomes T1 and the default Computer
Modern fonts are substituted by bitmap EC (or, if installed CM-Super).
  
Adding Times math fonts to this mix makes matters worse.  

Why do you compile with LuaTeX when using 8-bit fonts? (This is not
necessarily evil but I am curious.)

>> Does \usepackage{newtxmath} need to be moved later in the
>> preamble?

May be, you can try by leaving the GUI math-package setting at default and
inserting \usepackage{newtxmath} in the user preamble. Please report
differences, if found.


> Similarly, this advice seems to be violated:
> "If you use the babel package, you should load it before newtxtext—for 
> example:"...

OTOH, babel itself advises to be loaded last. (The Greek babel
definitions, e.g., analyse the fontencoding setup for proper working.)

Again, this may be changed if we have evidence of problems or improvements
with either order.

Günter



Re: possible issue with newtxmath?

2017-01-19 Thread Neal Becker
Neal Becker wrote:

> According to:
> 
> http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf
> 
> The package invoked by
> \usepackage{newtxmath}
> loads the math part of the txfonts (with revised metrics and additional
> glyphs) and should be loaded after
> the text font and its encoding have been specified, as it uses the text
> font settings to define how operators,
> numbers, math accents, \mathrm, \mathbf etc. are rendered
> 
> But if I select
> document/settings/fonts/Math: Times Roman (New TX)
> 
> Generated TeX says:
> \documentclass[american,journal,comsoc]{IEEEtran}
> \usepackage{amsmath}
> \usepackage{newtxmath}
> \usepackage[T1]{fontenc}
> \usepackage[latin9]{luainputenc}
> 
> 
> Is this OK?  Does \usepackage{newtxmath} need to be moved later in the
> preamble?

Similarly, this advice seems to be violated:
"If you use the babel package, you should load it before newtxtext—for 
example:"...




possible issue with newtxmath?

2017-01-19 Thread Neal Becker
According to:

http://mirrors.ibiblio.org/CTAN/fonts/newtx/doc/newtxdoc.pdf

The package invoked by
\usepackage{newtxmath}
loads the math part of the txfonts (with revised metrics and additional 
glyphs) and should be loaded after
the text font and its encoding have been specified, as it uses the text font 
settings to define how operators,
numbers, math accents, \mathrm, \mathbf etc. are rendered

But if I select 
document/settings/fonts/Math: Times Roman (New TX)

Generated TeX says:
\documentclass[american,journal,comsoc]{IEEEtran}
\usepackage{amsmath}
\usepackage{newtxmath}
\usepackage[T1]{fontenc}
\usepackage[latin9]{luainputenc}


Is this OK?  Does \usepackage{newtxmath} need to be moved later in the 
preamble?