Skip to content

Instantly share code, notes, and snippets.

@Kremilly
Last active June 8, 2026 11:37
Show Gist options
  • Select an option

  • Save Kremilly/2f4cf7014e108910dcbd16b9c2b8552e to your computer and use it in GitHub Desktop.

Select an option

Save Kremilly/2f4cf7014e108910dcbd16b9c2b8552e to your computer and use it in GitHub Desktop.
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{booktabs}
\usepackage{listings}
\usepackage{geometry}
\usepackage{hyperref}
\usepackage{xcolor}
% Pacote para suportar diagramas, se necessário no seu motor
\usepackage{mermaid}
\geometry{margin=1in}
\hypersetup{
colorlinks=true,
linkcolor=blue,
urlcolor=cyan,
}
\lstset{
backgroundcolor=\color{gray!10},
basicstyle=\ttfamily\small,
breaklines=true,
frame=single,
keywordstyle=\color{blue},
commentstyle=\color{green!50!black},
stringstyle=\color{orange}
}
\title{Demonstração das Capacidades LaTeX com Diagramas}
\author{Sistema de Geração de Documentos}
\date{\today}
\begin{document}
\maketitle
\section{Introdução}
Este documento demonstra a renderização matemática, tipográfica e o suporte a diagramas.
\section{Fluxo do Sistema}
O diagrama abaixo ilustra o fluxo lógico de processamento do nosso sistema:
\begin{mermaid}
graph TD
A[Arquivo .tex] --> B{Processamento}
B --> C[Renderização LaTeX]
B --> D[Renderização Mermaid]
C --> E[Documento Final]
D --> E
\end{mermaid}
\section{Matemática Avançada}
Exemplos de equações:
\begin{equation}
f(x) = \int_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi}
\end{equation}
\section{Tabelas e Código}
\begin{table}[h]
\centering
\begin{tabular}{lc}
\toprule
Item & Valor \\
\midrule
Exemplo A & 10 \\
Exemplo B & 20 \\
\bottomrule
\end{tabular}
\end{table}
\begin{lstlisting}[language=Python, caption={Código de exemplo}]
def hello():
print("Olá, mundo!")
\end{lstlisting}
$\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment