X
尝试在列类型之间引入非 1:1 的比率tabularx
。我现在遇到的问题是我的第三列类型p{11ex}
不再被接受。我不知道为什么。
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\textwidth}{{>{\hsize=.5\hsize}X>{\hsize=1.5\hsize}X}p{11ex}}
the quick brown fox jumped & over the lazy dog a few times to pad & out the sentence \\
\end{tabularx}
\end{document}
答案1
谢谢!真是个小错误……
解决方案是:
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\textwidth}{>{\hsize=.5\hsize}X>{\hsize=1.5\hsize}Xp{11ex}}
the quick brown fox jumped & over the lazy dog a few times to pad & out the sentence \\
\end{tabularx}
\end{document}
答案2
tabu 包使得设置 X 列的宽度变得更加容易。
\usepackage{tabu}
和
\begin{tabu}[X[2] X X]
将使第一列的大小增加一倍,等等。