biblatex/biber を使用した SAE 論文の「インターネット参照」参考文献スタイル

biblatex/biber を使用した SAE 論文の「インターネット参照」参考文献スタイル

私は LaTeX のスキルが不足していますが、フォーラムの助けを借りて、LaTeX で SAE 論文を書くための更新された SAE クラスの開発を順調に進めています。次の課題は、参考文献の「インターネット参照」を適切にフォーマットすることです。

私は biblatex/biber を使用していますが、この組み合わせを参考文献に使用すると非常に便利なのは明らかですが、書式設定の操作方法がわかりません。そのため、この分野で再度支援を求めます。

次の bib-entry を例に挙げてみましょう。

@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},
}

現在の試みでは、参考文献に次のエントリが表示されます。

DOWANOL (TM) TPM 技術データシート、2015 年 9 月 8 日アクセス。DOW Chemical Company、2012 年、http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc、2015年9月8日にアクセス。

次のような見た目にする必要があります。

ダウ・ケミカル社、「DOWANOL (TM) TPM 技術データシート」http://msdssearch.dow.com/PublishedLiteratureDOWCOM/dh_08ad/0901b803808ad68e.pdf?filepath=oxysolvents/pdfs/noreg/110-00619.pdf&fromPage=GetDoc、2015年9月アクセス。

フィールドは、の代わりにurldate取得するために使用するにはおそらく最適ではないと思います。よくわかりません。おそらく、urldate から月/年にアクセスできるでしょうか?Sep. 201509/08/2015

また、次のようにタイトルの斜体を削除しました。

\DeclareFieldFormat[online]{title}{#1}

しかし、その後、すべてを並べ替え、URL の日付の二重印刷を削除し、すべての書式設定 (タイトルを引用符で囲むなど) を行う方法がわかりません。

現在の MWE は次のとおりです。

\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}

ああ、技術的にはハイパーリンクは下線付きで青色にする必要があります... 青色にすることはできますが、下線を付けるのは難しいです。特に、"@online" bib タイプの一部である URL の場合に限ります。ジャーナル記事の DOI の URL は下線付きですが青色にはなりません (ただし、これについては後で別のスレッドで対処できます。SAE ガイドラインを満たすために実現しようとしている奇妙なフォーマットのコンテキストを説明しようとしているだけです)。

答え1

この回答では、あなたの文書が以下のコードを使用していると仮定します。自動車技術者協会 (SAE) スタイルの参考文献を biblatex/biber ソリューションで実装した人はいますか?したがって、そこで説明されている詳細に対処する必要はありません。

ほとんどの作業は、エントリを変更することですでに完了しています。「The DOW Chemical Company」は、 (も参照)ではなく、.bibである可能性があります。authororganization書誌エントリの「著者」フィールドに「法人著者」を使用する(名前をフルネームで表記する)biblatexドキュメンテーション§2.3.3でそれについて簡単に触れている。企業著者および編集者、31ページ)。このnoteフィールドは、すでにこのフィールドにある情報を考えると不要であるように思われますurldate。そこで、

@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},
}

変更する必要があるのは出力だけですurldate。選択してurldate=long、日をドロップするだけで済みます。

\DefineBibliographyExtras{english}{
  \protected\def\mkbibdatelong#1#2#3{%
    \iffieldundef{#2}
      {}
      {\mkbibmonth{\thefield{#2}}%
       \iffieldundef{#1}{}{\space}}%
     \iffieldbibstring{#1}
       {\bibstring{\thefield{#1}}}
       {\stripzeros{\thefield{#1}}}}}

ムウェ

\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}

関連情報