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

texblog

because LaTeX matters

Tips & tricks

10 ways to customize toc/lof/lot

9. September 2011 by tom 144 Comments

I put together this list of 10 ways to customize the Table of Contents, List of Figures and List of Tables. Some of them are pretty common, some may be new to you. Hope you enjoy the list… Some pieces of code below require the tocloft package which provides extensive customization functionality for table of … [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: addcontentsline, figure, hyperref, LaTeX, listoffigures, listoftables, lof, lot, minitoc, table, tableofcontent, toc, tocloft, usepackage

Coloring every alternate table row

2. September 2011 by tom 12 Comments

In one of my previous posts I describe how to color or shade every other row in a LaTeX table. However, there is a much nicer, cleaner and simpler way to color every odd/even row, making tables much more readable. First load the xcolor package in the preamble: and define any color you like, e.g. … [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: definecolor, LaTeX, r, rowcolors, table, tabular, usepackage, xcolor

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

Printing multiple pages on one with pgfpages

6. July 2011 by tom 10 Comments

Your operating system can print several pages on one. Sometimes however you may want to have the PDF showing several slides on a single page, e.g. for handouts of a presentation. On a Linux system, psnup/pdfnup are extremely flexible if you are familiar with these commands and their options. But it’s definitely faster and more convenient … [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: Introduction, LaTeX, Package, Tips & tricks Tagged: 2 on 1, 4 on 1, a4paper, landscape, LaTeX, letterpaper, nofiles, pgfpages, pgfpagesuselayout, 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
« Previous 1 … 20 21 22 … 31 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
  • Cleveref, a clever way to reference in LaTeX
  • Big O and related notations in LaTeX
  • Multi-column and multi-row cells in LaTeX tables
  • Changing the font size in LaTeX

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