Examples — Recent

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

How to use Spanish accents in LaTeX
How to use Spanish accents in LaTeX
A short example showing how to set up the correct packages in your preamble in order to use Spanish accents in your LaTeX documents.
John Hammersley
Syntax Highlighting in LaTeX with the listings Package
Syntax Highlighting in LaTeX with the listings Package
This example shows how to set the options for automatic syntax highlighting for code in LaTeX with the listings package (which provides the lstlisting environment). The listings package supports many languages, including Java, C, C++, MATLAB/Octave and Python, and you can set the language option globally with \lstset or for each listing, when you have listings in multiple languages.
writeLaTeX
Base 16
Base 16
Correspondence between base 10 (decimal) and base 16 (hexadecimal) numbers. For Sonia/Nik
Vladislav Stepanov
Understanding floats
Understanding floats
A document that tries to explain my understanding of floats within LaTeX documents. Here's a brief blog post linking to the read only version of this: http://goo.gl/G8j9KT.
Vince
Cyrillic Fonts: Excerpt from Poems for Akhmatova
Cyrillic Fonts: Excerpt from Poems for Akhmatova
A Russian poem demonstrating how to use Cyrillic fonts with UTF-8 encoding and the babel package.
writeLaTeX
Folded 3D Tokens for Descent 2 Boardgame
Folded 3D Tokens for Descent 2 Boardgame
PGF based LaTeX templates to make custom Folded 3D Tokens for boardgames. Example done with Hero, Familiar and Monster Tokens for Descent: Journeys in the Dark (Second Edition)
urukwai
Package Example: apacite
Package Example: apacite
This example shows how to load and use the apacite package. The apacite package uses LaTeX and BibTeX to generate citations and a reference list, formatted according to the rules of the American Psychological Association.
Overleaf
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.
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.