如何在参考书目中划分章节

如何在参考书目中划分章节

我想将我的参考书目分成不同的部分。例如,我希望内容如下所示:

\begin{thebibliography}{00}
\section{Historical review of capacity in optical telecommunication networks},

\bibitem{Chap0-Handbook} 
    B. Mukherjee et al.,
    \textit{Springer Handbook of Optical Networks},
    Springer Cham, 10/2020,
    ISBN: 978-3-030-16249-8,
    \mydoi{10.1007/978-3-030-16250-4},

\bibitem{Chap0-RUNGE}
     P.K. Runge,
    \textit{An experimental 50 Mb/s fiber optic PCM repeater},
    Trans. Comm., Vol COM-24, No. 4, 04/1976,
    \mydoi{10.1109/TCOM.1976.1093308}

\section{Monitoring in optical networks},

\bibitem{Chap1-Christodoulopoulos}
    K. Christodoulopoulos et. al,
    \textit{Toward efficient, reliable, and autonomous optical networks:
    the ORCHESTRA solution},
    IEEE J. Opt. Commun. Netw., Sept. 2019, Vol 11, No. 9,
    doi: \url{10.1109/JLT.2020.2984270}.

\end{thebibliography}

提前致谢。

答案1

要在 LaTeX 中创建包含章节的参考书目,您可以使用biblatex包含每个章节的自定义类别的包。以下是示例:

  1. 首先,在你的序言中安装 biblatex` 包:
    \usepackage[backend=bibtex,style=numeric,sorting=none]{biblatex}
  1. 定义您的类别:
    \DeclareBibliographyCategory{historical_review}
    \DeclareBibliographyCategory{monitoring}
  1. 将书目条目分配到各自的类别:
\addtocategory{historical_review}{Chap0-Handbook,Chap0-RUNGE}
\addtocategory{monitoring}{Chap1-Christodoulopoulos}
  1. 添加您的参考书目文件(假设您正在使用文件.bib):
\addbibresource{your_bib_file.bib}
  1. 打印包含以下部分的参考书目:
\printbibheading
\section*{Historical review of capacity in optical telecommunication networks}
\printbibliography[category=historical_review,heading=none]

\section*{Monitoring in optical networks}
\printbibliography[category=monitoring,heading=none]

确保将其替换your_bib_file.bib为你的实际 .bib 文件的名称。

在您的.bib文件中,您的条目应如下所示:

@book{Chap0-Handbook,
    author = {B. Mukherjee et al.},
    title = {Springer Handbook of Optical Networks},
    publisher = {Springer Cham},
    year = {2020},
    month = {10},
    isbn = {978-3-030-16249-8},
    doi = {10.1007/978-3-030-16250-4},
}

@article{Chap0-RUNGE,
    author = {P.K. Runge},
    title = {An experimental 50 Mb/s fiber optic PCM repeater},
    journal = {Trans. Comm.},
    volume = {COM-24},
    number = {4},
    year = {1976},
    month = {04},
    doi = {10.1109/TCOM.1976.1093308},
}

@article{Chap1-Christodoulopoulos,
    author = {K. Christodoulopoulos et. al},
    title = {Toward efficient, reliable, and autonomous optical networks: the ORCHESTRA solution},
    journal = {IEEE J. Opt. Commun. Netw.},
    volume = {11},
    number = {9},
    year = {2019},
    month = {09},
    doi = {10.1109/JLT.2020.2984270},
}

编辑:AS@louis 想要一个将参考书目项目包含在 LaTeX 脚本中的方法示例,这里有一个解决方案:

enumitem您可以使用和包直接在 LaTeX 文档中创建包含章节的自定义参考书目hyperref。操作方法如下:

  1. 首先,将enumitemhyperref包添加到你的序言中:

    \usepackage{enumitem}
    \usepackage{hyperref}
    
  2. 创建自定义书目列表:

    \newlist{bibsection}{enumerate}{1}
    \setlist[bibsection]{label={[\arabic*]},itemsep=0.5\baselineskip,leftmargin=*,align=left}
    
  3. 按章节定义您的参考书目项目:

    \begin{bibsection}
    
    \section*{Historical review of capacity in optical telecommunication networks}
    
    \item B. Mukherjee et al.,
        \textit{Springer Handbook of Optical Networks},
        Springer Cham, 10/2020,
        ISBN: 978-3-030-16249-8,
        \href{https://doi.org/10.1007/978-3-030-16250-4}{doi:10.1007/978-3-030-16250-4}
    
    \item P.K. Runge,
        \textit{An experimental 50 Mb/s fiber optic PCM repeater},
        Trans. Comm., Vol COM-24, No. 4, 04/1976,
        \href{https://doi.org/10.1109/TCOM.1976.1093308}{doi:10.1109/TCOM.1976.1093308}
    
    \section*{Monitoring in optical networks}
    
    \item K. Christodoulopoulos et. al,
        \textit{Toward efficient, reliable, and autonomous optical networks:
        the ORCHESTRA solution},
        IEEE J. Opt. Commun. Netw., Sept. 2019, Vol 11, No. 9,
        \href{https://doi.org/10.1109/JLT.2020.2984270}{doi:10.1109/JLT.2020.2984270}
    
    \end{bibsection}
    

此代码片段为您的参考书目创建自定义枚举列表,并按部分分隔项目。结果是参考书目类似于您原始问题中的参考书目,而无需文件.bib

尽管如此,我还是强烈建议尽可能外包.bib文件。这会使调试变得更加容易,并且可能有助于以更结构化的方式保存原始文档文件!

编辑 II:看来他们对这个问题有误解。以下解决方案提供了一种在创建自定义 bibitem 时添加自定义参考部分的方法。

要在不使用文件的情况下在 LaTeX 中创建包含章节的自定义书目.bib,您可以使用etaremune反向枚举包和hyperref可点击 DOI 包。操作方法如下:

  1. etaremunehyperref包添加到你的序言中:

    \usepackage{etaremune}
    \usepackage{hyperref}
    
  2. 创建自定义命令以便于引用和参考:

    \newcommand{\customcite}[1]{[\ref{#1}]}
    \newcommand{\custombibitem}[1]{\item \label{#1}}
    
  3. 按章节定义您的参考书目项目:

    \section*{References}
    
    \section*{Historical review of capacity in optical telecommunication networks}
    \begin{etaremune}
    
    \custombibitem{Chap0-Handbook}
    B. Mukherjee et al.,
    \textit{Springer Handbook of Optical Networks},
    Springer Cham, 10/2020,
    ISBN: 978-3-030-16249-8,
    \href{https://doi.org/10.1007/978-3-030-16250-4}{doi:10.1007/978-3-030-16250-4}
    
    \custombibitem{Chap0-RUNGE}
    P.K. Runge,
    \textit{An experimental 50 Mb/s fiber optic PCM repeater},
    Trans. Comm., Vol COM-24, No. 4, 04/1976,
    \href{https://doi.org/10.1109/TCOM.1976.1093308}{doi:10.1109/TCOM.1976.1093308}
    
    \end{etaremune}
    
    \section*{Monitoring in optical networks}
    \begin{etaremune}
    
    \custombibitem{Chap1-Christodoulopoulos}
    K. Christodoulopoulos et. al,
    \textit{Toward efficient, reliable, and autonomous optical networks:
    the ORCHESTRA solution},
    IEEE J. Opt. Commun. Netw., Sept. 2019, Vol 11, No. 9,
    \href{https://doi.org/10.1109/JLT.2020.2984270}{doi:10.1109/JLT.2020.2984270}
    
    \end{etaremune}
    
  4. 现在,您可以使用\customcite{}在文本中引用参考文献,如下所示:

    As mentioned in \customcite{Chap0-Handbook}, optical networks have a rich history.
    

\customcite{}命令。该etaremune包提供了参考书目项目的反向枚举,因此列表将按降序编号。如果您喜欢升序,只需将其替换etaremuneenumerate

相关内容