# A table font size smaller than tiny?

I have looked and there are answers for LaTeX documents, but not a way to implement it in LyX. If I have a table and it just does not fit, is there a way to get a text size smaller than \tiny in LyX? I am inserting my table using insert -> float -> table, and it looks great just a LITTLE too small.

-
Using a smaller font might produce a very difficult to read table. –  Gonzalo Medina Mar 19 '13 at 2:57
A LyX minimal example is always useful in questions like these: wiki.lyx.org/FAQ/MinimalExample –  scottkosty Mar 19 '13 at 3:09
Using the graphicx package you can scale a box/table to the size you want. –  A.Ellett Mar 19 '13 at 3:13
@GonzaloMedina The table neatly fits and is VERY readable so a step down shouldn't hurt. Any ideas in LyX using insert -> table and then pasting in ERT for the table –  Chris J Mar 19 '13 at 4:27
@CJ12 Please consider doing your readers a favour and make sure the table fits without scaling. Can you redesign the table? Can you post an example of what you've got? –  Marc van Dongen Mar 19 '13 at 4:48

If you really want to make sure your table becomes unreadable, you can use the \fontsize command to set the font size to whatever you like:

\documentclass{article}
\usepackage{lmodern,blindtext}

\begin{document}
\blindtext

\begin{table}[!h]
\fontsize{4}{4}\selectfont
\begin{tabular}{lllllll}
\hline
hat & einer & gemacht zu & werden um von & Buch Wollen & unter & auch so weiter \\ \hline
\end{tabular}
\end{table}

\fontsize{1}{1}\selectfont
\Blindtext
\end{document}


-
not unreadable at all, exactly what I needed –  Chris J Mar 19 '13 at 15:14

You can use the graphicx package to resize a box:

\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
\pagestyle{empty}
\begin{document}

\noindent
\resizebox{\linewidth}{!}{%
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|}\hline
This & that & another & more & something else & and yet more & another column & more columns & more and more columns & and still much much more\\\hline
\end{tabular}}
\end{document}


The syntax is:

\resizebox{<horizontal width>}{<vertical height>}{<box>}


The ! tells the \resizebox to scale the vertical proportional to the horizontal rescaling.

-
How would this work in LyX? I am using insert -> table and then pasting in ERT for the table –  Chris J Mar 19 '13 at 4:26
As I understand it, you can add LaTeX code directly to you LyX document. –  A.Ellett Mar 19 '13 at 4:29