How to zoom in in beamer algorithm package?

Multi tool use
I will be using the beamer class for my presentation. I want to present the algorithm line by line in such a way that the line on which I am working should get zoomed or lensed or highlighted. See my working code given below:
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{minipage}{1linewidth}
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{minipage}
end{document}
beamer algorithms
add a comment |
I will be using the beamer class for my presentation. I want to present the algorithm line by line in such a way that the line on which I am working should get zoomed or lensed or highlighted. See my working code given below:
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{minipage}{1linewidth}
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{minipage}
end{document}
beamer algorithms
2
There is nothing to zoom in in the beamer package.
– I_wil_break_wall
Jan 22 at 6:23
2
Look for theframezoom
command, e.g. here.
– marmot
Jan 22 at 6:26
If you want to highlight line by line have a look at tex.stackexchange.com/a/8375/36296 (possibly withalert
instead ofuncover
)
– samcarter
Jan 22 at 9:37
add a comment |
I will be using the beamer class for my presentation. I want to present the algorithm line by line in such a way that the line on which I am working should get zoomed or lensed or highlighted. See my working code given below:
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{minipage}{1linewidth}
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{minipage}
end{document}
beamer algorithms
I will be using the beamer class for my presentation. I want to present the algorithm line by line in such a way that the line on which I am working should get zoomed or lensed or highlighted. See my working code given below:
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{minipage}{1linewidth}
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{minipage}
end{document}
beamer algorithms
beamer algorithms
edited Jan 22 at 6:26


marmot
104k4123234
104k4123234
asked Jan 22 at 6:08
Isla_BonitaIsla_Bonita
24618
24618
2
There is nothing to zoom in in the beamer package.
– I_wil_break_wall
Jan 22 at 6:23
2
Look for theframezoom
command, e.g. here.
– marmot
Jan 22 at 6:26
If you want to highlight line by line have a look at tex.stackexchange.com/a/8375/36296 (possibly withalert
instead ofuncover
)
– samcarter
Jan 22 at 9:37
add a comment |
2
There is nothing to zoom in in the beamer package.
– I_wil_break_wall
Jan 22 at 6:23
2
Look for theframezoom
command, e.g. here.
– marmot
Jan 22 at 6:26
If you want to highlight line by line have a look at tex.stackexchange.com/a/8375/36296 (possibly withalert
instead ofuncover
)
– samcarter
Jan 22 at 9:37
2
2
There is nothing to zoom in in the beamer package.
– I_wil_break_wall
Jan 22 at 6:23
There is nothing to zoom in in the beamer package.
– I_wil_break_wall
Jan 22 at 6:23
2
2
Look for the
framezoom
command, e.g. here.– marmot
Jan 22 at 6:26
Look for the
framezoom
command, e.g. here.– marmot
Jan 22 at 6:26
If you want to highlight line by line have a look at tex.stackexchange.com/a/8375/36296 (possibly with
alert
instead of uncover
)– samcarter
Jan 22 at 9:37
If you want to highlight line by line have a look at tex.stackexchange.com/a/8375/36296 (possibly with
alert
instead of uncover
)– samcarter
Jan 22 at 9:37
add a comment |
1 Answer
1
active
oldest
votes
Sorry, I have misinterpreted "zoom". Do you want something like this?
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
usepackage{tikz}
usetikzlibrary{tikzmark,overlay-beamer-styles,fit}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
begin{algorithm}[H]footnotesize
SetAlgoLined
tikzmarknode{1}{textbf{Line 1}} \~\
tikzmarknode{2}{Line 2} \
end{algorithm}
begin{tikzpicture}[overlay,remember picture]
node[visible on=<1>,fit=(1),draw=red]{};
node[visible on=<2>,fit=(2),draw=red]{};
end{tikzpicture}
end{frame}
end{document}
If you were to use listings
instead, you could use the full potential of tikzmark
, see e.g. this nice answer.
OLD ANSWER: You can use framezoom
in beamer. Algorithms are no exceptions.
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
framezoom<2><3>[border=2](-0.6cm,-0.1cm)(2cm,2cm)
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{frame}
end{document}
1
Thanks for the answer. I want only zoomed in not the effect.
– Isla_Bonita
Jan 22 at 6:48
@Isla_Bonita Sorry about that. I added something. Is that what you want?
– marmot
Jan 22 at 15:23
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%2f471234%2fhow-to-zoom-in-in-beamer-algorithm-package%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
Sorry, I have misinterpreted "zoom". Do you want something like this?
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
usepackage{tikz}
usetikzlibrary{tikzmark,overlay-beamer-styles,fit}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
begin{algorithm}[H]footnotesize
SetAlgoLined
tikzmarknode{1}{textbf{Line 1}} \~\
tikzmarknode{2}{Line 2} \
end{algorithm}
begin{tikzpicture}[overlay,remember picture]
node[visible on=<1>,fit=(1),draw=red]{};
node[visible on=<2>,fit=(2),draw=red]{};
end{tikzpicture}
end{frame}
end{document}
If you were to use listings
instead, you could use the full potential of tikzmark
, see e.g. this nice answer.
OLD ANSWER: You can use framezoom
in beamer. Algorithms are no exceptions.
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
framezoom<2><3>[border=2](-0.6cm,-0.1cm)(2cm,2cm)
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{frame}
end{document}
1
Thanks for the answer. I want only zoomed in not the effect.
– Isla_Bonita
Jan 22 at 6:48
@Isla_Bonita Sorry about that. I added something. Is that what you want?
– marmot
Jan 22 at 15:23
add a comment |
Sorry, I have misinterpreted "zoom". Do you want something like this?
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
usepackage{tikz}
usetikzlibrary{tikzmark,overlay-beamer-styles,fit}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
begin{algorithm}[H]footnotesize
SetAlgoLined
tikzmarknode{1}{textbf{Line 1}} \~\
tikzmarknode{2}{Line 2} \
end{algorithm}
begin{tikzpicture}[overlay,remember picture]
node[visible on=<1>,fit=(1),draw=red]{};
node[visible on=<2>,fit=(2),draw=red]{};
end{tikzpicture}
end{frame}
end{document}
If you were to use listings
instead, you could use the full potential of tikzmark
, see e.g. this nice answer.
OLD ANSWER: You can use framezoom
in beamer. Algorithms are no exceptions.
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
framezoom<2><3>[border=2](-0.6cm,-0.1cm)(2cm,2cm)
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{frame}
end{document}
1
Thanks for the answer. I want only zoomed in not the effect.
– Isla_Bonita
Jan 22 at 6:48
@Isla_Bonita Sorry about that. I added something. Is that what you want?
– marmot
Jan 22 at 15:23
add a comment |
Sorry, I have misinterpreted "zoom". Do you want something like this?
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
usepackage{tikz}
usetikzlibrary{tikzmark,overlay-beamer-styles,fit}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
begin{algorithm}[H]footnotesize
SetAlgoLined
tikzmarknode{1}{textbf{Line 1}} \~\
tikzmarknode{2}{Line 2} \
end{algorithm}
begin{tikzpicture}[overlay,remember picture]
node[visible on=<1>,fit=(1),draw=red]{};
node[visible on=<2>,fit=(2),draw=red]{};
end{tikzpicture}
end{frame}
end{document}
If you were to use listings
instead, you could use the full potential of tikzmark
, see e.g. this nice answer.
OLD ANSWER: You can use framezoom
in beamer. Algorithms are no exceptions.
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
framezoom<2><3>[border=2](-0.6cm,-0.1cm)(2cm,2cm)
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{frame}
end{document}
Sorry, I have misinterpreted "zoom". Do you want something like this?
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
usepackage{tikz}
usetikzlibrary{tikzmark,overlay-beamer-styles,fit}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
begin{algorithm}[H]footnotesize
SetAlgoLined
tikzmarknode{1}{textbf{Line 1}} \~\
tikzmarknode{2}{Line 2} \
end{algorithm}
begin{tikzpicture}[overlay,remember picture]
node[visible on=<1>,fit=(1),draw=red]{};
node[visible on=<2>,fit=(2),draw=red]{};
end{tikzpicture}
end{frame}
end{document}
If you were to use listings
instead, you could use the full potential of tikzmark
, see e.g. this nice answer.
OLD ANSWER: You can use framezoom
in beamer. Algorithms are no exceptions.
documentclass[hyperref={pdfpagelabels=false}]{beamer}
usepackage[linesnumbered,ruled,vlined]{algorithm2e}
usepackage{caption}
begin{document}
begin{frame}[t]
frametitle{An algorithm}
framezoom<2><3>[border=2](-0.6cm,-0.1cm)(2cm,2cm)
begin{algorithm}[H]footnotesize
SetAlgoLined
textbf{Line 1} \~\
Line 2 \
end{algorithm}
end{frame}
end{document}
edited Jan 22 at 15:23
answered Jan 22 at 6:33


