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

texblog

because LaTeX matters

caption

Sub-caption above subfigures and subtables

23. January 2014 by tom 6 Comments

I was recently asked an interesting question about how to place a sub-caption on top of a sub-figure. By default, sub-captions are produced below sub-figures. When using the subfigure package, the answer is reasonably easy. The package has an option to move the sub-captions on top of the figure. However, I was curious how other … [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, Package, Tips & tricks Tagged: above, caption, figure, LaTeX, position, subcaption, subfig, subfigure, subfloat, subtable, table, top, usepackage

Using footnotes in tables

3. February 2012 by tom 49 Comments

Have you ever tried to add a footnote to a table inside the tabular environment? Even though the index is printed, the search for the actual footnote will be in vain. One way to overcome this issue is by using longtable. The package handles footnotes really well. But it may be an overkill if your … [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, Package, Tips & tricks Tagged: caption, footnote, LaTeX, longtable, minipage, table, tabular, usepackage

Adding additional structure to the list of figures/tables

18. January 2012 by tom 68 Comments

In large documents, you may end up with a pretty long list of figures or tables. In this post, I will show how to nicely structure these lists by adding subtitles. The whole thing turned out to be more tricky than I first thought, but more on that later. The my examples, I will show … [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, Package, Tips & tricks Tagged: addcontentsline, addtocontents, caption, chapter, contentsline, etoolbox, figure, LaTeX, listoffigures, listoftables, newcommand, renewcommand, table, thechapter, usepackage

Change font size of a table column

18. August 2011 by tom Leave a Comment

I recently edited a table with data. One column contained a text description which was rather long. So I wondered if there is a way to reduce the font size of the whole column rather than for each cell individually. And this is what I figured out: Using the column type b{width} it is further … [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, Package, Tips & tricks Tagged: array, caption, hline, LaTeX, table, tabular, usepackage

LaTeX syntax highlighting examples

11. June 2011 by tom 15 Comments

Syntax highlighting in LaTeX using the listings package is very powerful. Below, I will provide a few examples for your convenience. First, let me briefly summarize the usage of the listings package. So below you’ll find a few complete code examples to reuse and modify for your purposes: “The Pseudo Code Box” This code was … [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: LaTeX, Package, Tips & tricks Tagged: backgroundcolor, caption, code, color, commentstyle, definecolor, java, keywordstyle, language, LaTeX, listings, lstinputlisting, lstset, otherkeywords, stringstyle, syntax highlighting, usepackage
1 2 Next »




Consulting

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

Join 6,570 other subscribers
doi2bib




Top Posts & Pages

  • Control the width of table columns (tabular) in LaTeX
  • Multi-column and multi-row cells in LaTeX tables
  • LaTeX documentclass options illustrated
  • Changing the font size in LaTeX
  • Greek letters in text without changing to math mode

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