How to center the titleframe in Hannover theme (beamer)?
I am using the Hannover theme in beamer and I am using the title frame as plain
documentclass{beamer}
mode<presentation>
{
usetheme{Hannover}%{CambridgeUS}%
setbeamercovered{transparent}
}
title[Title]{Centering Title frame}
author[Gopi]{Gopi}
begin{document}
begin{frame}[plain]
titlepage
begin{figure}
begin{center}
includegraphics[scale=0.3]{logo}
end{center}
end{figure}
end{frame}
end{document}
Because it was not obvious on the first picture (white on white, I have added the same picture without the option "plain" on the frame). My point is that I would like that with the option plain the frame forget about the hannover theme and centers the whole frame.
I tried to put a hspace{-xpt} before the frame but it did not seem to work.
macros beamer titles
add a comment |
I am using the Hannover theme in beamer and I am using the title frame as plain
documentclass{beamer}
mode<presentation>
{
usetheme{Hannover}%{CambridgeUS}%
setbeamercovered{transparent}
}
title[Title]{Centering Title frame}
author[Gopi]{Gopi}
begin{document}
begin{frame}[plain]
titlepage
begin{figure}
begin{center}
includegraphics[scale=0.3]{logo}
end{center}
end{figure}
end{frame}
end{document}
Because it was not obvious on the first picture (white on white, I have added the same picture without the option "plain" on the frame). My point is that I would like that with the option plain the frame forget about the hannover theme and centers the whole frame.
I tried to put a hspace{-xpt} before the frame but it did not seem to work.
macros beamer titles
add a comment |
I am using the Hannover theme in beamer and I am using the title frame as plain
documentclass{beamer}
mode<presentation>
{
usetheme{Hannover}%{CambridgeUS}%
setbeamercovered{transparent}
}
title[Title]{Centering Title frame}
author[Gopi]{Gopi}
begin{document}
begin{frame}[plain]
titlepage
begin{figure}
begin{center}
includegraphics[scale=0.3]{logo}
end{center}
end{figure}
end{frame}
end{document}
Because it was not obvious on the first picture (white on white, I have added the same picture without the option "plain" on the frame). My point is that I would like that with the option plain the frame forget about the hannover theme and centers the whole frame.
I tried to put a hspace{-xpt} before the frame but it did not seem to work.
macros beamer titles
I am using the Hannover theme in beamer and I am using the title frame as plain
documentclass{beamer}
mode<presentation>
{
usetheme{Hannover}%{CambridgeUS}%
setbeamercovered{transparent}
}
title[Title]{Centering Title frame}
author[Gopi]{Gopi}
begin{document}
begin{frame}[plain]
titlepage
begin{figure}
begin{center}
includegraphics[scale=0.3]{logo}
end{center}
end{figure}
end{frame}
end{document}
Because it was not obvious on the first picture (white on white, I have added the same picture without the option "plain" on the frame). My point is that I would like that with the option plain the frame forget about the hannover theme and centers the whole frame.
I tried to put a hspace{-xpt} before the frame but it did not seem to work.
macros beamer titles
macros beamer titles
asked Jul 29 '11 at 9:23
Gopi
5001716
5001716
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
You could hoffset
to move the content of the frame to the left, by the half amount of the sidebar width:
begingroup
makeatletter
setlength{hoffset}{-.5beamer@sidebarwidth}
makeatother
begin{frame}[plain]
titlepage
...
end{frame}
endgroup
I used begingroup
and endgroup
to limit the effect of the change to hoffset
to just this frame. makeatletter
and makeatletter
are necessary for accessing the internal macro beamer@sidebarwidth
.
This solution doesn't work anymore. Any idea what might work now?
– luchonacho
Dec 18 '15 at 19:45
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like.
– Stefan Kottwitz♦
Dec 18 '15 at 20:23
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I getUndefined control sequence. setlength{hoffset}{-.5beamer@sidebarwidth}
– luchonacho
Dec 21 '15 at 22:09
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need abeamer@sidebarwidth
length. Your case may be different, so it would be a good idea to post a new question with all template information.
– Stefan Kottwitz♦
Dec 21 '15 at 22:36
Wow this is clever! :) Thank you, exactly what i was looking for!
– Tim Hilt
Nov 10 at 9:28
add a comment |
Another solution is to simply define a custom title page:
In the preamble:
defbeamertemplate*{title page}{customized}[1]
{
usebeamerfont{title}inserttitlepar
usebeamerfont{subtitle}usebeamercolor[fg]{subtitle}insertsubtitlepar
bigskip
usebeamerfont{author}insertauthorpar
usebeamerfont{institute}insertinstitutepar
usebeamerfont{date}insertdatepar
usebeamercolor[fg]{titlegraphic}inserttitlegraphic
}
1
But this won't remove the additional margin from the sidebar. Try this with a longer title and you will see that the left margin is still much bigger than the right one.
– samcarter
Feb 9 '17 at 1:29
add a comment |
If the background of the title page isn't white -- for instance, if filled with the fill
from tikz, -- then the Stefan's solution won't work as intended: the filled area will be shifted to the left exposing the white background. My solution is to put the title page into a parbox
and then shift it by half of the sidebar width:
renewcommandmakebeamertitle{
{
begin{frame}[plain]
makeatletter
hspace*{-0.5beamer@sidebarwidth}parbox[c]{paperwidth}{
maketitle
}
makeatother
end{frame}
}
}
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%2f24402%2fhow-to-center-the-titleframe-in-hannover-theme-beamer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You could hoffset
to move the content of the frame to the left, by the half amount of the sidebar width:
begingroup
makeatletter
setlength{hoffset}{-.5beamer@sidebarwidth}
makeatother
begin{frame}[plain]
titlepage
...
end{frame}
endgroup
I used begingroup
and endgroup
to limit the effect of the change to hoffset
to just this frame. makeatletter
and makeatletter
are necessary for accessing the internal macro beamer@sidebarwidth
.
This solution doesn't work anymore. Any idea what might work now?
– luchonacho
Dec 18 '15 at 19:45
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like.
– Stefan Kottwitz♦
Dec 18 '15 at 20:23
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I getUndefined control sequence. setlength{hoffset}{-.5beamer@sidebarwidth}
– luchonacho
Dec 21 '15 at 22:09
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need abeamer@sidebarwidth
length. Your case may be different, so it would be a good idea to post a new question with all template information.
– Stefan Kottwitz♦
Dec 21 '15 at 22:36
Wow this is clever! :) Thank you, exactly what i was looking for!
– Tim Hilt
Nov 10 at 9:28
add a comment |
You could hoffset
to move the content of the frame to the left, by the half amount of the sidebar width:
begingroup
makeatletter
setlength{hoffset}{-.5beamer@sidebarwidth}
makeatother
begin{frame}[plain]
titlepage
...
end{frame}
endgroup
I used begingroup
and endgroup
to limit the effect of the change to hoffset
to just this frame. makeatletter
and makeatletter
are necessary for accessing the internal macro beamer@sidebarwidth
.
This solution doesn't work anymore. Any idea what might work now?
– luchonacho
Dec 18 '15 at 19:45
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like.
– Stefan Kottwitz♦
Dec 18 '15 at 20:23
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I getUndefined control sequence. setlength{hoffset}{-.5beamer@sidebarwidth}
– luchonacho
Dec 21 '15 at 22:09
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need abeamer@sidebarwidth
length. Your case may be different, so it would be a good idea to post a new question with all template information.
– Stefan Kottwitz♦
Dec 21 '15 at 22:36
Wow this is clever! :) Thank you, exactly what i was looking for!
– Tim Hilt
Nov 10 at 9:28
add a comment |
You could hoffset
to move the content of the frame to the left, by the half amount of the sidebar width:
begingroup
makeatletter
setlength{hoffset}{-.5beamer@sidebarwidth}
makeatother
begin{frame}[plain]
titlepage
...
end{frame}
endgroup
I used begingroup
and endgroup
to limit the effect of the change to hoffset
to just this frame. makeatletter
and makeatletter
are necessary for accessing the internal macro beamer@sidebarwidth
.
You could hoffset
to move the content of the frame to the left, by the half amount of the sidebar width:
begingroup
makeatletter
setlength{hoffset}{-.5beamer@sidebarwidth}
makeatother
begin{frame}[plain]
titlepage
...
end{frame}
endgroup
I used begingroup
and endgroup
to limit the effect of the change to hoffset
to just this frame. makeatletter
and makeatletter
are necessary for accessing the internal macro beamer@sidebarwidth
.
answered Jul 30 '11 at 16:02
Stefan Kottwitz♦
175k63567757
175k63567757
This solution doesn't work anymore. Any idea what might work now?
– luchonacho
Dec 18 '15 at 19:45
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like.
– Stefan Kottwitz♦
Dec 18 '15 at 20:23
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I getUndefined control sequence. setlength{hoffset}{-.5beamer@sidebarwidth}
– luchonacho
Dec 21 '15 at 22:09
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need abeamer@sidebarwidth
length. Your case may be different, so it would be a good idea to post a new question with all template information.
– Stefan Kottwitz♦
Dec 21 '15 at 22:36
Wow this is clever! :) Thank you, exactly what i was looking for!
– Tim Hilt
Nov 10 at 9:28
add a comment |
This solution doesn't work anymore. Any idea what might work now?
– luchonacho
Dec 18 '15 at 19:45
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like.
– Stefan Kottwitz♦
Dec 18 '15 at 20:23
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I getUndefined control sequence. setlength{hoffset}{-.5beamer@sidebarwidth}
– luchonacho
Dec 21 '15 at 22:09
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need abeamer@sidebarwidth
length. Your case may be different, so it would be a good idea to post a new question with all template information.
– Stefan Kottwitz♦
Dec 21 '15 at 22:36
Wow this is clever! :) Thank you, exactly what i was looking for!
– Tim Hilt
Nov 10 at 9:28
This solution doesn't work anymore. Any idea what might work now?
– luchonacho
Dec 18 '15 at 19:45
This solution doesn't work anymore. Any idea what might work now?
– luchonacho
Dec 18 '15 at 19:45
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like.
– Stefan Kottwitz♦
Dec 18 '15 at 20:23
@luchonacho Perhaps tell us what "doesn't work" means in your case. And you may post a new question if you like.
– Stefan Kottwitz♦
Dec 18 '15 at 20:23
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I get
Undefined control sequence. setlength{hoffset}{-.5beamer@sidebarwidth}
– luchonacho
Dec 21 '15 at 22:09
Sorry, my bad. I am trying to center the title for another beamer template, and it doesn't work. Is your solution unique to the Hannover theme? I get
Undefined control sequence. setlength{hoffset}{-.5beamer@sidebarwidth}
– luchonacho
Dec 21 '15 at 22:09
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need a
beamer@sidebarwidth
length. Your case may be different, so it would be a good idea to post a new question with all template information.– Stefan Kottwitz♦
Dec 21 '15 at 22:36
@luchonacho Possibly! For example, a beamer theme without a sidebar doesn't need a
beamer@sidebarwidth
length. Your case may be different, so it would be a good idea to post a new question with all template information.– Stefan Kottwitz♦
Dec 21 '15 at 22:36
Wow this is clever! :) Thank you, exactly what i was looking for!
– Tim Hilt
Nov 10 at 9:28
Wow this is clever! :) Thank you, exactly what i was looking for!
– Tim Hilt
Nov 10 at 9:28
add a comment |
Another solution is to simply define a custom title page:
In the preamble:
defbeamertemplate*{title page}{customized}[1]
{
usebeamerfont{title}inserttitlepar
usebeamerfont{subtitle}usebeamercolor[fg]{subtitle}insertsubtitlepar
bigskip
usebeamerfont{author}insertauthorpar
usebeamerfont{institute}insertinstitutepar
usebeamerfont{date}insertdatepar
usebeamercolor[fg]{titlegraphic}inserttitlegraphic
}
1
But this won't remove the additional margin from the sidebar. Try this with a longer title and you will see that the left margin is still much bigger than the right one.
– samcarter
Feb 9 '17 at 1:29
add a comment |
Another solution is to simply define a custom title page:
In the preamble:
defbeamertemplate*{title page}{customized}[1]
{
usebeamerfont{title}inserttitlepar
usebeamerfont{subtitle}usebeamercolor[fg]{subtitle}insertsubtitlepar
bigskip
usebeamerfont{author}insertauthorpar
usebeamerfont{institute}insertinstitutepar
usebeamerfont{date}insertdatepar
usebeamercolor[fg]{titlegraphic}inserttitlegraphic
}
1
But this won't remove the additional margin from the sidebar. Try this with a longer title and you will see that the left margin is still much bigger than the right one.
– samcarter
Feb 9 '17 at 1:29
add a comment |
Another solution is to simply define a custom title page:
In the preamble:
defbeamertemplate*{title page}{customized}[1]
{
usebeamerfont{title}inserttitlepar
usebeamerfont{subtitle}usebeamercolor[fg]{subtitle}insertsubtitlepar
bigskip
usebeamerfont{author}insertauthorpar
usebeamerfont{institute}insertinstitutepar
usebeamerfont{date}insertdatepar
usebeamercolor[fg]{titlegraphic}inserttitlegraphic
}
Another solution is to simply define a custom title page:
In the preamble:
defbeamertemplate*{title page}{customized}[1]
{
usebeamerfont{title}inserttitlepar
usebeamerfont{subtitle}usebeamercolor[fg]{subtitle}insertsubtitlepar
bigskip
usebeamerfont{author}insertauthorpar
usebeamerfont{institute}insertinstitutepar
usebeamerfont{date}insertdatepar
usebeamercolor[fg]{titlegraphic}inserttitlegraphic
}
answered Feb 8 '17 at 23:53
invictus
242110
242110
1
But this won't remove the additional margin from the sidebar. Try this with a longer title and you will see that the left margin is still much bigger than the right one.
– samcarter
Feb 9 '17 at 1:29
add a comment |
1
But this won't remove the additional margin from the sidebar. Try this with a longer title and you will see that the left margin is still much bigger than the right one.
– samcarter
Feb 9 '17 at 1:29
1
1
But this won't remove the additional margin from the sidebar. Try this with a longer title and you will see that the left margin is still much bigger than the right one.
– samcarter
Feb 9 '17 at 1:29
But this won't remove the additional margin from the sidebar. Try this with a longer title and you will see that the left margin is still much bigger than the right one.
– samcarter
Feb 9 '17 at 1:29
add a comment |
If the background of the title page isn't white -- for instance, if filled with the fill
from tikz, -- then the Stefan's solution won't work as intended: the filled area will be shifted to the left exposing the white background. My solution is to put the title page into a parbox
and then shift it by half of the sidebar width:
renewcommandmakebeamertitle{
{
begin{frame}[plain]
makeatletter
hspace*{-0.5beamer@sidebarwidth}parbox[c]{paperwidth}{
maketitle
}
makeatother
end{frame}
}
}
add a comment |
If the background of the title page isn't white -- for instance, if filled with the fill
from tikz, -- then the Stefan's solution won't work as intended: the filled area will be shifted to the left exposing the white background. My solution is to put the title page into a parbox
and then shift it by half of the sidebar width:
renewcommandmakebeamertitle{
{
begin{frame}[plain]
makeatletter
hspace*{-0.5beamer@sidebarwidth}parbox[c]{paperwidth}{
maketitle
}
makeatother
end{frame}
}
}
add a comment |
If the background of the title page isn't white -- for instance, if filled with the fill
from tikz, -- then the Stefan's solution won't work as intended: the filled area will be shifted to the left exposing the white background. My solution is to put the title page into a parbox
and then shift it by half of the sidebar width:
renewcommandmakebeamertitle{
{
begin{frame}[plain]
makeatletter
hspace*{-0.5beamer@sidebarwidth}parbox[c]{paperwidth}{
maketitle
}
makeatother
end{frame}
}
}
If the background of the title page isn't white -- for instance, if filled with the fill
from tikz, -- then the Stefan's solution won't work as intended: the filled area will be shifted to the left exposing the white background. My solution is to put the title page into a parbox
and then shift it by half of the sidebar width:
renewcommandmakebeamertitle{
{
begin{frame}[plain]
makeatletter
hspace*{-0.5beamer@sidebarwidth}parbox[c]{paperwidth}{
maketitle
}
makeatother
end{frame}
}
}
answered 22 mins ago
Dmitry Zotikov
1113
1113
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%2f24402%2fhow-to-center-the-titleframe-in-hannover-theme-beamer%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