Skip to content

Commit

Permalink
Improved documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dbmrq committed Jul 6, 2016
1 parent fe13dca commit a170d56
Show file tree
Hide file tree
Showing 5 changed files with 371 additions and 292 deletions.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#biblatex-abnt
# biblatex-abnt

Version 1.0.1

Expand All @@ -16,3 +16,29 @@ Substitui o pacote [`abntex2cite`](https://github.com/abntex/abntex2).
**Requer `biblatex v3.3` e `biber v2.4`.**

O arquivo `biblatex-abnt.pdf` apresenta algumas informações sobre o uso do pacote e a compatibilidade com o `abntex2cite`. O arquivo `abnt-testcase.pdf` imprime todas as entradas usadas nos manuais do `abntex2cite` (incluindo todas as entradas usadas na norma 6023 (2000) da ABNT).


## Instalação

O `biblatex-abnt` está incluso no TeX Live 2016.

Para instalá-lo manualmente, copie os arquivos `.bbx`, `.cbx` e `.lbx` para:

`<TEXMFLOCAL>/tex/latex/biblatex-contrib/biblatex-abnt/`

## Uso

1. Adicione as seguintes linhas ao preâmbulo do seu arquivo `.tex`:

```tex
\usepackage[backend=biber, style=abnt]{biblatex}
\usepackage[brazil]{babel}
\addbibresource{arquivo.bib} % Seus arquivos de
\addbibresource{outroarquivo.bib} % bibliografia vão aqui
```

2. Use os comandos de citação (e.g. `\cite[p.~10]{entrada2016}`) para citar suas entradas.

3. Use o comando `\printbibliography` para imprimir a bibliografia.

*Consulte o arquivo `biblatex-abnt.pdf` para informações sobre as opções e comandos disponíveis.*
20 changes: 11 additions & 9 deletions abnt.bbx
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,21 @@
\settoggle{nosl}{#1}%
\settoggle{nosn}{#1}}%

% This is the dashed option from authorstyle.bbx,
% I changed it's name and made it default.
\newtoggle{repeatfields}%
\DeclareBibliographyOption[boolean]{repeatfields}[true]{%
\settoggle{repeatfields}{#1}%
\ifstrequal{#1}{true}%
{\renewbibmacro*{bbx:savehash}{}%
\renewbibmacro*{saveorghash}{}}%
{\ExecuteBibliographyOptions{pagetracker}%
\renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}%
\renewbibmacro*{saveorghash}{\savelist{organization}{\bbx@lasthash}}}}%
\ifstrequal{#1}{true}{%
\renewbibmacro*{bbx:savehash}{}%
\newbibmacro*{saveorghash}{}%
}{%
\ExecuteBibliographyOptions{pagetracker}%
\renewbibmacro*{bbx:savehash}{\savefield{fullhash}{\bbx@lasthash}}%
\newbibmacro*{saveorghash}{\savelist{organization}{\bbx@lasthash}}%
}%
}%
\DeclareEntryOption[boolean]{repeatfields}[true]{%
\settoggle{repeatfields}{#1}}%
\settoggle{repeatfields}{#1}%
}%

% Option to use the original dashes instead of underscores.
\DeclareBibliographyOption[boolean]{usedashes}[true]{%
Expand Down
148 changes: 74 additions & 74 deletions biblatex-abnt.bib
Original file line number Diff line number Diff line change
@@ -1,107 +1,107 @@
@mvbook{assis08,
author = {Machado de Assis},
title = {Obra completa em quatro volumes},
year = {2008},
editor = {Aluizio Leite and Ana Lima Cecilio and Heloisa Jahn},
editortype = {organizer},
edition = {2},
volumes = {4},
publisher = {Nova Fronteira},
location = {Rio de Janeiro},
series = {Biblioteca luso-brasileira. Série brasileira},
author = {Machado de Assis},
title = {Obra completa em quatro volumes},
year = {2008},
editor = {Aluizio Leite and Ana Lima Cecilio and Heloisa Jahn},
editortype = {organizer},
edition = {2},
volumes = {4},
publisher = {Nova Fronteira},
location = {Rio de Janeiro},
series = {Biblioteca luso-brasileira. Série brasileira},
}
@book{assis08:1,
crossref = {assis08},
volume = {1},
title = {Fortuna crítica/Romance},
pagetotal = {1340},
crossref = {assis08},
volume = {1},
title = {Fortuna crítica/Romance},
pagetotal = {1340},
}
@bookinbook{assis08:1b,
crossref = {assis08:1},
title = {Esaú e Jacó},
pages = {1073-1226},
crossref = {assis08:1},
title = {Esaú e Jacó},
pages = {1073-1226},
}
@inbook{bosi08,
crossref = {assis08:1},
title = {Uma figura machadiana},
author = {Alfredo Bosi},
pages = {179-189},
crossref = {assis08:1},
title = {Uma figura machadiana},
author = {Alfredo Bosi},
pages = {179-189},
}
@suppbook{leite08,
crossref = {assis08:1},
title = {Nota Editorial},
author = {Aluizio Leite and Ana Lima Cecilio and Heloisa Jahn},
pages = {1-5},
crossref = {assis08:1},
title = {Nota Editorial},
author = {Aluizio Leite and Ana Lima Cecilio and Heloisa Jahn},
pages = {1-5},
}

@mvcollection{moretti09,
editor = {Franco Moretti},
editortype = {organizer},
translator = {Denise Bottmann},
title = {O Romance},
volumes = {5},
publisher = {Cosac Naify},
location = {São Paulo},
year = {2009},
editor = {Franco Moretti},
editortype = {organizer},
translator = {Denise Bottmann},
title = {O Romance},
volumes = {5},
publisher = {Cosac Naify},
location = {São Paulo},
year = {2009},
}
@collection{moretti09:1,
crossref = {moretti09},
volume = {1},
title = {A cultura do romance},
pagetotal = {1120},
crossref = {moretti09},
volume = {1},
title = {A cultura do romance},
pagetotal = {1120},
illustrated = {40 ils.},
}
@incollection{mann09,
crossref = {moretti09:1},
author = {Thomas Mann},
title = {Bilse e eu},
pages = {217},
crossref = {moretti09:1},
author = {Thomas Mann},
title = {Bilse e eu},
pages = {217},
}
@suppcollection{moretti09:1b,
crossref = {moretti09:1},
title = {Apresentação geral},
author = {Franco Moretti},
crossref = {moretti09:1},
title = {Apresentação geral},
author = {Franco Moretti},
}

@article{negrão14,
title = {Brazilian Portuguese as a transatlantic language},
subtitle = {agents of linguistic contact},
author = {Esmeralda Vailati Negrão and Evani Viotti},
journal = {Interdisciplinary Journal of Portuguese Diaspora Studies},
volume = {3},
pages = {135-154},
year = {2014},
title = {Brazilian Portuguese as a transatlantic language},
subtitle = {agents of linguistic contact},
author = {Esmeralda Vailati Negrão and Evani Viotti},
journal = {Interdisciplinary Journal of Portuguese Diaspora Studies},
volume = {3},
pages = {135-154},
year = {2014},
}

@thesis{eliseu84,
title = {Verbos ergativos do Português},
subtitle = {descrição e análise},
author = {André Manuel Godinho Simões Eliseu},
type = {Dissertação (Mestrado em Linguística)},
title = {Verbos ergativos do Português},
subtitle = {descrição e análise},
author = {André Manuel Godinho Simões Eliseu},
type = {Dissertação (Mestrado em Linguística)},
institution = {Universidade de Lisboa},
location = {Lisboa},
eventyear = {1985},
location = {Lisboa},
eventyear = {1985},
}
@thesis{amaral15,
title = {A alternância transitivo-intransitiva no português brasileiro},
subtitle = {fenômenos semânticos},
author = {Luana Lopes Amaral},
type = {Tese (Doutorado em Linguística)},
title = {A alternância transitivo-intransitiva no português brasileiro},
subtitle = {fenômenos semânticos},
author = {Luana Lopes Amaral},
type = {Tese (Doutorado em Linguística)},
institution = {Universidade Federal de Minas Gerais},
location = {Belo Horizonte},
eventyear = {2015},
location = {Belo Horizonte},
eventyear = {2015},
}

@inproceedings{negrão13,
title = {A emergência da sintaxe do português brasileiro},
subtitle = {absolutas, alçamento do possuidor e passivas},
author = {Esmeralda Vailati Negrão and Evani Viotti},
eventtitle = {Encontro nacional do gt de teoria da gramática da ANPOLL},
number = {28},
venue = {Florianópolis},
eventyear = {2013},
booktitle = {Caderno de Resumos},
publisher = {\mkbibacro{ANPOLL}},
location = {Campinas},
year = {2013},
title = {A emergência da sintaxe do português brasileiro},
subtitle = {absolutas, alçamento do possuidor e passivas},
author = {Esmeralda Vailati Negrão and Evani Viotti},
eventtitle = {Encontro nacional do gt de teoria da gramática da ANPOLL},
number = {28},
venue = {Florianópolis},
eventyear = {2013},
booktitle = {Caderno de Resumos},
publisher = {\mkbibacro{ANPOLL}},
location = {Campinas},
year = {2013},
}
Binary file modified biblatex-abnt.pdf
Binary file not shown.
Loading

0 comments on commit a170d56

Please sign in to comment.