我使用\begin{longtable}
编辑表格来改变页面,标题如下:
但我需要适合其形式为的模板:
那么我该如何修改呢?
我的部分代码:
\documentclass[review,onefignum,onetabnum]{siamart171218}
\usepackage{mathrsfs}
\usepackage[figuresright]{rotating}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage{braket,amsfonts}
\usepackage{array}
\usepackage[caption=false]{subfig}
%% Used for papers with subtables created with the subfig package
\captionsetup[subtable]{position=bottom}
\captionsetup[table]{position=bottom}
%% For referencing line numbers
\Crefname{ALC@unique}{Line}{Lines}
%% For creating math operators
\usepackage{amsopn}
\DeclareMathOperator{\Range}{Range}
%% ------------------------------------------------------------------
%% Macros for in-document examples. These are not meant to reused for
%% SIAM journal papers.
%% ------------------------------------------------------------------
\usepackage{xspace}
\usepackage{bold-extra}
\usepackage[most]{tcolorbox}
\newcommand{\BibTeX}{{\scshape Bib}\TeX\xspace}
\newcounter{example}
\colorlet{texcscolor}{blue!50!black}
\colorlet{texemcolor}{red!70!black}
\colorlet{texpreamble}{red!70!black}
\colorlet{codebackground}{black!25!white!25}
\newcommand\bs{\symbol{'134}} % print backslash in typewriter OT1/T1
\newcommand{\preamble}[2][\small]{\textcolor{texpreamble}{#1\texttt{#2 \emph{\% <- Preamble}}}}
\begin{document}
\newcolumntype{R}{>{$}r<{$}}
\newcolumntype{V}[1]{>{[\;}*{#1}{R@{\;\;}}R<{\;]}}
\makeatletter\def\@captype{table}\makeatother
\captionsetup{position=top}
{\centering
\footnotesize
% \begin{center}
\begin{longtable}{|c|c|cccc|}
\caption{Comparison on artificial datasets}\label{tab:1}\\
\hline
(m,n) & p & method & ER & k & time\\
\hline
\multirow{20}{*}{(300,400)}
& 0\% & \begin{tabular}{c}
1 \\ 2 \\ 3 \\ 4 \\ 5\\ 6\\
\end{tabular}
& \begin{tabular}{c}
\bf{1.02e-9}\\1.37e-5\\1.38e-6\\5.79e-5\\8.11e-8\\2.54e-6\\
\end{tabular}
\\
\hline
\end{longtable}}
\end{document}
答案1
使用包可以很容易地修改标题布局caption
。
但是,正如扎科所说,如果你必须将文章提交给期刊,你确定他们同意这些更改吗?
离题:您加载了array
两次,我没有对您的表格格式发表任何评论,因为这不是问题的主题,但可以改进。
\documentclass[review,onefignum,onetabnum]{siamart171218}
\usepackage{mathrsfs}
\usepackage[figuresright]{rotating}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage{braket,amsfonts}
\usepackage[caption=false]{subfig}
%% Used for papers with subtables created with the subfig package
\captionsetup[subtable]{position=bottom}
\captionsetup[table]{position=bottom}
\newcolumntype{R}{>{$}r<{$}}
\newcolumntype{V}[1]{>{[\;}*{#1}{R@{\;\;}}R<{\;]}}
\makeatletter\def\@captype{table}\makeatother
\captionsetup{position=top}
%% For referencing line numbers
\Crefname{ALC@unique}{Line}{Lines}
%% For creating math operators
\usepackage{amsopn}
\DeclareMathOperator{\Range}{Range}
%% ------------------------------------------------------------------
%% Macros for in-document examples. These are not meant to reused for
%% SIAM journal papers.
%% ------------------------------------------------------------------
\usepackage{xspace}
\usepackage{bold-extra}
\usepackage[most]{tcolorbox}
\newcommand{\BibTeX}{{\scshape Bib}\TeX\xspace}
\newcounter{example}
\colorlet{texcscolor}{blue!50!black}
\colorlet{texemcolor}{red!70!black}
\colorlet{texpreamble}{red!70!black}
\colorlet{codebackground}{black!25!white!25}
\newcommand\bs{\symbol{'134}} % print backslash in typewriter OT1/T1
\newcommand{\preamble}[2][\small]{\textcolor{texpreamble}{#1\texttt{#2 \emph{\% <- Preamble}}}}
\usepackage{caption}
\captionsetup[table]{labelfont=sc,textfont=it,labelsep = newline}
\begin{document}
{\footnotesize
\begin{longtable}{|c|c|cccc|}
\caption{Comparison on artificial datasets}\label{tab:1}\\
\hline
(m,n) & p & method & ER & k & time\\
\hline
\multirow{6}{*}{(300,400)}
& 0\% &
1 & \bf{1.02e-9}&&\\
&&2 & 1.37e-5 &&\\
&&3 & 1.38e-6 &&\\
&&4 & 5.79e-5 &&\\
&&5 & 8.11e-8 &&\\
&&6 & 2.54e-6 &&\\
\hline
\end{longtable}}
\begin{table}[htp]
\centering
\caption{Caption}
\label{tab:my_label}
\begin{tabular}{cc}
\hline
ordinary & table \\
\hline
\end{tabular}
\end{table}
\end{document}