Position a box in LaTeX-Beamer at the top of the slide
I finally managed to create a box. I want this box to be centered and at the top of my slide, however. And I don't know how to achieve this: I have created a minipage, but I cannot position it at the top of my slide.
I am using a customized template that does not allow for the block
-environment.
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
begin{itemize}
item Item1
end{itemize}
centering
begin{minipage}[t]{textwidth}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
Put some text here.
end{beamercolorbox}
end{minipage}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
beamer boxes
add a comment |
I finally managed to create a box. I want this box to be centered and at the top of my slide, however. And I don't know how to achieve this: I have created a minipage, but I cannot position it at the top of my slide.
I am using a customized template that does not allow for the block
-environment.
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
begin{itemize}
item Item1
end{itemize}
centering
begin{minipage}[t]{textwidth}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
Put some text here.
end{beamercolorbox}
end{minipage}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
beamer boxes
This feels like an xy-problem (tex.meta.stackexchange.com/questions/2449/…) Can you describe what the purpose of the box will be?
– samcarter
Mar 8 at 16:16
add a comment |
I finally managed to create a box. I want this box to be centered and at the top of my slide, however. And I don't know how to achieve this: I have created a minipage, but I cannot position it at the top of my slide.
I am using a customized template that does not allow for the block
-environment.
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
begin{itemize}
item Item1
end{itemize}
centering
begin{minipage}[t]{textwidth}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
Put some text here.
end{beamercolorbox}
end{minipage}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
beamer boxes
I finally managed to create a box. I want this box to be centered and at the top of my slide, however. And I don't know how to achieve this: I have created a minipage, but I cannot position it at the top of my slide.
I am using a customized template that does not allow for the block
-environment.
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
begin{itemize}
item Item1
end{itemize}
centering
begin{minipage}[t]{textwidth}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
Put some text here.
end{beamercolorbox}
end{minipage}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
beamer boxes
beamer boxes
asked Mar 7 at 16:32
user503842user503842
1206
1206
This feels like an xy-problem (tex.meta.stackexchange.com/questions/2449/…) Can you describe what the purpose of the box will be?
– samcarter
Mar 8 at 16:16
add a comment |
This feels like an xy-problem (tex.meta.stackexchange.com/questions/2449/…) Can you describe what the purpose of the box will be?
– samcarter
Mar 8 at 16:16
This feels like an xy-problem (tex.meta.stackexchange.com/questions/2449/…) Can you describe what the purpose of the box will be?
– samcarter
Mar 8 at 16:16
This feels like an xy-problem (tex.meta.stackexchange.com/questions/2449/…) Can you describe what the purpose of the box will be?
– samcarter
Mar 8 at 16:16
add a comment |
1 Answer
1
active
oldest
votes
Like this?
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
vspace{-3cm}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
centering
Put some text here.
end{beamercolorbox}
vspace{3cm}
begin{itemize}
item Item1
end{itemize}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
1
yeah, that's perfect! Thx very much!
– user503842
Mar 8 at 10:56
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%2f478233%2fposition-a-box-in-latex-beamer-at-the-top-of-the-slide%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
Like this?
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
vspace{-3cm}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
centering
Put some text here.
end{beamercolorbox}
vspace{3cm}
begin{itemize}
item Item1
end{itemize}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
1
yeah, that's perfect! Thx very much!
– user503842
Mar 8 at 10:56
add a comment |
Like this?
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
vspace{-3cm}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
centering
Put some text here.
end{beamercolorbox}
vspace{3cm}
begin{itemize}
item Item1
end{itemize}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
1
yeah, that's perfect! Thx very much!
– user503842
Mar 8 at 10:56
add a comment |
Like this?
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
vspace{-3cm}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
centering
Put some text here.
end{beamercolorbox}
vspace{3cm}
begin{itemize}
item Item1
end{itemize}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
Like this?
documentclass{beamer}
usetheme{Hannover}
begin{document}
begin{frame}{My Title}
setbeamercolor{postit}{fg=black,bg=green!30}
vspace{-3cm}
begin{beamercolorbox}[sep=1em,wd=11cm]{postit}
centering
Put some text here.
end{beamercolorbox}
vspace{3cm}
begin{itemize}
item Item1
end{itemize}
begin{itemize}
item Item2
end{itemize}
end{frame}
end{document}
answered Mar 7 at 16:55
Superuser27Superuser27
66415
66415
1
yeah, that's perfect! Thx very much!
– user503842
Mar 8 at 10:56
add a comment |
1
yeah, that's perfect! Thx very much!
– user503842
Mar 8 at 10:56
1
1
yeah, that's perfect! Thx very much!
– user503842
Mar 8 at 10:56
yeah, that's perfect! Thx very much!
– user503842
Mar 8 at 10:56
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%2f478233%2fposition-a-box-in-latex-beamer-at-the-top-of-the-slide%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
This feels like an xy-problem (tex.meta.stackexchange.com/questions/2449/…) Can you describe what the purpose of the box will be?
– samcarter
Mar 8 at 16:16