3

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}
  • 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
8

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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