Latex排版常用命令
#參考文獻(xiàn)
%導(dǎo)言區(qū)
\usepackage[super]{gbt7714}
\begin{document}
正文
\bibliography{參考文獻(xiàn)對(duì)應(yīng)的文件名}
正文
\end{document}
#頁(yè)眉、頁(yè)腳設(shè)置
%當(dāng)前頁(yè)碼不顯示
\thispagestyle{empty}
%新起一頁(yè)
\clearpage
%設(shè)置當(dāng)前頁(yè)碼為1
\setcounter{page}{1}
%頁(yè)眉設(shè)置
\usepackage{fancyhdr}
\fancyhead[位置參數(shù)]{顯示標(biāo)記}
位置參數(shù)有R、L、C
顯示標(biāo)記有\(zhòng)leftmark(一級(jí)標(biāo)題)、\rightmark(二級(jí)標(biāo)題)
%設(shè)置下劃線寬度,當(dāng)寬度為0時(shí)不顯示
\renewcommand{\headrulewidth}{0.5mm}
#表格、圖片
%控制頂部與文本之間的距離
\setlength\intextsep{10pt}
%采用caption控制標(biāo)題與表、圖之間的距離
\usepackage{caption}
\captionsetup[table/figure]{skip=2pt}
%三線表
\usepackage{booktabs}
\toprule[]
\midrule[]
\bottomrule[]
%自定義表格寬度并居中
需要在導(dǎo)言區(qū)引入\usepackage{array}
p{5cm}<{\centering}
%表、圖標(biāo)題樣式
\renewcommand {\thetable} {\arabic{section}-\arabic{table}}
\renewcommand {\thefigure} {\arabic{section}-\arabic{figure}}
%采用caption設(shè)置
需要在導(dǎo)言區(qū)引入\usepackage{caption}
\captionsetup[table\figure]{labelfont=?,textfont=?}
labelsep = none,colon,period,space,quad,newline
labelformat = empty,simple,parens
\captionsetup 詳細(xì)使用Link.
#公式
%與上下文之間的間距
\setlength{\abovedisplayskip}{3pt}
\setlength{\belowdisplayskip}{3pt}
帶章節(jié)編號(hào)
\usepackage{amsmath}
\numberwithin{equation}{section}
#編號(hào)環(huán)境
引入\usepackage{enumitem}
%arabic 阿拉伯?dāng)?shù)字
%roman 小寫(xiě)的羅馬數(shù)字
%Roman 大寫(xiě)的羅馬數(shù)字
%alph 小寫(xiě)字母
%Alph 大寫(xiě)字母
\begin{enumerate}[fullwidth,itemindent=2em,label=(\alph*)]
\item …
\item …
\end{enumerate}
總結(jié)
以上是生活随笔為你收集整理的Latex排版常用命令的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 2022.3.17 关于镜头标称焦距和相
- 下一篇: LaTeX 排版(一)——基础应用