Math Time ProfessionalRedefining 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#2rightarrowmathcal#3Overwrite dcases* to work inside align (to use mtpro2 braces)
Creepy dinosaur pc game identification
Loading commands from file
Not using 's' for he/she/it
How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?
How to explain what's wrong with this application of the chain rule?
Is it possible to have a strip of cold climate in the middle of a planet?
What was the exact wording from Ivanhoe of this advice on how to free yourself from slavery?
Yosemite Fire Rings - What to Expect?
If infinitesimal transformations commute why dont the generators of the Lorentz group commute?
How can I block email signup overlays or javascript popups in Safari?
Melting point of aspirin, contradicting sources
How can "mimic phobia" be cured or prevented?
Why should universal income be universal?
Aragorn's "guise" in the Orthanc Stone
Electoral considerations aside, what are potential benefits, for the US, of policy changes proposed by the tweet recognizing Golan annexation?
If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?
Can I sign legal documents with a smiley face?
lightning-datatable row number error
On a tidally locked planet, would time be quantized?
Is it better practice to read straight from sheet music rather than memorize it?
Can Legal Documents Be Siged In Non-Standard Pen Colors?
Store Credit Card Information in Password Manager?
What is the evidence for the "tyranny of the majority problem" in a direct democracy context?
Removing files under particular conditions (number of files, file age)
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#2rightarrowmathcal#3Overwrite dcases* to work inside align (to use mtpro2 braces)
In Math Time Professional, one needs to use
ccases
instead of
begincases
endcases
in order to obtain (beautiful) curly braces. Is it possible to to use begincases endcases
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
begincases
endcases
in order to obtain (beautiful) curly braces. Is it possible to to use begincases endcases
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 theccases
macro.
– Steven B. Segletes
Apr 27 '18 at 15:40
add a comment |
In Math Time Professional, one needs to use
ccases
instead of
begincases
endcases
in order to obtain (beautiful) curly braces. Is it possible to to use begincases endcases
as a new command and obtain ccases
?
Thanks for your help
macros mtpro
In Math Time Professional, one needs to use
ccases
instead of
begincases
endcases
in order to obtain (beautiful) curly braces. Is it possible to to use begincases endcases
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
696
696
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 theccases
macro.
– 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 theccases
macro.
– 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:
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]begincases#1endcases
NewEnvironCasesccasesBODY
begindocument
[
y = beginCasesx_1 & textfirst choice\x_2& textsecond choiceendCases
]
enddocument
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
)
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]begincases#1endcases
providecommandPARENS[1]left(#1right)
%
defLeft#1#2Right#3
ifx(#1PARENS#2else
% ifx[#1BRACKETS#2else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
NewEnvironCasesccasesBODY
begindocument
[
y =
beginCases
Left(dfracx_13Right) & textfirst choice\
x_2& textsecond choice
endCases
]
enddocument
1
Perhapsprovidecommand
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: 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 usingleft
andright
, without manually going in and deleting all those references, then perhapsletleftrelax
andletrightrelax
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 $PARENSMath$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
Another little code that could help you with the nice matrices. There is a only row and columns and I have used for the text usepackagenewtxtext
that it has a optimal compatiblity with the font of mtpro2
.
documentclass[12pt]book
usepackagemathtools
usepackagenewtxtext
usepackage[lite]mtpro2
begindocument
[
z=begincases
PARENSbeginmatrix
frac53 \
endmatrix & text nice curly bracket \
b & text I have not used a matrix
endcases
]
enddocument
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:
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]begincases#1endcases
NewEnvironCasesccasesBODY
begindocument
[
y = beginCasesx_1 & textfirst choice\x_2& textsecond choiceendCases
]
enddocument
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
)
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]begincases#1endcases
providecommandPARENS[1]left(#1right)
%
defLeft#1#2Right#3
ifx(#1PARENS#2else
% ifx[#1BRACKETS#2else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
NewEnvironCasesccasesBODY
begindocument
[
y =
beginCases
Left(dfracx_13Right) & textfirst choice\
x_2& textsecond choice
endCases
]
enddocument
1
Perhapsprovidecommand
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: 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 usingleft
andright
, without manually going in and deleting all those references, then perhapsletleftrelax
andletrightrelax
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 $PARENSMath$
– 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:
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]begincases#1endcases
NewEnvironCasesccasesBODY
begindocument
[
y = beginCasesx_1 & textfirst choice\x_2& textsecond choiceendCases
]
enddocument
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
)
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]begincases#1endcases
providecommandPARENS[1]left(#1right)
%
defLeft#1#2Right#3
ifx(#1PARENS#2else
% ifx[#1BRACKETS#2else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
NewEnvironCasesccasesBODY
begindocument
[
y =
beginCases
Left(dfracx_13Right) & textfirst choice\
x_2& textsecond choice
endCases
]
enddocument
1
Perhapsprovidecommand
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: 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 usingleft
andright
, without manually going in and deleting all those references, then perhapsletleftrelax
andletrightrelax
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 $PARENSMath$
– 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:
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]begincases#1endcases
NewEnvironCasesccasesBODY
begindocument
[
y = beginCasesx_1 & textfirst choice\x_2& textsecond choiceendCases
]
enddocument
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
)
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]begincases#1endcases
providecommandPARENS[1]left(#1right)
%
defLeft#1#2Right#3
ifx(#1PARENS#2else
% ifx[#1BRACKETS#2else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
NewEnvironCasesccasesBODY
begindocument
[
y =
beginCases
Left(dfracx_13Right) & textfirst choice\
x_2& textsecond choice
endCases
]
enddocument
I don't have MTPro, but I presume the approach would be as follows:
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING LINE WHEN USING MTPro
providecommandccases[1]begincases#1endcases
NewEnvironCasesccasesBODY
begindocument
[
y = beginCasesx_1 & textfirst choice\x_2& textsecond choiceendCases
]
enddocument
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
)
documentclassarticle
usepackageamsmath,environ
% YOU MAY DELETE THE FOLLOWING 2 LINES WHEN USING MTPro
providecommandccases[1]begincases#1endcases
providecommandPARENS[1]left(#1right)
%
defLeft#1#2Right#3
ifx(#1PARENS#2else
% ifx[#1BRACKETS#2else% AN EXAMPLE OF HOW TO CODE MULTIPLE TESTS
left#1#2right#3% USE DEFAULT IF NO ALTERNATE DEFINITION
% fi
fi
NewEnvironCasesccasesBODY
begindocument
[
y =
beginCases
Left(dfracx_13Right) & textfirst choice\
x_2& textsecond choice
endCases
]
enddocument
edited Apr 27 '18 at 16:07
answered Apr 27 '18 at 14:46
Steven B. SegletesSteven B. Segletes
159k9204412
159k9204412
1
Perhapsprovidecommand
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: 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 usingleft
andright
, without manually going in and deleting all those references, then perhapsletleftrelax
andletrightrelax
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 $PARENSMath$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
1
Perhapsprovidecommand
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: 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 usingleft
andright
, without manually going in and deleting all those references, then perhapsletleftrelax
andletrightrelax
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 $PARENSMath$
– 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 $PARENSMath$
– 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 $PARENSMath$
– MO B
Apr 27 '18 at 15:41
|
show 1 more comment
Another little code that could help you with the nice matrices. There is a only row and columns and I have used for the text usepackagenewtxtext
that it has a optimal compatiblity with the font of mtpro2
.
documentclass[12pt]book
usepackagemathtools
usepackagenewtxtext
usepackage[lite]mtpro2
begindocument
[
z=begincases
PARENSbeginmatrix
frac53 \
endmatrix & text nice curly bracket \
b & text I have not used a matrix
endcases
]
enddocument
add a comment |
Another little code that could help you with the nice matrices. There is a only row and columns and I have used for the text usepackagenewtxtext
that it has a optimal compatiblity with the font of mtpro2
.
documentclass[12pt]book
usepackagemathtools
usepackagenewtxtext
usepackage[lite]mtpro2
begindocument
[
z=begincases
PARENSbeginmatrix
frac53 \
endmatrix & text nice curly bracket \
b & text I have not used a matrix
endcases
]
enddocument
add a comment |
Another little code that could help you with the nice matrices. There is a only row and columns and I have used for the text usepackagenewtxtext
that it has a optimal compatiblity with the font of mtpro2
.
documentclass[12pt]book
usepackagemathtools
usepackagenewtxtext
usepackage[lite]mtpro2
begindocument
[
z=begincases
PARENSbeginmatrix
frac53 \
endmatrix & text nice curly bracket \
b & text I have not used a matrix
endcases
]
enddocument
Another little code that could help you with the nice matrices. There is a only row and columns and I have used for the text usepackagenewtxtext
that it has a optimal compatiblity with the font of mtpro2
.
documentclass[12pt]book
usepackagemathtools
usepackagenewtxtext
usepackage[lite]mtpro2
begindocument
[
z=begincases
PARENSbeginmatrix
frac53 \
endmatrix & text nice curly bracket \
b & text I have not used a matrix
endcases
]
enddocument
edited 4 mins ago
answered 13 mins 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
ccases
macro.– Steven B. Segletes
Apr 27 '18 at 15:40