Examples — Recent
Examples of powerful LaTeX packages and techniques in use — a great way to learn LaTeX by example. Search or browse below.
![Drawing Lewis Structures and Electron Ring Diagrams](https://writelatex.s3.amazonaws.com/published_ver/3418.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=ae29d379c37583d76b2437c263e24b7300415cbf003b05bdeed6b65f4159e9e2)
Drawing Lewis Structures and Electron Ring Diagrams
The examples are taken from the lewis and bohr package documentations.
LianTze Lim
![Using fancyhdr for Custom Page Header and Footers in a Two-sided Document](https://writelatex.s3.amazonaws.com/published_ver/3073.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=a19db73cababd61df6faa5dc63930c63679326078ca139fd613b8ad70292fb0b)
Using fancyhdr for Custom Page Header and Footers in a Two-sided Document
A simple example demonstrating how to put texts at different locations of the headers/footers using fancyhdr.
LianTze Lim
![algorithmicx (algpseudocode) example](https://writelatex.s3.amazonaws.com/published_ver/2885.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=1951f916e3db6f663198371422eeafba2729532b344651b881d5d9c864403856)
algorithmicx (algpseudocode) example
An example using the predefined algpseudocode command set from the algorithmicx package, for typesetting pseudocode or algorithms.
LianTze Lim
![Beautiful ornaments with pst-vectorian](https://writelatex.s3.amazonaws.com/published_ver/10413.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=ad54d476ca804b8356978e53383da58c99aa9ee0ac12109d58184a175617ef18)
Beautiful ornaments with pst-vectorian
Use PSTricks to draw ornaments (a substantial repertoire of ornaments is provided). See the package documentation for a list of all the ornaments.
LianTze Lim (examples from the package documentation)
![Inference Rules and T-diagrams with the semantic Package](https://writelatex.s3.amazonaws.com/published_ver/2572.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=6a5715ebd11ff586d8c4d181e3d659bec4d6caa8dca4492f43a9025395c25a9e)
Inference Rules and T-diagrams with the semantic Package
Some examples of typesetting inference rules and T-diagrams using the semantic package.
LianTze Lim
![Table cells with diagonal lines](https://writelatex.s3.amazonaws.com/published_ver/2554.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=de8d9ae08b3befe25407c5a769426954a9937b506c537843d1a99e1bd3ad037a)
Table cells with diagonal lines
This example demonstrates how to produce diagonal lines in table cells using the slashbox and diagbox packages.
The diagonal line produced by the slashbox package is rather jagged and unwieldy.
The diagbox package does a better job in general.
Try loading only one of these packages to see
the difference — if diagbox is loaded at all,
it overrides slashbox's behavior./p>
LianTze Lim (using sample text from slashbox.tex)
![LaTeX Tutorials](https://writelatex.s3.amazonaws.com/published_ver/2195.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=81ec6921037c5d91d5f9aa23df5e410cbacde82f334e8f1f9638099115a6ac10)
LaTeX Tutorials
Hello World in LaTeX
Ajay Rawat
![Tribute to Monument Valley, Penrose and Escher](https://writelatex.s3.amazonaws.com/published_ver/3553.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=4e00c8cad9615490b57d195cced697d3a8869cc257fa798d97327d262ba7dfc9)
Tribute to Monument Valley, Penrose and Escher
A tikz tribute to Monument Valley (the game by ustwogames) and Escher's impossible architecture with the Penrose triangle.
LianTze Lim
![Minipage para evitar dividir item em páginas](https://writelatex.s3.amazonaws.com/published_ver/1956.jpeg?X-Amz-Expires=14400&X-Amz-Date=20240717T080956Z&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAWJBOALPNFPV7PVH5/20240717/us-east-1/s3/aws4_request&X-Amz-SignedHeaders=host&X-Amz-Signature=4957a9bc1e5ce970910af3b77a48fc3e494ffb7725048bf71bf5b366657d3075)
Minipage para evitar dividir item em páginas
Exemplo criado para a pergunta no SOPT: http://pt.stackoverflow.com/questions/69338/como-evitar-que-item-iniciado-numa-pagina-continue-em-outra-em-latex
Luiz Carlos Vieira