An example will speak for itself:
\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage{tabulary}
\begin{document}
\begin{tabular}{c}aa\end{tabular}
\begin{tabulary}{\textwidth}{C}aa\end{tabulary}
\begin{tabulary}{\textwidth}{C}bb\end{tabulary}
\end{document}
Here, a warning is raised by only the first tabulary
. It says Package tabulary Warning: No suitable columns
. Whether it happens depends on the content of the cell, but I could not really understand in what case.
Why does this warning appear? It seems like a bug in either fontenc
or tabulary
so it should be corrected.
Note: Even though it is just a warning, it alters the display of tables. See this thread. Edit: Actually not. The problem was unrelated.
Best Answer
The problem seems to be in the fact that the European Modern font have a slightly thinner em than Computer Modern.
If I load
tabulary
with thedebugshow
option, I getfor the first
tabulary
whenT1
is not loaded. Conversely, I getwhen
T1
is loaded.If I add
to the document preamble, the diagnostic is
that avoids the warning.