用于论文和参考文献格式的软件包

用于论文和参考文献格式的软件包

在撰写论文时,我意识到我已经使用了许多包,并且当我在stackexchange一些答案中写一些问题时会删除一些包,以下是我使用的包:

%Used packages%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% language package%
%%%%%%%%%%%%%%%%%%%
\usepackage[LFE,LAE]{fontenc}
\usepackage[cp1256,utf8]{inputenc}
\usepackage[ arabic ,english]{babel} 
\usepackage[T1]{fontenc}
%\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\familydefault}{\rmdefault}
\renewcommand*\rmdefault{ptm}
%\renewcommand{\familydefault}{\ttdefault}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%graphics packages%
%%%%%%%%%%%%%%%%%%%
\usepackage{graphicx}
\graphicspath{ {figures/} }
\usepackage{caption}
\usepackage{subcaption}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Math packages%
%%%%%%%%%%%%%%%
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{breqn}
\usepackage{flexisym}
\allowdisplaybreaks
%\usepackage{antpolt}
%\usepackage{cmbright}
%\usepackage{mathtime}
%\usepackage{arev}
\usepackage{ccfonts}
\renewcommand*{\familydefault}{\rmdefault}
\renewcommand*\rmdefault{ptm}
\AtBeginDocument{\renewcommand{\hbar}{\hslash}}    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%bibliography%
%%%%%%%%%%%%%%
% what packages should I use for bibliography?
\usepackage[numbers,square,authoryear,sort&compress]{natbib} 
%\usepackage{bibtex}
%\usepackage[nottoc]{tocbibind}     
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%hyperlinks%
%%%%%%%%%%%%
\usepackage{color, xcolor}    
\usepackage{tcolorbox}
\usepackage{hyperref}  
\usepackage{url}
\usepackage[hyphenbreaks]{breakurl}    
\def\UrlBigBreaks{\do\/\do-\do:}
\hypersetup{colorlinks=true,
citecolor=red,
 linkcolor=blue,
  urlcolor=magenta,
   breaklinks}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Page styke%
%%%%%%%%%%%%
\usepackage[
  top=2cm,
  bottom=2cm,
  left=3cm,
  right=2cm,    
  headheight=17pt, % as per the warning by fancyhdr
  includehead,includefoot,
  heightrounded, % to avoid spurious underfull messages
]{geometry}     

\usepackage{microtype}    
\usepackage{fancyhdr}

\pagestyle{fancy}    
\fancyhf{} % clear all fields    
\renewcommand{\headrulewidth}{1pt}    
%\fancyhead[R]{\bfseries\sffamily\thepage}    
\fancyfoot[C]{\bfseries\sffamily\thepage}
\fancyhead[L]{\nouppercase{\bfseries\sffamily\leftmark}}

\fancypagestyle{plain}{% for the chapter start pages
  \fancyhf{}% clear all fields
  \renewcommand{\headrulewidth}{0pt}%    
  \fancyfoot[C]{\bfseries\sffamily\thepage}%    
}    
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Cross reference %
%%%%%%%%%%%%%%%%%%
\usepackage{cleveref}    
\crefname{equation}{equation}{equations}    
\Crefname{Equation}{Equation}{Equations}
\crefname{figure}{figura}{figures}
\Crefname{Figure}{Figure}{Figures}
\crefname{section}{section}{sections}    
\Crefname{Section}{Section}{Sections}    
\crefname{table}{table}{tables}    
\Crefname{Table}{Table}{Tables}    
\crefdefaultlabelformat{(#2\textbf{\textup{#1}}#3)}    
\creflabelformat{equation}{(#2\textbf{\textit{\textup{#1}}}#3)}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%others %
%%%%%%%%%
\usepackage{longtable} % needed for long tables over pages
\usepackage{bigstrut} % needed for the command \bigstrut    
\usepackage{enumerate} % needed for some options in enumerate
\usepackage{calc}
\usepackage{setspace}
\usepackage[super]{nth}         
  • 我不应该包含哪些包,以及我应该包含哪些包?

  • 对于章节内引用的参考文献的样式,我希望它如下图所示或按此顺序排列Name, date, reference number in the bibliography,我该怎么做?

在此处输入图片描述

答案1

说实话,我认为你走错路了。

  • 不是只需从互联网上复制代码不知道代码或包裹做。
  • 阅读你使用的每个软件包的文档。如果你不是理解文档,然后做不是使用该包...
  • 需要调用几个包特殊订单例如,hyperref应该在最后调用,后面只有两个或三个包必须跟在后面hyperref。这在的文档中有解释hyperref,请尝试texdoc hyperref阅读的文档hyperref
  • 不是调用 TeX 代码中未使用的包。不需要的包可能会与其他包发生冲突(记住所需的调用顺序hyperref)。这就是你第一个问题的答案!
  • 获得所需书目布局的样式取决于使用的文档类别、使用的书目程序(BiBTeX 或biblatex带有 Biber 的包)。文档描述了标准样式。在那里搜索您需要的样式。如果没有您需要的样式,请搜索最接近您需要的样式。然后我们可以考虑如何将该样式更改为您需要的样式。这就是你第二个问题的答案!

您的代码中存在几个问题,例如下面的代码应该做什么?

\usepackage[LFE,LAE]{fontenc}
\usepackage[cp1256,utf8]{inputenc}
\usepackage[ arabic ,english]{babel} 
\usepackage[T1]{fontenc}

我猜你想要的是类似这样的东西:

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[arabic,english]{babel} 

但最终这只是一个猜测。我建议你检查一下你的前言中的每一行,在调用注释后添加注释,以说明这个包的用途。

相关内容