marmotmarmot
104k4123234
104k4123234
1
Thanks for the answer. I want only zoomed in not the effect.
– Isla_Bonita
Jan 22 at 6:48
@Isla_Bonita Sorry about that. I added something. Is that what you want?
– marmot
Jan 22 at 15:23
add a comment |
1
Thanks for the answer. I want only zoomed in not the effect.
– Isla_Bonita
Jan 22 at 6:48
@Isla_Bonita Sorry about that. I added something. Is that what you want?
– marmot
Jan 22 at 15:23
1
1
Thanks for the answer. I want only zoomed in not the effect.
– Isla_Bonita
Jan 22 at 6:48
Thanks for the answer. I want only zoomed in not the effect.
– Isla_Bonita
Jan 22 at 6:48
@Isla_Bonita Sorry about that. I added something. Is that what you want?
– marmot
Jan 22 at 15:23
@Isla_Bonita Sorry about that. I added something. Is that what you want?
– marmot
Jan 22 at 15:23
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%2f471234%2fhow-to-zoom-in-in-beamer-algorithm-package%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
EvOpWwsbf6gq1Q1wUd,3BS7HbkrtU GI,Fy0Lbx6ei6Ssq03
2
There is nothing to zoom in in the beamer package.
– I_wil_break_wall
Jan 22 at 6:23
2
Look for the
framezoom
command, e.g. here.– marmot
Jan 22 at 6:26
If you want to highlight line by line have a look at tex.stackexchange.com/a/8375/36296 (possibly with
alert
instead ofuncover
)– samcarter
Jan 22 at 9:37