Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bva99 opened this issue Mar 21, 2024 · 1 comment

Comments

@bva99
Copy link

bva99 commented Mar 21, 2024

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.

@bva99
Copy link
Author

bva99 commented Mar 21, 2024

Agora que notei, réplica de #233, mas com uma sugestão extra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant