经过三个不同的编辑器的检查:TexStudio
、、TexWorks
和Texmaker
,投影仪如下所述,不是生成参考书目参考框架。然而,在网站上编译相同的文档Overleaf
,工作正常并生成参考书目。
BibLaTeX
关于和BibTeX
的问题beamer
已在很多在线论坛中得到完美解决,但是,这个问题尚未得到解决。我怎样才能让这些编辑器中的任何一个编译出与 相同的代码Overleaf
?
平均能量损失
\documentclass[11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\setbeamertemplate{headline}{}
\usetheme{Madrid}
\useoutertheme{miniframes}
\useinnertheme{circles}
\definecolor{UBCblue}{rgb}{0.04706, 0.13725, 0.26667}
\definecolor{UBCgrey}{rgb}{0.3686, 0.5255, 0.6235}
\setbeamercolor{palette primary}{bg=UBCblue,fg=white}
\setbeamercolor{palette secondary}{bg=UBCblue,fg=white}
\setbeamercolor{palette tertiary}{bg=UBCblue,fg=white}
\setbeamercolor{palette quaternary}{bg=UBCblue,fg=white}
\setbeamercolor{structure}{fg=UBCblue}
\setbeamercolor{section in toc}{fg=UBCblue}
\setbeamercolor{subsection in head/foot}{bg=UBCgrey,fg=white}
\usepackage{xcolor}
\usepackage{booktabs}
\usepackage{array}
\usepackage{tabu}
\usepackage{tabularx}
\usepackage{boldline}
\usepackage{ltablex}
\usepackage{todonotes}
\usepackage[bookmarks=true]{hyperref}
\usepackage{multimedia}
\usepackage{ragged2e}
\usepackage{etoolbox}
\usepackage{amsmath,amssymb,amsfonts} %math
\DeclareMathOperator*{\argmin}{argmin}
\DeclareMathOperator*{\argmax}{argmax}
\usepackage{algpseudocode}
\usepackage{algorithm, float}
\usepackage{etoolbox}\AtBeginEnvironment{algorithmic}{\small}
\usepackage{graphicx,caption}
\usepackage[absolute,overlay]{textpos}
\setbeamercolor{framesource}{fg=gray}
\setbeamerfont{framesource}{size=\tiny}
\newcommand{\source}[1]{\begin{textblock*}{4cm}(8.7cm,8.6cm)
\begin{beamercolorbox}[ht=0.5cm,right]{framesource}
\usebeamerfont{framesource}\usebeamercolor[fg]{framesource} Source: {#1}
\end{beamercolorbox}
\end{textblock*}}
\usepackage{caption}
\captionsetup{skip=0pt,belowskip=0pt}
\setbeamerfont{caption}{size=\small}
\apptocmd{\frame}{}{\justifying}{}
\usepackage[style=authoryear,backend=biber]{biblatex}
\renewcommand*{\nameyeardelim}{\addcomma\addspace}
\addbibresource{Innovation.bib}
\title[Some Wonderful Discovery]{History of This Wonderful Discovery}
\subtitle{}
\author[SomeOne Someonian] {SomeOne Someonian}
\institute[]
{
Some Great School\\
Some Cool City, postalCode, TheNorth
}
\date[WhatAnEvent]
{WhatAnEvent- Life Is Beautiful, September 2020}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{Outline}
\begin{frame}
\frametitle[allowframebreaks]{Outline}
\tableofcontents
\end{frame}
\section[intro]{Introduction}
\begin{frame}{Brief History}
\frametitle{Brief History \footnotemark[1]}
\footnotetext[1]{\footcite{bertsimas2004robust}}
\end{frame}
\begin{frame} [allowframebreaks]
\begin{center}
\Huge Thank You!\\ \vspace{0.5in}
\small \textit{I hope you enjoyed the presentation.}
\end{center}
\end{frame}
\begin{frame}[allowframebreaks]{References}
\frametitle{References}
%\nocite{*}
\printbibliography
\end{frame}
\end{document}
文件内容Innavation.bib
:
@article{bertsimas2004robust,
title={Robust linear optimization under general norms},
author={Bertsimas, Dimitris and Pachamanova, Dessislava and Sim, Melvyn},
journal={Operations Research Letters},
volume={32},
number={6},
pages={510--516},
year={2004},
publisher={Elsevier}
}
答案1
Overleaf 使用latexmk
,它会自动执行bibtex
或biber
:https://www.overleaf.com/learn/how-to/How_does_Overleaf_compile_my_project%3F
如果你不使用latexmk
,则需要在 TeXworks/TeXstudio/etc 中单独运行bibtex
或biber
,然后pdflatex
再次运行;参见例如https://tex.stackexchange.com/a/147521或者Biblatex 与 Biber:配置我的编辑器以避免未定义的引用