• About
    • Cookie Policy
  • Code Snippets
    • Beamer (presentation)
    • Figures
    • Lists
    • Standard classes
    • Tables
  • Consulting
  • LaTeX Installation
  • Posting Questions
  • TeX/LaTeX Resources

texblog

because LaTeX matters

tabular

Multi-page tables using \longtable

15. May 2011 by tom 53 Comments

The longtable package defines an environment that has most of the features of the tabular environment. In addition however, tables may be broken by TeX’s standard page breaking algorithm. Furthermore, it uses the same counter “table” as the table environment and has a \caption{…} command. Finally, “longtables” will be listed in the list of tables … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: Figure & table, Introduction, LaTeX, Package, Tips & tricks Tagged: caption, endfirsthead, endfoot, endhead, endlastfoot, LaTeX, listoftables, longtable, multicolumn, table, tabular, usepackage

Highlight table rows/columns with color

19. April 2011 by tom 21 Comments

The following post will show you how to better present your data in tables through coloring rows/columns or even single cells to highlight important data. You will need the following two packages, the first to define new colors and the latter to actually color the table: Let me first show you how to define a … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: Figure & table, Introduction, LaTeX, Package, Tips & tricks Tagged: cellcolor, color, colortbl, columncolor, definecolor, LaTeX, lcg, newcolumntype, rowcolor, table, tabular

Cont: Equal cell width (right and centre aligned content)

7. May 2008 by tom 19 Comments

One of my last posts was on how to define the width of a column in a table (see here). The parbox (p), which is used by Latex when you define the column width, will by default align its content on the left. This can be changed, but is a bit tricky. The keyword is: … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: Figure & table, LaTeX, Tips & tricks Tagged: centering, LaTeX, raggedright, table, tabular, tabular raggedleft

Repeat column type in LaTeX tabular

4. May 2008 by tom 2 Comments

I am sure you know the situation where you have several columns in a tabular which all are of the same type: Now this can be simplified as follows using the *(star) symbol: The advantages are obvious, the table can be easily extended, you don’t have to count the numerous c’s, l’s or r’s and … [Read more…]

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: Figure & table, LaTeX, Tips & tricks Tagged: column type, LaTeX, repeat column, table, tabular

Equal cell width in LaTeX tables

4. May 2008 by tom 14 Comments

Latex will automatically adjust the width of a cell in a table. If you wish to have a table where each cell in a row has the same width, you would use the p option instead of l, c or r for left, centre or right alignment. Example:

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to email a link to a friend (Opens in new window) Email
Posted in: Figure & table, LaTeX, Tips & tricks Tagged: LaTeX, table, tabular
« Previous 1 … 3 4 5 Next »




Consulting

Need help with your thesis or book project? Let’s discuss.

Join 6,570 other subscribers
doi2bib




Top Posts & Pages

  • Changing the font size in LaTeX
  • Multi-column and multi-row cells in LaTeX tables
  • Big O and related notations in LaTeX
  • Cleveref, a clever way to reference in LaTeX
  • LaTeX documentclass options illustrated

Tags

addcontentsline array article bibliography Bibtex & biblatex book caption chapter citation cite code color definecolor description documentclass draft enumerate equation fancyhdr figure graphicx hyperref includegraphics item itemize label landscape LaTeX letter listoffigures listoftables math minipage reference renewcommand report section subfigure table tableofcontent tabular text TikZ usepackage xcolor

Copyright © 2025 texblog.

Omega Child WordPress Theme by ThemeHall