| 1 |
%% Copyright 2016 Daniel Ballester Marques |
| 2 |
%% |
| 3 |
%% This work may be distributed and/or modified under the |
| 4 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 5 |
%% of this license or (at your option) any later version. |
| 6 |
%% The latest version of this license is in |
| 7 |
%% http://www.latex-project.org/lppl.txt |
| 8 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 9 |
%% version 2005/12/01 or later. |
| 10 |
%% |
| 11 |
%% This work has the LPPL maintenance status `maintained'. |
| 12 |
%% |
| 13 |
%% The Current Maintainer of this work is Daniel Ballester Marques. |
| 14 |
|
| 15 |
\documentclass[a4paper]{article} |
| 16 |
\usepackage[brazil]{babel} |
| 17 |
\usepackage{lmodern} |
| 18 |
\usepackage[T1]{fontenc} |
| 19 |
\usepackage[utf8]{inputenc} |
| 20 |
\usepackage{textcomp} |
| 21 |
\usepackage{microtype} |
| 22 |
\usepackage{etoolbox} |
| 23 |
\usepackage{xcolor} |
| 24 |
|
| 25 |
\usepackage[style=abnt, sorting=none, repeatfirstfields]{biblatex} |
| 26 |
\usepackage[autostyle]{csquotes} |
| 27 |
|
| 28 |
\addbibresource{../bibtex/bib/biblatex-abnt/NBR6023-2018.bib} |
| 29 |
|
| 30 |
\defbibheading{bibliography}[]{\subsection{#1}} |
| 31 |
|
| 32 |
\defbibenvironment{bibliography} |
| 33 |
{\list{}{% |
| 34 |
\leftmargin 6em |
| 35 |
\itemsep\bibitemsep |
| 36 |
\parsep\bibparsep}} |
| 37 |
{\endlist} |
| 38 |
{\item} |
| 39 |
|
| 40 |
\defbibheading{subbib}[]{\subsubsection{#1}} |
| 41 |
|
| 42 |
\let\origsection\section |
| 43 |
\renewcommand\section{\clearpage\origsection} |
| 44 |
|
| 45 |
\makeatletter |
| 46 |
\newcommand{\globalcolor}[1]{% |
| 47 |
\color{#1}\global\let\default@color\current@color |
| 48 |
} |
| 49 |
\makeatother |
| 50 |
\AtBeginDocument{\iftoggle{reference}{}{\globalcolor{red!50}}} |
| 51 |
|
| 52 |
|
| 53 |
\newtoggle{reference} |
| 54 |
\toggletrue{reference} |
| 55 |
|
| 56 |
\title{NBR 6023:2018 - \iftoggle{reference}{Referência}{Teste}} |
| 57 |
\author{Daniel Ballester Marques} |
| 58 |
|
| 59 |
\begin{document} |
| 60 |
|
| 61 |
\maketitle |
| 62 |
|
| 63 |
Este documento imprime \textit{ipsis litteris} todas as entradas citadas na |
| 64 |
NBR 6023:2018, da ABNT. |
| 65 |
|
| 66 |
Para expor as diferentes maneiras como cada campo pode ser usado, a ABNT |
| 67 |
imprime-os de modo diferente a cada entrada. A vantagem dos sistemas como |
| 68 |
o \texttt{biblatex}, por outro lado, é \emph{uniformizar} a bibliografia, |
| 69 |
imprimindo os campos do mesmo modo em todas as entradas. Para reproduzir |
| 70 |
fielmente o texto do manual, este documento faz \emph{mau uso} dos recursos do |
| 71 |
\texttt{biblatex}, aproveitando-se frequentemente de campos que devem ser |
| 72 |
evitados, como \texttt{note}, \texttt{addendum}, \texttt{nameaddon}, |
| 73 |
\texttt{titleaddon} et al. Ele não deve ser usado, portanto, como referência |
| 74 |
para o uso do \texttt{biblatex-abnt}, mas apenas como exemplo de suas |
| 75 |
capacidades, mostrando que é possível (embora não seja recomendado) reproduzir |
| 76 |
todas as entradas do manual e expondo o modo de fazê-lo. Para o uso correto do |
| 77 |
\texttt{biblatex-abnt}, conferir o manual do estilo e o manual do próprio |
| 78 |
\texttt{biblatex}. |
| 79 |
|
| 80 |
\tableofcontents |
| 81 |
|
| 82 |
\nocite{*} |
| 83 |
|
| 84 |
|
| 85 |
\setcounter{section}{6} |
| 86 |
|
| 87 |
\section{Modelos de referências} |
| 88 |
|
| 89 |
|
| 90 |
\printbibliography[keyword=7.1, title={Monografia no todo}] |
| 91 |
|
| 92 |
\printbibliography[keyword=7.2, |
| 93 |
title={Monografia no todo em meio eletrônico}] |
| 94 |
|
| 95 |
\printbibliography[keyword=7.3, title={Parte de monografia}] |
| 96 |
|
| 97 |
\printbibliography[keyword=7.4, |
| 98 |
title={Parte de monografia em meio eletrônico}] |
| 99 |
|
| 100 |
\subsection{Publicação periódica} |
| 101 |
|
| 102 |
\printbibliography[heading=subbib, keyword=7.5.1, |
| 103 |
title={Publicação periódica como um todo}] |
| 104 |
\printbibliography[heading=subbib, keyword=7.5.2, |
| 105 |
title={Partes de revista, boletim etc.}] |
| 106 |
\printbibliography[heading=subbib, keyword=7.5.3, |
| 107 |
title={Artigo e/ou matéria de revista, boletim etc.}] |
| 108 |
\printbibliography[heading=subbib, keyword=7.5.4, |
| 109 |
title={Artigo e/ou matéria de revista, |
| 110 |
boletim etc.\ em meio eletrônico}] |
| 111 |
\printbibliography[heading=subbib, keyword=7.5.5, |
| 112 |
title={Artigo e/ou matéria de jornal}] |
| 113 |
|
| 114 |
\printbibliography[heading=subbib, keyword=7.5.6, |
| 115 |
title={Artigo e/ou matéria de jornal em meio eletrônico}] |
| 116 |
|
| 117 |
\subsection{Evento como um todo} |
| 118 |
|
| 119 |
\printbibliography[heading=subbib, keyword=7.6.1, |
| 120 |
title={Elementos essenciais}] |
| 121 |
\printbibliography[heading=subbib, keyword=7.6.2, |
| 122 |
title={Elementos complementares}] |
| 123 |
\printbibliography[heading=subbib, keyword=7.6.3, |
| 124 |
title={Evento como um todo em meio eletrônico}] |
| 125 |
|
| 126 |
\subsection{Trabalho apresentado em evento} |
| 127 |
|
| 128 |
\printbibliography[heading=subbib, keyword=7.7.1, |
| 129 |
title={Elementos essenciais}] |
| 130 |
\printbibliography[heading=subbib, keyword=7.7.2, |
| 131 |
title={Elementos complementares}] |
| 132 |
\printbibliography[heading=subbib, keyword=7.7.3, |
| 133 |
title={Trabalho apresentado em evento em meio eletrônico}] |
| 134 |
|
| 135 |
\printbibliography[keyword=7.8, title={Patente}] |
| 136 |
|
| 137 |
\subsection{Documento jurídico} |
| 138 |
|
| 139 |
\printbibliography[heading=subbib, keyword=7.9.1, title={Legislação}] |
| 140 |
\printbibliography[heading=subbib, keyword=7.9.2, |
| 141 |
title={Jurisprudência (decisões judiciais)}] |
| 142 |
\printbibliography[heading=subbib, keyword=7.9.3, title={Doutrina}] |
| 143 |
\printbibliography[heading=subbib, keyword=7.9.4, |
| 144 |
title={Documento jurídico em meio eletrônico}] |
| 145 |
|
| 146 |
\printbibliography[keyword=7.10, title={Imagem em movimento}] |
| 147 |
|
| 148 |
\subsection{Documento iconográfico} |
| 149 |
|
| 150 |
\printbibliography[heading=subbib, keyword=7.11.1, |
| 151 |
title={Elementos essenciais}] |
| 152 |
\printbibliography[heading=subbib, keyword=7.11.2, |
| 153 |
title={Elementos complementares}] |
| 154 |
\printbibliography[heading=subbib, keyword=7.11.3, |
| 155 |
title={Documento iconográfico em meio eletrônico}] |
| 156 |
|
| 157 |
\subsection{Documento cartográfico} |
| 158 |
|
| 159 |
\printbibliography[heading=subbib, keyword=7.12.1, |
| 160 |
title={Elementos essenciais}] |
| 161 |
\printbibliography[heading=subbib, keyword=7.12.2, |
| 162 |
title={Elementos complementares}] |
| 163 |
\printbibliography[heading=subbib, keyword=7.12.3, |
| 164 |
title={Documento cartográfico em meio eletrônico}] |
| 165 |
|
| 166 |
\printbibliography[keyword=7.13, title={Documento sonoro no todo}] |
| 167 |
|
| 168 |
\printbibliography[keyword=7.14, title={Documento sonoro em parte}] |
| 169 |
|
| 170 |
\subsection{Partitura} |
| 171 |
|
| 172 |
\printbibliography[heading=subbib, keyword=7.15.1, |
| 173 |
title={Elementos essenciais}] |
| 174 |
\printbibliography[heading=subbib, keyword=7.15.2, |
| 175 |
title={Elementos complementares}] |
| 176 |
\printbibliography[heading=subbib, keyword=7.15.3, |
| 177 |
title={Partitura em meio eletrônico}] |
| 178 |
|
| 179 |
\printbibliography[keyword=7.16, title={Documento tridimensional}] |
| 180 |
|
| 181 |
\printbibliography[keyword=7.17, |
| 182 |
title={Documento de acesso exclusivo em meio eletrônico}] |
| 183 |
|
| 184 |
\section{Transcrição dos elementos} |
| 185 |
|
| 186 |
\subsection{Autoria} |
| 187 |
|
| 188 |
\printbibliography[heading=subbib, keyword=8.1.1, title={Autor pessoal}] |
| 189 |
\printbibliography[heading=subbib, keyword=8.1.2, title={Autor entidade}] |
| 190 |
\printbibliography[heading=subbib, keyword=8.1.3, |
| 191 |
title={Autoria desconhecida}] |
| 192 |
|
| 193 |
\printbibliography[keyword=8.2, title={Título e subtítulo}] |
| 194 |
|
| 195 |
\printbibliography[keyword=8.3, title={Edição}] |
| 196 |
|
| 197 |
\printbibliography[keyword=8.4, title={Local}] |
| 198 |
|
| 199 |
\printbibliography[keyword=8.5, title={Editora}] |
| 200 |
|
| 201 |
\printbibliography[keyword=8.6, title={Data}] |
| 202 |
|
| 203 |
\printbibliography[keyword=8.7, title={Descrição física}] |
| 204 |
|
| 205 |
\printbibliography[keyword=8.8, title={Ilustrações}] |
| 206 |
|
| 207 |
\printbibliography[keyword=8.9, title={Dimensões}] |
| 208 |
|
| 209 |
\printbibliography[keyword=8.10, title={Séries e coleções}] |
| 210 |
|
| 211 |
\printbibliography[keyword=8.11, title={Notas}] |
| 212 |
|
| 213 |
\section{Ordenação das referências} |
| 214 |
|
| 215 |
\printbibliography[keyword=9.1, title={Sistema alfabético}] |
| 216 |
|
| 217 |
\printbibliography[keyword=9.2, title={Sistema numérico}] |
| 218 |
|
| 219 |
|
| 220 |
\end{document} |