Examples — Recent

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

Using PSTricks with pdflatex on Overleaf
Using PSTricks with pdflatex on Overleaf
PSTricks drawings can't be compiled under pdflatex and lualatex (Frequently done errors #5). Instead, compilation with XeLaTeX is preferred if you need to use .jpg/.png/.pdf images in your project. But if you absolutely need to compile with pdflatex, this example demonstrates how to use PStricks with pdflatex using auto-pst-pdf on Overleaf (But you still can't use .jpg/.png/.pdf images within your PSTricks drawings).
LianTze Lim (Overleaf)
An example of Gantt Chart in Overleaf
An example of Gantt Chart in Overleaf
This is a direct copy of the codes in section 2.9 of the pgfgantt package documentation (See page 45) except the color setting. Alone with this one, this examples shows how to make Gantt charts for project planning in LaTeX with the pgfgantt package. They are from the package documentation. The pgfgantt package provides many useful macros for generating the calendar for the Gantt chart for either absolute or relative dates. It also provides macros for grouping and linking tasks, and for full control over the styling of the chart.
Wangyan Li
Python Cheat Sheet
Python Cheat Sheet
Created using the baposter Landscape Poster LaTeX Template created by Brian Amberg This template has been downloaded from: http://www.LaTeXTemplates.com Edited by Michelle Cristina de Sousa Baltazar
Michelle Baltazar
MatPlotLib and Random Cheat Sheet
MatPlotLib and Random Cheat Sheet
MatPlotLib and Random Cheat Sheet Edited by Michelle Cristina de Sousa Baltazar http://matplotlib.org/api/pyplot_summary.html http://matplotlib.org/users/pyplot_tutorial.html
Michelle Baltazar
Chicago Style polyglossia xelatex Hebrew/English
Chicago Style polyglossia xelatex Hebrew/English
Chicago style history paper, bilingual.
Brandon Payne
Drawing Feynman Diagrams in LaTeX
Drawing Feynman Diagrams in LaTeX
The code samples here are taken from the tikz-feynman and feynmf package documentations. Compile with LuaLaTeX to get the most out of tikz-feynman.
Thorsten Ohl, Joshua Ellis, LianTze Lim
Comparación de compansión
Comparación de compansión
Este gráfico presenta las comparaciones de la compansión de una señal telefónica de entrada cuando es comprimida usando la Ley-A y la Ley-Mu tal se describen en la Recomendación G.711 de la Unión Internacional de Telecomunicaciones. De la gráfica se deduce que la compansión con ambas leyes no presenta mayores diferencias.
Ramón
Asymptote 3D graphics
Asymptote 3D graphics
This example shows how to get asymptote 3D drawings working on Overleaf. All the drawings in this example were taken from the Asymptote documentation. The important bit is to add settings.render=0, to get around the problem of rendering on headless displays (i.e. the compile servers doesn't have a graphics card/display!) If you download the PDF and open it in Adobe Reader, you'll get interactive views of the 3D objects!
Ley Mu para PCM
Ley Mu para PCM
Este gráfico presenta las características de compresión de una señal telefónica de entrada cuando es comprimida de manera analógica o digital usando la Ley-Mu tal como es descrita en la Recomendación G.711 de la Unión Internacional de Telecomunicaciones. Esta Ley es descrita por la siguiente ecuación: f(x, \mu)=sign(x)*\frac{\ln(1+\mu\left |{x}\right |)}{\ln(1+\mu)} en la que sign(x) es la "función signo". La gráfica muestra los resultados para 3 valores de \mu distintos.
Ramón