- Questo topic ha 1 risposta, 1 partecipante ed è stato aggiornato l'ultima volta 14 anni, 10 mesi fa da .
-
Topic
-
Salve,vorrei impostare un footer con un box adattabile rispetto al titolo: se è troppo lungo vorrei aumentare l’altezza del box.
Il codice che ho usato è:
`
\newlength{\beamer@torinoth@textbox}
\setlength{\beamer@torinoth@textbox}{\widthof{Evaluation text to be compared with the title}}
\newlength{\beamer@torinoth@titlelength}
\setlength{\beamer@torinoth@titlelength}{\widthof{\inserttitle}}
\ifdim\beamer@torinoth@titlelength>\beamer@torinoth@textbox
\setlength{\beamer@torinoth@box}{.02\paperheight}
\else
\setlength{\beamer@torinoth@box}{.01\paperheight}
\fi
`In seguito, utilizzo:
`
\begin{beamercolorbox}[wd=.6\paperwidth,ht=\beamer@torinoth@box,dp=0pt,center,rounded=true,shadow=true]{footerbox}%
\usebeamerfont{footnote}\inserttitle \par%
\end{beamercolorbox}%
`Facendo alcune prove credo di avere capito che il problema è nel `\widthof{\inserttitle}`. Come posso fare?
Grazie,
FC
- Devi essere connesso per rispondere a questo topic.