I have the table on the left, whereas what I want is the table on the right.
That is, spread or span the table cells across the minipage
environment.
How do I do that?
Code:
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8 Unicode
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\newfontfamily\englishfont{Arial}[Script=Latin,Language=English]
\begin{document}
\begin{minipage}[b][14cm][t]{10cm}
\begin{tabularx}{\textwidth} {
| >{\centering\arraybackslash}X |
}
\hline
item 1 \\
\hline
item 2 \\
\hline
item 3 \\
\hline
item 4 \\
\hline
item 5 \\
\hline
item 6 \\
\hline
item 7 \\
\hline
\end{tabularx}
\end{minipage}
\end{document}
minipage
environments have a pre-set width, but no pre-set height.minipage
is given by the heights of whatever objects are in it. If your goal is to set the overall height of atabular
environment to some value, there's no point in taking aminipage
-based detour.tabularx
nortabular
accept height in one of its argument. Only width. So if I agree to give upminipage
, how do I get it done?