【问题标题】:Cannot print bibliography despite changing backend to biber, print bibliography says empty bibliography尽管将后端更改为 biber,但无法打印参考书目,打印参考书目说空参考书目
【发布时间】:2022-01-12 23:03:32
【问题描述】:

您好,我已经尝试了很多事情,并解决了之前发布的几个问题,但我似乎无法打印我的参考书目。我收到以下错误:

  1. 空书目(当我写 \printbibliography 时)
  2. 未定义的控制序列(当我覆盖 main.tex 中的 reference.bib 文件内容时)

我尝试过的事情:

  1. 将后端更改为 biber 和 biblatex。没有任何效果。
  2. 在 main.tex 中添加覆盖文件内容并重新输入 bib 文件内容,然后使用 \citep{} 逐一引用它们
  3. 改变风格

我已在此处 (main.tex) 发布了我的所有代码,以防有其他代码行可能与参考书目的使用包混淆。

\documentclass[12pt]{report}
\usepackage{setspace}
%\doublespacing
\usepackage[paperwidth=21cm,paperheight=29.7cm,includehead,headheight=1.5cm,pdftex,hmargin={3cm,2.5cm},vmargin={0cm,2cm},]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{filecontents}
\usepackage{sectsty}   
\usepackage{fancyhdr}
\usepackage{enumerate}
\usepackage{amsmath,amssymb}
\usepackage[english]{babel}
\usepackage[nottoc]{tocbibind}
\usepackage[autostyle,english=american]{csquotes}
\usepackage{pdfpages}
\usepackage{float}
\usepackage{verbatim}
\usepackage{fancyvrb}
\usepackage{here}
\usepackage{amsfonts}
\usepackage{url}
\usepackage{listings}
\usepackage{xcolor}
\usepackage{courier}
\usepackage{subfigure}
\usepackage{booktabs, cellspace, hhline}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\usepackage{hyperref}
\hypersetup{
    colorlinks=true,
    linkcolor=blue,
    filecolor=magenta,      
    urlcolor=cyan,
}
\lstset{
    mathescape=true,
    basicstyle = \ttfamily
}
%\usepackage[style=ieee,backend=biber]{biblatex}
\usepackage[backend=biber,style=chicago-authordate]{biblatex}
\addbibresource{references.bib}
%\usepackage[backend=biber,style=nature]{biblatex}
\begin{filecontents*}[overwrite]{\references.bib}
@article{chandrakasan1995minimizing,
  title={Minimizing power consumption in digital CMOS circuits},
  author={Chandrakasan, Anantha P and Brodersen, Robert W},
  journal={Proceedings of the IEEE},
  volume={83},
  number={4},
  pages={498--523},
  year={1995},
  publisher={IEEE}
}

 @misc{ enwiki:1062224546,
    author = "{Wikipedia contributors}",
    title = "CMOS --- {Wikipedia}{,} The Free Encyclopedia",
    year = "2021",
    howpublished = "\url{https://en.wikipedia.org/w/index.php?title=CMOS&oldid=1062224546}",
    note = "[Online; accessed 30-December-2021]"
  }
  
  @article{Bankman2018AnA3,
  title={An always-on 3.8$\mu$J/86\% CIFAR-10 mixed-signal binary CNN processor with all memory on chip in 28nm CMOS},
  author={Daniel Bankman and Lita Yang and Bert Moons and Marian Verhelst and Boris Murmann},
  journal={2018 IEEE International Solid - State Circuits Conference - (ISSCC)},
  year={2018},
  pages={222-224}
}

@book{ann, title = {Artificial Neural Networks}, author={Ajith Abraham}, journal={Oklahoma State University, Stillwater, OK, USA}}

@article{courbariaux2016binarized,
  title={Binarized neural networks: Training deep neural networks with weights and activations constrained to+ 1 or-1},
  author={Courbariaux, Matthieu and Hubara, Itay and Soudry, Daniel and El-Yaniv, Ran and Bengio, Yoshua},
  journal={arXiv preprint arXiv:1602.02830},
  year={2016}
}

@ARTICLE{104196,
  author={Boser, B.E. and Sackinger, E. and Bromley, J. and Le Cun, Y. and Jackel, L.D.},
  journal={IEEE Journal of Solid-State Circuits}, 
  title={An analog neural network processor with programmable topology}, 
  year={1991},
  volume={26},
  number={12},
  pages={2017-2025},
  doi={10.1109/4.104196}}
 
 @article{article,
author = {Li, Ji and Yuan, Zihao and Li, Zhe and Ding, Caiwen and Ren, Ao and Qiu, Qinru and Draper, Jeffrey and Wang, Yetang},
year = {2017},
month = {03},
pages = {},
title = {Hardware-Driven Nonlinear Activation for Stochastic Computing Based Deep Convolutional Neural Networks}
}

