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
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)
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!
Benny Neugebauer and the TeX StackExchange Community
Drawing coloured boxes using tcolorbox
Drawing coloured boxes using tcolorbox
The pack­age pro­vides an en­vi­ron­ment for coloured and framed text boxes with a head­ing line. Op­tion­ally, such a box may be split in an up­per and a lower part; thus the pack­age may be used for the set­ting of LaTeX ex­am­ples where one part of the box dis­plays the source code and the other part shows the out­put. Another com­mon use case is the set­ting of the­o­rems. The pack­age sup­ports sav­ing and reuse of source code and text parts.
Thomas F. Sturm (uploaded by LianTze Lim)
Multiple Bibliographies with multibib
Multiple Bibliographies with multibib
Example creating multiple bibliography/reference lists in the same document, using the multibib package.
LianTze Lim