我的最小工作示例。但是它不起作用。
%\RequirePackage[ngerman=ngerman-x-2012-05-30]{hyphsubst}
\documentclass[ngerman, fontsize=12pt]{scrartcl}
%\usepackage{xunicode}
%\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
%\usepackage{hyphsubst}
%\HyphSubstIfExists{ngerman-x-2012-05-30}{%
%\HyphSubstLet{ngerman}{ngerman-x-2012-05-30}}{}
\usepackage[]{babel}
%\usepackage{hyperref}
\usepackage[autostyle=true, german=quotes]{csquotes}
\usepackage[backend=biber]{biblatex}
%\usepackage{blindtext}
%\usepackage{libertineotf}
%\usepackage{fnpct}
%\usepackage{ccicons}
%\usepackage{embrac}
%\usepackage[modulo]{lineno}
%\linenumbers
\addbibresource{Facharbeit.bib}
\begin{document}
\cite{mierau}
\printbibliography
\end{document}
答案1
好的。只需运行以下 MWE 即可开始运行(将其存储在单独的目录中以避免更改文件Facharbeit.bib
)。在我的系统上,它运行没有问题。请注意,我删除了,libertineotf
因为我用它运行它pdflatex
,然后libertineotf
抛出错误。
%http://tex.stackexchange.com/questions/78820/empty-bibliography-and-undefined-references
%\RequirePackage[ngerman=ngerman-x-2012-05-30]{hyphsubst}
\RequirePackage{filecontents}
%writing file Facharbeit.bib
\begin{filecontents*}{Facharbeit.bib}
@PREAMBLE{ "\providecommand*{\BibTeX}{Bib\TeX} " }
@book{mierau,
address = {München},
title = {Nationalsozialistische Expeditionspolitik: deutsche Asien-Expeditionen 1933 -- 1945},
isbn = {3-8316-0409-6},
shorttitle = {Nationalsozialistische Expeditionspolitik},
publisher = {Utz},
author = {Mierau, Peter},
year = {2006},
file = {DNB, Katalog der Deutschen Nationalbibliothek:C:\Users\ericdanielski\Desktop\FirefoxPortable\Data\profile\zotero\storage\PCUH3IQM\opac.htm;jsessionid=61596D477EE425917EC0601AF3FE83BB.html:text/html}
}
\end{filecontents*}
\listfiles %used packages in log
\documentclass[ngerman, fontsize=12pt]{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[autostyle=true, german=quotes]{csquotes}
\usepackage[backend=biber]{biblatex}
\addbibresource{Facharbeit.bib}
\title{Wissenschaftliche Auswirkungen der Tibet-Expeditionen während der NS-Zeit}
\author{Eric Danielski}
\date{\today}
\begin{document}
\maketitle
\section{Vorwort}
Eric Danielski. \cite{mierau}
\section{Anhang}
\printbibliography
\end{document}
你的文件file
中的字段是必要的吗?bib