@article{forssell2014hardware,
  title={Hardware implementation of artificial neural networks},
  author={Forssell, Mats},
  journal={Information Flow in Networks},
  volume={18},
  pages={1--4},
  year={2014}
}

@article{davari1995cmos,
  title={CMOS scaling for high performance and low power-the next ten years},
  author={Davari, Bijan and Dennard, Robert H and Shahidi, Ghavam G},
  journal={Proceedings of the IEEE},
  volume={83},
  number={4},
  pages={595--606},
  year={1995},
  publisher={IEEE}
}
 
@article{ng1996performance,
  title={Performance of CMOS differential circuits},
  author={Ng, Pius and Balsara, Poras T and Steiss, Don},
  journal={IEEE Journal of Solid-State Circuits},
  volume={31},
  number={6},
  pages={841--846},
  year={1996},
  publisher={IEEE}
}



\end{filecontents*}


\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\DeclareUnicodeCharacter{202F}{\,}
\setlength{\parindent}{0pt}
\linespread{1.6}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{lastpage}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[RO, LE]{Interim Report - 20203108}
\fancypagestyle{plain}{}
\fancyfoot[C]{Page {\thepage} of \pageref{LastPage}}
\renewcommand{\footrulewidth}{0.3pt}
\makeatletter

\renewcommand{\l@chapter}{\bfseries\@dottedtocline{1}{0em}{2.3em}}
\renewcommand{\l@section}{\normalfont\@dottedtocline{2}{2em}{2.3em}}
\renewcommand{\l@subsection}{\normalfont\@dottedtocline{3}{2em}{2.3em}}
\renewcommand{\l@subsubsection}{\normalfont\@dottedtocline{4}{2em}{2.3em}}
\makeatother
\usepackage{cleveref}
\begin{document}
\crefname{chapter}{Chapter}{Chapters}
\crefname{section}{Section}{Sections}
\crefname{subsection}{Section}{Sections}
\crefname{figure}{Figure}{Figures}
\crefname{table}{Table}{Tables}

\input{Section/0.Title}
\clearpage
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents
\clearpage

\chapter{Introduction}
\input{Section/1.Introduction & Project Aim}

\chapter{Project Background}
\input{Section/2.Project Background}

\chapter{Literature Review}
\input{Section/3.Literature Review}

\chapter{Outline of Approach \& Preliminary Results}
\input{Section/4.Outline of Approach}


\chapter{Ethics \& Sustainability}
\input{Section/5.Ethics & Sustainability}

\chapter{Project Work Plan}
\input{Section/6.Project Work Plan}
\clearpage

\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography
\citep{chandrakasan1995minimizing}
\citep{enwiki:1062224546}
\citep{Bankman2018AnA3}
\citep{courbariaux2016binarized}
\citep{104196}
\citep{article}
\citep{ann}
\citep{davari1995cmos}
\citep{forssell2014hardware}
\citep{ng1996performance}


\end{document}

