Resize matrix in LaTeX beamer

情到浓时终转凉″ 提交于 2019-12-14 00:32:14

问题


Hi I was wondering how to resize matrices in a beamer environment. Currently I am writing the following code:

\begin{align*}
\left( \begin{array}{ccccccc}
 0 & 1 &    &   &        &    &   \\
-1 & 0 &    &   &        &    &   \\
   &   &  0 & 1 &        &    &   \\
   &   & -1 & 0 &        &    &   \\
   &   &    &   & \ddots &    &   \\
   &   &    &   &        & 0  & 1 \\
   &   &    &   &        & -1 & 0
\end{array} \right)
\end{align*}

and the matrix takes up almost a whole page. I would like it to be about half a page in height.


回答1:


See this answer for how to change font dimensions in LaTeX's math mode.

Edit

Specifying font sizes in beamer is no different from specifying them in other LaTeX documents. To e.g. change the size of your array you would switch the size by adding the command inside your align environment.

Valid commands are \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \huge, and \Huge (there could be more).




回答2:


There is the \resizebox command in the graphicx package:

\resizebox{.5\textwidth}{!}{  (your array here)  }

I've never tried it, but it looks as it is made exactly for this kind or problem.

Of course, you can choose different widths (first argument) or different height (second argument) parameters.



来源:https://stackoverflow.com/questions/2727092/resize-matrix-in-latex-beamer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!