Can I use the tabulary package to create a 2-column table, with column1 using 30% of the available width and column2 using 70%? For example:
\begin{tabulary}{|p{30%}|p{70%}|}
...
\end{tabulary}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityCan I use the tabulary package to create a 2-column table, with column1 using 30% of the available width and column2 using 70%? For example:
\begin{tabulary}{|p{30%}|p{70%}|}
...
\end{tabulary}
If you know the complete width (which is missing in your code fragment), you can simply calculate the widths:
\documentclass{article}
\usepackage{tabulary}
\begin{document}
\begin{tabulary}{1.0\textwidth}{|p{.3\textwidth}|p{.7\textwidth}|}
a & b\\
\end{tabulary}
\end{document}
As this does not use any of the special features of tabulary
, it can be simplified to
\documentclass{article}
\begin{document}
\begin{tabular}{|p{.3\textwidth}|p{.7\textwidth}|}
a & b\\
\end{tabular}
\end{document}
(or even better: make the columns a bit smaller, as currently there is no room for the space around the columns, but the numbers where easier to demonstrate.)
tabulary
for two p columns.
Jul 23, 2018 at 15:11
tabulary
in the above example 1\textwidth
from the requirements that a) the lenghts have to add up to < the total width and b) your desired ratio is 3:7 you can calculate them. For the easier case of a normal table, you can do the same.
Jul 23, 2018 at 15:13
tabular
no need fortabulary