为何我的参考书目不起作用?

为何我的参考书目不起作用?

这是我引用的书的描述,我将其添加到名为 mybibliography.bib 的另一个文件中:

@book {MR2814476,
    AUTHOR = {Arkowitz, Martin},
     TITLE = {Introduction to homotopy theory},
    SERIES = {Universitext},
 PUBLISHER = {Springer, New York},
      YEAR = {2011},
     PAGES = {xiv+344},
      ISBN = {978-1-4419-7328-3},
   MRCLASS = {55-02 (55Pxx)},
  MRNUMBER = {2814476},
MRREVIEWER = {Samuel B. Smith},
       DOI = {10.1007/978-1-4419-7329-0},
       URL = {https://doi-org.libproxy.library.wmich.edu/10.1007/978-1-4419-7329-0},
}

这是我从一开始的文档:

\documentclass{book}
\usepackage[utf8]{inputenc}

\usepackage[a4paper, margin=1in]{geometry}

\usepackage[T1]{fontenc}
\usepackage{lmodern}

%\usepackage[ngerman]{babel}


\usepackage{tikz-cd}
\usepackage{makecell}
\usepackage{mathtools}
\usepackage{commath}
\usepackage{bbm}
\usetikzlibrary{babel}
 \usetikzlibrary{shapes.geometric}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{lipsum}
\usepackage{titlesec}
\usepackage{circledsteps}
\usepackage{ relsize, stackengine}
\usepackage[all,cmtip]{xy}
%\usepackage{natbib}
\usepackage[english]{babel}

\usepackage[backend=biber,style=alphabetic,sorting=ynt]{biblatex}

\usetikzlibrary{intersections}
%\newcommand{\circledell}{\stackinset{c}{}{c}{}{$ \ell $}{$\mathlarger{\bigcirc}$}}
\newtheorem{theorem}{Theorem}
\newtheorem{prop}{Proposition}
\newtheorem{definition}{Definition}[chapter]
\newtheorem{example}{Example}
\newtheorem{cor}{Corollary}
\newtheorem{question}{Question}

\usepackage[nottoc]{tocbibind} % For adding List of Tables and List of Figures to Table of Contents
\usepackage[titles]{tocloft}

\makeatletter
\def\ps@headings{%
      \def\@oddfoot{\normalfont\hfil\thepage\hfil}%
      \def\@evenfoot{\normalfont\hfil\thepage\hfil}}
      \def\@evenhead{\hfil\slshape\leftmark}%
      \def\@oddhead{{\slshape\rightmark}\hfil%
      \let\@mkboth\markboth
    \def\chaptermark##1{%
      \markboth {\MakeUppercase{%
        \ifnum \c@secnumdepth >\m@ne
          \if@mainmatter
            \@chapapp\ \thechapter. \ %
          \fi
        \fi
        ##1}}{}}%
    \def\sectionmark##1{%
      \markright {\MakeUppercase{%
        \ifnum \c@secnumdepth >\z@
          \thesection. \ %
        \fi
        ##1}}}}
\makeatother
\pagestyle{headings}% apply new definitions
  

\addbibresource{mybibliography.bib}

这是我的代码中引用本书的部分:

\textbf{Definition $3.1.3$}\\

If $(X', \varphi ')$ and $(X, \varphi )$ are co-H-spaces and $h: X' \rightarrow X$ is a map, we say that $h:(X', \varphi ') \rightarrow (X, \varphi )$ is a $\emph{co-H-map}$ if $\varphi h = (h \vee h) \varphi'$. You can also look at definition $\, 2.2.8$ in $~\cite{MR2814476}$ to see this definition using a commutative diagram.

但我不知道为什么我没有得到任何显示我的参考书目的参考页面,有人能告诉我我的代码出了什么问题吗?

另外,我可以采用什么样的书目样式?

答案1

由于你正在使用biblatexbiber创建参考书目,你需要提供一份\printbibliography声明来告诉 LaTeX在哪里格式化的参考书目应该出现在文档中。

我还建议加载该xurl包,以允许在任意位置的类似 URL 的字符串中换行。

有点奇怪的是,虽然你的序言中有这样的说明

\newtheorem{definition}{Definition}[chapter]

您不要在文档主体中使用它。

另一个主题:您问“我可以使用哪种书目样式?” Biblatex 有很多样式。我们不知道您可以使用哪些样式或必须使用哪些样式。我建议您就这个问题咨询您的出版商。

在此处输入图片描述

在此处输入图片描述

\documentclass{book}
%% Aside: I've stripped the preamble down to the bare minimum 

\begin{filecontents}[overwrite]{mybibliography.bib}
@book {MR2814476,
    AUTHOR = {Arkowitz, Martin},
     TITLE = {Introduction to Homotopy Theory},
    SERIES = {Universitext},
 PUBLISHER = {Springer, New York},
      YEAR = {2011},
     PAGES = {xiv+344},
      ISBN = {978-1-4419-7328-3},
   MRCLASS = {55-02 (55Pxx)},
  MRNUMBER = {2814476},
MRREVIEWER = {Samuel B. Smith},
       DOI = {10.1007/978-1-4419-7329-0},
       URL = {https://doi-org.libproxy.library.wmich.edu/10.1007/978-1-4419-7329-0},
}
\end{filecontents}

\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]

\usepackage[a4paper, margin=1in]{geometry}
%\usepackage[utf8]{inputenc} % that's the default nowadays
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[english]{babel}
\usepackage{xurl} % allow arbitrary line breaks in URL-like strings

\usepackage[backend=biber,style=alphabetic,sorting=ynt]{biblatex}
\addbibresource{mybibliography.bib}

\begin{document}

\setcounter{chapter}{3}  % just for this example
\setcounter{section}{1}
\setcounter{definition}{2}

\begin{definition}
If $(X', \varphi ')$ and $(X, \varphi )$ are co-H-spaces and $h\colon X' \rightarrow X$ 
is a map, we say that $h\colon(X', \varphi ') \rightarrow (X, \varphi )$ is a $\emph{co-H-map}$ 
if $\varphi h = (h \vee h) \varphi'$. 
You can also look at definition 2.2.8 in~\cite{MR2814476} to see 
this definition using a commutative diagram.
\end{definition}

\printbibliography % tell LaTeX to print the formatted bibliography 
\end{document}

相关内容