abntex / abntex/abntex2

Adequar URL em referências, de ABNT NBR 6023:2002 para ABNT NBR 6023:2018 (remover `<>`)

Offen
#264 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TeX
Sterne
1.1k
Forks
223
PR-Merge-Kennzahlen
PR-Kennzahlen ausstehend

Beschreibung

## Problema
Na ABNT NBR 6023:2002, URLs em referências ficavam entre `<...>`. A partir da 6023:2018 não fica mais.

## Sugestões de mudanças:
*1)* Em `abntex2cite.sty` mudar o seguinte trecho:
```tex
\@ifpackageloaded{url}{%
\addtociteoptionlist{abnt-url-package=url}
\def\UrlLeft{<}
\def\UrlRight{>}
\urlstyle{same}}
```
para:
```tex
\@ifpackageloaded{url}{%
\addtociteoptionlist{abnt-url-package=url}
\def\UrlLeft{}
\def\UrlRight{}
\urlstyle{same}}
```
*2)* Em `abntex2-alf.bst` mudar a função `compose.url`, do seguinte trecho
```bst
FUNCTION {compose.url}
{'s :=
get.url.type
bbl.url.available
abnt.url.package #0 =
{ "$<$" *
abnt.doi abnt.doi.expand.to.url = 'expand.doi {s} if$
* "$>$" *} 'skip$ if$
abnt.url.package #1 =
{ "\url{" * filter.url.html * "}" *} 'skip$ if$
abnt.url.package #2 =
{url.type http.url =
{"\htmladdnormallink{$<$" * filter.url.tex * "$>$}{" * filter.url.html * "}" *}
'skip$ if$
url.type doi.url = url.type ftp.url = or url.type mailto.url = or
{"\htmladdnormallink{$<$" *
abnt.doi abnt.doi.expand.to.url = 'expand.doi {s} if$
* "$>$}{" *
abnt.doi abnt.doi.leave.as.is = {s} 'expand.doi if$
* "}" * }
'skip$ if$
url.type unknown.url =
{"$<$" * filter.url.tex * "$>$" *}
'skip$ if$} 'skip$ if$
}
```
para
```bst
FUNCTION {compose.url}
{'s :=
get.url.type
bbl.url.available
abnt.url.package #0 = {abnt.doi abnt.doi.expand.to.url = 'expand.doi {s} if$ *} 'skip$ if$
abnt.url.package #1 = {"\url{" * filter.url.html * "}" *} 'skip$ if$
abnt.url.package #2 =
{url.type http.url =
{"\htmladdnormallink{" filter.url.tex * "}{" * filter.url.html * "}" *}
'skip$ if$
url.type doi.url = url.type ftp.url = or url.type mailto.url = or
{"\htmladdnormallink{" *
abnt.doi abnt.doi.expand.to.url = 'expand.doi {s} if$
* "}{" *
abnt.doi abnt.doi.leave.as.is = {s} 'expand.doi if$
* }'skip$ if$
url.type unknown.url = {filter.url.tex *} 'skip$ if$}
'skip$ if$
}
```

O mesmo provavelmente pode ser feito com `abntex2-num.bst`, mas não chequei.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.