Title palettes provide small skipping below the title when it has two lines

The palette above has low skip which looks ugly. How can we add a little padding like the one we get with one line titles?

documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}
beamer titles
add a comment |

The palette above has low skip which looks ugly. How can we add a little padding like the one we get with one line titles?

documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}
beamer titles
add a comment |

The palette above has low skip which looks ugly. How can we add a little padding like the one we get with one line titles?

documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}
beamer titles

The palette above has low skip which looks ugly. How can we add a little padding like the one we get with one line titles?

documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}
beamer titles
beamer titles
asked Mar 18 at 5:27
Al-Motasem AldaoudeyehAl-Motasem Aldaoudeyeh
1,857414
1,857414
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The "problem" is that the last line of your first title "One Slide" does not contain any descending letters, while "Uncovering Contents" has the "g" as descending letter. If you want all titles to behave like the second case, you can add a strut after insertframetitle in the template definition:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
makeatletter
setbeamertemplate{frametitle}{%
ifbeamercolorempty[bg]{frametitle}{}{nointerlineskip}%
@tempdima=textwidth%
advance@tempdima bybeamer@leftmargin%
advance@tempdima bybeamer@rightmargin%
begin{beamercolorbox}[sep=0.3cm,left,wd=the@tempdima]{frametitle}
usebeamerfont{frametitle}%
vbox{}vskip-1ex%
if@tempswaelsecsname beamer@fteleftendcsnamefi%
strutinsertframetitlestrutpar%
{%
ifxinsertframesubtitle@empty%
else%
{usebeamerfont{framesubtitle}usebeamercolor[fg]{framesubtitle}strutinsertframesubtitlepar}%
fi
}%
vskip-1ex%
if@tempswaelsevskip-.3cmfi% set inside beamercolorbox... evil here...
end{beamercolorbox}%
}
makeatother
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}

add a comment |
Running your code, I get the proper padding. However you can use vspace at the end of the contents:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slidevspace{0.2cm}}
end{frame}
end{document}
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%2f480029%2ftitle-palettes-provide-small-skipping-below-the-title-when-it-has-two-lines%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
The "problem" is that the last line of your first title "One Slide" does not contain any descending letters, while "Uncovering Contents" has the "g" as descending letter. If you want all titles to behave like the second case, you can add a strut after insertframetitle in the template definition:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
makeatletter
setbeamertemplate{frametitle}{%
ifbeamercolorempty[bg]{frametitle}{}{nointerlineskip}%
@tempdima=textwidth%
advance@tempdima bybeamer@leftmargin%
advance@tempdima bybeamer@rightmargin%
begin{beamercolorbox}[sep=0.3cm,left,wd=the@tempdima]{frametitle}
usebeamerfont{frametitle}%
vbox{}vskip-1ex%
if@tempswaelsecsname beamer@fteleftendcsnamefi%
strutinsertframetitlestrutpar%
{%
ifxinsertframesubtitle@empty%
else%
{usebeamerfont{framesubtitle}usebeamercolor[fg]{framesubtitle}strutinsertframesubtitlepar}%
fi
}%
vskip-1ex%
if@tempswaelsevskip-.3cmfi% set inside beamercolorbox... evil here...
end{beamercolorbox}%
}
makeatother
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}

add a comment |
The "problem" is that the last line of your first title "One Slide" does not contain any descending letters, while "Uncovering Contents" has the "g" as descending letter. If you want all titles to behave like the second case, you can add a strut after insertframetitle in the template definition:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
makeatletter
setbeamertemplate{frametitle}{%
ifbeamercolorempty[bg]{frametitle}{}{nointerlineskip}%
@tempdima=textwidth%
advance@tempdima bybeamer@leftmargin%
advance@tempdima bybeamer@rightmargin%
begin{beamercolorbox}[sep=0.3cm,left,wd=the@tempdima]{frametitle}
usebeamerfont{frametitle}%
vbox{}vskip-1ex%
if@tempswaelsecsname beamer@fteleftendcsnamefi%
strutinsertframetitlestrutpar%
{%
ifxinsertframesubtitle@empty%
else%
{usebeamerfont{framesubtitle}usebeamercolor[fg]{framesubtitle}strutinsertframesubtitlepar}%
fi
}%
vskip-1ex%
if@tempswaelsevskip-.3cmfi% set inside beamercolorbox... evil here...
end{beamercolorbox}%
}
makeatother
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}

