Recent posts

Colors in LaTeX

· Cyberculture

LaTeX knows the following colors without any packages: black blue brown cyan darkgray gray green lime magenta olive orange pink purple red teal violet white yellow If you want other colors, you can define them with \usepackage{xcolor} and \definecolor{name}{model}{color-spec} where: name is the name of the … Read more »

Sizes in LaTeX

· Code

Here is an overview of sizes in LaTeX: TikZ Usage example: \draw[ultra thick, blue,dashed](a -| current plot begin) -- (a); ultra thin very thin thin semithick thick very thick ultra thick more Text Usage example: \Huge \(\varepsilon\) \tiny \scriptsize \footnotesize \small \normalsize \large \Large \LARGE \huge \Huge Math Formulas … Read more »

Plotting graphs with PGFplots (LaTeX and Tikz)

· Code

I guess many of you might need to plot functions or data once. So I've made one example that shows much of the features you might need: You can see how to change the axis' from normal linear scale to logarithmic scale. Some axis-manipulations were used. I have used a … Read more »

My LaTeX Tikz Template

· Code

Sometimes I would like to create a single picture with Tikz for later usage on Wikipedia or my Blog. This is my LaTeX Tikz template I use in such a situation: The templates latex-document.tex \documentclass[varwidth=true, border=2pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,positioning} \begin{document} \begin{tikzpicture … Read more »

Complex LaTeX visualizations (Tikz)

· Code

You can create some very complex visualizations with LaTeX. Take a look at these: Used matlab Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source: texample.net Source … Read more »

How to visualize Graph algorithms with LaTeX

· Code

Tikz is a very powerful TeX package. You can easily create visualizations of graphs and graph algorithms (if you have a template 😉). This post should give you a template to visualize graph algorithms with LaTeX. I recently found a great animation of Prim's algorithm done by Kjell Magne Fauske. I've … Read more »

Plotting function graphs with LaTeX

· My bits and bytes

It's crazy how much time I have wasted today just for searching for a working example how to plot a function within LaTeX. Here are two complete examples which worked for me. I have used this command to generate the PDF-file: pdflatex latex.tex -output-format=pdf gnuplot \documentclass{article} \usepackage … Read more »

How to draw a finite-state machine

· My bits and bytes

Finite-state machines are necessary to show that some problems are computable (or not). As I am currently learning something about them, I would like to be able to plot those finite automatons automatically. I will use graphviz. Nondeterministic finite-state machine This image is created from a gv-file. I saved it … Read more »