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

texblog

because LaTeX matters

graphicx

Crop figures with includegraphics

23. February 2012 by tom 18 Comments

Imagine having a beautiful picture, but the subject is very small or not centered. What if you want to place several graphs side-by-side with subfig, but all or some of the graphs have a white border taking up a lot of space. So how to trim pictures and eliminate unwanted margins of graphs? The graphics … [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: clip, crop, figure, graphicx, LaTeX, trim, 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

Beamer: An introduction to LaTeX presentations

3. May 2011 by tom 2 Comments

Beamer is a LaTeX document class that provides extensive functionality to create presentations. Here, I will only show the basics and after reading this guide you will be able to create a simple presentation in LaTeX. I am aware there are a lot of tutorials available out there and this is not different from any … [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: beamer, color, documentclass, figure, frame, frametitle, graphicx, includegraphics, item, itemize, LaTeX, section, usetheme

Placing graphics/images inside a table

4. February 2008 by tom 39 Comments

Pictures do not necessarily have to be placed inside the figure environment, but can perfectly be included inside table cells. The advantage is, you can without any effort arrange a series of images in a matrix and individually scale them. Or, you could combine text with images in a table. And here is how: You … [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: caption, figure, graphicx, hline, label, LaTeX, table, tabular
« Previous 1 2




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
  • 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