Newcommand alert
up vote
0
down vote
favorite
I would like to create a new command, like alert, but in other colours and if it was possible to combine it with the comand pmb.
I mean in the first frame shows 2x+1
and after a click pmb{2x+1} (in blue, for instance)
Thak you in advance
macros
add a comment |
up vote
0
down vote
favorite
I would like to create a new command, like alert, but in other colours and if it was possible to combine it with the comand pmb.
I mean in the first frame shows 2x+1
and after a click pmb{2x+1} (in blue, for instance)
Thak you in advance
macros
1
Welcome to TeX SX! What is your question about?
– Bernard
Dec 2 at 23:25
1
Welcome to TeX.SX!! Can you please give a full minimal working example. Currently we have to guess what packages etc you are using (what ispmb
?), and this makes it really hard to help you. A MWE should start with adocumentclass
command, have a minimal preamble and thenbegin{document}...end{document}
. It is really difficult to help you without more information. Of course, you can't define your "new alert command" but your MWE should at least confirm whether or not you are using beamer, which you never actually say.
– Andrew
Dec 2 at 23:31
Does this help?
– marmot
Dec 3 at 3:08
Note thatpmb{2x+1}
is wider than2x+1
– egreg
Dec 6 at 21:33
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like to create a new command, like alert, but in other colours and if it was possible to combine it with the comand pmb.
I mean in the first frame shows 2x+1
and after a click pmb{2x+1} (in blue, for instance)
Thak you in advance
macros
I would like to create a new command, like alert, but in other colours and if it was possible to combine it with the comand pmb.
I mean in the first frame shows 2x+1
and after a click pmb{2x+1} (in blue, for instance)
Thak you in advance
macros
macros
edited Dec 3 at 0:28
Bernard
164k769192
164k769192
asked Dec 2 at 23:17
Sergio
1
1
1
Welcome to TeX SX! What is your question about?
– Bernard
Dec 2 at 23:25
1
Welcome to TeX.SX!! Can you please give a full minimal working example. Currently we have to guess what packages etc you are using (what ispmb
?), and this makes it really hard to help you. A MWE should start with adocumentclass
command, have a minimal preamble and thenbegin{document}...end{document}
. It is really difficult to help you without more information. Of course, you can't define your "new alert command" but your MWE should at least confirm whether or not you are using beamer, which you never actually say.
– Andrew
Dec 2 at 23:31
Does this help?
– marmot
Dec 3 at 3:08
Note thatpmb{2x+1}
is wider than2x+1
– egreg
Dec 6 at 21:33
add a comment |
1
Welcome to TeX SX! What is your question about?
– Bernard
Dec 2 at 23:25
1
Welcome to TeX.SX!! Can you please give a full minimal working example. Currently we have to guess what packages etc you are using (what ispmb
?), and this makes it really hard to help you. A MWE should start with adocumentclass
command, have a minimal preamble and thenbegin{document}...end{document}
. It is really difficult to help you without more information. Of course, you can't define your "new alert command" but your MWE should at least confirm whether or not you are using beamer, which you never actually say.
– Andrew
Dec 2 at 23:31
Does this help?
– marmot
Dec 3 at 3:08
Note thatpmb{2x+1}
is wider than2x+1
– egreg
Dec 6 at 21:33
1
1
Welcome to TeX SX! What is your question about?
– Bernard
Dec 2 at 23:25
Welcome to TeX SX! What is your question about?
– Bernard
Dec 2 at 23:25
1
1
Welcome to TeX.SX!! Can you please give a full minimal working example. Currently we have to guess what packages etc you are using (what is
pmb
?), and this makes it really hard to help you. A MWE should start with a documentclass
command, have a minimal preamble and then begin{document}...end{document}
. It is really difficult to help you without more information. Of course, you can't define your "new alert command" but your MWE should at least confirm whether or not you are using beamer, which you never actually say.– Andrew
Dec 2 at 23:31
Welcome to TeX.SX!! Can you please give a full minimal working example. Currently we have to guess what packages etc you are using (what is
pmb
?), and this makes it really hard to help you. A MWE should start with a documentclass
command, have a minimal preamble and then begin{document}...end{document}
. It is really difficult to help you without more information. Of course, you can't define your "new alert command" but your MWE should at least confirm whether or not you are using beamer, which you never actually say.– Andrew
Dec 2 at 23:31
Does this help?
– marmot
Dec 3 at 3:08
Does this help?
– marmot
Dec 3 at 3:08
Note that
pmb{2x+1}
is wider than 2x+1
– egreg
Dec 6 at 21:33
Note that
pmb{2x+1}
is wider than 2x+1
– egreg
Dec 6 at 21:33
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
You could define a command that uses alert, just in a different colour:
documentclass{beamer}
newcommand<>{myalert}[1]{%
begingroup
setbeamercolor{alerted text}{fg=blue}%
alert#2{#1}%
endgroup
}
begin{document}
begin{frame}
alert<1>{test}
myalert<3-5>{sdf}
end{frame}
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
You could define a command that uses alert, just in a different colour:
documentclass{beamer}
newcommand<>{myalert}[1]{%
begingroup
setbeamercolor{alerted text}{fg=blue}%
alert#2{#1}%
endgroup
}
begin{document}
begin{frame}
alert<1>{test}
myalert<3-5>{sdf}
end{frame}
end{document}
add a comment |
up vote
1
down vote
You could define a command that uses alert, just in a different colour:
documentclass{beamer}
newcommand<>{myalert}[1]{%
begingroup
setbeamercolor{alerted text}{fg=blue}%
alert#2{#1}%
endgroup
}
begin{document}
begin{frame}
alert<1>{test}
myalert<3-5>{sdf}
end{frame}
end{document}
add a comment |
up vote
1
down vote
up vote
1
down vote
You could define a command that uses alert, just in a different colour:
documentclass{beamer}
newcommand<>{myalert}[1]{%
begingroup
setbeamercolor{alerted text}{fg=blue}%
alert#2{#1}%
endgroup
}
begin{document}
begin{frame}
alert<1>{test}
myalert<3-5>{sdf}
end{frame}
end{document}
You could define a command that uses alert, just in a different colour:
documentclass{beamer}
newcommand<>{myalert}[1]{%
begingroup
setbeamercolor{alerted text}{fg=blue}%
alert#2{#1}%
endgroup
}
begin{document}
begin{frame}
alert<1>{test}
myalert<3-5>{sdf}
end{frame}
end{document}
answered Dec 6 at 21:09
samcarter
83.4k794267
83.4k794267
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f462877%2fnewcommand-alert%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
1
Welcome to TeX SX! What is your question about?
– Bernard
Dec 2 at 23:25
1
Welcome to TeX.SX!! Can you please give a full minimal working example. Currently we have to guess what packages etc you are using (what is
pmb
?), and this makes it really hard to help you. A MWE should start with adocumentclass
command, have a minimal preamble and thenbegin{document}...end{document}
. It is really difficult to help you without more information. Of course, you can't define your "new alert command" but your MWE should at least confirm whether or not you are using beamer, which you never actually say.– Andrew
Dec 2 at 23:31
Does this help?
– marmot
Dec 3 at 3:08
Note that
pmb{2x+1}
is wider than2x+1
– egreg
Dec 6 at 21:33