Palatino font (newpxmath) misaligns text in fraction numeratorsConflict between color, graphicx and libertineTeXLive/PDFTeX fonts loading problemGenerating PDF/A-1b compliant documents using pdfx and pdfLaTeXHow to implement the Russian typographical traditions?Using a handwriting font from myscriptfont.comDante Monotype typeface and fractionsHow to remove i£ij at the bottom left corner under my abstractWho changed my Chinese character?
Is it right to extend flaps only in the white arc?
How can this Stack Exchange site have an animated favicon?
Is it a good idea to leave minor world details to the reader's imagination?
Examples of "unsuccessful" theories with afterlives
Everyone and NTFS permissions
How use custom order in folder on Windows 7 and 10
What's the lowest risk highest reward I can invest in for 5 years?
How to manage expenditure when billing cycles and paycheck cycles are not aligned?
Does Sitecore have support for Sitecore products in containers?
Is it true that, "just ten trading days represent 63 per cent of the returns of the past 50 years"?
Would the same counter be used for a slice of pizza and a whole one?
Why weren't the Death Star plans transmitted electronically?
Magneto 2 How to call Helper function in observer file
Social leper versus social leopard
Can a broken/split chain be reassembled?
Should the average user with no special access rights be worried about SMS-based 2FA being theoretically interceptable?
How to make interviewee comfortable interviewing in lounge chairs
Organisational search option
I reverse the source code, you negate the input!
Going to France with limited French for a day
How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal reasons?
Strange Sticky Substance on Digital Camera
What is the meaning of word 'crack' in chapter 33 of A Game of Thrones?
2000s Animated TV show where teenagers could physically go into a virtual world
Palatino font (newpxmath) misaligns text in fraction numerators
Conflict between color, graphicx and libertineTeXLive/PDFTeX fonts loading problemGenerating PDF/A-1b compliant documents using pdfx and pdfLaTeXHow to implement the Russian typographical traditions?Using a handwriting font from myscriptfont.comDante Monotype typeface and fractionsHow to remove i£ij at the bottom left corner under my abstractWho changed my Chinese character?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am using pdflatex in Texmaker (implements TeXLive). Using the default font, the numerator text of the following fractions are aligned to a common baseline:
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$

However, using the newpxmath package results in the numerators becoming misaligned:
documentclassarticle
usepackagenewpxmath
begindocument
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$
enddocument

I would like to use New PX for math, but align the numerators as in the default font. I could use vphantom... to force the numerators to have the same height, but is there a more elegant way to do this?
fonts pdftex typography
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment
|
I am using pdflatex in Texmaker (implements TeXLive). Using the default font, the numerator text of the following fractions are aligned to a common baseline:
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$

However, using the newpxmath package results in the numerators becoming misaligned:
documentclassarticle
usepackagenewpxmath
begindocument
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$
enddocument

I would like to use New PX for math, but align the numerators as in the default font. I could use vphantom... to force the numerators to have the same height, but is there a more elegant way to do this?
fonts pdftex typography
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
The “aligned at baseline” for default Computer Modern fonts is by accident. If you tryfracpartial z_j_jpartial tthe numerator would be shifted upward too.
– Ruixi Zhang
7 hours ago
Aha, that's interesting! So the behaviour in the example is because Palatino has longer "tails" under letters than Computer Modern, and this forces LaTeX to shift them upwards in more situations? Maybe the best solution would be to define a "blfrac" function, that inserts something likevphantomA^A j_jautomatically. [EDIT: I would be happy to accept this as an answer btw, if it's the most LaTeX-onic way of doing it - would you like to post it, for the points? :-) ]
– palatinouser1
7 hours ago
I am exploring other alternatives. You are correct that Palatino has longer descender since it is based on calligraphy. But the downside is that it can look uneven (thepartial xandpartial yare not on the same baseline either). I would say this is due to the (not-so-well) design ofnewpxmath, so I think we can play with font dimensions here…
– Ruixi Zhang
7 hours ago
add a comment
|
I am using pdflatex in Texmaker (implements TeXLive). Using the default font, the numerator text of the following fractions are aligned to a common baseline:
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$

However, using the newpxmath package results in the numerators becoming misaligned:
documentclassarticle
usepackagenewpxmath
begindocument
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$
enddocument

I would like to use New PX for math, but align the numerators as in the default font. I could use vphantom... to force the numerators to have the same height, but is there a more elegant way to do this?
fonts pdftex typography
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am using pdflatex in Texmaker (implements TeXLive). Using the default font, the numerator text of the following fractions are aligned to a common baseline:
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$

