TeX Community Aggregator

Category TeXample.net TikZ examples (Stefan Kottwitz)

Motivation model diagram Heckhausen Rheinberg

A diagram of the cognitive motivation model of Heckhausen and Rheinberg. I made it as an answer to a question at http://golatex.de/schaubild-mit-tikz-t16597.html styles are used styles base on other styles (inheritance) foreach-loops for repeating things a matrix is used for… Continue Reading →

A mindmap showing TeX projects supported by DANTE e.V.

A mindmap showing TeX projects supported by DANTE e.V., the german language TeX user group with home page at www.dante.de DANTE sponsors their server costs for the web sites shown in the mindmap. TeX forums TeX galleries TeX blogs Tools,… Continue Reading →

A simple Tree

A simple tree with a style for all nodes. Edit and compile if you like: % A simple Tree % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[sibling distance=10em, every node/.style = {shape=rectangle, rounded corners, draw, align=center, top color=white,… Continue Reading →

Bar chart

A bar chart can be used for comparing values. Here we create a horizontal bar chart. The pgfplots package provides an easy way. In this example, I reduced axis data to focus on the values. So I do not show… Continue Reading →

A descriptive diagram of TikZ tasks

A diagram showing various TikZ drawing tasks, using the smartdiagram package. Edit and compile if you like: % A descriptive diagram of TikZ tasks % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagram[descriptive diagram]{ {Style,{Define shapes, colors, shading, and… Continue Reading →

Mindmap

A mindmap of TeX concepts. Edit and compile if you like: % Mindmap % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border = 60pt]{standalone} \usepackage[landscape]{geometry} \usepackage{tikz} \usetikzlibrary{mindmap} \usepackage{metalogo} \usepackage{dtklogos} \begin{document} \begin{tikzpicture} \path [ mindmap, text = white, level 1 concept/.append style =… Continue Reading →

Decision tree

A horizontal tree, growing to the right. I created a basic style for tree nodes, and derived styles for specific kinds of nodes. Edit and compile if you like: % Decision tree % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{tikz}… Continue Reading →

Flowchart

A flowchart showing how we may choose a math environment. It shows using styles, placing nodes in a matrix, and drawing arrows using loops. Edit and compile if you like: % Flowchart % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=20pt]{standalone} \usepackage[a4paper,vmargin=3cm]{geometry}… Continue Reading →

A Venn diagram with PDF blending

PDF blend mode requires TikZ version 3.0 or above. Edit and compile if you like: % A Venn diagram with PDF blending % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[blend group = soft light] \fill[red!30!white] ( 90:1.2)… Continue Reading →

A flowchart of a TeX workflow

A flowchart showing a common TeX workflow, using the smartdiagram package. Edit and compile if you like: % A flowchart of a TeX workflow % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagram[flow diagram:horizontal]{Edit, \LaTeX, Bib\TeX/ biber, make\-index, \LaTeX}… Continue Reading →

A circular diagram of a TeX workflow

A diagram showing a TeX workflow using the clever smartdiagram package. Edit and compile if you like: % A circular diagram of a TeX workflow % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagram[circular diagram:clockwise]{Edit, pdf\LaTeX, Bib\TeX/ biber, make\-index,… Continue Reading →

A diagram of TeX engines

A diagram of TeX engines using the clever smartdiagram package. Edit and compile if you like: % A diagram of TeX engines % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{smartdiagram} \usepackage{metalogo} \usepackage{dtklogos} \begin{document} \smartdiagram[bubble diagram]{\TeX\ engines, \TeX\ (dvi), pdf\TeX, \XeTeX,… Continue Reading →

A diagram of TeX software

A diagram presenting TeX software using the smartdiagram package. Edit and compile if you like: % A diagram of TeX software % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagram[constellation diagram]{\TeX\ software, Editor, Compiler, Converter, PDF Reader} \end{document} Click… Continue Reading →

A bottom-up chart of a TeX workflow

A priority chart showing a common TeX workflow from bottom to top, using the smartdiagram package. Edit and compile if you like: % A bottom-up chart of a TeX workflow % Author: Stefan Kottwitz % https://www.packtpub.com/hardware-and-creative/latex-cookbook \documentclass[border=10pt]{standalone} \usepackage{smartdiagram} \begin{document} \smartdiagram[priority… Continue Reading →

Commutative diagram

A simple example of a commutative diagram using TikZ, short and readable. It has been posted as answer to the question http://tex.stackexchange.com/q/45741/213 of Elias. A matrix is used for positioning the main nodes Arrows are drawn as edges, between the… Continue Reading →

Drawing a graph

In graph theory, models and drawings often consists mostly of vertices, edges, and labels. So, it may be possible, to use a simpler language for generating a diagram of a graph. The tkz-graph package offers a convenient interface. The code… Continue Reading →

Highlighting elements in matrices

A submatrix within a matrix should be highlightened. Instead of simply drawing a rectangle, we can use TikZ for producing a rectangle node, using the fit library for fitting the desired area, defining a style for the highlighted node, so… Continue Reading →

A calendar of circles

A calendar example from the PGF manual. Modifications are changes in font family and size commands shaded background circle shaded month circles font sizes and distances. Edit and compile if you like: % A calendar of circles % Author: Till… Continue Reading →

Logic diagram

Math formulas and arrows with TikZ http://texblog.net/latex-archive/maths/logic-tikz/ In the Art of Problem Solving Forum http://www.artofproblemsolving.com/Forum/viewtopic.php?p=1359679#1359679 somebody asked for help in creating a construction for proofs and demonstrations in Logic by LaTeX commands. Math expressions should be aligned, some connected by… Continue Reading →

A family tree

Posted for discussing and improving on http://tex.stackexchange.com/q/39696/213 Edit and compile if you like: % A family tree % or: an organisational chart % Author: Stefan Kottwitz , http://texblog.net \documentclass{article} \usepackage{tikz} \usepackage[active,tightpage]{preview} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt}% % \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[ man/.style={rectangle,draw,fill=blue!20}, woman/.style={rectangle,draw,fill=red!20,rounded corners=.8ex},… Continue Reading →

Chains with labeled edges

http://texblog.net/latex-archive/maths/pgf-tikz-commutative-diagram/ The chains library is very useful for writing exact sequences. Yet there’s no feature for labeling the edges of a chain. Besides arrows, we might need to write symbols for maps over, under, or just next to it. This… Continue Reading →

Fancy colorful tables with TikZ

Edit and compile if you like: % Fancy tables with TikZ % Author: Stefan Kottwitz % http://texblog.net \documentclass[svgnames]{beamer} \setbeamertemplate{background canvas}[vertical shading]% [top=blue!1,bottom=blue!30] \setbeamertemplate{navigation symbols}{} \usepackage{tikz} % The table is built using TikZ matrix library features: \usetikzlibrary{matrix} \usepackage[active,tightpage]{preview} \usepackage{subfig} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt}%… Continue Reading →

Lindenmayer systems

Edit and compile if you like: % Lindenmayer systems % Dec 18, 2011, Stefan Kottwitz % http://texblog.net \documentclass{article} \usepackage{tikz} \usepackage[active,tightpage]{preview} \usepackage{subfig} \PreviewEnvironment{tabular} \setlength\PreviewBorder{5pt}% \usetikzlibrary{lindenmayersystems} \usetikzlibrary[shadings] \begin{document} \pgfdeclarelindenmayersystem{Koch curve}{ \rule{F -> F-F++F-F}} \pgfdeclarelindenmayersystem{Sierpinski triangle}{ \rule{F -> G-F-G} \rule{G -> F+G+F}} \pgfdeclarelindenmayersystem{Fractal… Continue Reading →

Commutative diagram with crossing edges

Edit and compile if you like: % Commutative diagram with edges passing under/over % Jan 7, 2009, Stefan Kottwitz % http://texblog.net \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage[active,tightpage]{preview} \usepackage{subfig} \PreviewEnvironment{tikzpicture} \setlength\PreviewBorder{5pt}% \begin{document} \begin{tikzpicture} \matrix (m) [matrix of math nodes, row sep=3em, column sep=3em]{… Continue Reading →

Fancy chapter headings

An example of how you can use TikZ and absolute positioning to create fancy chapter headings. Edit and compile if you like: % Fancy chapter headings % Author: Stefan Kottwitz % Source: http://texblog.net/latex-archive/layout/fancy-chapter-tikz/ \documentclass[svgnames]{report} \usepackage{tikz} \usepackage{kpfonts} \usepackage[explicit]{titlesec} \newcommand*\chapterlabel{} \titleformat{\chapter} {\gdef\chapterlabel{}… Continue Reading →

Sudoku 3D cube

This example shows how to create an effective 3D effect using the slant transformation. Shading has been added to enhance the 3D impression. Read more about this example over at TeXblog. Edit and compile if you like: % :Author: Stefan… Continue Reading →

© 2025 TeX.social