Examples — Recent
Examples of powerful LaTeX packages and techniques in use — a great way to learn LaTeX by example. Search or browse below.
![PSTricks LaTeX Example 4: Graphing a function](https://writelatex.s3.amazonaws.com/published_ver/599.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=db09c9eaa60e684a616ab670cfb2e4be704f3d1ccb770dedb16c0a8c2b95e237)
PSTricks LaTeX Example 4: Graphing a function
A short example to show how to use pstricks to plot the graph of a function in LaTeX.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html
Megan
![PSTricks LaTeX Example 3: Graphing a curve through specific points](https://writelatex.s3.amazonaws.com/published_ver/596.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=98409ec4c536de76a0a05b30e0ac8564bfe6e650cef9180804028cf6cbf53d36)
PSTricks LaTeX Example 3: Graphing a curve through specific points
A quick example to demonstrate how pstricks can be used to show a curve between points, and to show the grid axes view.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html
Megan
![PSTricks LaTeX Example 2: Graphing an interval](https://writelatex.s3.amazonaws.com/published_ver/595.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=654d01299d526d503e9f67c20bfbd45c935a9280371f59685e3f03dd4a095882)
PSTricks LaTeX Example 2: Graphing an interval
This example shows how to use the pstricks package to indicate an interval region.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html
Megan
![PSTricks LaTeX Example 1: Plotting points](https://writelatex.s3.amazonaws.com/published_ver/594.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=58683144d9f69dff315c25585a49be2102f211ccacd8c7623d3a7a1d288642fd)
PSTricks LaTeX Example 1: Plotting points
A short example showing how to use the pstricks package for plotting points on a graph with axes.
Original source: http://www.thelazymathematician.com/p/pstricks-examples.html
Megan
![Writing a LaTeX Class File to Produce a Form](https://writelatex.s3.amazonaws.com/published_ver/580.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=45ab0a225bef220c3441d42702b246676c979d478455ed9d24d18ee858ab0f10)
Writing a LaTeX Class File to Produce a Form
tex based on webpage from LaTeX Community.
website: http://www.latex-community.org/index.php?option=com_content&view=article&id=342%3Awriting-a-latex-class-file-to-produce-a-form&catid=54%3Alatex-document-classes&Itemid=112
Originally Written by Nicola Talbot.
Friday, 20 November 2009 11:55
Cristian B. Gonzalez
![PW](https://writelatex.s3.amazonaws.com/published_ver/549.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=3a123908f89f9d9f5a4ffc2fdb810590f1a692659c68a1ac79295ea114f75385)
PW
Simple Sectioned Essay Template
LaTeX Template
This template has been downloaded from:
http://www.latextemplates.com
Note:
The \lipsum[#] commands throughout this template generate dummy text
to fill the template out. These commands should all be removed when
writing essay content.
Costash
![Songs, Chords and Lyrics in LaTeX with the Songs Package](https://writelatex.s3.amazonaws.com/published_ver/511.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=aeec688b8618f980bf4951cbe55a137b4f5cef39adc167d2f3eb43aff3597315)
Songs, Chords and Lyrics in LaTeX with the Songs Package
The songs package lets you create beautiful songbooks in LaTeX. You can typeset lyrics, lyrics with chords, and overhead slides for singing, all from a single master document. You can include both chord names and guitar tablature diagrams (but not full sheet music).
This example is based on an excerpt from the example songbook in the documentation for the songs package.
The Songs Package Project
![LaTeX Exercise 1](https://writelatex.s3.amazonaws.com/published_ver/334.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=eb42008e071d9e1e67e0a456feda13402ab255d583119d174c4acd3648b572fd)
LaTeX Exercise 1
MC Workshop 1
George
![Syntax Highlighting in LaTeX with the listings Package](https://writelatex.s3.amazonaws.com/published_ver/189.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240726T233916Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240726/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=a112fc038953daf25c88e3abf5e084b9be30ea46d26af8d63c8b42f8aeae5bf7)
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