未创建辅助文件

未创建辅助文件

我在另一台计算机上撰写了我的硕士论文,现在我想使用 TexWorks(带有pdflatex++ )进行编译makeindexbibtex就像在另一台电脑上一样。

在新电脑上没有.aux创建任何文件(在子文件夹中),只有参考书目消失了。引用仅作为.bib[文件中的名称]。以前有人遇到过这种情况吗?你对此有什么答案吗?我提供了一个最小的例子。我的main.tex文件如下所示:

% kate: encoding iso-8859-1
\RequirePackage{fix-cm} % Improves appearance of some cm-super fonts
\RequirePackage[l2tabu, orthodox]{nag}    % warns about some obsolete latex  constructs
\documentclass[
12pt,                % font size 12pt
a4paper,             % layout for DIN A4
twoside,             % layout for one sided printing
headinclude,         % include head in layout computation
headsepline,         % horizontal line below head
BCOR20mm,            % correction for fixation
DIV16,               % DIV-value for creating the print space, (see scrguien.pdf)
halfparskip,         % spacing between paragraphs
openany,             % chapters may start on even and odd pages
bibtotoc,            % put bibliography into table of contents
pointlessnumbers,    % chapter numbers without full stop
tablecaptionabove,   % use table headings with correct spacing
]{scrbook}[2007/12/24]  % scrbook-Version min. v2.98 from 2007/12/24

%\usepackage[latin1]{inputenc}    % change to your encoding (e.g. utf8)
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}         % correct pdf output (correct umlaut charaters)
%\usepackage{lmodern}             % fonts for pdf-file creation (use Type1 instead of Type3) - only needed, if cmsuper is not installed
%                                 % check the resulting pdf-file: fonts should been embedded, subsetted and of type 1 (NOT type 3!)
\usepackage[intlimits]{amsmath}  % place the subscripts and superscripts in the right position
\usepackage{amsfonts}            % additional fonts like \mathbb, \mathfrak
\usepackage{amssymb}             % additional symbols
\usepackage{bbm}                 % indicator function
%\usepackage{amsthm}
\usepackage{ntheorem}
\usepackage{url}                 % support for urls
\usepackage[ style = alphabetic, natbib = true]{biblatex}
\DeclareNameAlias{default}{last-first}

\usepackage[english]{babel}             % English orthography
\usepackage{scrpage2}            % head and foot layout
\usepackage{ushort}              % complex values require an underline (use\ushort or \ushortw)
\usepackage{units}               % package for setting units in a typographically correct way (e.g. \unit[3]{cm})
\usepackage{booktabs}            % package provides additional commands to enhance the quality of tables
\usepackage{datetime}            % provides \pdfdate command
\usepackage[pageno, draft]{listofsymbols}   % includes a lis of symbols/ good to have an overview over one's notations
\usepackage{verbatim}   % use multiline comments
\usepackage{mathrsfs}   
\usepackage{float}      
\usepackage{tabularx}   
\usepackage{breakcites}
\usepackage{subfig}
\numberwithin{equation}{section} % amsmath: numbering equations
\addbibresource{main}
\bibliography{main}                             % read file main.bib   (bibliography entries)
\usepackage{csquotes}
\pagestyle{scrheadings}          % enable scrheadings layout for head and foot

\ifx\pdfoutput\undefined
% non pdflatex settings (normal latex compiler assumed)
\usepackage[dvips]{graphicx}
\else
% different settings for the pdflatex compiler
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}           % enables automatic conversion from .eps to .pdf graphic files; run MikTeX as "latex --enable-write18"
\usepackage[pdftex,plainpages=false]{hyperref}
\pdfcompresslevel=9
\pdfinfo{
/CreationDate (D:20180802110000) % date format is year(4) month(2) day(2) hour(2) minute(2) second(2)
/ModDate      (D:\pdfdate)
 }
\hypersetup{
pdftitle    = {thesis title},
pdfsubject  = {thesis subject},
pdfauthor   = {your name},
pdfkeywords = {},
colorlinks  = {true},
linkcolor   = {black},
citecolor   = {black},
urlcolor    = {black}
}
\fi
\renewcommand{\bibname}{Literaturverzeichnis}   % new name for the bibiography
\renewcommand{\figurename}{Abbildung}           % new name for the figure
\renewcommand{\listfigurename}{Abbildungsverzeichnis} % new name for the list of figures


\title{Minimal Example}
\subtitle{Thesis}
\author{from\\
Author\\ }
\date{\today}
\publishers{Advisors:\\
Dr. Ad, Visor1\\
Dr. Ad, Visor2
}

\begin{document}

\maketitle
\frontmatter
\mainmatter
This is just a test \cite{mack2002}.
\appendix
\nocite{*}  % use all bibliography entries
\printbibliography

\end{document}

我的 main.bib 文件如下所示,与 main.tex 文件位于同一文件夹中。

@BOOK{mack2002,
title = {Schadensversicherungsmathematik},
publisher = {Verlag Versicherungswirtschaft},
year = {2002},
author = {Thomas Mack},
%  pages = {412},
% isbn = {3-540-29097-4},
volume{2},
language={english},
hyphenation={english}
}

上面我有一些

 \include{./Chapter1/chapter1}

对于那些没有创建辅助文件的情况。

答案1

您提供的 bib 文件中有一个错误。请更正以下行

volume{2},

纠正

volume = {2},

然后您需要运行 biber 来获取您的参考书目,因为如果您不使用选项,biber 就是标准的backend=bibtex,

.bib然后你需要在命令中添加扩展

\addbibresource{\jobname.bib}

(命令\bibliography已贬值)。