【问题讨论】:

    标签: latex bibliography latex-environment biblatex overleaf


    【解决方案1】:

    几个问题:

    • \citep 是一个 natbib 宏。如果要在 biblatex 中使用,必须在加载 biblatex 时使用natbib 选项。

    • 您不应多次加载包。您不得使用不同的选项多次加载它们。一条错误消息将明确告诉您几何包的选项冲突

    • \begin{filecontents*}[overwrite]{\references.bib} 的语法错误,references.bib 应该只是文件名,而不是(不存在的)宏

    • 维基百科条目中的note 字段引起了问题,因此我将其移至另一个字段。


    \documentclass[12pt]{report}
    \usepackage{setspace}
    %\doublespacing
    \usepackage[paperwidth=21cm,paperheight=29.7cm,includehead,headheight=1.5cm,pdftex,hmargin={3cm,2.5cm},vmargin={0cm,2cm},]{geometry}
    \usepackage[utf8]{inputenc}
    \usepackage{graphicx}
    \usepackage{filecontents}
    \usepackage{sectsty}   
    \usepackage{fancyhdr}
    \usepackage{enumerate}
    \usepackage{amsmath,amssymb}
    \usepackage[english]{babel}
    \usepackage[nottoc]{tocbibind}
    \usepackage[autostyle,english=american]{csquotes}
    \usepackage{pdfpages}
    \usepackage{float}
    \usepackage{verbatim}
    \usepackage{fancyvrb}
    \usepackage{here}
    \usepackage{amsfonts}
    \usepackage{url}
    \usepackage{listings}
    \usepackage{xcolor}
    \usepackage{courier}
    \usepackage{subfigure}
    \usepackage{booktabs, cellspace, hhline}
    \definecolor{mygreen}{rgb}{0,0.6,0}
    \definecolor{mygray}{rgb}{0.5,0.5,0.5}
    \definecolor{mymauve}{rgb}{0.58,0,0.82}
    \usepackage{hyperref}
    \hypersetup{
        colorlinks=true,
        linkcolor=blue,
        filecolor=magenta,      
        urlcolor=cyan,
    }
    \lstset{
        mathescape=true,
        basicstyle = \ttfamily
    }
    %\usepackage[style=ieee,backend=biber]{biblatex}
    \usepackage[backend=biber,style=chicago-authordate,natbib=true]{biblatex}
    \addbibresource{references.bib}
    %\usepackage[backend=biber,style=nature]{biblatex}
    \begin{filecontents*}[overwrite]{references.bib}
    @article{chandrakasan1995minimizing,
      title={Minimizing power consumption in digital CMOS circuits},
      author={Chandrakasan, Anantha P and Brodersen, Robert W},
      journal={Proceedings of the IEEE},
      volume={83},
      number={4},
      pages={498--523},
      year={1995},
      publisher={IEEE}
    }
    
    @misc{enwiki1062224546,
      author = "{Wikipedia contributors}",
      title = "CMOS --- {Wikipedia}{,} The Free Encyclopedia",
      year = "2021",
      howpublished = "\url{https://en.wikipedia.org/w/index.php?title=CMOS&oldid=1062224546} [Online; accessed 30-December-2021]"
      }
      
    @article{Bankman2018AnA3,
      title={An always-on 3.8$\mu$J/86\% CIFAR-10 mixed-signal binary CNN processor with all memory on chip in 28nm CMOS},
      author={Daniel Bankman and Lita Yang and Bert Moons and Marian Verhelst and Boris Murmann},
      journal={2018 IEEE International Solid - State Circuits Conference - (ISSCC)},
      year={2018},
      pages={222-224}
    }
    
    @book{ann, title = {Artificial Neural Networks}, author={Ajith Abraham}, journal={Oklahoma State University, Stillwater, OK, USA}}
    
    @article{courbariaux2016binarized,
      title={Binarized neural networks: Training deep neural networks with weights and activations constrained to+ 1 or-1},
      author={Courbariaux, Matthieu and Hubara, Itay and Soudry, Daniel and El-Yaniv, Ran and Bengio, Yoshua},
      journal={arXiv preprint arXiv:1602.02830},
      year={2016}
    }
    
    @ARTICLE{104196,
      author={Boser, B.E. and Sackinger, E. and Bromley, J. and Le Cun, Y. and Jackel, L.D.},
      journal={IEEE Journal of Solid-State Circuits}, 
      title={An analog neural network processor with programmable topology}, 
      year={1991},
      volume={26},
      number={12},
      pages={2017-2025},
      doi={10.1109/4.104196}}
     
     @article{article,
    author = {Li, Ji and Yuan, Zihao and Li, Zhe and Ding, Caiwen and Ren, Ao and Qiu, Qinru and Draper, Jeffrey and Wang, Yetang},
    year = {2017},
    month = {03},
    pages = {},
    title = {Hardware-Driven Nonlinear Activation for Stochastic Computing Based Deep Convolutional Neural Networks}
    }
    
    @article{forssell2014hardware,
      title={Hardware implementation of artificial neural networks},
      author={Forssell, Mats},
      journal={Information Flow in Networks},
      volume={18},
      pages={1--4},
      year={2014}
    }
    
    @article{davari1995cmos,
      title={CMOS scaling for high performance and low power-the next ten years},
      author={Davari, Bijan and Dennard, Robert H and Shahidi, Ghavam G},
      journal={Proceedings of the IEEE},
      volume={83},
      number={4},
      pages={595--606},
      year={1995},
      publisher={IEEE}
    }
     
    @article{ng1996performance,
      title={Performance of CMOS differential circuits},
      author={Ng, Pius and Balsara, Poras T and Steiss, Don},
      journal={IEEE Journal of Solid-State Circuits},
      volume={31},
      number={6},
      pages={841--846},
      year={1996},
      publisher={IEEE}
    }
    
    
    
    \end{filecontents*}
    
    
    \usepackage{cleveref}
    \begin{document}
    
    \printbibliography
    \citep{chandrakasan1995minimizing}
    \citep{enwiki1062224546}
    \citep{Bankman2018AnA3}
    \citep{courbariaux2016binarized}
    \citep{104196}
    \citep{article}
    \citep{ann}
    \citep{davari1995cmos}
    \citep{forssell2014hardware}
    \citep{ng1996performance}
    
    
    \end{document}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-06-07
      • 2017-10-01
      • 2019-03-24
      • 2020-04-09
      • 2013-06-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多