Examples — Popular

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

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
Dodecahedron desk calendar
Dodecahedron desk calendar
Fancy a cool dodecahedron calendar for your desk? Create one with LaTeX in seconds! This example of the folding library was originally published in the TeXample gallery at http://www.texample.net/tikz/examples/foldable-dodecahedron-with-calendar/.
Till Tantau
Bibliographies
Bibliographies
Bibliographies
Example of rotated text in LaTeX
Example of rotated text in LaTeX
A minimal example of rotated text in LaTeX. All you need is \usepackage{rotating} in the preamble, and \begin{turn}{45} ... \end{turn} around the text you wish to rotate (in this case, by an angle of 45 degrees). This example was originally posted at: http://texblog.org/2013/10/01/rotate-an-image-table-or-paragraph-in-latex/
Tom at TeXblog
How to Write Multilingual Text with Different Scripts in LaTeX
How to Write Multilingual Text with Different Scripts in LaTeX
A multilingual example document with Arabic, Sanskrit, Hindi, Chinese, Japanese, Korean, Greek and Thai, using XeLaTeX + fontspec + polyglossia.
LianTze Lim
Listings Code Style for HTML5 (CSS, HTML, JavaScript)
Listings Code Style for HTML5 (CSS, HTML, JavaScript)
This example shows how to use the listings package to syntax highlight code in LaTeX. It highlights multiple languages: CSS, HTML and JavaScript. This example is being developed collaboratively in response to this question on the TeX StackExchange. Improvements welcome!
Multiple Bibliographies with multibib
Multiple Bibliographies with multibib
Example creating multiple bibliography/reference lists in the same document, using the multibib package.
LianTze Lim
Using media9 to include videos files
Using media9 to include videos files
This example shows how to embed audio files, video files and YouTube videos in LaTeX documents. (The videos and audios won't play in the Overleaf preview! Download the PDF and open in a suitable viewer, e.g. Adobe Reader, to playback.)
LianTze Lim (Overleaf)
Using an image as a document header
Using an image as a document header
Using an image as a document header