使用三個不同的編輯器進行檢查: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:配置我的編輯器以避免未定義的引用