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 want to create a table of 81 columns in landscaped mode, tiny font is ok. I changed the \documentclass to landscape, however the font was still too big to fit in. Any suggestion or idea would be greatly appreciated.

\documentclass[landscape,6pt,letterpaper]{article}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} 
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{polynomial}
\usepackage{layouts}
\usepackage{enumerate}
\usepackage{syntax}
\usepackage{gensymb}
\usepackage{enumitem}
\usepackage{cancel}
\usepackage{calc}
\usepackage{enumerate}
\usepackage{xcolor}


\begin{document}

\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
    \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 8
    \end{tabular}
\end{document}
share|improve this question
3  
The first step should be to use a format like |*{81}{c|} for your column specification, rather than the hoards of c|'s. –  Werner Jan 9 '13 at 22:20
    
would \resizebox from the graphicx package be useful? –  cmhughes Jan 9 '13 at 22:34
    
@Werner: Thanks for the tip. –  Chan Jan 9 '13 at 22:55

1 Answer 1

up vote 10 down vote accepted

This works:

\documentclass[letterpaper]{article}
\usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} 
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
Some text

\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
{\scriptsize            %% or tiny
    \begin{tabular}{|*{81}{@{\,}c@{\,}|}}
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 
    0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 8
    \end{tabular}
}

Some text again
\end{landscape}
\end{document}

enter image description here

Other options may include using resizebox or scalebox from graphicx package.

share|improve this answer
    
Work like a charm. Thanks a lot. –  Chan Jan 9 '13 at 22:55

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.