Math Time ProfessionalRedefining left right“Well-formed” LaTeX?Math display helpmtpro2 and...
Why can Carol Danvers change her suit colours in the first place?
Is there any references on the tensor product of presentable (1-)categories?
Reverse int within the 32-bit signed integer range: [−2^31, 2^31 − 1]
What was this official D&D 3.5e Lovecraft-flavored rulebook?
New brakes for 90s road bike
L1 and Ln cache: when are they written?
What are the purposes of autoencoders?
On a tidally locked planet, would time be quantized?
Why did the Mercure fail?
A social experiment. What is the worst that can happen?
Why is it that I can sometimes guess the next note?
Freedom of speech and where it applies
Has any country ever had 2 former presidents in jail simultaneously?
Terse Method to Swap Lowest for Highest?
What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?
It grows, but water kills it
What does routing an IP address mean?
How do you make your own symbol when Detexify fails?
How should I respond when I lied about my education and the company finds out through background check?
is this legal and f i dont come up with extra money is the deal off
Pre-mixing cryogenic fuels and using only one fuel tank
Added a new user on Ubuntu, set password not working?
Multiplicative persistence
dpdt switch to spst switch
Math Time Professional
Redefining left right“Well-formed” LaTeX?Math display helpmtpro2 and unicode-mathOne-liner for removing characters from a stringImproper alphabetic constant with systeme“ File ended while scanning use of next…” causes by the use of a multilines newcommandUsing bold math with mtpro2 liteRedefining left rightnewcommand to define a function such as #1colonmathcal{#2}rightarrowmathcal{#3}Overwrite dcases* to work inside align (to use mtpro2 braces)
In Math Time Professional, one needs to use
ccases{}
instead of
begin{cases}
end{cases}
in order to obtain (beautiful) curly braces. Is it possible to to use begin{cases} end{cases} as a new command and obtain ccases{}?
Thanks for your help
macros mtpro
add a comment |
In Math Time Professional, one needs to use
ccases{}
instead of
begin{cases}
end{cases}
in order to obtain (beautiful) curly braces. Is it possible to to use begin{cases} end{cases} as a new command and obtain ccases{}?
Thanks for your help
macros mtpro
The objective of your query isn't entirely clear. Are you asking if it's possible to emulate the beautiful curly braces produced byccases{...}with a math font other thanmtpro2? Something else? Please clarify.
– Mico
Apr 27 '18 at 15:11
@Mico I read the question as, the OP likes the syntax of an environment, rather than a macro, so how to generate an environment that calls upon theccasesmacro.
– Steven B. Segletes
Apr 27 '18 at 15:40
add a comment |
In Math Time Professional, one needs to use
ccases{}
instead of
begin{cases}
end{cases}
in order to obtain (beautiful) curly braces. Is it possible to to use begin{cases} end{cases} as a new command and obtain ccases{}?
Thanks for your help
macros mtpro
In Math Time Professional, one needs to use
ccases{}
instead of
begin{cases}
end{cases}
in order to obtain (beautiful) curly braces. Is it possible to to use begin{cases} end{cases} as a new command and obtain ccases{}?
Thanks for your help
macros mtpro
macros mtpro
edited Apr 27 '18 at 21:27
Sebastiano
11.1k42164
11.1k42164
asked Apr 27 '18 at 14:43
MO BMO B
646
646
The objective of your query isn't entirely clear. Are you asking if it's possible to emulate the beautiful curly braces produced byccases{...}with a math font other thanmtpro2? Something else? Please clarify.
– Mico
Apr 27 '18 at 15:11
@Mico I read the question as, the OP likes the syntax of an environment, rather than a macro, so how to generate an environment that calls upon theccasesmacro.
– Steven B. Segletes
Apr 27 '18 at 15:40
add a comment |
The objective of your query isn't entirely clear. Are you asking if it's possible to emulate the beautiful curly braces produced byccases{...}with a math font other thanmtpro2? Something else? Please clarify.
– Mico
Apr 27 '18 at 15:11
@Mico I read the question as, the OP likes the syntax of an environment, rather than a macro, so how to generate an environment that calls upon theccasesmacro.
– Steven B. Segletes
Apr 27 '18 at 15:40
The objective of your query isn't entirely clear. Are you asking if it's possible to emulate the beautiful curly braces produced by
ccases{...} with a math font other than mtpro2? Something else? Please clarify.– Mico
Apr 27 '18 at 15:11
The objective of your query isn't entirely clear. Are you asking if it's possible to emulate the beautiful curly braces produced by
ccases{...} with a math font other than mtpro2? Something else? Please clarify.– Mico
Apr 27 '18 at 15:11
@Mico I read the question as, the OP likes the syntax of an environment, rather than a macro, so how to generate an environment that calls upon the
ccases macro.– Steven B. Segletes
Apr 27 '18 at 15:40
@Mico I read the question as, the OP likes the syntax of an environment, rather than a macro, so how to generate an environment that calls upon the
ccases macro.– Steven B. Segletes
Apr 27 '18 at 15:40
add a comment |
2 Answers
2
active
oldest
votes
I don't have MTPro, but I presume the approach would be as follows:
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y = begin{Cases}x_1 & text{first choice}\x_2& text{second choice}end{Cases}
]
end{document}
I use a newly defined Cases, so as not to obliterate the original cases environment.
ADDENDUM
To address a follow up question of the OP, I introduce Left and Right (as as not to obliterate left and right)
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
providecommandPARENS[1]{left(#1right)}
%
defLeft#1#2Right#3{
ifx(#1PARENS{#2}else
% ifx[#1BRACKETS{#2}else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y =
begin{Cases}
Left(dfrac{x_1}{3}Right) & text{first choice}\
x_2& text{second choice}
end{Cases}
]
end{document}

1
Perhapsprovidecommandwould avoid the need to delete the line if MTPro is loaded...
– Andrew Swann
Apr 27 '18 at 15:02
Dear @Steven: Many many thanks for your solution.
– MO B
Apr 27 '18 at 15:28
Dear @Steven: Could you please tell me how I can do the same thing for left( and right) since in MTPro this is replaced with PARENS{}
– MO B
Apr 27 '18 at 15:33
@MOB It is not exactly clear what you ask. If you are saying that, in MTPro, one just uses normal parens and the size takes care of itself, then just use normal parens. On the other hand, if you are asking, how to deal with code that is written usingleftandright, without manually going in and deleting all those references, then perhapsletleftrelaxandletrightrelaxmight work, by disabling their function.
– Steven B. Segletes
Apr 27 '18 at 15:37
What I mean is the following: I want to define a macro to get $left( Math right)$ and produces $PARENS{Math}$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
Another little code that could help you with the matrices.

documentclass[12pt]{book}
usepackage{mathtools}
usepackage{newtxtext}
usepackage[lite]{mtpro2}
begin{document}
[
z=begin{cases}
PARENS{begin{matrix}
frac{5}{3} \
end{matrix}} & text{ nice curly bracket }\
b & text{ I have not used a matrix }
end{cases}
]
end{document}
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%2f428873%2fmath-time-professional%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I don't have MTPro, but I presume the approach would be as follows:
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y = begin{Cases}x_1 & text{first choice}\x_2& text{second choice}end{Cases}
]
end{document}
I use a newly defined Cases, so as not to obliterate the original cases environment.
ADDENDUM
To address a follow up question of the OP, I introduce Left and Right (as as not to obliterate left and right)
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
providecommandPARENS[1]{left(#1right)}
%
defLeft#1#2Right#3{
ifx(#1PARENS{#2}else
% ifx[#1BRACKETS{#2}else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y =
begin{Cases}
Left(dfrac{x_1}{3}Right) & text{first choice}\
x_2& text{second choice}
end{Cases}
]
end{document}

1
Perhapsprovidecommandwould avoid the need to delete the line if MTPro is loaded...
– Andrew Swann
Apr 27 '18 at 15:02
Dear @Steven: Many many thanks for your solution.
– MO B
Apr 27 '18 at 15:28
Dear @Steven: Could you please tell me how I can do the same thing for left( and right) since in MTPro this is replaced with PARENS{}
– MO B
Apr 27 '18 at 15:33
@MOB It is not exactly clear what you ask. If you are saying that, in MTPro, one just uses normal parens and the size takes care of itself, then just use normal parens. On the other hand, if you are asking, how to deal with code that is written usingleftandright, without manually going in and deleting all those references, then perhapsletleftrelaxandletrightrelaxmight work, by disabling their function.
– Steven B. Segletes
Apr 27 '18 at 15:37
What I mean is the following: I want to define a macro to get $left( Math right)$ and produces $PARENS{Math}$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
I don't have MTPro, but I presume the approach would be as follows:
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y = begin{Cases}x_1 & text{first choice}\x_2& text{second choice}end{Cases}
]
end{document}
I use a newly defined Cases, so as not to obliterate the original cases environment.
ADDENDUM
To address a follow up question of the OP, I introduce Left and Right (as as not to obliterate left and right)
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
providecommandPARENS[1]{left(#1right)}
%
defLeft#1#2Right#3{
ifx(#1PARENS{#2}else
% ifx[#1BRACKETS{#2}else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y =
begin{Cases}
Left(dfrac{x_1}{3}Right) & text{first choice}\
x_2& text{second choice}
end{Cases}
]
end{document}

1
Perhapsprovidecommandwould avoid the need to delete the line if MTPro is loaded...
– Andrew Swann
Apr 27 '18 at 15:02
Dear @Steven: Many many thanks for your solution.
– MO B
Apr 27 '18 at 15:28
Dear @Steven: Could you please tell me how I can do the same thing for left( and right) since in MTPro this is replaced with PARENS{}
– MO B
Apr 27 '18 at 15:33
@MOB It is not exactly clear what you ask. If you are saying that, in MTPro, one just uses normal parens and the size takes care of itself, then just use normal parens. On the other hand, if you are asking, how to deal with code that is written usingleftandright, without manually going in and deleting all those references, then perhapsletleftrelaxandletrightrelaxmight work, by disabling their function.
– Steven B. Segletes
Apr 27 '18 at 15:37
What I mean is the following: I want to define a macro to get $left( Math right)$ and produces $PARENS{Math}$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
I don't have MTPro, but I presume the approach would be as follows:
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y = begin{Cases}x_1 & text{first choice}\x_2& text{second choice}end{Cases}
]
end{document}
I use a newly defined Cases, so as not to obliterate the original cases environment.
ADDENDUM
To address a follow up question of the OP, I introduce Left and Right (as as not to obliterate left and right)
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
providecommandPARENS[1]{left(#1right)}
%
defLeft#1#2Right#3{
ifx(#1PARENS{#2}else
% ifx[#1BRACKETS{#2}else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y =
begin{Cases}
Left(dfrac{x_1}{3}Right) & text{first choice}\
x_2& text{second choice}
end{Cases}
]
end{document}

I don't have MTPro, but I presume the approach would be as follows:
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y = begin{Cases}x_1 & text{first choice}\x_2& text{second choice}end{Cases}
]
end{document}
I use a newly defined Cases, so as not to obliterate the original cases environment.
ADDENDUM
To address a follow up question of the OP, I introduce Left and Right (as as not to obliterate left and right)
documentclass{article}
usepackage{amsmath,environ}
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]{begin{cases}#1end{cases}}
providecommandPARENS[1]{left(#1right)}
%
defLeft#1#2Right#3{
ifx(#1PARENS{#2}else
% ifx[#1BRACKETS{#2}else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
}
NewEnviron{Cases}{ccases{BODY}}
begin{document}
[
y =
begin{Cases}
Left(dfrac{x_1}{3}Right) & text{first choice}\
x_2& text{second choice}
end{Cases}
]
end{document}

edited Apr 27 '18 at 16:07
answered Apr 27 '18 at 14:46
Steven B. SegletesSteven B. Segletes
159k9204412
159k9204412
1
Perhapsprovidecommandwould avoid the need to delete the line if MTPro is loaded...
– Andrew Swann
Apr 27 '18 at 15:02
Dear @Steven: Many many thanks for your solution.
– MO B
Apr 27 '18 at 15:28
Dear @Steven: Could you please tell me how I can do the same thing for left( and right) since in MTPro this is replaced with PARENS{}
– MO B
Apr 27 '18 at 15:33
@MOB It is not exactly clear what you ask. If you are saying that, in MTPro, one just uses normal parens and the size takes care of itself, then just use normal parens. On the other hand, if you are asking, how to deal with code that is written usingleftandright, without manually going in and deleting all those references, then perhapsletleftrelaxandletrightrelaxmight work, by disabling their function.
– Steven B. Segletes
Apr 27 '18 at 15:37
What I mean is the following: I want to define a macro to get $left( Math right)$ and produces $PARENS{Math}$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
1
Perhapsprovidecommandwould avoid the need to delete the line if MTPro is loaded...
– Andrew Swann
Apr 27 '18 at 15:02
Dear @Steven: Many many thanks for your solution.
– MO B
Apr 27 '18 at 15:28
Dear @Steven: Could you please tell me how I can do the same thing for left( and right) since in MTPro this is replaced with PARENS{}
– MO B
Apr 27 '18 at 15:33
@MOB It is not exactly clear what you ask. If you are saying that, in MTPro, one just uses normal parens and the size takes care of itself, then just use normal parens. On the other hand, if you are asking, how to deal with code that is written usingleftandright, without manually going in and deleting all those references, then perhapsletleftrelaxandletrightrelaxmight work, by disabling their function.
– Steven B. Segletes
Apr 27 '18 at 15:37
What I mean is the following: I want to define a macro to get $left( Math right)$ and produces $PARENS{Math}$
– MO B
Apr 27 '18 at 15:41
1
1
Perhaps
providecommand would avoid the need to delete the line if MTPro is loaded...– Andrew Swann
Apr 27 '18 at 15:02
Perhaps
providecommand would avoid the need to delete the line if MTPro is loaded...– Andrew Swann
Apr 27 '18 at 15:02
Dear @Steven: Many many thanks for your solution.
– MO B
Apr 27 '18 at 15:28
Dear @Steven: Many many thanks for your solution.
– MO B
Apr 27 '18 at 15:28
Dear @Steven: Could you please tell me how I can do the same thing for left( and right) since in MTPro this is replaced with PARENS{}
– MO B
Apr 27 '18 at 15:33
Dear @Steven: Could you please tell me how I can do the same thing for left( and right) since in MTPro this is replaced with PARENS{}
– MO B
Apr 27 '18 at 15:33
@MOB It is not exactly clear what you ask. If you are saying that, in MTPro, one just uses normal parens and the size takes care of itself, then just use normal parens. On the other hand, if you are asking, how to deal with code that is written using
left and right, without manually going in and deleting all those references, then perhaps letleftrelax and letrightrelax might work, by disabling their function.– Steven B. Segletes
Apr 27 '18 at 15:37
@MOB It is not exactly clear what you ask. If you are saying that, in MTPro, one just uses normal parens and the size takes care of itself, then just use normal parens. On the other hand, if you are asking, how to deal with code that is written using
left and right, without manually going in and deleting all those references, then perhaps letleftrelax and letrightrelax might work, by disabling their function.– Steven B. Segletes
Apr 27 '18 at 15:37
What I mean is the following: I want to define a macro to get $left( Math right)$ and produces $PARENS{Math}$
– MO B
Apr 27 '18 at 15:41
What I mean is the following: I want to define a macro to get $left( Math right)$ and produces $PARENS{Math}$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
Another little code that could help you with the matrices.

documentclass[12pt]{book}
usepackage{mathtools}
usepackage{newtxtext}
usepackage[lite]{mtpro2}
begin{document}
[
z=begin{cases}
PARENS{begin{matrix}
frac{5}{3} \
end{matrix}} & text{ nice curly bracket }\
b & text{ I have not used a matrix }
end{cases}
]
end{document}
add a comment |
Another little code that could help you with the matrices.

documentclass[12pt]{book}
usepackage{mathtools}
usepackage{newtxtext}
usepackage[lite]{mtpro2}
begin{document}
[
z=begin{cases}
PARENS{begin{matrix}
frac{5}{3} \
end{matrix}} & text{ nice curly bracket }\
b & text{ I have not used a matrix }
end{cases}
]
end{document}
add a comment |
Another little code that could help you with the matrices.

documentclass[12pt]{book}
usepackage{mathtools}
usepackage{newtxtext}
usepackage[lite]{mtpro2}
begin{document}
[
z=begin{cases}
PARENS{begin{matrix}
frac{5}{3} \
end{matrix}} & text{ nice curly bracket }\
b & text{ I have not used a matrix }
end{cases}
]
end{document}
Another little code that could help you with the matrices.

documentclass[12pt]{book}
usepackage{mathtools}
usepackage{newtxtext}
usepackage[lite]{mtpro2}
begin{document}
[
z=begin{cases}
PARENS{begin{matrix}
frac{5}{3} \
end{matrix}} & text{ nice curly bracket }\
b & text{ I have not used a matrix }
end{cases}
]
end{document}
answered 1 min ago
SebastianoSebastiano
11.1k42164
11.1k42164
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%2f428873%2fmath-time-professional%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 objective of your query isn't entirely clear. Are you asking if it's possible to emulate the beautiful curly braces produced by
ccases{...}with a math font other thanmtpro2? Something else? Please clarify.– Mico
Apr 27 '18 at 15:11
@Mico I read the question as, the OP likes the syntax of an environment, rather than a macro, so how to generate an environment that calls upon the
ccasesmacro.– Steven B. Segletes
Apr 27 '18 at 15:40