# tabulary: Support for scaled column widths?

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}

• you can just use a normal tabular no need for tabulary – David Carlisle Jul 23 '18 at 15:01

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.)

• You are not using tabulary at all, just use tabular (also the line is overfull by parindent+3\arrayrulewidth+4\tabcolsep=40.2pt) – David Carlisle Jul 23 '18 at 15:00
• samcarter: Can you explain your solution? Are you defining the total table width as 1.0, then dividing the column widths up to make 1.0? – mikey Jul 23 '18 at 15:02
• @DavidCarlisle I don't understand either why the OP uses tabulary for two p columns. – user36296 Jul 23 '18 at 15:11
• @mikey The point is that you know the total with of the table from the first argument of 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. – user36296 Jul 23 '18 at 15:13
• A legacy document I am working on uses tabulary. If I can get this to work using tabulary, that is the best solution. – mikey Jul 23 '18 at 15:14