引文未显示

时间:2019-09-10 07:26:28

标签: reference latex biblatex

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

我用jabref创建了一个名为thesis的围嘴文件,我使用了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图片 enter image description here

1 个答案:

答案 0 :(得分:0)

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

便捷的解决方案:

不要使用此选项,只会使事情更加复杂

高级解决方案:

如果您真的想保持目录整洁,并将所有辅助文件放在单独的目录中,则可以使用某些乳胶自动化工具。例如,ltx2any将自动编译您的文档(包括创建书目,索引等的所有其他步骤),同时保持文件夹清洁