0

I am having problems with tabulary in a 2-column table. If column2 has multiple lines of text, it causes column1 to be squeezed to a ridiculously small width. And column1 sometimes overflows into column2. Basic markup:

 \usepackage{tabulary} ... begin{table}[H] begin{tabulary}{.9\textwidth}[]{|L|L|} ... \end{tabulary} \end{table} 

More detail:

 {\small\begin{table}[H] \caption{Conventions Used in This Document} \begin{tabulary}{.9\textwidth}[]{|L|L|} \hline \textbf{Convention} & \textbf{ Meaning } \\ \hline \textbf{boldface} & Boldface type indicates graphical user interface elements associated with an action, or terms defined in text or the glossary. \\ \hline \textit{italic} & Italic type indicates book titles, emphasis, or placeholder variables for which you supply particular values. \\ \hline \texttt{monospace} & Monospace type indicates commands within a paragraph, URLs, code in examples, text that appears on the screen, or text that you enter. \\ \hline \end{tabulary} \end{table} 

Suggested fix of replacing {|L|L|} with {|1L|} fails with following error:

! Package array Error: Illegal pream-token (1): `c' used. 
1
  • Comments are not for extended discussion; this conversation has been moved to chat. Commented Aug 19, 2018 at 7:14

1 Answer 1

3

No usable example is provided so this is untested but as there should be no linebreaking in the first column it should be a standard l column not an L column which is a parbox column like >\raggedright}p{...} for some calculated width.

So use

\begin{tabulary}{\textwidth}{|l|L|} 

Note using .9\textwidth forces the table to be off-centre with a strange 10% margin at the right hand side.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.