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

texblog

because LaTeX matters

includegraphics

Automated sub-figure generation using a loop in LaTeX

9. October 2015 by tom 9 Comments

Consider the following scenario: By changing one or more parameters in an experimental method, we produce a series of figures. We then want to include these figures in a research report, manuscript, or thesis. It is often possible to reduce the amount of code/typing through automation of subfigure generation. More specifically, one sub-figure environment 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, Package, Tips & tricks Tagged: appendix, automate, figure, for, includegraphics, LaTeX, loop, multiple figures, subcaption, subfigure

Figure with border in LaTeX

20. February 2014 by tom 1 Comment

Often, figures have a white background which makes the figure border invisible on white paper. If a figure has several disconnected elements, it looks better to delimit them with a frame around figure. The adjustbox package scales, resizes, trims, rotates, and also frames LaTeX content. Conveniently, these functions can be exported to the \includegraphics command, … [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: adjustbox, border, figure, frame, graphicx, includegraphics, LaTeX, subfig, subfigure, usepackage

Writing a memo in LaTeX

7. March 2012 by tom 9 Comments

I was recently looking for a memorandum template when I came across a neat memo class, texMemo, written by Rob Oakes. It is based on the article documentclass and provides the following five commands: To: \memoto{}, From: \memofrom{}, Subject: \memosubject{}, Date: \memodate{}, and Logo: \logo{}. The usage is very simple, here is an example: The … [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: date, from, graphicx, includegraphics, LaTeX, logo, memo, memodate, memofrom, memorandum, memosubject, memoto, subject, texMemo, to, usepackage

R: Controlling size and placement (subfig) of Sweave-generated figures

1. December 2011 by tom 4 Comments

I’ve been writing quite a bit of R code recently for my gene expression analysis. Also, I use Sweave (manual) which allows embedding R code “chunks” into TeX documents. When the code is being evaluated, the output (code, calculation results, plots, tables, etc.) will automatically integrated into the document as TeX syntax, making it an … [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, R, Sweave/knitr, Tips & tricks Tagged: eps, figure, graphicx, includegraphics, LaTeX, pdf, png, r, subfig, subfloat, Sweave/knitr, SweaveOpts, usepackage

Placing figures/tables side-by-side (\subfig)

24. May 2011 by tom 34 Comments

The subfigure package was replace by the subfig package quite a while ago. I therefore decided to replace my old post on that topic (Placing figures/tables side-by-side with subfigure) with an introduction to the subfig package. The package simplifies the positioning, captioning (I wonder if that’s a word) and labeling of small “sub” figures 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, Introduction, LaTeX, Package, Tips & tricks Tagged: caption, figure, graphicx, includegraphics, label, LaTeX, listoffigures, listoftables, lofdepth, lotdepth, subfig, subfigure, subfloat, subref, subtable, table, tableofcontent, 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
  • Changing the font size in LaTeX
  • Greek letters in text without changing to math mode
  • Big O and related notations 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