add a comment |
The "problem" is that the last line of your first title "One Slide" does not contain any descending letters, while "Uncovering Contents" has the "g" as descending letter. If you want all titles to behave like the second case, you can add a strut after insertframetitle in the template definition:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
makeatletter
setbeamertemplate{frametitle}{%
ifbeamercolorempty[bg]{frametitle}{}{nointerlineskip}%
@tempdima=textwidth%
advance@tempdima bybeamer@leftmargin%
advance@tempdima bybeamer@rightmargin%
begin{beamercolorbox}[sep=0.3cm,left,wd=the@tempdima]{frametitle}
usebeamerfont{frametitle}%
vbox{}vskip-1ex%
if@tempswaelsecsname beamer@fteleftendcsnamefi%
strutinsertframetitlestrutpar%
{%
ifxinsertframesubtitle@empty%
else%
{usebeamerfont{framesubtitle}usebeamercolor[fg]{framesubtitle}strutinsertframesubtitlepar}%
fi
}%
vskip-1ex%
if@tempswaelsevskip-.3cmfi% set inside beamercolorbox... evil here...
end{beamercolorbox}%
}
makeatother
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}

The "problem" is that the last line of your first title "One Slide" does not contain any descending letters, while "Uncovering Contents" has the "g" as descending letter. If you want all titles to behave like the second case, you can add a strut after insertframetitle in the template definition:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
makeatletter
setbeamertemplate{frametitle}{%
ifbeamercolorempty[bg]{frametitle}{}{nointerlineskip}%
@tempdima=textwidth%
advance@tempdima bybeamer@leftmargin%
advance@tempdima bybeamer@rightmargin%
begin{beamercolorbox}[sep=0.3cm,left,wd=the@tempdima]{frametitle}
usebeamerfont{frametitle}%
vbox{}vskip-1ex%
if@tempswaelsecsname beamer@fteleftendcsnamefi%
strutinsertframetitlestrutpar%
{%
ifxinsertframesubtitle@empty%
else%
{usebeamerfont{framesubtitle}usebeamercolor[fg]{framesubtitle}strutinsertframesubtitlepar}%
fi
}%
vskip-1ex%
if@tempswaelsevskip-.3cmfi% set inside beamercolorbox... evil here...
end{beamercolorbox}%
}
makeatother
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slide}
end{frame}
end{document}

answered Mar 18 at 9:39
samcartersamcarter
93k7105301
93k7105301
add a comment |
add a comment |
Running your code, I get the proper padding. However you can use vspace at the end of the contents:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slidevspace{0.2cm}}
end{frame}
end{document}
add a comment |
Running your code, I get the proper padding. However you can use vspace at the end of the contents:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slidevspace{0.2cm}}
end{frame}
end{document}
add a comment |
Running your code, I get the proper padding. However you can use vspace at the end of the contents:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slidevspace{0.2cm}}
end{frame}
end{document}
Running your code, I get the proper padding. However you can use vspace at the end of the contents:
documentclass[aspectratio=169, xcolor={x11names}]{beamer}
usecolortheme{seahorse}
useoutertheme{split}
useinnertheme{inmargin}
newlength{widthTextMarginLeft}
setlength{widthTextMarginLeft}{1.5mm}
newlength{widthTextMarginRight}
setlength{widthTextMarginRight}{2mm}
setbeamersize{text margin left=widthTextMarginLeft, text margin right=widthTextMarginRight}
newlength{sidebarWidth}
setlength{sidebarWidth}{0.3paperwidth}
setbeamersize{sidebar width left=sidebarWidth, sidebar width right=0cm}
begin{document}
begin{frame}{Uncovering Contents When They Cannot Fit in One Slidevspace{0.2cm}}
end{frame}
end{document}
answered Mar 18 at 6:08
Majid AbdolshahMajid Abdolshah
64828
64828
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%2f480029%2ftitle-palettes-provide-small-skipping-below-the-title-when-it-has-two-lines%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