Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
Using a smaller font might produce a very difficult to read table. –  Gonzalo Medina Mar 19 '13 at 2:57
1  
A LyX minimal example is always useful in questions like these: wiki.lyx.org/FAQ/MinimalExample –  scottkosty Mar 19 '13 at 3:09
1  
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
show 1 more comment

2 Answers 2

up vote 1 down vote accepted

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}

maximum tinyness

share|improve this answer
    
not unreadable at all, exactly what I needed –  Chris J Mar 19 '13 at 15:14
add comment

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.