biblatex突然编译失败

时间:2019-05-24 15:23:51

标签: compilation biblatex

我想在R(Windows 10和另一台计算机Windows 7)上使用乳胶和biblatex编写文本,因为我想在输出中包括图形。我不确定在此期间发生了什么,但是我使用了几个月前有效的代码,现在不再使用了。我很努力地感到沮丧(例如,重新安装R和Miktex),却找不到任何解决我问题的方法。

\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[hmargin=3cm]{geometry}   
\usepackage{dcolumn}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{tikz}
\usepackage{smartdiagram}
\usepackage[american]{babel}
\usepackage{csquotes}
\usepackage[backend=bibtex, style=authoryear, natbib=true, useprefix, doi=false, isbn=false, url=false]{biblatex}
\usepackage[''Optionen'']{acronym}
\usepackage{booktabs}
\usepackage{array}
\usepackage{threeparttable}
\newcommand{\tabhead}[1]{\textbf{#1}}
\newcommand{\rothead}[1]{\rotatebox{45}{\tabhead{#1}}}
\usepackage{makecell} 
    % \maketable[]{text} c = center, l = left aligned, r = right aligned column
        \renewcommand\theadalign{bc}
        \renewcommand\theadfont{\bfseries}
        \renewcommand\theadgape{\Gape[4pt]}
        \renewcommand\cellgape{\Gape[4pt]}
\usepackage{endnotes}
\let\footnote=\endnote
\usepackage{setspace}
\linespread{1.5}
\DeclareLanguageMapping{american}{american-apa}
\DeclareRobustCommand{\VAN}[3]{#3}
\addbibresource{./library.bib}

\title{%
  \Huge \textbf{Bla} \\
  \Large Bla bla}

\author{Max}
\begin{document}

\maketitle

\newpage
\section*{Introduction}
\label{sec:int}
Text
\parencite{thisauthor} \textcite{anotherone}

\printbibliography
\end{document}

<<biber>>=
system(paste("biber", sub("\\Rnw$", "", current_input())))
system(paste("latexmk", sub("\\Rnw$", "", current_input())))
@

在输出中,除任何引文和库外,所有内容均正确打印。作者只是作为库文件中的缩写(加粗)出现在输出中,\printbibliography被完全忽略。我不明白为什么,非常感谢您的帮助和/或一些想法。

我尝试卸载和重新安装R和Miktex(几次),更改或删除一些潜在的任意代码,更改路径,然后将library.bib放入其中,使用不同的书目命令,并在Texmaker和Texworks中进行了尝试,所有内容都无法打印书目和资料来源。

这就是编译pdf输出的内容:

processing file: test.Rnw
  |................................                                 |  50%
  ordinary text without R code

  |.................................................................| 100%
label: biber
INFO - This is Biber 2.12
INFO - Logfile is 'test..blg'
ERROR - Cannot find control file 'test..bcf'! - Did latex run successfully on your .tex file before you ran biber?
INFO - ERRORS: 1
latexmk.exe: The script engine could not be found.
latexmk.exe: Data: scriptEngine="perl.exe", scriptName="latexmk"

output file: test.tex

[1] "test.tex"
Running pdflatex.exe on test.tex...failed

Issues: 1 warning`

0 个答案:

没有答案