2010-02-23 33 views
6

Slayt göstergesini (örneğin, SLIDE_NUMBER/TOTAL_SLIDES) altbilgiyi tamamen kaldırmadan, bir Beamer sunumunun altbilgisinden (footline) kaldırmak istiyorum. infolines dış temasını kullanan Boadilla temasını kullanıyorum. Ben aslında bu o \insertframenumber{}/\inserttotalframenumber\hspace*{2ex} varsa, ya da başka şekilde devralan yeni dış tema tanımlamıyor şekilde bu dış temasını yeniden tanımlamak gerekirSlayt sayısını Beamer altbilgisinden çıkarın

\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% 
} 

: beamerouterthemeinfolines.sty dosyasında, biz Footline için şu tanımı bulmak infolines temasından başka her şey. Bunu nasıl yapabilirim?

İlgili soru: Eğer sadece iyi bir fikir olduğunu olabilir dosyayı beameroutertheminfolines.sty değiştirebilir isterseniz How to Remove Footers of LaTeX Beamer Templates?

cevap

6

. Bunun yerine, footline kodunu .tex dosyanıza almanız ve çerçeve numaralarının sırasını silmeniz ya da yaptığım gibi, sadece bir yoruma dönüştürmeniz yeterlidir.

\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

Bu çözüm iyi çalışıyor, ama görüşte bulunan '%' "' sonraki #turning için '#' takas emin olun ..: Yani .tex dosyasına beameroutertheminfolines.sty gelen kesin bir bölümünü kopyalamak .' "veya bu derlenmez (" # "derlemeyi bozar). – gotgenes

+0

@gotgenes bunu düzeltdi, teşekkürler! – mropa

+0

Bu benim için iyi çalıştı ve ek değişiklik yapmamı sağladı (slayt numarasını sakla ama "/ \ inserttotalframenumber" i kaldır – Chris