Beamer: footline di CambridgeUS

  • Creatore
    Topic
  • #31871
    Up
    0
    Down
    ::


    Salve, domanda da principiante

    come si fa a togliere il nome del dipartimento dalla footline in questo esempio minimale?

    `
    \documentclass[]{beamer}
    \usepackage{tikz}

    \usetheme[]{CambridgeUS}
    \setbeamercolor{gut}{fg=black,bg=green}
    \setbeamercolor{schlecht}{fg=black,bg=yellow}
    \begin{document}
    \title{Una tesi noiosa}
    \subtitle{con un sottotitlo ancora più noioso}
    \author{Pinco Pallino}
    \institute{Institute of Drugs}
    \date[March 2009]{\today}
    \section{La mia prima presentazione con beamer}
    \begin{frame}\frametitle{Il primo frame}
    \begin{tikzpicture}<1->
    \node (c) [rectangle,draw,fill=yellow] {$\mathit{ST}=0.16\dots1.11$};
    \end{tikzpicture}
    \begin{tikzpicture}<2->
    \node (c) [circle,draw,fill=red] {$\mathit{ST}=0.16\dots1.11$};
    \end{tikzpicture}
    \only<3>{$\mathit{ST}=0.38\dots1.08$}
    \only<4>{$\mathit{ST}=1.35\dots1.32$}
    \end{frame}
    \end{document}`

    Grazie.

    Ps: Sui tikzpicture si può applicare un overlay?

Visualizzazione 2 filoni di risposte
  • Autore
    Risposte
    • #31872
      Up
      0
      Down
      ::


      Immagino che il problema sia la presenza delle parentesi tonde che rimangono anche se si omette il comando \institute{}. Questo codice, da inserire nel preambolo, aggira il problema, ma confesso che non mi piace molto come soluzione :(.

      `\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}
      \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
      \end{beamercolorbox}}%
      \vskip0pt%
      }`

      Ho copiato il codice dal file beamerouterthemeinfolines.sty che viene richiamato dal tema CambridgeUS. Le uniche differenze sono nella prima riga: ho messo \setbeamertemplate{footline} al posto di \defbeamertemplate*{footline}{infolines theme}; e nella sesta riga: ho tolto le parentesi tonde attorno al comando \insertshortinstitute. Le informazioni sull’uso di questi comandi si trovano nella documentazione di beamer.
      Spero possa essere utile, almeno come inizio.

      Ciao
      Ivan

    • #31873
      Up
      0
      Down
      ::


      Ottimo suggerimento. Io non volevo neanche il dipartimento nella footline. Ho risolto così, cambiando anche la larghezza dei box:
      `{%
      \leavevmode%
      \hbox{%
      \begin{beamercolorbox}[wd=.25\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,center]{title in head/foot}%
      \usebeamerfont{title in head/foot}\insertshorttitle
      \end{beamercolorbox}%
      \begin{beamercolorbox}[wd=.25\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
      \usebeamerfont{date in head/foot}\insertdate{}\hspace*{2em}
      \insertframenumber{} / \inserttotalframenumber\hspace*{2ex}
      \end{beamercolorbox}}%
      \vskip0pt%
      }`

      Hai qualche idea di come visualizzare il numero della slide all’interno del frame? Peró solo quando la slide occupa una pagina intera….
      Si potrebbe fare nel titolo, aggiungendo un numero. Di solito si fa con i romani? Solo come??

      Ps: mi riferisco al numero della slide e non al numero di frames.

      Grazie,…

    • #31874
      Up
      0
      Down
      ::


      La situazione non mi è chiarissima.
      Cito dalla documentazione di Beamer:
      In beamer, a presentation consists of a series of frames. Each frame in turn may consist of several slides
      (if there is more than one, they are called overlays). Normally, everything between \begin{frame} and
      \end{frame} is put on a single slide.

      Quindi, se ho ben capito, nell’esempio minimale che hai proposto c’è un frame suddiviso su quattro slides. Per avere il numero su ogni slide farei così:

      `\setbeamertemplate{headline}
      {%
      \leavevmode%
      \hbox{%
      \begin{beamercolorbox}[wd=.5\paperwidth,ht=2.25ex,dp=1ex,right]{section in head/foot}%
      \usebeamerfont{section in head/foot}\insertsectionhead\hspace*{2ex}
      \end{beamercolorbox}%
      \begin{beamercolorbox}[wd=.45\paperwidth,ht=2.25ex,dp=1ex,left]{subsection in head/foot}%
      \usebeamerfont{subsection in head/foot}\hspace*{2ex}\insertsubsectionhead \end{beamercolorbox}%
      \begin{beamercolorbox}[wd=0.05\paperwidth,ht=2.25ex,dp=1ex,left]{subsection in head/foot}%
      \usebeamerfont{subsection in head/foot}\hfill\roman{page}
      \end{beamercolorbox}}%
      \vskip0pt%
      }`

      Il numero della slide risulta nella headline a destra (le misure del box andranno probabilmente aggiustate). Non ho capito cosa intendi dire quando affermi che vuoi il numero solo quando la slide occupa una pagina intera…

      Ciao
      Ivan

Visualizzazione 2 filoni di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top