Graphics, Figures & TablesColumns with different sized text

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lloyd22
Posts: 8
Joined: Mon Jul 05, 2010 2:39 am

Columns with different sized text

Post by lloyd22 »

Quite new to LaTeX. What's the best way to set up a table with smaller font size in certain specified columns, so that once it's set up and I start typing in the entries for each row, I don't have to specify the changes in size for the entries in those columns? Thank you! Lloyd.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Columns with different sized text

Post by localghost »

If I understand you right, the code below should do what you want.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{array,booktabs}

\begin{document}
  \begin{tabular}{l>{\footnotesize}l>{\Large}l}\toprule
    Normal & Footnote size & Large \\\midrule
    Values & Values & Values \\
    Values & Values & Values \\
    Values & Values & Values \\\bottomrule
  \end{tabular}
\end{document}
For more information about the involved packages refer to their manuals on CTAN or via command prompt on your local machine.

Code: Select all

texdoc array

Best regards and welcome to the board
Thorsten
lloyd22
Posts: 8
Joined: Mon Jul 05, 2010 2:39 am

Re: Columns with different sized text

Post by lloyd22 »

Thank you Thorsten, that does the trick nicely. It leads me to another related question, which I hope it's ok to post in this same thread:

What if I wanted to set the table up with different formatting for odd rows and even rows? The reason is that I want to entabulate some data, and include in the "inbetween" rows the difference between entries above and below. I know there are other ways to represent this information in a table (such as in a different column), but for my current purposes it makes sense to do it this way.

I appreciate you posting in a complete working solution for me last time--to save you time, you could just indicate a couple of key words (and packages if they are required) and I'm happy to go look it up for myself.

Regards, Lloyd
Post Reply