我正在使用大学提供的默认模板撰写博士论文。
我需要将多文献文件集成到此模板中,因为我之前的一篇论文有多文献引用(\cite 和 \citeA)。
我尝试了多次,但都没有成功。具体来说,我认为“multibib”包和“biblatex”包之间存在冲突,并且我在创建命令“citeA”时遇到了问题(无论如何,我收到了错误“citeA 未定义”
我觉得模板结构比较难理解。不过,我已将修改设置时用到的文件附加到附件中。
主要.tex:
\RequirePackage{silence}
\WarningFilter{scrreprt}{Usage of package `titlesec'}
%\WarningFilter{scrreprt}{Activating an ugly workaround}
\WarningFilter{titlesec}{Non standard sectioning command detected}
\documentclass[ twoside,openright,titlepage,numbers=noenddot,%1headlines,
headinclude,footinclude,cleardoublepage=empty,abstract=on,
BCOR=5mm,paper=b5,fontsize=11pt
]{scrreprt}
%********************************************************************
% Note: Make all your adjustments in here
%*******************************************************
\input{classicthesis-config}
%********************************************************************
% Bibliographies
%*******************************************************
\addbibresource{Bibliography.bib}
\addbibresource[label=ownjournal]{ownjournal.bib}
\addbibresource[label=ownconference]{ownconference.bib}
\begin{document}
\frenchspacing
\raggedbottom
\selectlanguage{american} % american ngerman
%\renewcommand*{\bibname}{new name}
%\setbibpreamble{}
\pagenumbering{roman}
\pagestyle{plain}
%********************************************************************
% Frontmatter
%*******************************************************
\include{margin}
%\include{FrontBackmatter/DirtyTitlepage}
\include{FrontBackmatter/Titlepage}
%\include{FrontBackmatter/Titleback}
\cleardoublepage\include{FrontBackmatter/Dedication}
%\cleardoublepage\include{FrontBackmatter/Acknowledgments}
%\cleardoublepage\include{FrontBackmatter/Foreword}
\cleardoublepage\include{FrontBackmatter/Abstract}
\cleardoublepage\include{FrontBackmatter/Contents}
%********************************************************************
% Mainmatter
%*******************************************************
\cleardoublepage
\pagestyle{scrheadings}
\pagenumbering{arabic}
%\setcounter{page}{90}
% use \cleardoublepage here to avoid problems with pdfbookmark
\cleardoublepage
\part[\textsc{Part I}: Introduction and Background]
{{\LARGE Part I}\break\break{\normalsize Introduction and Background}}
\label{pt:pt1}
%\include{Chapters/part1/introduction}
%\include{Chapters/part1/background}
\cleardoublepage
\part[\textsc{Part II}: title]
{{\LARGE Part II}\break\break{\normalsize title}}
\label{pt:pt2}
\part[\textsc{Part III}: title]
{{\LARGE Part III}\break\break{\normalsize title}}
\label{pt:pt3}
\include{Chapters/part3/jss} %<-THIS CONTAINS THE MULTIBIB paper
%\include{multiToC} % <--- just debug stuff, ignore for your document
%*******************************************************
\cleardoublepage\include{FrontBackmatter/Publications}
\cleardoublepage
\include{FrontBackmatter/Bibliography}
%\cleardoublepage\include{FrontBackmatter/Declaration}
%\cleardoublepage\include{FrontBackmatter/Colophon}
% ********************************************************************
% Game Over: Restore, Restart, or Quit?
%*******************************************************
\end{document}
% ********************************************************************
以下是“罪证确凿”的片段:
{{\LARGE Part III}\break\break{\normalsize title}}
\label{pt:pt3}
\include{Chapters/part3/jss} %<-THIS CONTAINS THE MULTIBIB paper
MyConfig.tex(此文件中包含库和其他命令)
\usepackage{setspace}
\usepackage{caption}
\usepackage{colortbl}
%\usepackage{url}
\usepackage{todonotes}
\usepackage{fontawesome}
\usepackage{amsmath,amssymb}
\setstretch{1.15}
\definecolor{gray75}{gray}{.25}
\definecolor{gray50}{gray}{.5}
\definecolor{gray40}{gray}{.6}
\definecolor{gray30}{gray}{.7}
\definecolor{gray20}{gray}{.8}
\definecolor{gray10}{gray}{.9}
\definecolor{gray05}{gray}{.95}
\newcommand{\llangle}[1][]{\savebox{\@brx}{\(\m@th{#1\langle}\)}%
\mathopen{\copy\@brx\mkern2mu\kern-0.9\wd\@brx\usebox{\@brx}}}
\newcommand{\rrangle}[1][]{\savebox{\@brx}{\(\m@th{#1\rangle}\)}%
\mathclose{\copy\@brx\mkern2mu\kern-0.9\wd\@brx\usebox{\@brx}}}
\newcommand{\rb}[1]{
%\vspace{0.3cm}
\begin{tcolorbox}[colback=gray!05,%gray background
colframe=black,% black frame colour
width=\columnwidth,% Use 5cm total width,
arc=3mm, auto outer arc,
boxrule=0.5pt,
]
#1
\end{tcolorbox}
}
\newcommand{\roundedbox}[2]{
\rb{
\noindent\usepackage{enumitem}
\textit{\textbf{Finding {#1}}. #2}
}
\stepcounter{Finding}
}
\newcommand{\resquestion}[2]{%
\vspace{5pt} %
\noindent\fcolorbox{black}{blue!05}{%
\parbox{0.97\linewidth}{%
\textbf{RQ$_{#1}$.} \emph{#2} %
}%
}%
\vspace{5pt} %
}%
\mdfdefinestyle{stebox3}{%
linecolor=steBoxLine,linewidth=0pt,%
leftmargin=0cm,rightmargin=0cm,%
roundcorner=5pt,
topline=true,bottomline=true,rightline=false,leftline=false,%
backgroundcolor=gray05
}
\newcommand{\nb}[3]{
\fbox{\bfseries\sffamily\scriptsize\color{#1}#2}\textsf{\small$\blacktriangleright${\color{#1}\textit{#3}}$\blacktriangleleft$}
}
\newcommand\TODO[1]{\nb{teal}{TODO}{#1}}
\newcommand\NOTE[1]{\nb{blue}{NOTE}{#1}}
\newcommand\REVIEW[1]{\nb{red}{REVIEW}{#1}}
\newcommand\REMOVE[1]{\nb{gray20}{REMOVE}{#1}}
\newcommand\CITEME{\fbox{\bfseries\sffamily\scriptsize\color{red}CITEME}~\xspace}
\usepackage{cleveref}
\usepackage{graphicx,color}
\RequirePackage{fontawesome}
\newcommand{\rqanswer}[2]{%
\medskip%
\noindent\fcolorbox{black}{blue!05}{%
\parbox{0.985\linewidth}{%
\textbf{\faHandORight\ Answer to RQ$_{#1}$.} #2%
}%
}%
\medskip%
}%
\definecolor{boxblue}{HTML}{ADD8E6}
\definecolor{surveyblue}{HTML}{DAE8FC}
\newcommand{\implication}[2]{ %
\vspace{5pt} %
\noindent\fcolorbox{black}{boxblue}{%
\parbox{0.98\linewidth}{%
\textbf{\faAngleRight\ Take Away Message #1.} #2 %
}%
}%
\vspace{5pt} %
}%
\definecolor{headertable}{rgb}{0.0, 0.0, 0.0}
\newcommand{\examplebox}[2]
{
\smallskip
\begin{mdframed}[style=stebox3,frametitle={\textbf{#1}}]
{\textit{#2}}
\end{mdframed}
\smallskip
}
\newcommand{\stesummarybox}[2]
{
\smallskip
\begin{mdframed}[style=stebox4,frametitle={\textcolor{white}{\textbf{#1}}}]
{#2}
\end{mdframed}
}
\newcommand{\lessonbox}[1]
{
\smallskip
\begin{mdframed}[style=stebox3]
{\faCheckSquare \hspace{0.05cm} \textit{#1}}
\end{mdframed}
\smallskip
}
\newcommand{\sterqbox}[2]
{
\medskip
\begin{mdframed}[style=stebox1,frametitle={\textbf{#1}}]
{\textit{#2}}
\end{mdframed}
\medskip
}
\usepackage{longtable}
\newcommand{\markedsection}[2]{\section[#2]{#2%
\sectionmark{#1}}
\sectionmark{#1}}
\newcommand{\markedsubsection}[2]{\subsection[#2]{#2%
\subsectionmark{#1}}
\subsectionmark{#1}}
\newtcolorbox{reseachquery}{
colback=gray!5,
colframe=arsenic,
boxrule=0.4mm,
left=1.5mm,
right=1.5mm,
top=1.5mm,
bottom=1.5mm,
fonttitle=\bfseries,
title={Search Query}
}
Bibliography.tex(此文件中有管理bib文件的默认设置)
\defbibheading{bibintoc}[\bibname]{%
\phantomsection
\manualmark
\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}%
\addtocontents{toc}{\protect\vspace{\beforebibskip}}%
\addcontentsline{toc}{chapter}{\tocEntry{#1}}%
\chapter*{#1}%
}%
\printbibliography[heading=bibintoc]
我创建了一个单独的 bib 文件(不同于我用来引用“cite”的文件),其中包含我想要使用自定义引用显示的元素,即特定子文件夹中的“附录”(我不知道这是否有问题)。
预期的输出应该是这样的:
文本文本文本\cite{key1} 和 \citeA{key}
参考:
Key1 等等。
。
。
附录:
钥匙啦啦
。
。
。
如果有问题,我也可以附上原始模板。