如何在 BibLaTex 中引用部分線上條目(網站章節)?

如何在 BibLaTex 中引用部分線上條目(網站章節)?

我想引用網頁的一部分。類似一本書的章節。但從文件,該@online條目只有subtitletitleaddon似乎在某種程度上相關的字段,但根據我的理解,用於顯示引用整篇文章的標題,而不是其中的一部分。

(我想參考的網站.)我目前正在做的是:

@online{parallel-computing,
    author = "Blaise Barney",
    title = "Introduction to Parallel Computing",
    url = "https://computing.llnl.gov/tutorials/parallel_comp/#Whatis"
}

我想特別提到這一部分什麼是平行計算?,我目前正在用 URL 引用它(不知道這是否合適)。

答案1

對於這個特定的例子(我猜大多數網站都有自己的 URL),我只會用來@online指稱完整的網站,並在引文的後注中給出“部分”來指代特定部分。就像人們通常將完整的內容添加@book到參考書目中一樣,但只引用了特定的頁面。

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=authoryear, backend=biber]{biblatex}


\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@online{parallel-computing,
  author       = {Blaise Barney},
  title        = {Introduction to Parallel Computing},
  url          = {https://computing.llnl.gov/tutorials/parallel_comp},
  urldate      = {2019-08-06},
  organization = {Lawrence Livermore National Laboratory},
}
\end{filecontents}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}


\begin{document}
Lorem ipsum \autocite[section \enquote{What is Parallel Computing?}]{parallel-computing}.
\printbibliography
\end{document}

Lorem ipsum(Barney 2019,「什麼是平行計算?」部分)。平行計算簡介。勞倫斯利弗莫爾國家實驗室。網址:https://computing.llnl.gov/tutorials/parallel_comp(於 06/08/2019 瀏覽)。

對我來說,在這種情況下最自然、獨立的單元似乎就是完整的網站。


如果您堅持在參考書目中引用特定部分,您可以按照 大衛·珀頓評論中的建議(ab)使用@inbook條目類型。

\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=authoryear, backend=biber]{biblatex}


\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inbook{barney:whatis,
  author       = {Blaise Barney},
  booktitle    = {Introduction to Parallel Computing},
  title        = {What is Parallel Computing?},
  url          = {https://computing.llnl.gov/tutorials/parallel_comp/#Whatis},
  urldate      = {2019-08-06},
  publisher    = {Lawrence Livermore National Laboratory},
}
\end{filecontents}

\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}


\begin{document}
Lorem ipsum \autocite{barney:whatis}.
\printbibliography
\end{document}

Lorem ipsum (Barney 2019)。 “什麼是並行計算?”在:並行計算簡介。勞倫斯利弗莫爾國家實驗室。網址:https://computing.llnl.gov/tutorials/parallel_comp/#Whatis(於 06/08/2019 造訪)。


當然,可以定義一個新的條目類型,稱為@inonline與 相關@online,與@inbook相關@book。目前我懷疑這是否值得付出努力,但它肯定是可行的。看如何使用 BibLaTeX/Biber 建立全新的資料類型?首先。

或者,圍兜格式問題顯示如何新增maintitle@online條目,以便您可以擁有類似的內容

@online{barney:whatis,
  author       = {Blaise Barney},
  maintitle    = {Introduction to Parallel Computing},
  title        = {What is Parallel Computing?},
  url          = {https://computing.llnl.gov/tutorials/parallel_comp/#Whatis},
  urldate      = {2019-08-06},
  organization = {Lawrence Livermore National Laboratory},
}

相關內容