最后出现很多警告,因为您使用的是过时的 KOMA-Script 版本。

在以下 MWE 中我纠正了错误和大部分警告:

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{einstein,
    author =       "Albert Einstein",
    title =        "{Zur Elektrodynamik bewegter K{\"o}rper}. ({German})
    [{On} the electrodynamics of moving bodies]",
    journal =      "Annalen der Physik",
    volume =       "322",
    number =       "10",
    pages =        "891--921",
    year =         "1905",
    DOI =          "http://dx.doi.org/10.1002/andp.19053221004",
    keywords =     "physics",
}
@book{dirac,
    title={The Principles of Quantum Mechanics},
    author={Paul Adrien Maurice Dirac},
    isbn={9780198520115},
    series={International series of monographs on physics},
    year={1981},
    publisher={Clarendon Press},
    keywords = {physics},
}
@BOOK{mack2002,
title = {Schadensversicherungsmathematik},
publisher = {Verlag Versicherungswirtschaft},
year = {2002},
author = {Thomas Mack},
volume = {2},
language={english},
hyphenation={english},
}
\end{filecontents}


% kate: encoding iso-8859-1
\RequirePackage{fix-cm} % Improves appearance of some cm-super fonts
\RequirePackage[l2tabu, orthodox]{nag}    % warns about some obsolete latex  constructs
\documentclass[
12pt,                % font size 12pt
a4paper,             % layout for DIN A4
twoside,             % layout for one sided printing
headinclude,         % include head in layout computation
headsepline,         % horizontal line below head
BCOR=20mm,            % correction for fixation <=============================================
DIV=16,               % DIV-value for creating the print space, (see scrguien.pdf) <==========
parskip=half, version=first,         % spacing between paragraphs <===========================
openany,             % chapters may start on even and odd pages
bibliography=totoc,            % put bibliography into table of contents <=====================
numbers=noenddot,    % chapter numbers without full stop <=====================================
captions=tableheading,   % use table headings with correct spacing <===========================
]{scrbook}[2007/12/24]  % scrbook-Version min. v2.98 from 2007/12/24

%\usepackage[latin1]{inputenc}    % change to your encoding (e.g. utf8)
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}         % correct pdf output (correct umlaut charaters)
%\usepackage{lmodern}             % fonts for pdf-file creation (use Type1 instead of Type3) - only needed, if cmsuper is not installed
%                                 % check the resulting pdf-file: fonts should been embedded, subsetted and of type 1 (NOT type 3!)
\usepackage[intlimits]{amsmath}  % place the subscripts and superscripts in the right position
\usepackage{amsfonts}            % additional fonts like \mathbb, \mathfrak
\usepackage{amssymb}             % additional symbols
\usepackage{bbm}                 % indicator function
%\usepackage{amsthm}
\usepackage{ntheorem}
\usepackage{url}                 % support for urls
\usepackage[%
  style=alphabetic, 
  natbib=true,
  backend=biber, % <====================================================
]{biblatex}
\addbibresource{\jobname.bib} % <=======================================
%\bibliography{main} % <================================================
\DeclareNameAlias{default}{last-first}

\usepackage[english]{babel}             % English orthography
\usepackage{scrlayer-scrpage}            % head and foot layout <=======
\usepackage{ushort}              % complex values require an underline (use\ushort or \ushortw)
\usepackage{units}               % package for setting units in a typographically correct way (e.g. \unit[3]{cm})
\usepackage{booktabs}            % package provides additional commands to enhance the quality of tables
\usepackage{datetime}            % provides \pdfdate command
\usepackage[pageno, draft]{listofsymbols}   % includes a lis of symbols/ good to have an overview over one's notations
\usepackage{verbatim}   % use multiline comments
\usepackage{mathrsfs}   
\usepackage{float}      
\usepackage{tabularx}   
\usepackage{breakcites}
\usepackage{subfig}
\numberwithin{equation}{section} % amsmath: numbering equations

\usepackage{csquotes}
\pagestyle{scrheadings}          % enable scrheadings layout for head and foot

\ifx\pdfoutput\undefined
% non pdflatex settings (normal latex compiler assumed)
\usepackage[dvips]{graphicx}
\else
% different settings for the pdflatex compiler
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}           % enables automatic conversion from .eps to .pdf graphic files; run MikTeX as "latex --enable-write18"
\usepackage[pdftex,plainpages=false]{hyperref}
\pdfcompresslevel=9
\pdfinfo{
/CreationDate (D:20180802110000) % date format is year(4) month(2) day(2) hour(2) minute(2) second(2)
/ModDate      (D:\pdfdate)
 }
\hypersetup{
pdftitle    = {thesis title},
pdfsubject  = {thesis subject},
pdfauthor   = {your name},
pdfkeywords = {},
colorlinks  = {true},
linkcolor   = {black},
citecolor   = {black},
urlcolor    = {black}
}
\fi
\renewcommand{\bibname}{Literaturverzeichnis}   % new name for the bibiography
\renewcommand{\figurename}{Abbildung}           % new name for the figure
\renewcommand{\listfigurename}{Abbildungsverzeichnis} % new name for the list of figures


\title{Minimal Example}
\subtitle{Thesis}
\author{from\\
Author\\ }
\date{\today}
\publishers{Advisors:\\
Dr. Ad, Visor1\\
Dr. Ad, Visor2
}

\begin{document}

\maketitle
\frontmatter
\mainmatter
This is just a test \cite{mack2002}.
\appendix
\nocite{*}  % use all bibliography entries
\printbibliography

\end{document}

得到所需参考书目:

在此处输入图片描述

相关内容