Skip to content

Instantly share code, notes, and snippets.

@luksamuk
Last active June 30, 2022 17:19
Show Gist options
  • Save luksamuk/1b50e8d03b777517765091f68ebfc4b1 to your computer and use it in GitHub Desktop.
Save luksamuk/1b50e8d03b777517765091f68ebfc4b1 to your computer and use it in GitHub Desktop.
Template abnTeX2 para a UFVJM (beta)
% main.tex
% Parte do projeto abntex2-ufvjm.
% Copyright (c) 2019 Lucas Vieira
% Este arquivo é provido sob a licença BSD 2-Clause (simplificada),
% e pode ser utilizado livremente. Para mais informações, veja
% o website choosealicense.com.
\documentclass[article,
12pt,
openany,
oneside,
% twoside,
a4paper,
chapter=TITLE,
hyphen,
english,
brazil,
sumario=tradicional
]{abntex2}
\usepackage{times}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{color}
\usepackage{microtype}
\usepackage{titlesec}
\usepackage[brazilian, hyperpageref]{backref}
\usepackage[alf, abnt-emphasize=bf, abnt-doi=link]{abntex2cite}
\usepackage{indentfirst}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{amssymb}
\usepackage{amsmath}
%%% Configurações de fontes
%% Fontes monoespaçadas e bonitas para código
\lstset{basicstyle=\ttfamily\small, breaklines=true}
%% Seções e subseções em Times
\titleformat{\section}{\normalfont\normalsize\bfseries\uppercase}{}{0pt}{}
\titleformat{\subsection}{\normalfont\normalsize\bfseries}{}{0pt}{\space}
\titleformat{\subsubsection}{\normalfont\normalsize\bfseries}{}{0pt}{\space}
\titleformat{\paragraph}{\normalfont\normalsize\itshape}{}{0pt}{\theparagraph\space}
%% Tamanhos e fontes de seções
\renewcommand{\ABNTEXchapterfontsize}{\normalsize}
\renewcommand{\ABNTEXsectionfontsize}{\normalsize}
\renewcommand{\ABNTEXsubsectionfontsize}{\normalsize}
\renewcommand{\ABNTEXsubsubsectionfontsize}{\normalsize}
\renewcommand{\ABNTEXchapterfont}{\normalfont\bfseries}
\renewcommand{\ABNTEXsectionfont}{\normalfont\bfseries}
\renewcommand{\ABNTEXsubsectionfont}{\normalfont}
\renewcommand{\ABNTEXsubsubsectionfont}{\normalfont}
%% Espaçamento e margens
\setlength{\parindent}{1.5cm}
\setlrmarginsandblock{3cm}{2cm}{*}
\setulmarginsandblock{2.5cm}{2.5cm}{*}
\checkandfixthelayout
%% Configurações de citações
\renewcommand{\backrefpagesname}{Citado na(s) página(s):~}
\renewcommand{\backref}{}
\renewcommand*{\backrefalt}[4]{}
%%% Preâmbulo
%% Índice
\tableofcontents*
%% Dados do trabalho
\titulo{Meu Trabalho}
\autor{Fulano}
\preambulo{Modelo de trabalho em \abnTeX{} para a UFVJM.\par Professor: Ciclano}
\local{Diamantina}
\data{2019}
\instituicao{Universidade Federal dos Vales do Jequitinhonha e do Mucuri}
\tipotrabalho{Artigo}
% \orientador{Fulano}
% \coorientador{Ciclano}
%% Metadados do PDF
\definecolor{blue}{RGB}{41,5,195}
\makeatletter
\hypersetup{
% pdftitle={\title},
% pdfauthor={\author},
pdfkeywords={},
pdfsubject={},
pdfcreator={},
colorlinks=true,
linkcolor=black,
citecolor=black,
filecolor=black,
urlcolor=black,
bookmarksdepth=4
}
\makeatother
%%% Conteúdo do documento
\begin{document}
\OnehalfSpacing % Espaçamento de 1.5 entre linhas
\pretextual
% Capa e folha de rosto
\imprimircapa
\imprimirfolhaderosto
\newpage
\textual
% Elementos textuais vêm aqui.
\section{Introdução}
\lipsum[1-4]
\section{Desenvolvimento}
\lipsum[5-11]
\section{Conclusão}
\lipsum[12-15]
% Citação invisível de exemplo
\nocite{verna2018}
\postextual
% Consulta o arquivo referencias.bib por referências.
\bibliography{referencias}
\end{document}
% referencias.bib
% Parte do projeto abntex2-ufvjm.
% Copyright (c) 2019 Lucas Vieira
% Este arquivo é provido sob a licença BSD 2-Clause (simplificada),
% e pode ser utilizado livremente. Para mais informações, veja
% o website choosealicense.com.
@article{verna2018,
title = "{Lisp}, {Jazz}, {Aikido}",
subtitle = "Three Expressions of a Single Essence",
author = "Didier Verna",
journal = {The Art, Science, and Engineering of Programming},
volume = 2,
number = 3,
year = 2018,
doi = {10.22152/programming-journal.org/2018/2/10}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment