谁能帮忙,引用和参考书目有问题

谁能帮忙,引用和参考书目有问题

我对此文档的参考书目和引用有疑问

\documentclass[12pt, french, fancyChapter, fancyPart, squeezeCommittee]{these}
\usepackage[utf8]{inputenc}
\usepackage{mwe}
\usepackage{subfig}
\usepackage[T1]{fontenc}
\usepackage{refcount}
\usepackage{textcomp}
\usepackage{caption}
\geometry{inner=3.15cm, outer=3.15cm, top=2.5cm, bottom=2.5cm}
\geometry{inner=3cm, outer=3cm, top=2.5cm, bottom=2.5cm}
\usepackage{rotating}
\usepackage{palatino} % times, palatino, 
\RequirePackage[bookmarks,%
                colorlinks=false,
                urlcolor=blue,%
                citecolor=blue,%
                linkcolor=blue,%
                hyperfigures,%
                pagebackref,%
                pdfcreator=LaTeX,
                breaklinks=true,%
                pdfpagelayout=SinglePage,%
                bookmarksopen=true,%
                bookmarksopenlevel=2]{hyperref}
\DeclareGraphicsExtensions{.png}
\graphicspath{{./logos/}}
\usepackage[pdftex]{color}
\usepackage[font=footnotesize,labelfont=bf]{caption}
\usepackage[font=footnotesize,labelfont=bf]{subcaption}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage[labelfont=bf,justification=raggedright,singlelinecheck=false]{caption}
\captionsetup[figure]{name=Figure ,labelsep=period}
\renewcommand*{\figureautorefname}{Fig.}
\usepackage{subcaption}
\usepackage{cleveref}
\usepackage[showframe]{geometry}
\renewcommand*{\equationautorefname}{equ.}
\usepackage[Latin,Greek]{ucharclasses}
\usepackage{subfigure}
\usepackage{apalike}
\usepackage[hyphens]{url}
\usepackage[colorlinks,allcolors=blue]{hyperref} 
%\usepackage[style=numeric,backend=biber]{biblatex}
\usepackage[
   natbib=true
    sorting=none
]{biblatex}
\usepackage[authoryear,square]{natbib}
\setcitestyle{citesep={,},aysep={}}
%\usepackage[sort&compress,numbers]{natbib}

\newcommand*{\myeqref}[2][Eq.~]{%
  \hyperref[{#2}]{#1(\ref*{#2})}%
}
\def\equationautorefname#1#2\null{%
  Eq.#1(#2\null)%
}

\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
\AddThinSpaceBeforeFootnotes 
\FrenchFootnotes
\addbibresource{bibliography.bib}
\begin{document}
\ayse{ foresee1997gauss}
\end{document}

更新:我测试了很多代码,但是都没有用。例如:

\documentclass{article}

\usepackage{filecontents} \begin{filecontents}{Dadsetani.bib}
@article{Hvala,
    author = {Hvala, B.},
    title = {Generalized derivations in rings},
    journal = {Comm. Algebra},
    volume = 26,
    pages = {1147--1166},
    year = 1998,
}

@inproceedings{Birkenmeier,
    author = {Birkenmeier, G. F. and Heatherly, H. E. and Lee, E. K.},
    title = {Completely prime ideals and radicals in Near-rings},
    booktitle = {Proceedings of Near-rings and Near-Fields},
    publisher = {Kluwer},
    year = 1995,
    pages = {63--73},
    editor = {Fong, Y. and others},
}
\end{filecontents}

\usepackage{natbib}

\begin{document}

\citep{Hvala}, \citep{Birkenmeier}

\bibliographystyle{apalike}
\bibliography{Dadsetani}

\end{document}

我所得到的只有(?)(?)

我使用的编辑器是 TeXmaker,我使用 Windows 和 MiKTeX。

答案1

您给出的第一个代码显示了您在编译时必须遇到的很多错误。通常,包hyperref应该作为最后一个包来调用,但对于您来说,包cleverref必须在之后调用hyperref。只调用一次包并留意正确的顺序...

第一个代码的一个问题是您混合使用了bibtexnatbibapalikebiblatexbiber

请仅复制您从互联网上获得的您理解的文件中的代码。不要使用您不理解的代码!

以下 MWE 显示了运行所需的内容bibtex。将其复制到您的计算机并使用其natbib名称:mwe.tex

\RequirePackage{filecontents} 
\begin{filecontents}{\jobname.bib}
@article{Hvala,
    author = {Hvala, B.},
    title = {Generalized derivations in rings},
    journal = {Comm. Algebra},
    volume = 26,
    pages = {1147--1166},
    year = 1998,
}
@inproceedings{Birkenmeier,
    author = {Birkenmeier, G. F. and Heatherly, H. E. and Lee, E. K.},
    title = {Completely prime ideals and radicals in Near-rings},
    booktitle = {Proceedings of Near-rings and Near-Fields},
    publisher = {Kluwer},
    year = 1995,
    pages = {63--73},
    editor = {Fong, Y. and others},
}
\end{filecontents}


\documentclass{article}

\usepackage[authoryear,square]{natbib}

\begin{document}

\citep{Hvala}, \citep{Birkenmeier}

\bibliographystyle{apalike}
\bibliography{\jobname}

\end{document} 

打开终端/控制台并使用编译链:

pdflatex mwe.tex
bibtex mwe.aux
pdflatex mwe.tex
pdflatex mwe.tex

然后你会得到结果:

在此处输入图片描述

以下 MWE 适用于 的使用biblatex

\RequirePackage{filecontents} 
\begin{filecontents}{\jobname.bib}
@article{Hvala,
    author = {Hvala, B.},
    title = {Generalized derivations in rings},
    journal = {Comm. Algebra},
    volume = 26,
    pages = {1147--1166},
    year = 1998,
}
@inproceedings{Birkenmeier,
    author = {Birkenmeier, G. F. and Heatherly, H. E. and Lee, E. K.},
    title = {Completely prime ideals and radicals in Near-rings},
    booktitle = {Proceedings of Near-rings and Near-Fields},
    publisher = {Kluwer},
    year = 1995,
    pages = {63--73},
    editor = {Fong, Y. and others},
}
\end{filecontents}


\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\usepackage{csquotes}
\usepackage[
  natbib=true,
% sorting=none,
  style=authoryear,
  backend=biber
]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}

\citep{Hvala}, \citep{Birkenmeier}

\printbibliography

\end{document}

再次遵循编译链,但bibtex mwe.aux使用biber mwe.aux。结果是:

在此处输入图片描述

请研究这两种代码的区别。

相关内容