2010-02-23 13 views
6

Me gustaría eliminar el recuento de diapositivas (por ejemplo, SLIDE_NUMBER/TOTAL_SLIDES) del pie de página (pie de página) de una presentación de Beamer, sin quitar el pie de página por completo. Estoy usando el tema Boadilla, que usa el tema externo infolines. En el archivo beamerouterthemeinfolines.sty, encontramos la siguiente definición para el footline:Eliminar el recuento de diapositivas del pie de página de Beamer

\defbeamertemplate*{footline}{infolines theme} 
{ 
    \leavevmode% 
    \hbox{% 
    \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}% 
\usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute) 
    \end{beamercolorbox}% 
    \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}% 
\usebeamerfont{title in head/foot}\insertshorttitle 
    \end{beamercolorbox}% 
    \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}% 
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em} 
\insertframenumber{}/\inserttotalframenumber\hspace*{2ex} 
    \end{beamercolorbox}}% 
    \vskip0pt% 
} 

necesito para redefinir este tema esencialmente exterior de tal manera que no tiene la \insertframenumber{}/\inserttotalframenumber\hspace*{2ex} en ella, o de otra manera a definir un nuevo tema externa que hereda todo lo demás desde el tema infolines. ¿Cómo puedo hacer esto?

pregunta relacionada: How to Remove Footers of LaTeX Beamer Templates?

Respuesta

6

Si lo desea, puede simplemente cambiar el archivo beameroutertheminfolines.sty que podría no ser la de una buena idea. Entonces, en su lugar, simplemente toma el código del pie de página en su archivo .tex y elimina la línea para los números de los cuadros o, como lo hice, simplemente conviértalo en un comentario. Así se copia la parte exacta de beameroutertheminfolines.sty en su archivo .tex:

\documentclass{beamer} 
    %#comment out the Boadilla theme and uses only the header bar 
    %\usetheme[]{Boadilla} 
    \usetheme[secheader]{Boadilla} 

     %#make sure to change this part, since it is predefined 
     %\defbeamertemplate*{footline}{infolines theme} 
     \setbeamertemplate{footline} 
     { 
     \leavevmode% 
     \hbox{% 
     \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}% 
     \usebeamerfont{author in head/foot}\insertshortauthor~~(\insertshortinstitute) 
     \end{beamercolorbox}% 
     \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}% 
     \usebeamerfont{title in head/foot}\insertshorttitle 
     \end{beamercolorbox}% 
     \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}% 
     \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{2em} 

    %#turning the next line into a comment, erases the frame numbers 
     %\insertframenumber{}/\inserttotalframenumber\hspace*{2ex} 

     \end{beamercolorbox}}% 
     \vskip0pt% 
    } 
+1

Esta solución funciona bien, pero asegúrese de cambiar el '#' '% a un' en el comentario "' #turning la siguiente .. .' "o esto no compilará (el' # 'rompe la compilación). – gotgenes

+0

@gotgenes lo corrigió, gracias! – mropa

+0

Esto funcionó bien para mí y me permitió modificaciones adicionales (mantenga el número de diapositiva pero elimine "/ \ inserttotalframenumber" – Chris

Cuestiones relacionadas