-
如何去掉参考文献中序号的方括号 A:导言区加上 \makeatletter
\def\@biblabel#1{#1} \makeatother A2:\makeatletter
\renewcommand\@biblabel[1]{#1\hspace{0.5em}} \makeatother
-
如何把《参考文献》放入各章,也就是成为章末一无序号的节 A:
chapterbib 宏包,但是 chapterbib 宏包需要用 bibtex
-
请问\bibliography{xxx.bib}的参考文献行距怎么调整? A:
导言区加 \usepackage{setspace} 正文 \begin{spacing}{1} % 数自己改
\bibliographystyle{**********} % 形式 \bibliography{***} % 文件名
\end{spacing}
-
将参考文献条目间距变小的方法是什么? A:
\usepackage{natbib} \addtolength{\bibsep}{-1ex}
-
如何使用参考文献库, 即 bib文件中参考文献 在正文里加入:
\bibliographystyle{plain} % 设置参考文献的格式 \bibliography{bibfile} %
指定所使用的 bib文件 \bibliography{bibfile1,bibfile2,...} %同时使用多个 bib文件
就可以用 \cite{} 来引用文献库中的论文了为了保证 LaTeX 可以找到该 bib 文件,可使用以下几个方法:法一: 将
bib文件与 tex 文件放在同一个目录下法二:在引用出声明,如
\bibliography{IEEEabrv,E:/RD/JabRef/SMC} (其中 E:/RD/JabRef/
为bib文件所在的目录)法三:将 bib文件放到 WinEdt 的默认bib目录中, 即 $TEX\texmf\bibtex\bib
在该目录下建立一个自己的目录, 然后将 bib文件放入该目录中, 最后刷新一下文件名 (
Accessories->MikTex
Optitions->Refresh Now) 然后在 tex 文件中就可以直接用
\bibliography{bibfile}
-
如何将连续的参考文献写成
[1-5]的形式? \usepackage{cite}
-
如何将参考文献 [1-5] 设置成 [1~5], 即将连字符变成
$\sim$ \usepackage{cite}\let\citedash\relax\makeatletter
\providecommand{\citedash}{\hbox{$\sim$}\penalty\@m}\makeatother
-
如何将参考文献的引用放在角标位置 \newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}}
\upcite{xxxx}
-
-
-
如何生成两个不同的 index,如 subject index 和 Author
Index A1:使用 index 宏包,在导言区加入
\usepackage{index} \makeindex \newindex{aut}{adx}{and}{Author
Index} \renewindex{default}{idx}{ind}{Subject Index}
在正文中标记索引时,分别使用下面的命令: \index{matrix}{matrix} % 正常索引条目,即 Subject
Index \index[aut]{Roger}{Roger} % 著者索引条目 在文章后面使用下面的命令生成索引:
\printindex \printindex[aut] 在编译时,先用latex编译两遍tex源文件,然后在命令行中输入:
makeindex tex源文件名 makeindex tex源文件名.adx -o tex源文件名.and
然后在用latex编译一遍tex源文件即可。A2:也可以使用 multind 宏包,相应的命令如下:
\usepackage{multind} \makeindex{subject} \makeindex{author}
\index{subject}{matrix}{matrix} \index{author}{Roger}{Roger}
\printindex{general}{Subject index} \printindex{authors}{Author
index} makeindex general makeindex authors
-
如何将公式、字母开头的条目并入中文字开头的索引条目中? cctmkind -o
文件名.ind -s cct.ist -C mixed 文件名.idx
-
如何建立中文索引 A: cctmkind -o 文件名.ind -s
cct.ist -C mixed 文件名.idx (cctmkind -o "%N.ind" -s cct.ist -C mixed
"%N.idx") 中文按笔划分类: -C stroke
-
如何将页眉与页脚的分隔线设成两条平行线 \usepackage{fancyhdr}使用双线页眉修饰线的一段经典代码是这样的:\newcommand{\makeheadrule}{%\makebox[0pt][l]{\rule[0.55\baselineskip]{\headwidth}{0.4pt}}%\rule[0.7\baselineskip]{\headwidth}{0.4pt}}\renewcommand{\headrule}{%{\if@fancyplain\let\headrulewidth\plainheadrulewidth\fi\makeheadrule}}\makeatother但是这样以后你会发现,无论首页还是正文都是同样的双线了,你无法分别进行设置,由于找不到页眉画线命令\headrule的源代码,所以很难理解上面的代码中的@fancyplain,\headrulewidth,\plainheadrulewidth是怎么定义的,又是怎么工作的,苦思良久,我终于找到了一个不错的办法,下面是代码及解释:\usepackage{ifthen}%这个宏包提供逻辑判断命令
\newboolean{first}%定义一个布尔变量用于判断是否为首页\setboolean{first}{true}%设定fist变量初值为true%正文页眉页脚设定\pagestyle{fancy}\fancyhf{}\lhead{}
\chead{} \rhead{}\lfoot{} \cfoot{-~\thepage~-}
\rfoot{}%首页页眉页脚设定\fancypagestyle{plain}{%\setboolean{first}{false}%在palin样式的定义中将first重置为false\lhead{}
\chead{} \rhead{}\lfoot{} \cfoot{-~\thepage~-}
\rfoot{}}\newcommand{\makefirstpageheadrule}{%定义首页页眉线绘制命令,这里为等宽双线\makebox[0pt][l]{\rule[0.55\baselineskip]{\headwidth}{0.4pt}}%\rule[0.7\baselineskip]{\headwidth}{0.4pt}}\newcommand{\makeheadrule}{%定义正文页页眉线绘制命令,单线\rule[0.7\baselineskip]{\headwidth}{0.4pt}}\renewcommand{\headrule}{%重定义headrule命令\ifthenelse{\boolean{first}}{\makeheadrule}{\makefirstpageheadrule}%}%根据布尔变量first为true或false分别执行不同的页眉线绘制命令
|