Examples

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

Popular Tags

Recent

Poker Theorems
Poker Theorems
A simple trick to decorate Theorem-like environments with poker suits QED symbols. I did not come up with this theorem decoration style (I've first seen it here) nor with the whole code (I salvaged it from TeX StackExchange and other sources over the years). This is just my current implementation of the code.
Níckolas Alves
Flag of the United States
Flag of the United States
Flag of the United States of America, according to official government specifications
Senan Sekhon
A longtable + tabularx example
A longtable + tabularx example
The xltabular combines the functionalities of longtable and tabularx.
LianTze Lim
How to Write Multilingual Text with Different Scripts in LaTeX on Overleaf using Polyglossia
How to Write Multilingual Text with Different Scripts in LaTeX on Overleaf using Polyglossia
A multilingual example document with Arabic, Sanskrit, Hindi, Chinese, Japanese, Korean, Greek and Thai, using XeLaTeX + fontspec + polyglossia.
LianTze Lim
LuaTeX: Parsing typeset paragraphs
LuaTeX: Parsing typeset paragraphs
This example is a LuaTeX-based plain TeX project which implements a LuaTeX callback function to show the components of a typeset paragraph. It is designed to accompany a blog post and, for simplicity, it is not a full-blown “parser”—for example, it is not recursive and ignores a number of node types. However, it offers a useful starting point for anyone wishing to explore callbacks in more detail.
Graham Douglas
Quick tikzpeople example
Quick tikzpeople example
The tikzpeople package by Nils Fleis­chhacker pro­vides peo­ple-shaped nodes in the style of Mi­crosoft Vi­sio clip art, to be used with TikZ.
LianTze Lim
Thai template example with polyglossia and xelatex
Thai template example with polyglossia and xelatex
Thai template example with polyglossia and xelatex
LianTze Lim
Tracking changes in LaTeX with "changes" package (with author avatars)
Tracking changes in LaTeX with "changes" package (with author avatars)
The changes pack­age, distributed with TeX Live, al­lows the user to man­u­ally markup changes of text, such as ad­di­tions, dele­tions, or re­place­ments. This example customizes the package to show author annotations with avatars. (Here's a more conventional example without the avatars. )
LianTze Lim
Tracking changes in LaTeX with "changes" package
Tracking changes in LaTeX with "changes" package
The changes pack­age, distributed with TeX Live, al­lows the user to man­u­ally markup changes of text, such as ad­di­tions, dele­tions, or re­place­ments. Changed text is shown in a dif­fer­ent colour; deleted text is crossed out. The pack­age al­lows def­i­ni­tion of ad­di­tional au­thors and their as­so­ci­ated colour. It also al­lows you to de­fine a markup for au­thors or an­no­ta­tions. (Here's another customised example using avatars for the author annotations.)
LianTze Lim