abntex2
abntex2 copied to clipboard
Adequar URL em referências, de ABNT NBR 6023:2002 para ABNT NBR 6023:2018 (remover `<>`)
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:
\@ifpackageloaded{url}{%
\addtociteoptionlist{abnt-url-package=url}
\def\UrlLeft{<}
\def\UrlRight{>}
\urlstyle{same}}
para:
\@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
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
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.