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 →
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 →
When drawing graphs by trial and error, the script tikz2pdf by Hans Meine can be very useful. I have the following in ~/.tikz2pdf.tex: \documentclass{article} \usepackage{tikz}\usepackage{tkz-berge} \usepackage[graphics,tightpage,active]{preview}\PreviewEnvironment{tikzpicture}\newlength{\imagewidth}\newlength{\imagescale} \begin{document} \input{%s} \end{document} Then, I edit a file, say foo.tikz, with \begin{tikzpicture} \grHeawood[RA=1]\end{tikzpicture} and… Continue Reading →
Alain Matthes has produced a package (tkz-berge.sty) which should become THE way to draw graphs in LaTeX. It is built on top of Tikz, and so can be easily integrated with beamer presentations. The package can be dowloaded from here,… Continue Reading →
Only after Kjell Magne Fauske posted in his gallery two (much improved) versions of two graphs found here, I realized there is a mistake in my picture of Tutte’s 8-cage. There are 5-cycles among the “inner” 10 vertices. Kjell has… Continue Reading →
See this paper \documentclass{article}\usepackage{tikz}\pagestyle{empty} \begin{document}\begin{center} \begin{tikzpicture}[style=thick] \foreach \x in {18,90,…,306} { \draw (\x:4cm) circle (2pt) — (\x+72:4cm); \draw (\x:4cm) — (\x:3cm) circle (2pt); \draw (\x:3cm) — (\x+15:2cm) circle (2pt); \draw (\x:3cm) — (\x-15:2cm) circle (2pt); \draw (\x+15:2cm) — (\x+144-15:2cm); \draw… Continue Reading →
See this paper. \documentclass{article}\usepackage{tikz}\pagestyle{empty} \begin{document}\begin{center} \begin{tikzpicture}[style=thick] \foreach \x in {0,30,…,330} { \draw (\x:2cm) circle (2pt) — (\x+30:2cm); } \foreach \x in {0,60,…,300} { \draw (\x:2cm) circle (2pt) — (\x+90:2cm); } \foreach \x in {0,30,…,150} { \draw (\x:2cm) circle (2pt) —… Continue Reading →
\documentclass{article}\usepackage{tikz}\pagestyle{empty} \begin{document}\begin{center} \begin{tikzpicture}[style=thick] \foreach \x in {0,15,…,345} { \draw (\x:3cm) circle (2pt) — (\x+15:3cm); } \foreach \x in {0,45,…,135} { \draw (\x:3cm) circle (2pt) — (\x+180:3cm); } \foreach \x in {15,60,…,330} { \draw (\x:3cm) circle (2pt) — (\x+105:3cm); } \end{tikzpicture}\end{center}\end{document}… Continue Reading →
\documentclass{article} \pagestyle{empty}\usepackage{tikz} \begin{document} \begin{center} \begin{tikzpicture}[style=thick,scale=0.5] \def\pentagon{(18:1cm) circle (4pt) node[above right=-1.75pt]{\tiny $4$} — (90:1cm) circle (4pt) node[above]{\tiny $0$} — (162:1cm) circle (4pt) node[above left=-1.75pt]{\tiny $1$} — (234:1cm) circle (4pt) node[below]{\tiny $2$} — (306:1cm) circle (4pt) node[below]{\tiny $3$} — (18:1cm)} \def\pentagram{(18:1cm) circle… Continue Reading →
The unique smallest cubic graph of girth 8. Drawn from Algebraic Graph Theory by Godsil and Royle, p.72. \documentclass{article}\usepackage{tikz}\pagestyle{empty} \begin{document}\begin{tikzpicture}[style=thick] \foreach \x in {0,36,…,324} { \draw (\x:2cm) circle (2pt) — (\x+144:2cm); \draw (\x-10:3cm) circle (2pt) — (\x+5:4cm); \draw (\x-10:3cm) circle… Continue Reading →
\documentclass{article}\usepackage{tikz}\pagestyle{empty} \begin{document} \begin{center} \begin{tikzpicture}[style=thick] \foreach \x in {0,1,2} \foreach \y in {0,1,2} {\draw (\y,0) — (\x,1);} \foreach \x in {0,1,2}{ \draw (\x,0) circle (2pt); \draw (\x,1) circle (2pt);} \end{tikzpicture} \end{center}\end{document} See also: Original Source by Rafael
If it could be completed to a cubic graph, it would give a cubic Moore graph of diameter 3. I wish I knew how to produce a similar tree, but growing from an edge instead of from a vertex.\documentclass{article} \usepackage{tikz}… Continue Reading →
The smallest cubic graph of girth 5, drawn using TikZ. \documentclass{article}\usepackage{tikz}\pagestyle{empty} \begin{document} \begin{center} \begin{tikzpicture}[style=thick] \draw (18:2cm) — (90:2cm) — (162:2cm) — (234:2cm) — (306:2cm) — cycle; \draw (18:1cm) — (162:1cm) — (306:1cm) — (90:1cm) — (234:1cm) — cycle; \foreach \x… Continue Reading →
The smallest cubic graph of girth 6, or 6-cage, drawn with PS Tricks. This was inspired from the example in The LaTeX Graphics Companion, page 121. \documentclass{article}\usepackage{pstricks,pst-node,multido,ifthen,calc}\pagestyle{empty} \begin{document}\begin{center}\begin{pspicture}(-1,-1.5)(1,1.5) \psset{unit=1.5cm} \newcounter{CtA} \newcounter{Temp} \newcounter{Tempi} \SpecialCoor \degrees[14] \multido{\ia=0+1}{14}{% \setcounter{CtA}{\ia}% \addtocounter{CtA}{1}% \multido{\ib=\value{CtA}+1}{1}{\psline{o-o}(1;\ia)(1;\ib)} }% \multido{\ia=0+2}{7}{%… Continue Reading →
The purposes of this blog are to show pictures of graphs (where by a graph we mean the object studied in Graph Theory) produced by LaTeX, and more precisely by its packages Xy-pic, PS Tricks and TikZ, and to discuss… Continue Reading →
© 2026 TeX.social