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

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
Example of using wiki markup in LaTeX documents
Example of using wiki markup in LaTeX documents
A simple example demonstrating how to use some wiki markup syntax in LaTeX, using wiki.sty from the nicetext bundle. Be careful — not everything works, and some commands may break! See http://mirrors.ctan.org/macros/latex/contrib/nicetext/doc/wikicheat.pdf for a cheat sheet. If you're looking for markdown, check out this example!
LianTze Lim
Psfrag Example
Psfrag Example
Use the psfrag package to replace strings in EPS images, so that they are typeset with the same body font as your LaTeX document. Note that your project needs to be compiled with the LaTeX dvipdf engine. To configure this, after creating a new project, click on the Overleaf menu icon above the file list panel, and make sure the "Compiler" setting is set to "LaTeX". (The sample image is taken from the psfrag package.)
LianTze Lim