2

我有一个问题,我的引文没有显示,但乳胶文件可能正在运行。

我用 jabref 创建了一个名为 thesis 的 bib 文件,我使用了 texmaker,生成的 pdf 文件没有错误,但没有出现引用,只有键以粗体显示。

\documentclass[12pt]{report}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber,citestyle=numeric, natbib=true,sorting=anyt]{biblatex}
\usepackage{csquotes}
\usepackage{amsmath}
\usepackage[nottoc,numbib]{tocbibind}
\usepackage[T1,T2A]{fontenc}
%\usepackage[titletoc,toc]{appendix}
\usepackage{float}
\usepackage{tabulary}
\usepackage{longtable}            
\usepackage{rotating}
%\bibliography{thesis} % or
\addbibresource{thesis.bib}
\usepackage{array}
\newenvironment{conditions}
  {\par\vspace{\abovedisplayskip}\noindent\begin{tabular}{>{$}l<{$} @{${}={}$} l}}
  {\end{tabular}\par\vspace{\belowdisplayskip}}
\makeatletter
\def\blx@maxline{77}
\makeatother

\newrobustcmd*{\parentexttrack}[1]{%
  \begingroup
  \blx@blxinit
  \blx@setsfcodes
  \blx@bibopenparen#1\blx@bibcloseparen
  \endgroup}

\AtEveryCite{%
  \let\parentext=\parentexttrack%
  \let\bibopenparen=\bibopenbracket%
  \let\bibcloseparen=\bibclosebracket}

\makeatother
\usepackage[usenames,dvipsnames]{color}
\usepackage[hyperfootnotes=false]{hyperref}
\usepackage{float}
\hypersetup{
 colorlinks=true,
 citecolor=Blue,
 linkcolor=Blue,
 urlcolor=Red
}
\hypersetup{ 
citebordercolor=.1 1 .1, 
linkbordercolor=1 0 0, 
 urlbordercolor=1 0 0, }
\renewcommand\nameyeardelim{, }
\renewcommand{\baselinestretch}{1.5}
\usepackage[margin=1in]{geometry}
\usepackage[margin=1in]{geometry}  % set the margins to 1in on all sides
\usepackage{graphicx}              % to include figures
%\usepackage[dvipdfm]{graphicx} \usepackage{bmpsize}
\usepackage{caption}
\usepackage{amsmath}               % great math stuff
\usepackage{amsfonts}              % for blackboard bold, etc
\usepackage{amsthm}                % better theorem \usepackage[utf8]{inputenc}
\usepackage[UKenglish]{babel}
\usepackage{comment}

