
Apesar da minha falta de habilidades em LaTeX, com a ajuda do fórum, tenho feito um bom progresso no desenvolvimento de uma classe SAE atualizada para escrever artigos SAE com LaTeX. A seguir: Formatação adequada de "Referências da Internet" na bibliografia.
Estou usando biblatex/biber e, embora pareça óbvio que há muito poder em usar essa combinação para bibliografias, não é óbvio para mim como manipular a formatação. Então, novamente, peço ajuda nesta área.
Tomemos como exemplo a seguinte entrada:
@Online{Dowanol2012,
Title = {DOWANOL (TM) TPM Technical Data Sheet},
Url = {http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc},
Note = {Accessed 9/8/2015},
Organization = {The DOW Chemical Company},
Urldate = {2015-09-08},
Year = {2012},
}
Com minha tentativa atual, recebo a seguinte entrada em minha bibliografia:
Folha de dados técnicos DOWANOL (TM) TPM, acessada em 08/09/2015. A DOW Chemical Company, 2012,http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc, acessado em 08/09/2015.
O que eu preciso que seja é o seguinte:
The DOW Chemical Company, "Folha de Dados Técnicos DOWANOL (TM) TPM,"http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc, acessado em setembro de 2015.
O urldate
campo talvez não seja o mais apropriado para obter Sep. 2015
em vez de 09/08/2015
, não tenho certeza. Talvez eu consiga acessar mês/ano a partir da data da url?
Além disso, removi o itálico do título usando o seguinte:
\DeclareFieldFormat[online]{title}{#1}
Mas depois disso, não tenho certeza de como reordenar tudo, me livrar da impressão dupla da data da url e fazer toda a formatação (ou seja, aspas ao redor do título, etc.)
Aqui está um MWE atual:
\documentclass[letterpaper]{article}
% This package allows for detailed control of urls within the document and in the bibliography.
\usepackage{filecontents}
\usepackage{url}
\usepackage{color}
\usepackage{xcolor}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=numeric-comp, maxbibnames=4, minbibnames=3, sorting=none,firstinits=true, url=false, doi=true, backend=biber]{biblatex}
% Change the font size of the references list
\renewcommand*{\bibfont}{\small}
% Fix the way URLs are displayed.
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
\renewbibmacro*{url+urldate}{%
\usebibmacro{url}%
\iffieldundef{urlyear}
{}
{\setunit*{\addcomma\space}%
\usebibmacro{urldate}}}
% Print an access date on URLs.
\DefineBibliographyStrings{american}{urlseen = {accessed}}
% Typesets the URL (and DOI) in the same font as the document
\urlstyle{same}
% Print an access date on URLs.
\DefineBibliographyStrings{american}{urlseen = {accessed}}
% Remove the italics on the title (how do I get quotes around it)?
\DeclareFieldFormat[online]{title}{#1}
% This line defines which file(s) bibtex will look for your bib entries (i.e. the name of your *.bib file without the extension).
\bibliography{test}
\usepackage{hyperref}
\hypersetup{
pdfencoding = {auto},
pdfauthor = {Dr. Who},
pdftitle = {Title},
urlcolor = blue,
pdffitwindow=true,
pdfkeywords={LLFC}, % Keywords
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=red, % Color of internal links (change box color with linkbordercolor)
linkbordercolor=red,
citecolor=green,
filecolor=magenta,
urlcolor=blue
}
\begin{filecontents}{test.bib}
@Online{Dowanol2012,
Title = {DOWANOL (TM) TPM Technical Data Sheet},
Url = {http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc},
Note = {Accessed 9/8/2015},
Organization = {The DOW Chemical Company},
Urldate = {2015-09-08},
Year = {2012},
}
\end{filecontents}
\begin{document}
This is a test document with one citation \cite{Dowanol2012}.
\renewcommand\refname{References}
\printbibliography
\end{document}
Ah, e tecnicamente o hiperlink deve estar sublinhado e azul... Posso colocá-lo em azul, mas estou tendo problemas para sublinhar. Principalmente apenas para URLs que fazem parte do tipo babador "@online". URLs para os DOIs de artigos de periódicos devem ser sublinhados, mas não em azul (posso abordar isso mais tarde em um tópico separado, apenas tentando fornecer contexto para a formatação estranha que estou tentando realizar para atender às diretrizes da SAE).
Responder1
Nesta resposta, assumirei que seu documento usa o código deAlguém implementou bibliografias no estilo Society of Automotive Engineer (SAE) com uma solução biblatex/biber?, então não precisamos lidar com detalhes que foram abordados lá.
A maior parte do trabalho já pode ser feita alterando a .bib
entrada. "The DOW Chemical Company" pode muito bem ser a author
e não a organization
(ver tambémUsar um 'autor corporativo' no campo “autor” de uma entrada bibliográfica (soletrando o nome por extenso), obiblatex
documentaçãotem uma breve palavra sobre isso em §2.3.3Autores e editores corporativos, pág. 31). O note
campo também parece desnecessário visto que a informação já está no urldate
campo. Então eu iria com
@Online{Dowanol2012,
Title = {DOWANOL (TM) TPM Technical Data Sheet},
Url = {http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc},
author = {{The DOW Chemical Company}},
Urldate = {2015-09-08},
Year = {2012},
}
Então a única coisa que precisa mudar é a urldate
saída, é só escolher urldate=long
e aí você pode largar o dia usando
\DefineBibliographyExtras{english}{
\protected\def\mkbibdatelong#1#2#3{%
\iffieldundef{#2}
{}
{\mkbibmonth{\thefield{#2}}%
\iffieldundef{#1}{}{\space}}%
\iffieldbibstring{#1}
{\bibstring{\thefield{#1}}}
{\stripzeros{\thefield{#1}}}}}
MWE
\documentclass[letterpaper]{article}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[style=numeric-comp, maxbibnames=4, minbibnames=3, sorting=none,firstinits=true, url=false, doi=true, backend=biber, urldate=long]{biblatex}
\renewcommand*{\bibfont}{\small}
\DeclareFieldFormat{url}{\url{#1}}
\DeclareFieldFormat{urldate}{\bibstring{urlseen}\space#1}
\renewbibmacro*{url+urldate}{%
\usebibmacro{url}%
\iffieldundef{urlyear}
{}
{\setunit*{\addcomma\space}%
\usebibmacro{urldate}}}
\DefineBibliographyStrings{american}{urlseen = {accessed}}
\urlstyle{same}
\DeclareFieldFormat[online]{title}{\mkbibquote{#1\isdot}}
\renewcommand*{\newunitpunct}{\addcomma\space}
\DefineBibliographyExtras{english}{
\protected\def\mkbibdatelong#1#2#3{%
\iffieldundef{#2}
{}
{\mkbibmonth{\thefield{#2}}%
\iffieldundef{#1}{}{\space}}%
\iffieldbibstring{#1}
{\bibstring{\thefield{#1}}}
{\stripzeros{\thefield{#1}}}}}
\usepackage{hyperref}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Online{Dowanol2012,
Title = {DOWANOL (TM) TPM Technical Data Sheet},
Url = {http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc},
author = {{The DOW Chemical Company}},
Urldate = {2015-09-08},
Year = {2012},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
This is a test document with one citation \cite{Dowanol2012}.
\printbibliography
\end{document}