欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

IEEETrans.cls模板使用排坑

程序员文章站 2022-05-23 14:00:59
...

用pdflatex而非xelatex编译IEEETrans的bare_conf_compsoc.tex模板

一直用的xelatex,但是字体,加粗等等一些细节格式不对劲,还报了一堆关于字体的警告,Font shape TU/ppl/m/n' undefined(Font) usingTU/lmr/m/n’ instead,原来是编译器不对,换成pdflatex就好了,字体也都成了IEEE要求的那些
IEEETrans.cls模板使用排坑

xelatex:
IEEETrans.cls模板使用排坑

pdflatex:

IEEETrans.cls模板使用排坑

把Fig.1: 改为Fig.1.

看到IEEE论文的图注序号是Fig.1.而没有冒号,这个问题网上也有网友写了博客介绍怎么做,记录一下
在\begin{document}后面加这么一句代码就好了,得到加粗的图注序号

\begin{document}
	\captionsetup[figure]{labelfont={bf},labelformat={default},labelsep=period,name={Fig.}}

IEEETrans.cls模板使用排坑

表头序号设置为TABLE 1,没有冒号等

在导言区写

\DeclareCaptionLabelSeparator{twospace}{\ ~}   
\captionsetup{labelsep=twospace}

表格每一列靠左or居中or靠右

在\begin{document}后面加

	\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
	\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}
	\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}

表头居中(IEEE paper格式)

在每个表格的\begin{table}后面加一句

\captionsetup{justification=centering}

不要放在\begin{document}后面,而是单独放在每个表格里面,以免把图注也居中了

比如:

(里面的\begin{threeparttable}和\end{threeparttable}删掉不影响结果,不太清楚他的用法)

\begin{table}
	\begin{threeparttable}
	% 使得表头居中
		\captionsetup{justification=centering}
		% caption里面加换行符才可以换行哦
		\caption{ \\ Summary of extracted features}
		\label{fea_table}
		% 这里用L,R,C必须有上面说的\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}}等指令
		\begin{tabular*}{\linewidth}[t]{L{3cm}L{5.2cm}}
			\toprule
			\toprule
		
			Domain & Features\\
			\midrule
			Time  &  power, mean, standard deviation,
			normalized 1st difference, normalized 2nd 
			difference, mobility, complexity, non-stationary
			index, higher order crossings 
			of each channel; fractal dimension for each EEG channel.\\
				
			Frequency  & power law index, averaged band power of four 
			frequency bands, BE1, BE2, MMOB,
			FOSM derived from the bispectrum 
			of each EEG channel; magnitude squared
			coherence estimate, differential 
			asymmetry and rational asymmetry 
			averaged on four frequency bands 
			of 14 electrode pairs.\\
			
			Time-Frequency  &  entropy and the absolute 
			logarithmic recursive energy efficiency of
			detail coefficients at four decomposition 
			level, root mean square of the energy of 
			four frequency bands; averaged energy of 
			four frequency bands of the Hilbert-Huang
			spectrum of each channel.  \\
			\bottomrule
		\end{tabular*}
	\end{threeparttable}
\end{table}

注意\toprule, \midrule, \bottomrule要用\usepackage{booktabs}

效果(三线表)
IEEETrans.cls模板使用排坑

让表格用罗马数字排序

在导言区(\begin{document}前面)加一句

\renewcommand\thetable{\Roman{table}} 

IEEETrans.cls模板使用排坑

相关标签: LaTeX