\usepackage[toc,page]{appendix}
\usepackage[numbered,framed]{mcode}
%\usepackage[titletoc]{appendix}
% various theorems, numbered by section
\setcounter{secnumdepth}{4}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{conj}[thm]{Conjecture}
\newtheorem{definition}{Definition}[section]
% numbers
\newtheorem{exmp}[thm]{Example} % same for example numbers
\DeclareMathOperator{\id}{id}
\newcommand{\bd}[1]{\mathbf{#1}}  % for bolding symbols
\newcommand{\RR}{\mathbb{R}}      % for Real numbers
\newcommand{\ZZ}{\mathbb{Z}}      % for Integers
\newcommand{\col}[1]{\left[\begin{matrix} #1 \end{matrix} \right]}
\newcommand{\comb}[2]{\binom{#1^2 + #2^2}{#1+#2}}
\renewcommand\appendix{\par
  \setcounter{section}{0}
  \setcounter{subsection}{0}
  \setcounter{figure}{0}
  \setcounter{table}{0}
  \renewcommand\thesection{Appendix \Alph{section}}
  \renewcommand\thefigure{\Alph{section}\arabic{figure}}
  \renewcommand\thetable{\Alph{section}\arabic{table}}
}
\begin{document}



\addtolength{\topmargin}{-1cm}
\addtolength{\textheight}{2cm}
\thispagestyle{empty}
\includegraphics{UPlogo.jpg}
\vspace{.4in}
\begin{center}
{\Large {\bf DEPARTMENT OF MATHEMATICS}} \\
\vspace{.1in}
{\Large {\bf AND }} \\
\vspace{.1in}
{\Large {\bf APPLIED MATHEMATICS}}
\end{center}
\vspace{.4in}

{\large {\bf \begin{center} \begin{tabular}{|c|} 
\hline CHAPTER 2\\ 2017\\ \hline
\end{tabular} \end{center} }}
\vspace{.5in}
\begin{center}
 {\LARGE\bf 
Computation of Regulatory Capital Charge for Counterparty Credit Risk Under Basel III\medskip\par
}
\end{center}
%\end{figure}
\vspace{0.5in}
\begin{center}
{\bf {\large Erasmus Tyapa\\ (27307612)}}
\end{center}
\vspace{0.2in}
\begin{center}
{\bf {\Large DECEMBER 2017}} 
\end{center} 
\newpage
\tableofcontents
\setcounter{page}{1}
\pagenumbering{roman}
\newpage
\setcounter{page}{1}
\pagenumbering{arabic}


\section{Basel I: the Basel Capital Accord}
In 1988, the BCBS intervene to set up first accord on banking regulations.
The accord set rules on capital requirements for banks called  the Basel I for measuring capital adequacy against exposures from credit risk \cite{baselI1988}. 
Under Basel I, assets of banks were categorised and grouped into five groups according to their credit risk, carrying risk weights and no ratings \cite{hull2015risk}. 
The capital adequacy measurements resulted in a broad consensus on a weighted approach to the measurement of risk for both on and off-balance-sheet  assets \cite{baselhistory}. 
Basel I, require banks with international presence to hold at least 8\% capital of the their total credit exposure, called Risk-Weighted Assets (RWA), expressed mathematically  as 
\begin{equation} \label{equa1}
    CAR = \frac{C}{RWA_{c}} \geq  8\%
\end{equation}
where:

\begin{conditions}
C  & is capital required to be reserved for regulatory purpose\\
RWA_c & risk-weighted asset for credit risk\\
CAR  & Capital Adequacy Ratio \\
\end{conditions}  
\newpage
\printbibliography
\end{document}

我希望引文以数字形式出现,并在文档末尾显示使用的参考文献列表。以下是一些参考资料

@Manual{baselI1988,
  author      = {Basel Committee on Banking Supervision},
  title       = {International convergence of capital measurement and capital standards},
  year        = {1988},
  note        = {Accessed: 2017-02-21},
  publisher   = {Bank for International Settlements},
  url         = {http://www.bis.org/publ/bcbs04a.pdf},
  shortauthor = {BCBS},
  sortname    = {BCBS},
}
@Book{hull2015risk,
  author    = {Hull, John C.},
  title     = {Risk Management and Financial Institutions},
  year      = {2015},
  edition   = {4},
  publisher = {John Wiley \& Sons},
  chapter   = {15},
  pages     = {325-349},
}
@Manual{baselhistory,
  author      = {Basel Committee on Banking Supervision},
  title       = {A brief history of the {B}asel {C}ommittee},
  year        = {2014},
  note        = {Accessed: 2017-02-21},
  publisher   = {Bank for International Settlements},
  url         = {http://www.bis.org/bcbs/history.pdf},
  shortauthor = {BCBS},
  sortname    = {BCBS},
}

这是我的 Texmaker 图像 在此处输入图像描述

4

1 回答 1

0

问题是build subdirectory在 texmaker 首选项中的使用。这使得配置变得更加困难,因为需要调整每个单独的工具才能使用它。

简单的解决方案:

不要使用这个选项,它只会让事情变得更复杂

高级解决方案:

如果你真的想保持你的目录干净并将所有辅助文件放在一个单独的目录中,你可以使用一些乳胶自动化工具。例如ltx2any将自动编译您的文档(包括创建参考书目、索引等的所有附加步骤),同时保持文件夹清洁

于 2019-09-11T11:00:59.800 回答