However, using the newpxmath package results in the numerators becoming misaligned:
documentclassarticle
usepackagenewpxmath
begindocument
$$fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t$$
enddocument

I would like to use New PX for math, but align the numerators as in the default font. I could use vphantom... to force the numerators to have the same height, but is there a more elegant way to do this?
fonts pdftex typography
fonts pdftex typography
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 4 hours ago
palatinouser1
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 9 hours ago
palatinouser1palatinouser1
334 bronze badges
334 bronze badges
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
palatinouser1 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
The “aligned at baseline” for default Computer Modern fonts is by accident. If you tryfracpartial z_j_jpartial tthe numerator would be shifted upward too.
– Ruixi Zhang
7 hours ago
Aha, that's interesting! So the behaviour in the example is because Palatino has longer "tails" under letters than Computer Modern, and this forces LaTeX to shift them upwards in more situations? Maybe the best solution would be to define a "blfrac" function, that inserts something likevphantomA^A j_jautomatically. [EDIT: I would be happy to accept this as an answer btw, if it's the most LaTeX-onic way of doing it - would you like to post it, for the points? :-) ]
– palatinouser1
7 hours ago
I am exploring other alternatives. You are correct that Palatino has longer descender since it is based on calligraphy. But the downside is that it can look uneven (thepartial xandpartial yare not on the same baseline either). I would say this is due to the (not-so-well) design ofnewpxmath, so I think we can play with font dimensions here…
– Ruixi Zhang
7 hours ago
add a comment
|
The “aligned at baseline” for default Computer Modern fonts is by accident. If you tryfracpartial z_j_jpartial tthe numerator would be shifted upward too.
– Ruixi Zhang
7 hours ago
Aha, that's interesting! So the behaviour in the example is because Palatino has longer "tails" under letters than Computer Modern, and this forces LaTeX to shift them upwards in more situations? Maybe the best solution would be to define a "blfrac" function, that inserts something likevphantomA^A j_jautomatically. [EDIT: I would be happy to accept this as an answer btw, if it's the most LaTeX-onic way of doing it - would you like to post it, for the points? :-) ]
– palatinouser1
7 hours ago
I am exploring other alternatives. You are correct that Palatino has longer descender since it is based on calligraphy. But the downside is that it can look uneven (thepartial xandpartial yare not on the same baseline either). I would say this is due to the (not-so-well) design ofnewpxmath, so I think we can play with font dimensions here…
– Ruixi Zhang
7 hours ago
The “aligned at baseline” for default Computer Modern fonts is by accident. If you try
fracpartial z_j_jpartial t the numerator would be shifted upward too.– Ruixi Zhang
7 hours ago
The “aligned at baseline” for default Computer Modern fonts is by accident. If you try
fracpartial z_j_jpartial t the numerator would be shifted upward too.– Ruixi Zhang
7 hours ago
Aha, that's interesting! So the behaviour in the example is because Palatino has longer "tails" under letters than Computer Modern, and this forces LaTeX to shift them upwards in more situations? Maybe the best solution would be to define a "blfrac" function, that inserts something like
vphantomA^A j_j automatically. [EDIT: I would be happy to accept this as an answer btw, if it's the most LaTeX-onic way of doing it - would you like to post it, for the points? :-) ]– palatinouser1
7 hours ago
Aha, that's interesting! So the behaviour in the example is because Palatino has longer "tails" under letters than Computer Modern, and this forces LaTeX to shift them upwards in more situations? Maybe the best solution would be to define a "blfrac" function, that inserts something like
vphantomA^A j_j automatically. [EDIT: I would be happy to accept this as an answer btw, if it's the most LaTeX-onic way of doing it - would you like to post it, for the points? :-) ]– palatinouser1
7 hours ago
I am exploring other alternatives. You are correct that Palatino has longer descender since it is based on calligraphy. But the downside is that it can look uneven (the
partial x and partial y are not on the same baseline either). I would say this is due to the (not-so-well) design of newpxmath, so I think we can play with font dimensions here…– Ruixi Zhang
7 hours ago
I am exploring other alternatives. You are correct that Palatino has longer descender since it is based on calligraphy. But the downside is that it can look uneven (the
partial x and partial y are not on the same baseline either). I would say this is due to the (not-so-well) design of newpxmath, so I think we can play with font dimensions here…– Ruixi Zhang
7 hours ago
add a comment
|
1 Answer
1
active
oldest
votes
The design of Palatino contains long descenders. When a math font is based Palatino, the various math font dimensions should be chosen to avoid unevenness, as much as possible.
There are many font dimensions governing the positions of numerator and denominator in a fraction. We can change two of them in newpxmath which are the most relevant.

documentclassarticle
usepackagenewpxmath
% Code modified from lmsnpxsy.fd
makeatletter
expandafterifxcsname npxmath@scaledendcsnamerelax
letnpxmath@@scaled@empty%
else
edefnpxmath@@scaleds*[csname npxmath@scaledendcsname]%
fi
DeclareFontFamilyLMSnpxsyprovidecommand setSYdimenssetSYdimensskewchar font =120
DeclareFontShapeLMSnpxsymn%
<-> npxmath@@scaled zplsy
%
fontdimen 8font=0.8fontdimen6font % was 0.677 of a quad
fontdimen11font=0.8fontdimen6font % was 0.686 of a quad
makeatother
usepackagemathtools% for clap
newcommand*drawbaseline%
claprule80pt0.4pt%
begindocument
[
begingathered
x,ydrawbaseline,z\
fracpartial xpartial t fracpartial ydrawbaselinepartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
endgathered
]
enddocument
Modifying font dimensions gives the most consistent look for all your fractions, but this requires your own aesthetic judgement.
Here, I changed the numerator raising dimension from 0.677 to 0.8 to give more room for long descender. I also changed the denominator dropping dimension from 0.686 to 0.8 for more even spacing both above and below the fraction bar.
Thank you for this great answer. This is very useful to know - your description of the raising and dropping parameters is very helpful. I didn't know that these font parameters could be tweaked, so knowing about this approach will help if I run into similar problems withnewpxmathtoo. Thanks again!
– palatinouser1
6 hours ago
1
@palatinouser1 The above code could be simplified todefsetSYdimens...but this turns out revealing a hidden bug innewpxmath. If weren’t for your question I would not notice this bug: Changing dimensions in the symbol font also changes dimensions in the extensible font. I will send an email to the maintainer to report this bug.
– Ruixi Zhang
6 hours ago
Very nice answer!
– Oleg Lobachev
3 hours ago
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
palatinouser1 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f509072%2fpalatino-font-newpxmath-misaligns-text-in-fraction-numerators%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The design of Palatino contains long descenders. When a math font is based Palatino, the various math font dimensions should be chosen to avoid unevenness, as much as possible.
There are many font dimensions governing the positions of numerator and denominator in a fraction. We can change two of them in newpxmath which are the most relevant.

documentclassarticle
usepackagenewpxmath
% Code modified from lmsnpxsy.fd
makeatletter
expandafterifxcsname npxmath@scaledendcsnamerelax
letnpxmath@@scaled@empty%
else
edefnpxmath@@scaleds*[csname npxmath@scaledendcsname]%
fi
DeclareFontFamilyLMSnpxsyprovidecommand setSYdimenssetSYdimensskewchar font =120
DeclareFontShapeLMSnpxsymn%
<-> npxmath@@scaled zplsy
%
fontdimen 8font=0.8fontdimen6font % was 0.677 of a quad
fontdimen11font=0.8fontdimen6font % was 0.686 of a quad
makeatother
usepackagemathtools% for clap
newcommand*drawbaseline%
claprule80pt0.4pt%
begindocument
[
begingathered
x,ydrawbaseline,z\
fracpartial xpartial t fracpartial ydrawbaselinepartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
endgathered
]
enddocument
Modifying font dimensions gives the most consistent look for all your fractions, but this requires your own aesthetic judgement.
Here, I changed the numerator raising dimension from 0.677 to 0.8 to give more room for long descender. I also changed the denominator dropping dimension from 0.686 to 0.8 for more even spacing both above and below the fraction bar.
Thank you for this great answer. This is very useful to know - your description of the raising and dropping parameters is very helpful. I didn't know that these font parameters could be tweaked, so knowing about this approach will help if I run into similar problems withnewpxmathtoo. Thanks again!
– palatinouser1
6 hours ago
1
@palatinouser1 The above code could be simplified todefsetSYdimens...but this turns out revealing a hidden bug innewpxmath. If weren’t for your question I would not notice this bug: Changing dimensions in the symbol font also changes dimensions in the extensible font. I will send an email to the maintainer to report this bug.
– Ruixi Zhang
6 hours ago
Very nice answer!
– Oleg Lobachev
3 hours ago
add a comment
|
The design of Palatino contains long descenders. When a math font is based Palatino, the various math font dimensions should be chosen to avoid unevenness, as much as possible.
There are many font dimensions governing the positions of numerator and denominator in a fraction. We can change two of them in newpxmath which are the most relevant.

documentclassarticle
usepackagenewpxmath
% Code modified from lmsnpxsy.fd
makeatletter
expandafterifxcsname npxmath@scaledendcsnamerelax
letnpxmath@@scaled@empty%
else
edefnpxmath@@scaleds*[csname npxmath@scaledendcsname]%
fi
DeclareFontFamilyLMSnpxsyprovidecommand setSYdimenssetSYdimensskewchar font =120
DeclareFontShapeLMSnpxsymn%
<-> npxmath@@scaled zplsy
%
fontdimen 8font=0.8fontdimen6font % was 0.677 of a quad
fontdimen11font=0.8fontdimen6font % was 0.686 of a quad
makeatother
usepackagemathtools% for clap
newcommand*drawbaseline%
claprule80pt0.4pt%
begindocument
[
begingathered
x,ydrawbaseline,z\
fracpartial xpartial t fracpartial ydrawbaselinepartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
endgathered
]
enddocument
Modifying font dimensions gives the most consistent look for all your fractions, but this requires your own aesthetic judgement.
Here, I changed the numerator raising dimension from 0.677 to 0.8 to give more room for long descender. I also changed the denominator dropping dimension from 0.686 to 0.8 for more even spacing both above and below the fraction bar.
Thank you for this great answer. This is very useful to know - your description of the raising and dropping parameters is very helpful. I didn't know that these font parameters could be tweaked, so knowing about this approach will help if I run into similar problems withnewpxmathtoo. Thanks again!
– palatinouser1
6 hours ago
1
@palatinouser1 The above code could be simplified todefsetSYdimens...but this turns out revealing a hidden bug innewpxmath. If weren’t for your question I would not notice this bug: Changing dimensions in the symbol font also changes dimensions in the extensible font. I will send an email to the maintainer to report this bug.
– Ruixi Zhang
6 hours ago
Very nice answer!
– Oleg Lobachev
3 hours ago
add a comment
|
The design of Palatino contains long descenders. When a math font is based Palatino, the various math font dimensions should be chosen to avoid unevenness, as much as possible.
There are many font dimensions governing the positions of numerator and denominator in a fraction. We can change two of them in newpxmath which are the most relevant.

documentclassarticle
usepackagenewpxmath
% Code modified from lmsnpxsy.fd
makeatletter
expandafterifxcsname npxmath@scaledendcsnamerelax
letnpxmath@@scaled@empty%
else
edefnpxmath@@scaleds*[csname npxmath@scaledendcsname]%
fi
DeclareFontFamilyLMSnpxsyprovidecommand setSYdimenssetSYdimensskewchar font =120
DeclareFontShapeLMSnpxsymn%
<-> npxmath@@scaled zplsy
%
fontdimen 8font=0.8fontdimen6font % was 0.677 of a quad
fontdimen11font=0.8fontdimen6font % was 0.686 of a quad
makeatother
usepackagemathtools% for clap
newcommand*drawbaseline%
claprule80pt0.4pt%
begindocument
[
begingathered
x,ydrawbaseline,z\
fracpartial xpartial t fracpartial ydrawbaselinepartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
endgathered
]
enddocument
Modifying font dimensions gives the most consistent look for all your fractions, but this requires your own aesthetic judgement.
Here, I changed the numerator raising dimension from 0.677 to 0.8 to give more room for long descender. I also changed the denominator dropping dimension from 0.686 to 0.8 for more even spacing both above and below the fraction bar.
The design of Palatino contains long descenders. When a math font is based Palatino, the various math font dimensions should be chosen to avoid unevenness, as much as possible.
There are many font dimensions governing the positions of numerator and denominator in a fraction. We can change two of them in newpxmath which are the most relevant.

documentclassarticle
usepackagenewpxmath
% Code modified from lmsnpxsy.fd
makeatletter
expandafterifxcsname npxmath@scaledendcsnamerelax
letnpxmath@@scaled@empty%
else
edefnpxmath@@scaleds*[csname npxmath@scaledendcsname]%
fi
DeclareFontFamilyLMSnpxsyprovidecommand setSYdimenssetSYdimensskewchar font =120
DeclareFontShapeLMSnpxsymn%
<-> npxmath@@scaled zplsy
%
fontdimen 8font=0.8fontdimen6font % was 0.677 of a quad
fontdimen11font=0.8fontdimen6font % was 0.686 of a quad
makeatother
usepackagemathtools% for clap
newcommand*drawbaseline%
claprule80pt0.4pt%
begindocument
[
begingathered
x,ydrawbaseline,z\
fracpartial xpartial t fracpartial ydrawbaselinepartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
fracpartial xpartial t fracpartial ypartial t fracpartial z_jpartial t fracpartial z_j_jpartial t\
endgathered
]
enddocument
Modifying font dimensions gives the most consistent look for all your fractions, but this requires your own aesthetic judgement.
Here, I changed the numerator raising dimension from 0.677 to 0.8 to give more room for long descender. I also changed the denominator dropping dimension from 0.686 to 0.8 for more even spacing both above and below the fraction bar.
answered 6 hours ago
Ruixi ZhangRuixi Zhang
6,3756 silver badges26 bronze badges
6,3756 silver badges26 bronze badges
Thank you for this great answer. This is very useful to know - your description of the raising and dropping parameters is very helpful. I didn't know that these font parameters could be tweaked, so knowing about this approach will help if I run into similar problems withnewpxmathtoo. Thanks again!
– palatinouser1
6 hours ago
1
@palatinouser1 The above code could be simplified todefsetSYdimens...but this turns out revealing a hidden bug innewpxmath. If weren’t for your question I would not notice this bug: Changing dimensions in the symbol font also changes dimensions in the extensible font. I will send an email to the maintainer to report this bug.
– Ruixi Zhang
6 hours ago
Very nice answer!
– Oleg Lobachev
3 hours ago
add a comment
|
Thank you for this great answer. This is very useful to know - your description of the raising and dropping parameters is very helpful. I didn't know that these font parameters could be tweaked, so knowing about this approach will help if I run into similar problems withnewpxmathtoo. Thanks again!
– palatinouser1
6 hours ago
1
@palatinouser1 The above code could be simplified todefsetSYdimens...but this turns out revealing a hidden bug innewpxmath. If weren’t for your question I would not notice this bug: Changing dimensions in the symbol font also changes dimensions in the extensible font. I will send an email to the maintainer to report this bug.
– Ruixi Zhang
6 hours ago
Very nice answer!
– Oleg Lobachev
3 hours ago
Thank you for this great answer. This is very useful to know - your description of the raising and dropping parameters is very helpful. I didn't know that these font parameters could be tweaked, so knowing about this approach will help if I run into similar problems with
newpxmath too. Thanks again!– palatinouser1
6 hours ago
Thank you for this great answer. This is very useful to know - your description of the raising and dropping parameters is very helpful. I didn't know that these font parameters could be tweaked, so knowing about this approach will help if I run into similar problems with
newpxmath too. Thanks again!– palatinouser1
6 hours ago
1
1
@palatinouser1 The above code could be simplified to
defsetSYdimens... but this turns out revealing a hidden bug in newpxmath. If weren’t for your question I would not notice this bug: Changing dimensions in the symbol font also changes dimensions in the extensible font. I will send an email to the maintainer to report this bug.– Ruixi Zhang
6 hours ago
@palatinouser1 The above code could be simplified to
defsetSYdimens... but this turns out revealing a hidden bug in newpxmath. If weren’t for your question I would not notice this bug: Changing dimensions in the symbol font also changes dimensions in the extensible font. I will send an email to the maintainer to report this bug.– Ruixi Zhang
6 hours ago
Very nice answer!
– Oleg Lobachev
3 hours ago
Very nice answer!
– Oleg Lobachev
3 hours ago
add a comment
|
palatinouser1 is a new contributor. Be nice, and check out our Code of Conduct.
palatinouser1 is a new contributor. Be nice, and check out our Code of Conduct.
palatinouser1 is a new contributor. Be nice, and check out our Code of Conduct.
palatinouser1 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f509072%2fpalatino-font-newpxmath-misaligns-text-in-fraction-numerators%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The “aligned at baseline” for default Computer Modern fonts is by accident. If you try
fracpartial z_j_jpartial tthe numerator would be shifted upward too.– Ruixi Zhang
7 hours ago
Aha, that's interesting! So the behaviour in the example is because Palatino has longer "tails" under letters than Computer Modern, and this forces LaTeX to shift them upwards in more situations? Maybe the best solution would be to define a "blfrac" function, that inserts something like
vphantomA^A j_jautomatically. [EDIT: I would be happy to accept this as an answer btw, if it's the most LaTeX-onic way of doing it - would you like to post it, for the points? :-) ]– palatinouser1
7 hours ago
I am exploring other alternatives. You are correct that Palatino has longer descender since it is based on calligraphy. But the downside is that it can look uneven (the
partial xandpartial yare not on the same baseline either). I would say this is due to the (not-so-well) design ofnewpxmath, so I think we can play with font dimensions here…– Ruixi Zhang
7 hours ago