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

texblog

because LaTeX matters

pgf/TiKZ

Drawing trees with TikZ/PGF and LuaLaTeX

16. September 2015 by tom 14 Comments

TikZ/PGF is a flexible and powerful package for creating graphics in LaTeX. It’s syntax can be somewhat overwhelming at the beginning. In this post I show the basics of tree drawing using TikZ and LuaLaTeX.   The following code only works with LuaLaTeX. Make sure you use the lualatex engine rather than standard tex/latex for … [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: directed, edge, graph, LaTeX, node, pgf/TiKZ, TikZ, tree, usepackage

Cropping the output file to its content in LaTeX

12. September 2012 by tom 4 Comments

The documentclass options a4paper or letterpaper are certainly not the right choices when creating a set of equations or vector graphics using TiKZ for embedding in another document or standalone usage. Ideally, the output file is automatically set to fit its content, possibly with some whitespace around it. The following post describes two possible ways: … [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: crop, crop page, documentclass, figure, fit page to content, LaTeX, pgf/TiKZ, preview, standalone, usepackage




Consulting

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

Join 6,570 other subscribers
doi2bib




Top Posts & Pages

  • Multi-column and multi-row cells in LaTeX tables
  • Control the width of table columns (tabular) in LaTeX
  • LaTeX documentclass options illustrated
  • Cleveref, a clever way to reference in LaTeX
  • 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