Code: Select all
\part{testing}
\frame{\partpage}
Code: Select all
\part{testing}
\frame{\partpage}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
\documentclass[compress]{beamer}
\mode<presentation> {
\usetheme{Warsaw}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}
\setbeamertemplate{headline}[default]
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\end{beamercolorbox}}%
\vskip0pt%
}
}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{helvet}
\usepackage{courier}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{subfigure}
\usepackage{fancybox}
\usepackage{slashbox} %%for slash in tables
\setbeamertemplate{navigation symbols}{}
\begin{document}
\part{testing}
\frame{\partpage}
\end{document}
Code: Select all
\defbeamertemplate*{part page}{default}[1][]
{
\begin{centering}
{\usebeamerfont{part name}\usebeamercolor[fg]{part name}
\partname~\insertromanpartnumber}
\vskip1em\par
\begin{beamercolorbox}[sep=8pt,center,#1]{part title}
\usebeamerfont{part title}\insertpart\par
\end{beamercolorbox}
\end{centering}
}
Code: Select all
\setbeamertemplate{part page}[default][colsep=-4bp,rounded=true,
shadow=\beamer@themerounded@shadow]
Code: Select all
\makeatletter
\setbeamertemplate{part page}[default][colsep=-4bp,rounded=true,
shadow=\beamer@themerounded@shadow,wd=0.4\textwidth]
\makeatother
Code: Select all
\documentclass[compress]{beamer}
\mode<presentation> {
\usetheme{Warsaw}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}
\setbeamertemplate{headline}[default]
\setbeamertemplate{footline}{
\leavevmode%
\hbox{%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
\usebeamerfont{author in head/foot}\insertshortauthor
\end{beamercolorbox}%
\begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
\end{beamercolorbox}}%
\vskip0pt%
}
}
\makeatletter
\setbeamertemplate{part page}[default][colsep=-4bp,rounded=true,
shadow=\beamer@themerounded@shadow,wd=0.4\textwidth]
\makeatother
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{helvet}
\usepackage{courier}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{subfigure}
\usepackage{fancybox}
\usepackage{slashbox} %%for slash in tables
\setbeamertemplate{navigation symbols}{}
\begin{document}
\part{testing}
\frame{\partpage}
\end{document}
Code: Select all
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{helvet}
\usepackage{courier}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{subfigure}
\usepackage{fancybox}
\usepackage{slashbox} %%for slash in tables
\setbeamertemplate{navigation symbols}{}
\begin{document}
\part{testing}
\frame{\partpage}
\part{testing2}
\begin{frame}
\begin{centering}
{\usebeamerfont{part name}\usebeamercolor[fg]{part name}
\partname~\insertromanpartnumber}
\vskip1em\par
\hfill\hfill
\begin{beamercolorbox}[sep=8pt,colsep=-4bp,rounded=true,wd=0.4\textwidth,center,shadow]{part title}
\usebeamerfont{part title}\insertpart\par
\end{beamercolorbox}
\hfill\hfill
\end{centering}
\end{frame}
\end{document}
That's the definition I get, but I still don't know how to use it. What is \gnat? and how can I insert it into the \partpage command?\settowidth{\gnat}{text}'
The `\settowidth' command sets the value of a `length' command equal
to the width of the `text' argument.
Code: Select all
\newlength{\gnat}% create a length
\defbeamertemplate*{part page}{my part}[1][]
{
\begin{centering}
{\usebeamerfont{part name}\usebeamercolor[fg]{part name}
\partname~\insertromanpartnumber}
\vskip1em\par
\settowidth{\gnat}{\insertpart}% set the length matching to the title
\addtolength{\gnat}{2em}% raise the length a bit
\hfill
%now we use that length
\begin{beamercolorbox}[sep=8pt,center,wd=\gnat,#1]{part title}
\usebeamerfont{part title}\insertpart\par
\end{beamercolorbox}
\hfill
\end{centering}
}
\makeatletter
\setbeamertemplate{part page}[my part][colsep=-4bp,rounded=true,
shadow=\beamer@themerounded@shadow]
\makeatother
Code: Select all
\documentclass[compress]{beamer}
\mode<presentation> {
\usetheme{Warsaw}
\usefonttheme[onlymath]{serif}
\setbeamercovered{transparent}
\setbeamertemplate{headline}[default]
\setbeamertemplate{footline}[default]
}
\makeatletter
\setbeamertemplate{part page}[default][colsep=-4bp,rounded=true,
shadow=\beamer@themerounded@shadow,wd=0.4\textwidth]
\makeatother
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage{helvet}
\usepackage{courier}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{subfigure}
\usepackage{fancybox}
\usepackage{slashbox} %%for slash in tables
\setbeamertemplate{navigation symbols}{}
\newlength{\gnat}% create a length
\defbeamertemplate*{part page}{my part}[1][]
{
\begin{centering}
\settowidth{\gnat}{\insertpart}% set the length matching to the title
\addtolength{\gnat}{4em}% raise the length a bit
\hfill
%now we use that length
\begin{beamercolorbox}[sep=8pt,center,wd=\gnat,#1]{part title}
\usebeamerfont{part title}\insertpart\par
\end{beamercolorbox}
\hfill
\end{centering}
}
\makeatletter
\setbeamertemplate{part page}[my part][colsep=-4bp,rounded=true,
shadow=\beamer@themerounded@shadow]
\makeatother
\begin{document}
\part{Margin is OK.}
\frame{\partpage}
\part{\mbox{Break here} \mbox{Margin is wrong}}
\frame{\partpage}
\end{document}
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis