From 9472abc3c725ff61ea7c779ffdf35c34b589981b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 4 Apr 2018 20:19:49 +0000 Subject: biblatex-abnt (4apr18) git-svn-id: svn://tug.org/texlive/trunk@47291 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/latex/biblatex-abnt/CHANGELOG.md | 10 +++ .../doc/latex/biblatex-abnt/NBR6023-2002.tex | 2 - .../texmf-dist/doc/latex/biblatex-abnt/README.md | 35 +++++----- .../doc/latex/biblatex-abnt/biblatex-abnt.pdf | Bin 323768 -> 323139 bytes .../doc/latex/biblatex-abnt/biblatex-abnt.tex | 25 ++++--- Master/texmf-dist/doc/latex/biblatex-abnt/test.sh | 76 ++++++++++++++------- .../texmf-dist/doc/latex/biblatex-abnt/texlive.sh | 27 ++++++++ 7 files changed, 120 insertions(+), 55 deletions(-) create mode 100644 Master/texmf-dist/doc/latex/biblatex-abnt/texlive.sh (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/biblatex-abnt/CHANGELOG.md b/Master/texmf-dist/doc/latex/biblatex-abnt/CHANGELOG.md index 6ec3b3ca3e5..c5afa7083ea 100644 --- a/Master/texmf-dist/doc/latex/biblatex-abnt/CHANGELOG.md +++ b/Master/texmf-dist/doc/latex/biblatex-abnt/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [3.3] - 2018-04-04 + +### Added +- Add `comp` option to numeric style + +### Fixed +- Fix problem with English translation + + ## [3.2] - 2017-10-23 ### Added @@ -95,6 +104,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Add "et al." in citations +[3.3]: https://github.com/abntex/biblatex-abnt/compare/v3.2...v3.3 [3.2]: https://github.com/abntex/biblatex-abnt/compare/v3.1...v3.2 [3.1]: https://github.com/abntex/biblatex-abnt/compare/v3.0...v3.1 [3.0.1]: https://github.com/abntex/biblatex-abnt/compare/v3.0...v3.0.1 diff --git a/Master/texmf-dist/doc/latex/biblatex-abnt/NBR6023-2002.tex b/Master/texmf-dist/doc/latex/biblatex-abnt/NBR6023-2002.tex index 2f75a45f641..b175364db73 100644 --- a/Master/texmf-dist/doc/latex/biblatex-abnt/NBR6023-2002.tex +++ b/Master/texmf-dist/doc/latex/biblatex-abnt/NBR6023-2002.tex @@ -49,8 +49,6 @@ \makeatother \AtBeginDocument{\iftoggle{reference}{}{\globalcolor{red!50}}} -\usepackage{hyperref} - \newtoggle{reference} \toggletrue{reference} diff --git a/Master/texmf-dist/doc/latex/biblatex-abnt/README.md b/Master/texmf-dist/doc/latex/biblatex-abnt/README.md index d91459a79a9..3bf0fabf465 100644 --- a/Master/texmf-dist/doc/latex/biblatex-abnt/README.md +++ b/Master/texmf-dist/doc/latex/biblatex-abnt/README.md @@ -1,35 +1,32 @@ # biblatex-abnt +[![Build Status](https://travis-ci.org/abntex/biblatex-abnt.svg?branch=master)](https://travis-ci.org/abntex/biblatex-abnt) +[![NBR 6023:2002 100%](https://img.shields.io/badge/NBR%206023%3A2002-100%25-brightgreen.svg)](https://github.com/abntex/biblatex-abnt/blob/master/tests/NBR6023-2002_reference.pdf) +[![NBR 10520:2002 100%](https://img.shields.io/badge/NBR%2010520%3A2002-100%25-brightgreen.svg)](https://github.com/abntex/biblatex-abnt/blob/master/tests/NBR10520-2002_reference.pdf) -BibLaTeX style for Brazil's ABNT (Brazilian Association of Technical Norms) -rules. - -Version 3.2 -Permission is granted to copy, distribute and/or modify this software -under the terms of the LaTeX Project Public License, version 1.3c -(http://www.latex-project.org/lppl.txt). +BibLaTeX style for Brazil's ABNT (Brazilian Association of Technical Standards) +rules. -The current maintainer is -Daniel Ballester Marques ([@dbmrq](https://github.com/dbmrq)). With special -thanks to [@moewew](https://github.com/moewew) and all the awesome people -behind BibLaTeX. +Version 3.3 --- Estilo para BibLaTeX compatível com as normas da ABNT. -Substitui o pacote [`abntex2cite`](https://github.com/abntex/abntex2). +Versão 3.3 -**Requer `biblatex v3.8` e `biber v2.8`.** +--- -O arquivo `biblatex-abnt.pdf` apresenta algumas informações sobre o uso do -pacote. Os arquivos `NBR6023-2002.pdf` e `NBR10520-2002.pdf` imprimem *ipsis -litteris* todas as entradas usadas nas respectivas normas da ABNT. +Permission is granted to copy, distribute and/or modify this software +under the terms of the LaTeX Project Public License, version 1.3c +(http://www.latex-project.org/lppl.txt). +The current maintainer is Daniel Ballester Marques +([@dbmrq](https://github.com/dbmrq)). ## Instalação -O `biblatex-abnt` está incluso no TeX Live a partir de 2016. +O biblatex-abnt está incluso no TeX Live a partir de 2016. Para instalá-lo manualmente, copie os arquivos `.bbx`, `.cbx` e `.lbx` para @@ -37,6 +34,8 @@ Para instalá-lo manualmente, copie os arquivos `.bbx`, `.cbx` e `.lbx` para e atualize o banco de dados do TeX (rodando o `texhash`, por exemplo). +**O biblatex-abnt requer `biblatex v3.8` e `biber v2.8`.** + ## Uso 1. Adicione as seguintes linhas ao preâmbulo do seu arquivo `.tex`: @@ -52,5 +51,5 @@ suas entradas. 3. Use o comando `\printbibliography` para imprimir a bibliografia. -*Consulte [o arquivo `biblatex-abnt.pdf`](https://github.com/abntex/biblatex-abnt/raw/master/doc/biblatex-abnt.pdf) e o [manual do `biblatex`](http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf) para informações sobre as opções e comandos disponíveis.* +*Consulte [o arquivo biblatex-abnt.pdf](https://github.com/abntex/biblatex-abnt/raw/master/doc/biblatex-abnt.pdf) e o [manual do biblatex](http://mirrors.ctan.org/macros/latex/contrib/biblatex/doc/biblatex.pdf) para informações sobre as opções e comandos disponíveis.* diff --git a/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.pdf b/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.pdf index 8be4a9776c3..a062ede2656 100644 Binary files a/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.pdf and b/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.pdf differ diff --git a/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.tex b/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.tex index dddde945ce8..b8a27a6004c 100644 --- a/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.tex +++ b/Master/texmf-dist/doc/latex/biblatex-abnt/biblatex-abnt.tex @@ -80,7 +80,7 @@ \printbibliography[heading=none,check=key#1]% }% <<<2 -\newcommand{\version}{3.2} +\newcommand{\version}{3.3} \newcommand{\requirements}{\texttt{biblatex 3.8} e \texttt{biber 2.8}} \title{biblatex-abnt \version} @@ -141,7 +141,8 @@ Use o comando \verb"\printbibliography" para imprimir a bibliografia. \section{Opções}% >>>2 \label{sec:opções} -As opções a seguir podem ser usadas ao chamar o \texttt{biblatex} (além daquelas descritas no manual do pacote): +As opções a seguir podem ser usadas ao chamar o \texttt{biblatex} (além +daquelas descritas no manual do pacote): \begin{description}[itemindent=-1em,leftmargin=3em]% >>>3 \item [ittitles] Usa itálico para os títulos na bibliografia @@ -151,7 +152,8 @@ As opções a seguir podem ser usadas ao chamar o \texttt{biblatex} (além daque \item [scbib] Imprime os nomes em versalete na bibliografia \item [pretty] Ativa as cinco primeiras opções citadas de uma vez \item [giveninits] Abrevia os primeiros nomes na bibliografia - \item [extrayear] Mostra os anos diferenciados com letras (e.g., 2017a) também na bibliografia + \item [extrayear] Diferencia os anos com letras (e.g., 2017a) + também na bibliografia \item [nosl] Oculta as abreviações [s.l.] na bibliografia \item [nosn] Oculta as abreviações [s.n.] na bibliografia \item [noslsn] Oculta as abreviações [s.l], [s.n] e [s.l.: s.n.] @@ -161,23 +163,26 @@ As opções a seguir podem ser usadas ao chamar o \texttt{biblatex} (além daque mas substitui uma segunda ocorrência com traços sublineares \item [repeattitles] Imprime apenas os títulos repetidos na bibliografia, mas substitui os autores por traços sublineares - \item [usedashes] Usa os traços padrão do \texttt{biblatex} em vez de - traços sublineares nos campos repetidos + \item [usedashes] Usa os traços padrão do \texttt{biblatex} nos campos + repetidos \item [language=brazil] Essa opção é adicionada automaticamente. Para imprimir a bibliografia em outros idiomas, substitua o termo \texttt{brazil} pelo código da linguagem desejada - \item [backref] Especifica, na bibliografia, as páginas em que cada entrada - foi citada. + \item [backref] Especifica as páginas em que cada entrada foi citada. \item [citecount] Além das páginas, especifica quantas vezes cada entrada foi citada. + \item [comp] Abrevia a numeração no estilo numérico, imprimindo, e.g., + \enquote{(1--4)} em vez de \enquote{(1, 2, 3, 4)}. \end{description}% <<<3 \vspace{\baselineskip} E.g.: \verb"\usepackage[backend=biber, style=abnt, ittitles]{biblatex}" -As opções \texttt{repeatfields}, \texttt{repeattitles}, \texttt{nosl}, -\texttt{nosn}, \texttt{noslsn} e \texttt{extrayear} também podem ser usadas apenas em entradas -específicas. E.g.: +\begin{sloppypar} + As opções \texttt{repeatfields}, \texttt{repeattitles}, \texttt{backref}, + \texttt{nosl}, \texttt{nosn}, \texttt{noslsn} e \texttt{extrayear} também + podem ser usadas apenas em entradas específicas. E.g.: +\end{sloppypar} \begin{verbatim} @mvbook{assis08, diff --git a/Master/texmf-dist/doc/latex/biblatex-abnt/test.sh b/Master/texmf-dist/doc/latex/biblatex-abnt/test.sh index afaa99c1ab3..6994b6fc15b 100755 --- a/Master/texmf-dist/doc/latex/biblatex-abnt/test.sh +++ b/Master/texmf-dist/doc/latex/biblatex-abnt/test.sh @@ -1,28 +1,54 @@ #!/bin/bash -sed -i '' 's/\\toggletrue{reference}/% \\toggletrue{reference}/' NBR10520-2002.tex - -sed -i '' 's/\\toggletrue{reference}/% \\toggletrue{reference}/' NBR6023-2002.tex - -latexmk -pdf -norc NBR10520-2002.tex - -latexmk -pdf -norc NBR6023-2002.tex - -pdflatex NBR10520-2002_test.tex - -pdflatex NBR6023-2002_test.tex - -latexmk -norc -c - -rm NBR10520-2002.bbl - -rm NBR6023-2002.bbl - -rm NBR10520-2002.run.xml - -rm NBR6023-2002.run.xml - -sed -i '' 's/% \\toggletrue{reference}/\\toggletrue{reference}/' NBR10520-2002.tex - -sed -i '' 's/% \\toggletrue{reference}/\\toggletrue{reference}/' NBR6023-2002.tex +set -e + +echo "Running tests..." + +pass=true + + +sed -i.bak 's/\\toggletrue{reference}/% \\toggletrue{reference}/' NBR10520-2002.tex +pdflatex -draftmode -interaction=batchmode NBR10520-2002.tex +biber NBR10520-2002 +pdflatex -draftmode -interaction=batchmode NBR10520-2002.tex +pdflatex -interaction=batchmode NBR10520-2002.tex +pdflatex -interaction=batchmode NBR10520-2002_test.tex +sed -i.bak 's/% \\toggletrue{reference}/\\toggletrue{reference}/' NBR10520-2002.tex + +while read -r line ; do + C=$(echo $line | awk '{print $1}') + Y=$(echo $line | awk '{print $2}') + M=$(echo $line | awk '{print $3}') + if [ "$C" != 0.00000 ] || [ "$Y" != 0.00000 ] || [ "$M" != 0.00000 ] ; then + pass=false + fi +done < <(gs -q -o - -sDEVICE=inkcov NBR10520-2002_test.pdf | sed -e '1d') + + +sed -i.bak 's/\\toggletrue{reference}/% \\toggletrue{reference}/' NBR6023-2002.tex +pdflatex -draftmode -interaction=batchmode NBR6023-2002.tex +biber NBR6023-2002 +pdflatex -draftmode -interaction=batchmode NBR6023-2002.tex +pdflatex -draftmode -interaction=batchmode NBR6023-2002.tex +pdflatex -interaction=batchmode NBR6023-2002.tex +pdflatex -interaction=batchmode NBR6023-2002_test.tex +sed -i.bak 's/% \\toggletrue{reference}/\\toggletrue{reference}/' NBR6023-2002.tex + +while read -r line ; do + C=$(echo $line | awk '{print $1}') + Y=$(echo $line | awk '{print $2}') + M=$(echo $line | awk '{print $3}') + if [ "$C" != 0.00000 ] || [ "$Y" != 0.00000 ] || [ "$M" != 0.00000 ] ; then + pass=false + fi +done < <(gs -q -o - -sDEVICE=inkcov NBR6023-2002_test.pdf | sed -e '1d') + + +if [ "$pass" = true ] ; then + echo "ALL GOOD!" + exit 0 +else + echo "OOPS, THERE'S SOMETHING WRONG!" + exit 1 +fi diff --git a/Master/texmf-dist/doc/latex/biblatex-abnt/texlive.sh b/Master/texmf-dist/doc/latex/biblatex-abnt/texlive.sh new file mode 100644 index 00000000000..ec338703a84 --- /dev/null +++ b/Master/texmf-dist/doc/latex/biblatex-abnt/texlive.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz +tar -xzf install-tl-unx.tar.gz +cd install-tl-20* + +cat << EOF >> texlive.profile +selected_scheme scheme-minimal +TEXDIR /tmp/texlive +TEXMFCONFIG ~/.texlive/texmf-config +TEXMFHOME ~/texmf +TEXMFLOCAL /tmp/texlive/texmf-local +TEXMFSYSCONFIG /tmp/texlive/texmf-config +TEXMFSYSVAR /tmp/texlive/texmf-var +TEXMFVAR ~/.texlive/texmf-var +option_doc 0 +option_src 0 +EOF + +./install-tl --no-verify-downloads --profile=./texlive.profile +export PATH=/tmp/texlive/bin/x86_64-linux:$PATH + +tlmgr --no-verify-downloads install latex-bin lm ec biblatex biber babel babel-portuges \ + hyphen-portuguese logreq xstring xpatch csquotes substr pdfpagediff \ + microtype graphics etoolbox xcolor oberdiek url l3packages hyperref \ + geometry l3kernel + -- cgit v1.2.3