Examples — Recent

Examples of powerful LaTeX packages and techniques in use — a great way to learn LaTeX by example. Search or browse below.

Hello World Example
Hello World Example
This is the very simple example of a 'Hello, World!' document in LaTeX, from video #1 in the LaTeX video tutorial series by Dr Vincent Knight.
Dr Vincent Knight
Root Hair Cell in 3D using TikZ
Root Hair Cell in 3D using TikZ
A TikZ figure using the beamerposter package. It shows an idealised 3D root hair cell, and its projection onto a 2D rectangular domain. The auxin symplastic pathway is indicated by purple arrows and the longitudinal auxin gradient by a shade in the 2D-domain; influx and efflux permeability arrows, indicating a polarising process, are respectively depicted in orange and light-blue. Switching fluctuation is represented by dark green arrows.
Víctor F. Breña-Medina
Example of inline and margin comments
Example of inline and margin comments
Add inline or margin comments to LaTeX pdfs using the todonotes package.
Henrik Skov Midtiby
The tcolorbox Package
The tcolorbox Package
tcolorbox provides an environment for colored and framed text boxes with a heading line. Optionally, such a box can be split in an upper and a lower part. The package tcolorbox can be used for the setting of LaTeX examples where one part of the box displays the source code and the other part shows the output. Another common use case is the setting of theorems. The package supports saving and reuse of source code and text parts.
Thomas F. Sturm
Track Changes in LaTeX with trackchanges
Track Changes in LaTeX with trackchanges
Note: TrackChanges is not part of TeX Live, and hasn't been updated in a while. Instead, changes.sty, a package for the same purpose, is available in TeX Live and more recent. You can find the example template here. TrackChanges is a package for collaboratively editing LaTeX documents which allows multiple editors to make changes & add annotations to a document. Here we present a short example of it's use, which you can use as a template to get started.
writeLaTeX
Example: Custom Nimbus TTF Font
Example: Custom Nimbus TTF Font
Example: Custom Nimbus TTF Font
Branching arrows with decision option in flowchart
Branching arrows with decision option in flowchart
Branching arrows with decision option in flowchart
Example from LaTeX-Community.org
Package Example: ArabTeX
Package Example: ArabTeX
Package Example: ArabTeX
Chinese: A Visit to Qiantang Lake in Spring (钱唐湖春行)
Chinese: A Visit to Qiantang Lake in Spring (钱唐湖春行)
This example shows how to write simplified Chinese characters in LaTeX with the CJKutf8 package. WriteLaTeX includes a full set of fonts for simplified Chinese, and we use utf-8 encoding, so you can type simplified Chinese characters directly into your LaTeX source code and have them appear in the output.
Bai Juyi