Examples — Recent

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

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
Package Test: arabi for Arabic Text
Package Test: arabi for Arabic Text
Package Test: arabi for Arabic Text
The first six levels of the Sierpinski triangle
The first six levels of the Sierpinski triangle
The first six levels of the Sierpinski triangle in LaTeX. For some beautiful variations (and more information), see http://www.oftenpaper.net/sierpinski.htm
Jake on TeX SE