LaTeX - cunhapaulo/ReferenceCard GitHub Wiki
PDF Metadata
%------------------------------------------------------------------------------------
% Inserts informations about the document into de PDF file
%------------------------------------------------------------------------------------
% 1 2 3 4
% \setPDFdata{TITLE}{AUTHOR}{KEYWORDS}{SUBJECT}
%------------------------------------------------------------------------------------
\newcommand{\setPDFdata}[4]
{
\hypersetup{
pdftitle={#1},
pdfauthor={#2},
pdfsubject={#4},
pdfkeywords={#3},
bookmarksnumbered,
pdfstartview={FitH},
colorlinks,
citecolor=citeColor, % black,
filecolor=black,
linkcolor=black,
urlcolor=linkColor,
breaklinks=true,
}
}
Numbered lists ajustments
%------------------------------------------------------------------------------------
%-- Definição de parâmetros gerais para listas numeradas.
%------------------------------------------------------------------------------------
\newlength{\wideitemsep}
\setlength{\wideitemsep}{.75\itemsep}
\addtolength{\wideitemsep}{-4pt}
\let\olditem\item
\renewcommand{\item}{\setlength{\itemsep}{\wideitemsep}\olditem}```
## Improve Latex Fonts
```latex
\usepackage[LGR, T1]{fontenc}
LaTeX Tools
- Detexify: Find your symbol bydrawing it.
- Booktabs: Creating Tables in LaTeX
LaTeX Workshop:
Link para a origem: https://github.com/James-Yu/LaTeX-Workshop/wiki/Snippets#Sectioning
Shortcuts for usual commands:
Prefix | Shortcut | Command |
---|---|---|
fontsize | Opens font size select | |
FNO | ctrl+l, ctrl+n | \textnormal{${1}} |
FRM | ctrl+l, ctrl+r | \textrm{${1}} |
FEM | ctrl+l, ctrl+e | \emph{${1}} |
FSF | \textsf{${1}} | |
FTT | ctrl+l, ctrl+t | \texttt{${1}} |
FIT | ctrl+l, ctrl+i | \textit{${1}} |
FSL | ctrl+l, ctrl+s | \textsl{${1}} |
FSC | ctrl+l, ctrl+c | \textsc{${1}} |
FUL | ctrl+l, ctrl+u | \underline{${1}} |
FUC | \uppercase{${1}} | |
FLC | \lowercase{${1}} | |
FBF | ctrl+l, ctrl+b | \textbf{${1}} |
FSS | ctrl+l, ctrl+6 | \textsuperscript{${1}} |
FBS | ctrl+l, ctrl+minus | \textsubscript{${1}} |
Shortcuts for usual environments:
Some environments have a dedicated snippet in the form BXY
where XY
are the two first letters of the environment name. The starred versions use the prefix BSXY
.
Prefix | Environment name |
---|---|
BEQ | equation |
BSEQ | equation* |
BAL | align |
BSAL | align* |
BGA | gather |
BSGA | gather* |
BMU | multline |
BSMU | multline* |
BIT | itemize |
BEN | enumerate |
BSPL | split |
BCAS | cases |
BFR | frame |
BFI | figure |
BTA | table |
Math:
TeX e LaTeX mode in math:
TeX commands usually used to write math (unsafe):
%
% TeX mode
%
$E^{2}=m.c$
$$E^{2}=m.c$$
%
%LaTeX mode
%
\(E^{2}=m.c\)
\[E^{2}=m.c\]
Uso de parênteses maiores e do pacote 'align':
%
% Uso simples do comando \left(
%
$$
\sum_{i=1}^n i = \left(\sum_{i=1}^{n-1} i\right) + n =
\frac{(n-1)(n)}{2} + n = \frac{n(n+1)}{2}
$$
%
% Uso simples do comando environment
% 'align' (com o uso do & para alinhar)
%
$$
\begin{align*}
y = 1 + & \left( \frac{1}{x} + \frac{1}{x^2} + \frac{1}{x^3} + \ldots \right.\\
& \left. \quad + \frac{1}{x^{n-1}} + \frac{1}{x^n} \right)
\end{align*}
$$
%
% Uso de diferentes tipos de tamanho de parenteses
%
$$
( \big( \Big( \bigg( \Bigg(
$$
Resultado:
Special Characters
Aspas em alemão:
- (abre aspas)
»
— teclaALT + 175
; - (fecha aspas)
«
— teclaALT + 174
;
Ex.: »Dies ist ein gutes Beispiel für die Verwendung von Anführungszeichen!«
‹
— teclaALT + 0139
;›
— teclaALT + 0155
;
Formatação de Tabelas
Dividindo Celulas no LaTeX
- Origem: Baeldung em Bucareste.
Um dos principais problemas em tabelas ocorre com textos grandes em uma célula, os quais precisam ocupar várias linhas. Seguem algumas sugestões de solução para os casos em questão:
Wrapping Text in LaTeX Tables
- Origem: Baeldung
- Exemplo de tabela com texto muito largo
\documentclass[12pt]{article}
\begin{document}
\begin{tabular}{|l|l|}\hline
Persian Cat & Dachsund Dog\\\hline
A long-haired domestic cat, with a broad round head. &
A short-legged, long-bodied, hound-type dog breed.\\\hline
\end{tabular}
\end{document}
Resultado:
É possível controlar a largura da coluna:
\begin{tabular}{|p{1.5in}|p{1.5in}|}\hline
Resultado:
ragged2e
Utilizando o pacote \usepackage[raggedrightboxes]{ragged2e}
Um exemplo de controle fino sobre a justificação pode ser obtido neste fragmento:
Observe:
\Centering{}
\RaggedRight{}
\RaggedLeft{}
\documentclass[12pt]{article}
\usepackage{ragged2e}
\begin{document}
\begin{tabular}{|p{1.5in}|p{1.5in}|}\hline
\Centering{Persian Cat} & \RaggedRight{Dachsund Dog}\\\hline
\RaggedRight{A long-haired domestic cat, with a broad round head.} &
\RaggedLeft{A short-legged, long-bodied, hound-type dog breed.}\\\hline
\end{tabular}
\end{document}
Resultado em:
Quebras de linha manuais
Podem ser obtidas com o comndo \newline
, como no exemplo abaixo:
Observe:
\newline
\begin{tabular}{|p{1.5in}|p{1.5in}|}\hline
Persian Cat & Dachsund Dog\\\hline
A long-haired\newline domestic cat,\newline with a broad\newline round head. &
A short-legged, long-bodied, hound-type dog breed.\\\hline
\end{tabular}
Resultando em:
Outro exemplo:
\begin{tabular}{|p{1.6in}|p{1.6in}|}\hline
John Smith & Jane Smith\\\hline
\RaggedRight{A seventy-three-year-old grandfather:\newline {\em loves golf}} &
\RaggedRight{A sixty-five-year-old grandmother:\newline {\em suffers from diabetes.}}\\\hline
\end{tabular}
Resultado:
tabular*
O ambiente Características principais:
- Usado quando a largura das colunas da tabela tem de ter dimensões específicas, independentemente do texto dentro das celulas;
Exemplo:
\begin{tabular*}{5in}{@{\extracolsep{\fill}}|p{1.2in}p{1.2in}p{1.2in}|}\hline
Persian Cat & Dachsund Dog & Holstein Cow\\\hline
\RaggedRight{A long-haired domestic cat, with a broad round head.}&
\RaggedRight{A short-legged, long-bodied, hound-type dog breed.}&
\RaggedRight{A breed of large dairy cattle originating in northern Holland.}\\\hline
\end{tabular*}
Características principais:
- Designa a largura da tabela exatamente em 5in;
- Designa a largura de cada coluna em 1.2in;
- Designa um espaço entre colunas de 1.2in também, o que somando tudo perfaz as 5in.
tabularx
O ambiente Este ambiente permite a criação de tabelas com colunas unifomemente espaçadas que se somam à largura especificada. Ela utiliza um novo tipo de coluna chamado de X
exatamente para esse propósito:
\usepackage{ragged2e}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{5in}{|X|X|X|}\hline
Persian Cat & Dachsund Dog & Holstein Cow\\\hline
\RaggedRight{A long-haired domestic cat, with a broad round head.}&
\RaggedRight{A short-legged, long-bodied, hound-type dog breed.}&
\RaggedRight{A breed of large dairy cattle originating in northern Holland.}\\\hline
\end{tabularx}
\end{document}
Resultado:
Pacotes importantes:
Pgfplots:
paragraph spacing
\setlength{\parindent}{horizontal len}
\setlength{\parskip}{vertical len}
Setas com texto sobre e sob
\usepackage{amsmath}
**$1857$** $\xRightarrow[\text{anos}]{\text{100}}$ **$1957$** $\xrightarrow[\text{anos}]{\text{100}}$ **$2057$**
$1857$ $\xRightarrow[\text{anos}]{\text{100}}$ $1957$ $\xrightarrow[\text{anos}]{\text{100}}$ $2057$
Uma tabela com mais exemplos pode ser encontrada em:
- https://www.ptep-online.com/ctan/symbols.pdf;
- https://math.uoregon.edu/wp-content/uploads/2014/12/compsymb-1qyb3zd.pdf.
Comandos usuais:
Referência no footnote
Neste caso, a referência completa é inserida no rodapé.
\footciteref{Thompson1998}
Resultado:
Apud
Apud
é um termo latino que significa "citado por". É usado quando um fragmento de texto de uma obra é citada por um documento sob pesquisa, e não é possível acessar a obra original. Neste caso, cita-se a obra como tendo sido citada pelo autor do documento. Por exemplo:
No livro Educação e Emancipação, Adorno cita o texto "O que é o Iluminismo" de Kant que não está disponível em português e nem acessível. Neste caso cita-se Kant, citado por Adorno. Assim utiliza-se um dos dois comandos:
\apud[p.~2--3]{Kant1784}{Adorno2020}
\apudonline[p.~2--3]{Kant1784}{Adorno2020}
Adorno, em sua obra, cita Kant\footciteref{Kant1784} ao dizer que ``AUFKLÄRUNG ist der Ausgang des
Menschen aus seiner selbstverschuldeten Unmündigkeit.'' \apud[p.~2--3]{Kant1784}{Adorno2020}.
Como afirma \apudonline[p.~2--3]{Kant1784}{Adorno2020} ``AUFKLÄRUNG ist der Ausgang des Menschen aus
seiner selbstverschuldeten Unmündigkeit.''
Resultado:
Caixa com texto e um frame ao redor (citação)
%------------------------------------------------------------------------------------
% Inserts a highlight graybox to feature some information with a title
%------------------------------------------------------------------------------------
% 1 2
% \highlight{TITLE}{TEXT}
%------------------------------------------------------------------------------------
\usepackage{contour}
\usepackage{ulem}
\renewcommand{\ULdepth}{1.8pt}
\contourlength{0.8pt}
\newcommand{\myuline}[1]{%
\uline{\phantom{#1}}%
\llap{\contour{white}{#1}}%
}
\newcommand{\highlight}[2]{
%define here the required width of the highlight box
\def \boxwidth {\textwidth} %{.85\textwidth}
\begin{center}
\noindent
\parbox{\boxwidth}{%
\begin{shaded}
%\rule{\textwidth}{0.4pt}
$\triangleright$ \textbf{\sffamily #1}:\nl
%\rule[3mm]{\textwidth}{0.4pt}
\begin{center}
\begin{minipage}{.9\textwidth}
{\sffamily #2}
\end{minipage}
\end{center}
\end{shaded}
}
\end{center}
}
Result
\highlight{Trecho da CRP \cite[p.~72 ou KPV p.~47]{Kant2017}}{Porém, algo
diferente e totalmente paradoxal entra no lugar dessa dedução
do princípio moral, buscada inutilmente, }
Result:
Mode #1:
\global\mdfdefinestyle{comentarios}{%
linecolor=white,%
linewidth=1pt,%
backgroundcolor=black!8!white,%
innerleftmargin=50,innerrightmargin=50,%
innertopmargin=30,innerbottommargin=20,%
leftmargin=0.5cm,%
rightmargin=0.5cm
}
\def \destaque#1#2{
\begin{center}
\begin{minipage}{0.9\textwidth}
\begin{mdframed}[style=comentarios]
\begin{center}
{
\begin{spacing}{0.9}
\large \textrm{``#1''}
\end{spacing}
}
\vspace{1.5mm}
% \begin{flushright}
{\footnotesize #2}
% \end{flushright}
\end{center}
\end{mdframed}
\end{minipage}
\end{center}
\vspace{2mm}
}
Ou então, sem centralização:
\def \destaqueSimples#1#2{
\vspace{2mm}
\begin{center}
\begin{minipage}{0.8\textwidth}
\begin{mdframed}[style=comentarios]
{
\begin{spacing}{0.9}
\large \textrm{``#1''}
\end{spacing}
}
% \vspace{1mm}
\begin{center}
% \begin{flushright}
{\footnotesize #2}
% \end{flushright}
\end{center}
\end{mdframed}
\end{minipage}
\end{center}
\vspace{2mm}
}
Resultado:
\usepackage{framed}
\newcommand{\ficha}[1]{
\begin{framed}
\noindent #1
\end{framed}
}
% ---------------------------------------------------------------------------
% Fichamento Capítulo 1
% ---------------------------------------------------------------------------
\ficha{
SILVEIRA, Cláudia Regina. Capítulo 1 - Pesquisa, Ciência e
Conhecimento Científico. In:~\textbf{Metodologia da Pesquisa}. 2.~ed. Florianópolis: Publicações do IF-SC, 2011.}
}
Ficha Bibliográfica
% ----------------------------------------------
%
% ----------------------------------------------
\def \cardlmargin {8mm}
\def \cardwidth {.9\textwidth}
\def \cardvspace {3mm}
\newcommand{\ficha}[7]{
\begin{center}
%\singlespacing
\begin{tabular}{| p{16cm} |}
\hline
\textbf{\textsf{ASSUNTO:}} \ #1 \\ \hline
\textbf{\textsf{TEMA:}} \ #2 \hfill \textbf{\textsf{PÁGINA(S):}} #3\\ \hline
\textbf{\textsf{REFERÊNCIA DA OBRA PESQUISADA:}} \ #4 %\newline
% \hspace{\cardlmargin}
% \begin{minipage}{\cardwidth}
% \singlespacing
% #4
% \end{minipage}
\vspace{\cardvspace}\\ \hline
\vspace{-2mm}
\textbf{\textsf{RESUMO:}} \\
\vspace{-6mm}
\hspace{\cardlmargin}
\begin{minipage}{\cardwidth}
\singlespacing
#5
\end{minipage}
\\ \\ %\hline
\textbf{\textsf{COMENTÁRIOS E CRÍTICAS:}} \\
\vspace{-6mm}
\hspace{\cardlmargin}
\begin{minipage}{\cardwidth}
\singlespacing
#6
\end{minipage}
\\ \\ %\hline
\textbf{\textsf{CITAÇÕES:}} \\
\vspace{-6mm}
\hspace{\cardlmargin}
\begin{minipage}{\cardwidth}
\singlespacing
#7
\end{minipage}
\\ \\ \hline
\end{tabular}
\end{center}
}
%============================================================================
% ___ ___ ___ ___
% / /\ ___ / /\ /__/\ / /\
% / /:/_ / /\ / /:/ \ \:\ / /::\
% / /:/ /\ / /:/ / /:/ \__\:\ / /:/\:\
% / /:/ /:/ /__/::\ / /:/ ___ ___ / /::\ / /:/~/::\
% /__/:/ /:/ \__\/\:\__ /__/:/ / /\ /__/\ /:/\:\ /__/:/ /:/\:\
% \ \:\/:/ \ \:\/\ \ \:\ / /:/ \ \:\/:/__\/ \ \:\/:/__\/
% \ \::/ \__\::/ \ \:\ /:/ \ \::/ \ \::/
% \ \:\ /__/:/ \ \:\/:/ \ \:\ \ \:\
% \ \:\ \__\/ \ \::/ \ \:\ \ \:\
% \__\/ \__\/ \__\/ \__\/
%
%============================================================================
\ficha
{} % ASSUNTO
% TEMA
{}
% PAGINA
{}
% REFERÊNCIA DA OBRA
{}
% RESUMO
{}
% COMENTARIOS E CRITICAS
{}
% CITACOES
{}
Todos os caracteres em maiúsculo:
\MakeUppercase
Ampliando o LaTeX:
Acessar o arquivo BibTeX do Mendeley:
\bibliography{C:/Users/paulo.cunha/OneDrive/__MARKDOWN/bibtex/library.bib}{}
Lista ordenada inline:
\begin{enumerate*}[label=(\roman*)]
\item as \textit{representações coletivas}
\item \textit{ritos} e \textit{práticas cerimoniais}
\item a característica εκκλεσια (ekklesia){coletividade}.
\end{enumerate*}
\begin{enumerate}[label=\Alph*.]
\item \textbf{Formatação:} A4; 12pt; margens esq.+sup.: 3cm; margens dir.+inf.: 2cm; espaçamento 1,5; citação longa (> 3 linhas): margem de 4cm, 10pt, itálico e alinhado à esquerda.
\item \textbf{Elementos Pré-textuais:} Capa; Folha de Rosto; Sumário.
\item \textbf{Elementos Textuais:}
\begin{enumerate}[label=\arabic*]
\item \textbf{INTRODUÇÃO} (p.~91)
\begin{enumerate}[label*=.\arabic*]
\item Justificativa (p.~92)
\item Definição do Problema
\item Objetivo Geral
\item Objetivos Específicos
\end{enumerate}
\item \textbf{REVISÃO DE LITERATURA}
\item \textbf{METODOLOGIA}
\item \textbf{RECURSOS UTILIZADOS}
\begin{enumerate}[label*=.\arabic*]
\item Recursos Humanos
\item Recursos Materiais
\item Recursos Financeiros
\end{enumerate}
\item \textbf{CRONOGRAMA DE UTILIZAÇÃO} (p.~93)
\item \textbf{RESULTADOS ESPERADOS}
\item \textbf{REFERÊNCIAS}
\item \textbf{ANEXOS} (se houver)
\end{enumerate}
\end{enumerate}
Resultado:
Importante observar os parâmetros de configuração:
\begin{enumerate}[label=\arabic*]
% Especifica o tipo de numeração;\begin{enumerate*}[label*=.\arabic*]
% Segue o padrão de numeração do nível anterior, mantendo tudo na mesma linha;\begin{enumerate}[label*=.\arabic*]
% Segue o padrão de numeração do nível anterior.
TABELAS
Criar uma tabela na vertical usando \begin{landscape}
e \end{landscape}
:
\begin{landscape}
% Table generated by Excel2LaTeX from sheet 'Planilha1 (2)'
\begin{table}[htbp]
\centering
\caption{Modelos de referência de documentos para trabalhos acadêmicos.}
\begin{tabular}{p{5em}p{17em}p{17em}p{8em}p{8em}}
\toprule
\textbf{Tipo} & \textbf{Modelo} & \textbf{Exemplo} & \textbf{Citação Direta} & \textbf{Citação Indireta} \\
\midrule
\textbf{Livros} & ÚLTIMO NOME, Primeiro nome do autor. Título. Tradução: Primeiro nome Último nome. Número .ed. Local de publicação: Editora, ano de publicação. (Série). & KANT, Immanuel. Metafísica dos Costumes. Tradução: Bruno Nadai; Diego Kosbiau; Monique Hulshof. 1. ed. Petrópolis, RJ: Editora Vozes, 2003. (Pensamento Humano). & " ... " (KANT, 2003, p. 43) & Segundo Kant (2003, p. 43) \\
\midrule
\textbf{Capítulo\newline{} de Livro} & ÚLTIMO NOME, Primeiro Nome do autor do capítulo. Título do capítulo. In: ÚLTIMO NOME, Primeiro nome do autor. Título da obra. Local de publicação: Editora, ano de publicação.p.(página inicial do capítulo)- (página final do capítulo). & CHAUÍ, Marilena. Aristóteles: A Filosofia como Totalidade do Saber. In: INTRODUÇÃO À HISTÓRIA DA FILOSOFIA. 2. ed. São Paulo: Companhia das Letras, 2002. v. 1, p. 328–380. & " ... " (CHAUÍ, 2002, p. 54) & Segundo Chauí (2003, p. 43) \\
\midrule
\textbf{Autor\newline{}Entidade} & NOME DA ENTIDADE POR EXTENSO. Título. Local de publicação, ano de publicação. & ASSOCIAÇÃO BRASILEIRA DE MARKETING DIRETO. Anuário brasileiro de marketing direto. São Paulo, 2010. Disponível em: https:integrada.minhabiblioteca.com.br/\#/books/ 9788522477289. Acesso em: 12 set. 2016. & "[...] riqueza jamais vivida." (ASSOCIAÇÃO BRASILEIRA DE MARKETING DIRETO, 2010, p. 82). & De acordo com a Associação Brasileira de Marketing Direto (2010, p. 82) [ ] no Brasil. \\
\midrule
\textbf{Artigo \newline{}de Revista} & ÚLTIMO NOME, Primeiro nome do autor do artigo. Título do artigo. Título da Revista, local de publicação, volume do exemplar, número do exemplar, p. (página inicial e final do artigo), mês, ano de publicação. Disponível em: link. Acesso em: data de acesso. & AMARAL, Sueli Angélica do. Marketing da informação: abordagem inovadora para entender o mercado e o negócio da informação. Ciência da Informação, Brasília, v. 40, n. 1, p. 85-98, jan./abr. 2011. Disponível em: http:www.scielo.br/scielo.php?script=sci\_arttext\&pid=S0100-19652011000100007. Acesso em: 20 jan. 2016. & \multicolumn{1}{l}{} & \multicolumn{1}{l}{} \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
\end{landscape}
Resultado:
Escrever novos comandos:
\newcommand{\NAME}[NUMBER] { COMMANDS }
Símbolo de desvio (Donald Knuth):
Command | Symbol |
---|---|
- \dband , - \textdbend |
![]() |
\usepackage{manfnt}
\usepackage{array}
\newcommand{\dnote}[1]{%
% \noindent % I guess this is intended...
\begin{tabular}{@{}m{0.13\textwidth}@{}m{0.87\textwidth}@{}}%
\huge\textdbend %
\end{tabular}%
\par % ... and this too.
}
Definições:
\def \askesis {\textit{áskesis}\xspace}
Definições de cores:
% Colors
\colorlet{darkgreen}{green!50!black}
\colorlet{lightgreen}{green!80!black}
\colorlet{darkred}{red!90!black}
\colorlet{lightred}{red!80!black}
Multilingual text
)
Escrever em mais de um idioma (%--------------------------------------------------
% IMPORTANTE: Para usar caracteres estrangeiros
% use o PDFLATEX e não o XELATEX
%--------------------------------------------------
\usepackage[english, german, greek, main=brazilian]{babel}
\babelprovide[import]{greek} % To write in foreing languages (like greek)
\usepackage[LGR, T1]{fontenc}
\usepackage{alphabeta}
\babelprovide[import]{greek}
%--------------------------------------------------
% Uso no corpo do texto:
\foreignlanguage{greek}{αλέθεια}
% macros criadas para simplificar:
\newcommand{\grego}[2] {\foreignlanguage{greek}{#1}, \textit{#2}\xspace }
\def \aleteia {\grego{αλέθεια}{alétheia}}
Duas figuras em uma mesma linha
\begin{figure}[h]
\begin{subfigure}[b]{0.385\textwidth}
\centering
\includegraphics[width=5cm]{./img/tetraktys.jpg}
$1+2+3+4=10$
\caption{Exemplo de tetraktys.} \label{fig:1a}
\end{subfigure}
\begin{subfigure}[b]{0.615\textwidth}
\centering
\includegraphics[width=8cm]{./img/tetraktys_geometria.png}
\caption{Geração a partir da unidade.} \label{fig:1b}
\end{subfigure}
\caption{Representações pitagoricas geometrico-numericas das quantidades.}
\label{fig:1}
\end{figure}
Resultado:
Comandos importantes
\xspace
acrescenta, de forma inteligente, espaços ao final de um texto definido através de um\def
.\def \name {definition}
Argumentos no Cabeçalho YAML
aspectratio=169:
muda a razão de proporção.header-includes: |
usado para inserir pacotes.
Diagrama
\begin{figure}[h]
$$
\text{Filosofia}
\begin{cases}
{\text{Teoria da Ciência}}
\begin{cases}
{\text{Formal: \textit{Lógica}}} \\ \\
{\text{Material: \textbf{\color{blue} \textit{Teoria do Conhecimento}}}}
\begin{cases}
{\text{\textit{Geral}}} \\
{\text{\textit{Especial}}} \\
\end{cases} \\
\end{cases} \\ \\
{\text{Teoria dos Valores}}
\begin{cases}
{\text{Éticos}: \textit{Ética}} \\
{\text{Estéticos}: \textit{Estética}} \\
{\text{Religiosos}: \textit{Filosofia da Religião}} \\
\end{cases} \\ \\
{\text{Concepção do Universo}}
\begin{cases}
{\text{Metafísica}}
\begin{cases}
{\text{\textit{Metafísica da Natureza}}} \\
{\text{\textit{Metafísica do Espírito}}} \\
\end{cases} \\ \\
{\text{\textit{Teoria} do Universo}}
\begin{cases}
{Deus} \\
{Liberdade} \\
{Imortalidade} \\
\end{cases} \\
\end{cases} \\
\end{cases}
$$
\\
\caption{Divisão da Filosofia segundo \citeonline{Hessen1980}.}
\label{fig::filosofia}
\end{figure}
Resultado:
CÓDIGO LATEX NO TEXTO MARKDOWN:
-
Inserir no cabeçalho YAML a sessão para incluir no cabeçalho header-includes:
--- # YAML Header # header-includes: | \usepackage{tikz,pgfplots} ---
-
Inserir o código LaTeX no texto Markdown:
\begin{center} \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3.5cm, thick,main node/.style={circle,fill=blue!20,draw,font=\sffamily\Large\bfseries}] \node[main node] (1) {1}; \node[main node] (2) [below left of=1] {2}; (8) edge node [left] {0.2} (7) edge [loop right] node {0.6} (8) edge [bend right] node[right] {0.2} (5); \end{tikzpicture} \end{center}
LaTeX Fonts
Source Sans Pro
\usepackage[default]{sourcesanspro}
Resultado: |
---|
Times New Roman
\usepackage{newtxtext} %
\usepackage[varvw]{newtxmath} % selects Times Roman as basic font
TEX Gyre Pagella
Link: Font Catalog
The TEX Gyre Pagella
family of fonts is based on the URW Palladio family, but heavily extended. Math support is available in OpenType format.
Fonte True Type »Source Sans Pro«
Fonte muito especial semelhante ao arial:
\usepackage[default]{sourcesanspro}
Outros Estilos de Fonte:
%-- FONT SELECTION: ----------------------------------------------------------------
\usepackage{tgpagella} %-- FONT SELECTION:
\usepackage[default]{sourcesanspro}
\usepackage{xspace} %--Times New Roman
\usepackage{mathpazo} %--Times New Roman
\usepackage{palatino} %--Times New Roman
\usepackage{libertine} %--
%--
%-- Best:
%-- libertine, mathpazo, kpfonts, palatino,
%-- mathptmx (from Times Roman)
%--
%-- Others:
%-- stix, arial, tgpagella, newcent, bookman,
%-- fourier, fouriernc, avantgarde, chancery,
%-- helvet, ncs, times, beraserif, tgschola,
%-- cmbright, utopia
%--
%-- FONT SELECTION: ----------------------------------------------------------------
Estilos de Fontes:
Command | Output |
---|---|
\tiny | |
\scriptsize | |
\footnotesize | |
\small | |
\normalsize | |
\large | |
\Large | |
\LARGE | |
\huge | |
\Huge |
- XeLaTeX command to use fonts:
\setmainfont[Ligatures=TeX]{Linux Libertine O}
- Localização:
C:\Program Files (x86)\TeXmacs\fonts\truetype
C:\Users\paulo.cunha.TJ.PA.GOV.BR\AppData\Local\Microsoft\Windows\Fonts
C:\Users\paulo.cunha.TJ.PA.GOV.BR\AppData\Roaming\MiKTeX\fonts\opentype
C:\Users\paulo.cunha.TJ.PA.GOV.BR\OneDrive\_LaTeX\_TYPEFACES\
.
- Antiqua .
- Palatino .
- Charter
\usefonttheme{serif} % change font to allow \textbf{} \usepackage{charter} % Nicer fonts
.
- Fira
Uso: (
Metropolis
)- Fonte utilizada no estilo METROPOLIS. Está disponível na forma de um um package do LaTeX, sob o nome
Fira
em\Fonts\Outline fonts
no MiKTeX.
- Fonte utilizada no estilo METROPOLIS. Está disponível na forma de um um package do LaTeX, sob o nome
.
- Flama
Uso: (
HSRM
)- Fonte utilizada pelo estilo HSRM
(Hochschule RheinMain)
para slidesBeamer
, criado por Benjamin Weiss. - Download: Font Geek.
- Fonte utilizada pelo estilo HSRM
.
- Biolinum e Libertine
Uso: (
ACM
)- Fonte utilizada nos modelos de artigos da
ACM
. - Download: Font Squirrel - Biolinum e DaFont - Libertine
- Site da ACM
- Fonte utilizada nos modelos de artigos da
.
- Linux Libertine O
\setmainfont[Ligatures=TeX]{Linux Libertine O}
.
ESTILOS E THEMAS IMPORTANTES
- EISVOGEL Template para documentos Site: https://github.com/Wandmalfarbe/pandoc-latex-template
- Metropolis Site: https://github.com/matze/mtheme
- HSRM Site da universidade: https://www.hs-rm.de Site: Hochschule RheinMain Beamer Thema
.
CONTRIBUIÇÕES INTERESSANTES
-
Impressão na forma de handout
$if(handout)$ \usepackage{pgfpages} %\pgfpagesuselayout{2 on 1}[a4paper,border shrink=3mm] \pgfpagesuselayout{4 on 1}[a4paper,border shrink=4mm,landscape] $endif$
-
Estilos de Fontes para o LaTeX
\usepackage[tt=false]{antiqua} \usepackage[tt=false]{palatino} \usepackage[tt=false]{libertine}
-
Penn State University
\definecolor{mpigreen}{HTML}{007977} \setbeamercolor{frametitle}{bg=mpigreen}
-
Código LaTeX para diferenciar números menores que 10:
\def\artnum#1{\ifnum#1<10 #1º\else #1\fi} \artnum{12} \newcommand{\arti}[2][]{(art.~\bold{\artnum{#2}}#1)} \newcommand{\artii}[3][]{(art.~\bold{\artnum{#2}},~\bold{#3}#1)} \newcommand{\artiii}[4][]{(art.~\bold{\artnum{#2}},~\bold{#3}~``\bold{#4}''#1)}
-
Numeração diferente nos Anexos (Appendix) em LaTeX
<!-- ******************************** A P E N D I C E S ******************************** \renewcommand{\thesection}{\arabic{section}} --> \appendix \newcounter{iSECTION} \newcounter{iSUBSECTION} \newcounter{iSUBSUBSECTION} \def \beginNewChapter{\beginNewSection} \def \beginNewSection{\setcounter{iSECTION}{0}} \def \beginNewSubsection{\setcounter{iSUBSECTION}{0}} \def \beginNewSubsubsection{\setcounter{iSUBSUBSECTION}{0}} \renewcommand{\thechapter}{\Alph{chapter}} \renewcommand{\section}[1]{ \refstepcounter{iSECTION} \beginNewSubsection \vspace{.75cm} \textbf{\Large{\theiSECTION \hspace{.1cm} #1}} \vspace{.4cm}} \renewcommand{\subsection}[1]{ \refstepcounter{iSUBSECTION} \beginNewSubsubsection \textbf{\theiSECTION.\theiSUBSECTION} \hspace{.1cm} #1} \renewcommand{\subsubsection}[1]{ \refstepcounter{iSUBSUBSECTION} \begin{quote} \textbf{\theiSECTION.\theiSUBSECTION.\theiSUBSUBSECTION} \hspace{.1cm} #1 \end{quote} }
-
Resolving the problem with {.standout} slides corrupting the following ones (Metropolis):
header-includes: - \usepackage[portuges]{babel} # - \usepackage[tt=false]{antiqua} # - \usepackage[tt=false]{palatino} # - \usepackage[tt=false]{libertine} # - \usepackage{multicol} # - \usepackage{tabularx} # - \usepackage{array} # - \usepackage{longtable} - '\usetheme{metropolis}' - '\makeatletter' - '\beamer@ignorenonframefalse' - '\makeatother'
-
Usar fontes do modelo ACM
\usepackage{tikz,pgfplots} \usepackage[T1]{fontenc} \usepackage[tt=false]{libertine} \setmonofont{inconsolata} \usepackage[varqu]{zi4} \usepackage[libertine]{newtxmath}
-
Modificações feitas por Paulo Cunha:
%---- begin(paulo.cunha)------------------------------------------------ %--------------------------------------------------------------------- % Colors %--------------------------------------------------------------------- \definecolor{red}{rgb}{0.75,0.10,0.20} \definecolor{red2}{RGB}{150,0,0} \definecolor{blue}{rgb}{0.00,0.25,0.71} \definecolor{blue2}{RGB}{36, 25, 200} \definecolor{orange}{RGB}{255, 69, 0} \definecolor{orange2}{RGB}{255, 94, 14} \definecolor{black}{RGB}{100, 100, 100} \newcommand{\laranja}[1]{\textcolor{orange}{#1}} \newcommand{\azul}[1]{\textcolor{blue2}{#1}} \newcommand{\vermelho}[1]{\textcolor{red2}{#1}} \newcommand{\negro}[1]{\textcolor{black}{#1}} %--------------------------------------------------------------------- % Markers \sout and \emph %--------------------------------------------------------------------- %\setbeamerfont{negrito}{family=\Medium} %\renewcommand{\textbf}[1]{{\usebeamerfont{negrito}\negro{#1}}} \renewcommand{\textbf}[1]{{\Medium \negro{#1}}} \renewcommand{\emph}[1]{\laranja{#1}} \newcommand{\sout}[1]{\azul{#1}} \newcommand{\tightlist}{} \setbeamercolor{progress bar}{fg=orange,bg=orange2} $if(handout)$ \usepackage{pgfpages} %\pgfpagesuselayout{2 on 1}[a4paper,border shrink=3mm] \pgfpagesuselayout{4 on 1}[a4paper,border shrink=4mm,landscape] $endif$ %---- end(paulo.cunha)-------------------------------------------