2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LaTeXiTで横に見切れる表のサイズを調整する

Posted at

問題

LaTeXiTを使って横に長い表を作ろうとすると、見切れてしまうことがある。
例えば、以下では26まで表示されて欲しいが、24までしか表示されない。

\begin{tabular}{llllllllllllllllllllllllll}
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20 & 21 & 22 & 23 & 24 & 25 & 26
\end{tabular}

image.png

解決方法

\resizeboxを使うことで、サイズをいい感じにしてくれる。
プリアンブルに

\usepackage{graphics}

を追加して

\resizebox{\textwidth}{!}{
  \begin{tabular}{llllllllllllllllllllllllll}
  1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20 & 21 & 22 & 23 & 24 & 25 & 26
  \end{tabular}
}

とすると、26まで表示される。
image.png

参考

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?