Using mt2pro with times: PARENS{…} vs left(…right)Automatic left and right commandsWide accents in Times...
Why must traveling waves have the same amplitude to form a standing wave?
US to Europe trip with Canada layover- is 52 minutes enough?
What is the definition of "Natural Selection"?
Ban on all campaign finance?
Time travel short story where dinosaur doesn't taste like chicken
If Invisibility ends because the original caster casts a non-concentration spell, does Invisibility also end on other targets of the original casting?
Co-worker team leader wants to inject the crap software product of his friends into our development. What should I say to our common boss?
Running a subshell from the middle of the current command
Why don't MCU characters ever seem to have language issues?
Decoding assembly instructions in a Game Boy disassembler
How does Dispel Magic work against Stoneskin?
When were linguistics departments first established
My adviser wants to be the first author
Want to switch to tankless, but can I use my existing wiring?
Making a sword in the stone, in a medieval world without magic
What wound would be of little consequence to a biped but terrible for a quadruped?
How could a female member of a species produce eggs unto death?
What Happens when Passenger Refuses to Fly Boeing 737 Max?
Is it true that real estate prices mainly go up?
Can someone explain this Mudra being done by Ramakrishna Paramhansa in Samadhi?
Good allowance savings plan?
Can "semicircle" be used to refer to a part-circle that is not a exact half-circle?
Should QA ask requirements to developers?
What is the difference between "shut" and "close"?
Using mt2pro with times: PARENS{…} vs left(…right)
Automatic left and right commandsWide accents in Times font are not positioned correctlyOld style numerals using times and mtpro2Times New Roman font with TeXnicCenterUsing Times New RomanHow to change hslash into Times-Roman font?Modify characters of mt2pro[lite] using TimesAdjusting the size of rightleftarrows in mathmode with mt2pro[lite]Blank space with left[ and right]Environment left| right| and left( right) not working properly with fourier package
If I use the command PARENS{.....}
with mtpro2
(green color into the figure in attachment) for to obtain a perfect brace curve (round bracket) I have 1 (one) problem:
the first and the second line of the fractions of the first equal are aligned and they have the same thick (you can see the two red rectangles).
But the line of the third fraction (green color) is not perfectly aligned with the previous fractions (infact two are below and the third is above) and the thick is different of the previous red fractions. To create a correct fraction with the two parens at the same distance with the command PARENS{.....}
, using the package mtpro2
, I have added a matrix
, the command phantom{Z}
and hspace{-.3cm}
(you can see the green color).
Is there a different idea or solution to obtain of the perfect aligned fractions, with the same thick and perfect PARENS (...)
(round brackets) so as when I use the command left(....right)
?
documentclass[12pt]{book}
usepackage{times}
usepackage[lite]{mtpro2}
usepackage{classico}
usepackage{mathtools}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begin{equation}
begin{aligned}
overline F =frac{doverline p}{dt}&=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}}frac{doverline u}{dt}+moverline uPARENS{begin{matrix}phantom{Z}&\
dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}} hspace{-.3cm}end{matrix}}=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}},overline a +frac{overline u}{c^2}frac{d}{dt}left(dfrac{mc^2}{sqrt{1-dfrac{u^2}{c^2}}}right)\
end{aligned}
end{equation}
end{document}
brackets fractions times mtpro
add a comment |
If I use the command PARENS{.....}
with mtpro2
(green color into the figure in attachment) for to obtain a perfect brace curve (round bracket) I have 1 (one) problem:
the first and the second line of the fractions of the first equal are aligned and they have the same thick (you can see the two red rectangles).
But the line of the third fraction (green color) is not perfectly aligned with the previous fractions (infact two are below and the third is above) and the thick is different of the previous red fractions. To create a correct fraction with the two parens at the same distance with the command PARENS{.....}
, using the package mtpro2
, I have added a matrix
, the command phantom{Z}
and hspace{-.3cm}
(you can see the green color).
Is there a different idea or solution to obtain of the perfect aligned fractions, with the same thick and perfect PARENS (...)
(round brackets) so as when I use the command left(....right)
?
documentclass[12pt]{book}
usepackage{times}
usepackage[lite]{mtpro2}
usepackage{classico}
usepackage{mathtools}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begin{equation}
begin{aligned}
overline F =frac{doverline p}{dt}&=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}}frac{doverline u}{dt}+moverline uPARENS{begin{matrix}phantom{Z}&\
dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}} hspace{-.3cm}end{matrix}}=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}},overline a +frac{overline u}{c^2}frac{d}{dt}left(dfrac{mc^2}{sqrt{1-dfrac{u^2}{c^2}}}right)\
end{aligned}
end{equation}
end{document}
brackets fractions times mtpro
3
Good question with a probably disappointing answer: the code forPARENS
is a big collection of low level hacks and fixing that issue would mean add some more after a few days' work (assuming a solution can be found in a finite amount of time).
– egreg
Jan 19 '18 at 7:34
Thanks a lot, always, for your comments. I never imagined that there were such problems.
– Sebastiano
Jan 19 '18 at 7:36
2
To the downvoter: If you do not explain/comment why the question is wrong, the downvote itself is meaningless.
– yo'
Jan 21 '18 at 20:39
add a comment |
If I use the command PARENS{.....}
with mtpro2
(green color into the figure in attachment) for to obtain a perfect brace curve (round bracket) I have 1 (one) problem:
the first and the second line of the fractions of the first equal are aligned and they have the same thick (you can see the two red rectangles).
But the line of the third fraction (green color) is not perfectly aligned with the previous fractions (infact two are below and the third is above) and the thick is different of the previous red fractions. To create a correct fraction with the two parens at the same distance with the command PARENS{.....}
, using the package mtpro2
, I have added a matrix
, the command phantom{Z}
and hspace{-.3cm}
(you can see the green color).
Is there a different idea or solution to obtain of the perfect aligned fractions, with the same thick and perfect PARENS (...)
(round brackets) so as when I use the command left(....right)
?
documentclass[12pt]{book}
usepackage{times}
usepackage[lite]{mtpro2}
usepackage{classico}
usepackage{mathtools}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begin{equation}
begin{aligned}
overline F =frac{doverline p}{dt}&=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}}frac{doverline u}{dt}+moverline uPARENS{begin{matrix}phantom{Z}&\
dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}} hspace{-.3cm}end{matrix}}=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}},overline a +frac{overline u}{c^2}frac{d}{dt}left(dfrac{mc^2}{sqrt{1-dfrac{u^2}{c^2}}}right)\
end{aligned}
end{equation}
end{document}
brackets fractions times mtpro
If I use the command PARENS{.....}
with mtpro2
(green color into the figure in attachment) for to obtain a perfect brace curve (round bracket) I have 1 (one) problem:
the first and the second line of the fractions of the first equal are aligned and they have the same thick (you can see the two red rectangles).
But the line of the third fraction (green color) is not perfectly aligned with the previous fractions (infact two are below and the third is above) and the thick is different of the previous red fractions. To create a correct fraction with the two parens at the same distance with the command PARENS{.....}
, using the package mtpro2
, I have added a matrix
, the command phantom{Z}
and hspace{-.3cm}
(you can see the green color).
Is there a different idea or solution to obtain of the perfect aligned fractions, with the same thick and perfect PARENS (...)
(round brackets) so as when I use the command left(....right)
?
documentclass[12pt]{book}
usepackage{times}
usepackage[lite]{mtpro2}
usepackage{classico}
usepackage{mathtools}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
begin{equation}
begin{aligned}
overline F =frac{doverline p}{dt}&=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}}frac{doverline u}{dt}+moverline uPARENS{begin{matrix}phantom{Z}&\
dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}} hspace{-.3cm}end{matrix}}=\
&=frac{m}{sqrt{1-dfrac{u^2}{c^2}}},overline a +frac{overline u}{c^2}frac{d}{dt}left(dfrac{mc^2}{sqrt{1-dfrac{u^2}{c^2}}}right)\
end{aligned}
end{equation}
end{document}
brackets fractions times mtpro
brackets fractions times mtpro
edited Jan 19 '18 at 20:41
Sebastiano
asked Jan 19 '18 at 7:16
SebastianoSebastiano
10.8k42163
10.8k42163
3
Good question with a probably disappointing answer: the code forPARENS
is a big collection of low level hacks and fixing that issue would mean add some more after a few days' work (assuming a solution can be found in a finite amount of time).
– egreg
Jan 19 '18 at 7:34
Thanks a lot, always, for your comments. I never imagined that there were such problems.
– Sebastiano
Jan 19 '18 at 7:36
2
To the downvoter: If you do not explain/comment why the question is wrong, the downvote itself is meaningless.
– yo'
Jan 21 '18 at 20:39
add a comment |
3
Good question with a probably disappointing answer: the code forPARENS
is a big collection of low level hacks and fixing that issue would mean add some more after a few days' work (assuming a solution can be found in a finite amount of time).
– egreg
Jan 19 '18 at 7:34
Thanks a lot, always, for your comments. I never imagined that there were such problems.
– Sebastiano
Jan 19 '18 at 7:36
2
To the downvoter: If you do not explain/comment why the question is wrong, the downvote itself is meaningless.
– yo'
Jan 21 '18 at 20:39
3
3
Good question with a probably disappointing answer: the code for
PARENS
is a big collection of low level hacks and fixing that issue would mean add some more after a few days' work (assuming a solution can be found in a finite amount of time).– egreg
Jan 19 '18 at 7:34
Good question with a probably disappointing answer: the code for
PARENS
is a big collection of low level hacks and fixing that issue would mean add some more after a few days' work (assuming a solution can be found in a finite amount of time).– egreg
Jan 19 '18 at 7:34
Thanks a lot, always, for your comments. I never imagined that there were such problems.
– Sebastiano
Jan 19 '18 at 7:36
Thanks a lot, always, for your comments. I never imagined that there were such problems.
– Sebastiano
Jan 19 '18 at 7:36
2
2
To the downvoter: If you do not explain/comment why the question is wrong, the downvote itself is meaningless.
– yo'
Jan 21 '18 at 20:39
To the downvoter: If you do not explain/comment why the question is wrong, the downvote itself is meaningless.
– yo'
Jan 21 '18 at 20:39
add a comment |
1 Answer
1
active
oldest
votes
The thickness just appears to be different (probably due to how each pixel is rendered on screen). It should be fine if you print them out.
The PARENS
command puts its content in a vcenter
, thus, it will ignore the positioning of its baseline and the surrounding baseline. We can use some low-level box tricks to make the content symmetric with respect to the math axis, so that the two baselines are the same. The new command is called symmPARENS
.
documentclass[12pt]{book}
usepackage{mathtools} % Load this early
%usepackage{times}
usepackage{newtxtext} % This is better :)
usepackage[lite]{mtpro2}
% Low-level hacks:
makeatletter
newsaveboxmtp@symm@box % The box to be made symmetric
% User level command:
newcommand*symmPARENS[1]{%
setboxmtp@symm@boxhbox{$m@thdisplaystyle#1$}%
dimen@dpmtp@symm@box
advancedimen@fontdimen22textfonttw@ % dimen@ is the length from the math axis to the bottom
dimen@iihtmtp@symm@box
advancedimen@ii-fontdimen22textfonttw@ % dimen@ii is the length from the math axis to the top
ifdimdimen@>dimen@ii
advancedimen@fontdimen22textfonttw@
htmtp@symm@boxdimen@ % Make mtp@symm@box higher
else
advancedimen@ii-fontdimen22textfonttw@
dpmtp@symm@boxdimen@ii % Make mtp@symm@box deeper
fi
PARENS{copymtp@symm@box}%
}
makeatother
begin{document}
noindent
With verb|PARENS|, not so good:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} PARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
With verb|symmPARENS|, centered, but not aesthetically pleasing:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} symmPARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
Why not:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= gamma m frac{d wbar{u}}{dt}
+ gamma m wbar{u},
quad text{where } gamma = dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}
end{equation}
Please don't abuse verb|symmPARENS|:
begin{equation}
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{displaystyleint_a^b f(x) , dx}{b-a}}
text{ versus }
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{1}{b-a} displaystyleint_a^b f(x) , dx}
end{equation}
end{document}
Seriously, though, I would just write Eq. (3) instead.
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/3.0/"u003ecc by-sa 3.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
});
}
});
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%2f411095%2fusing-mt2pro-with-times-parens-vs-left-right%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 thickness just appears to be different (probably due to how each pixel is rendered on screen). It should be fine if you print them out.
The PARENS
command puts its content in a vcenter
, thus, it will ignore the positioning of its baseline and the surrounding baseline. We can use some low-level box tricks to make the content symmetric with respect to the math axis, so that the two baselines are the same. The new command is called symmPARENS
.
documentclass[12pt]{book}
usepackage{mathtools} % Load this early
%usepackage{times}
usepackage{newtxtext} % This is better :)
usepackage[lite]{mtpro2}
% Low-level hacks:
makeatletter
newsaveboxmtp@symm@box % The box to be made symmetric
% User level command:
newcommand*symmPARENS[1]{%
setboxmtp@symm@boxhbox{$m@thdisplaystyle#1$}%
dimen@dpmtp@symm@box
advancedimen@fontdimen22textfonttw@ % dimen@ is the length from the math axis to the bottom
dimen@iihtmtp@symm@box
advancedimen@ii-fontdimen22textfonttw@ % dimen@ii is the length from the math axis to the top
ifdimdimen@>dimen@ii
advancedimen@fontdimen22textfonttw@
htmtp@symm@boxdimen@ % Make mtp@symm@box higher
else
advancedimen@ii-fontdimen22textfonttw@
dpmtp@symm@boxdimen@ii % Make mtp@symm@box deeper
fi
PARENS{copymtp@symm@box}%
}
makeatother
begin{document}
noindent
With verb|PARENS|, not so good:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} PARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
With verb|symmPARENS|, centered, but not aesthetically pleasing:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} symmPARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
Why not:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= gamma m frac{d wbar{u}}{dt}
+ gamma m wbar{u},
quad text{where } gamma = dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}
end{equation}
Please don't abuse verb|symmPARENS|:
begin{equation}
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{displaystyleint_a^b f(x) , dx}{b-a}}
text{ versus }
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{1}{b-a} displaystyleint_a^b f(x) , dx}
end{equation}
end{document}
Seriously, though, I would just write Eq. (3) instead.
add a comment |
The thickness just appears to be different (probably due to how each pixel is rendered on screen). It should be fine if you print them out.
The PARENS
command puts its content in a vcenter
, thus, it will ignore the positioning of its baseline and the surrounding baseline. We can use some low-level box tricks to make the content symmetric with respect to the math axis, so that the two baselines are the same. The new command is called symmPARENS
.
documentclass[12pt]{book}
usepackage{mathtools} % Load this early
%usepackage{times}
usepackage{newtxtext} % This is better :)
usepackage[lite]{mtpro2}
% Low-level hacks:
makeatletter
newsaveboxmtp@symm@box % The box to be made symmetric
% User level command:
newcommand*symmPARENS[1]{%
setboxmtp@symm@boxhbox{$m@thdisplaystyle#1$}%
dimen@dpmtp@symm@box
advancedimen@fontdimen22textfonttw@ % dimen@ is the length from the math axis to the bottom
dimen@iihtmtp@symm@box
advancedimen@ii-fontdimen22textfonttw@ % dimen@ii is the length from the math axis to the top
ifdimdimen@>dimen@ii
advancedimen@fontdimen22textfonttw@
htmtp@symm@boxdimen@ % Make mtp@symm@box higher
else
advancedimen@ii-fontdimen22textfonttw@
dpmtp@symm@boxdimen@ii % Make mtp@symm@box deeper
fi
PARENS{copymtp@symm@box}%
}
makeatother
begin{document}
noindent
With verb|PARENS|, not so good:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} PARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
With verb|symmPARENS|, centered, but not aesthetically pleasing:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} symmPARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
Why not:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= gamma m frac{d wbar{u}}{dt}
+ gamma m wbar{u},
quad text{where } gamma = dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}
end{equation}
Please don't abuse verb|symmPARENS|:
begin{equation}
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{displaystyleint_a^b f(x) , dx}{b-a}}
text{ versus }
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{1}{b-a} displaystyleint_a^b f(x) , dx}
end{equation}
end{document}
Seriously, though, I would just write Eq. (3) instead.
add a comment |
The thickness just appears to be different (probably due to how each pixel is rendered on screen). It should be fine if you print them out.
The PARENS
command puts its content in a vcenter
, thus, it will ignore the positioning of its baseline and the surrounding baseline. We can use some low-level box tricks to make the content symmetric with respect to the math axis, so that the two baselines are the same. The new command is called symmPARENS
.
documentclass[12pt]{book}
usepackage{mathtools} % Load this early
%usepackage{times}
usepackage{newtxtext} % This is better :)
usepackage[lite]{mtpro2}
% Low-level hacks:
makeatletter
newsaveboxmtp@symm@box % The box to be made symmetric
% User level command:
newcommand*symmPARENS[1]{%
setboxmtp@symm@boxhbox{$m@thdisplaystyle#1$}%
dimen@dpmtp@symm@box
advancedimen@fontdimen22textfonttw@ % dimen@ is the length from the math axis to the bottom
dimen@iihtmtp@symm@box
advancedimen@ii-fontdimen22textfonttw@ % dimen@ii is the length from the math axis to the top
ifdimdimen@>dimen@ii
advancedimen@fontdimen22textfonttw@
htmtp@symm@boxdimen@ % Make mtp@symm@box higher
else
advancedimen@ii-fontdimen22textfonttw@
dpmtp@symm@boxdimen@ii % Make mtp@symm@box deeper
fi
PARENS{copymtp@symm@box}%
}
makeatother
begin{document}
noindent
With verb|PARENS|, not so good:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} PARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
With verb|symmPARENS|, centered, but not aesthetically pleasing:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} symmPARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
Why not:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= gamma m frac{d wbar{u}}{dt}
+ gamma m wbar{u},
quad text{where } gamma = dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}
end{equation}
Please don't abuse verb|symmPARENS|:
begin{equation}
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{displaystyleint_a^b f(x) , dx}{b-a}}
text{ versus }
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{1}{b-a} displaystyleint_a^b f(x) , dx}
end{equation}
end{document}
Seriously, though, I would just write Eq. (3) instead.
The thickness just appears to be different (probably due to how each pixel is rendered on screen). It should be fine if you print them out.
The PARENS
command puts its content in a vcenter
, thus, it will ignore the positioning of its baseline and the surrounding baseline. We can use some low-level box tricks to make the content symmetric with respect to the math axis, so that the two baselines are the same. The new command is called symmPARENS
.
documentclass[12pt]{book}
usepackage{mathtools} % Load this early
%usepackage{times}
usepackage{newtxtext} % This is better :)
usepackage[lite]{mtpro2}
% Low-level hacks:
makeatletter
newsaveboxmtp@symm@box % The box to be made symmetric
% User level command:
newcommand*symmPARENS[1]{%
setboxmtp@symm@boxhbox{$m@thdisplaystyle#1$}%
dimen@dpmtp@symm@box
advancedimen@fontdimen22textfonttw@ % dimen@ is the length from the math axis to the bottom
dimen@iihtmtp@symm@box
advancedimen@ii-fontdimen22textfonttw@ % dimen@ii is the length from the math axis to the top
ifdimdimen@>dimen@ii
advancedimen@fontdimen22textfonttw@
htmtp@symm@boxdimen@ % Make mtp@symm@box higher
else
advancedimen@ii-fontdimen22textfonttw@
dpmtp@symm@boxdimen@ii % Make mtp@symm@box deeper
fi
PARENS{copymtp@symm@box}%
}
makeatother
begin{document}
noindent
With verb|PARENS|, not so good:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} PARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
With verb|symmPARENS|, centered, but not aesthetically pleasing:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= frac{m}{sqrt{1-dfrac{u^2}{c^2}}} frac{d wbar{u}}{dt}
+ m wbar{u} symmPARENS{dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}}
end{equation}
Why not:
begin{equation}
wbar{F} = frac{d wbar{p}}{dt}
= gamma m frac{d wbar{u}}{dt}
+ gamma m wbar{u},
quad text{where } gamma = dfrac{1}{sqrt{1-dfrac{u^2}{c^2}}}
end{equation}
Please don't abuse verb|symmPARENS|:
begin{equation}
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{displaystyleint_a^b f(x) , dx}{b-a}}
text{ versus }
frac{1}{2} f(xi) = frac{1}{2} symmPARENS{frac{1}{b-a} displaystyleint_a^b f(x) , dx}
end{equation}
end{document}
Seriously, though, I would just write Eq. (3) instead.
answered 2 mins ago
Ruixi ZhangRuixi Zhang
5,613322
5,613322
add a comment |
add a comment |
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%2f411095%2fusing-mt2pro-with-times-parens-vs-left-right%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
3
Good question with a probably disappointing answer: the code for
PARENS
is a big collection of low level hacks and fixing that issue would mean add some more after a few days' work (assuming a solution can be found in a finite amount of time).– egreg
Jan 19 '18 at 7:34
Thanks a lot, always, for your comments. I never imagined that there were such problems.
– Sebastiano
Jan 19 '18 at 7:36
2
To the downvoter: If you do not explain/comment why the question is wrong, the downvote itself is meaningless.
– yo'
Jan 21 '18 at 20:39