Salve,
vorrei sapere se e come si puo’ aumentare la larghezza di un block.
Ad esempio vorrei che il block nel codice sottostante sia piu’ largo in modo da contenere tutta la formula matematica.`
\documentclass[10pt]{beamer}
\usepackage[english]{babel}
\usetheme{Berlin}\begin{document}
\begin{frame}
\frametitle{Esempio Larghezza Block}
\begin{block}{test}
$$ J=\left[ \begin{array}{cc}
-l_1sin(\theta_1)-l_2sin(\theta_1+\theta_2) & l_2sin(\theta_1+\theta_2)\\
l_1cos(\theta_1)+l_2cos(\theta_1+\theta_2) & l_2cos(\theta_1+\theta_2)\end{array} \right]$$
$$T = J^TF
= \left[ \begin{array}{cc}
-l_1S_1-l_2S_{12} & l_1C_1+l_2C1_2\\
l_2S1_2 & l_2C_{12}\end{array} \right]
\left[ \begin{array}{c}
F\\
0 \end{array} \right]
= \left[ \begin{array}{c}
(-l_1S_1-l_2S_{12})F\\
(-l_2S_{12})F\end{array} \right]$$
\end{block}
\end{frame}
\end{document}
`
Più che aumentare la grandezza del block, meglio comporre in modo più adeguato tutto l’insieme:
`\documentclass[10pt]{beamer}
\usepackage[english]{babel}
\usetheme{Berlin}
\begin{document}
\begin{frame}
\frametitle{Esempio Larghezza Block}
\begin{block}{test}
\begin{gather*}
J=\begin{bmatrix}
-l_1sin(\theta_1)-l_2sin(\theta_1+\theta_2) & l_2sin(\theta_1+\theta_2)\\
l_1cos(\theta_1)+l_2cos(\theta_1+\theta_2) & l_2cos(\theta_1+\theta_2)
\end{bmatrix}\\
\begin{aligned}
T=J^TF&=\begin{bmatrix}
-l_1S_1-l_2S_{12} & l_1C_1+l_2C1_2\\
l_2S1_2 & l_2C_{12}
\end{bmatrix}
\begin{bmatrix}
F\\
0
\end{bmatrix}\\
&=\begin{bmatrix}
(-l_1S_1-l_2S_{12})F\\
(-l_2S_{12})F
\end{bmatrix}
\end{aligned}
\end{gather*}
\end{block}
\end{frame}
\end{document}`
Mai usare $$ in LaTeX; gli ambienti di amsmath sono già disponibili in beamer.
Ciao
Enrico