![如何向 AAAI 补充部分标题添加宽文本或一列文本?](https://linux22.com/image/360665/%E5%A6%82%E4%BD%95%E5%90%91%20AAAI%20%E8%A1%A5%E5%85%85%E9%83%A8%E5%88%86%E6%A0%87%E9%A2%98%E6%B7%BB%E5%8A%A0%E5%AE%BD%E6%96%87%E6%9C%AC%E6%88%96%E4%B8%80%E5%88%97%E6%96%87%E6%9C%AC%EF%BC%9F.png)
如何aaai18.sty
添加补充材料部分标题作为一列?
[已编辑] 以下是一个示例。我想要的是让补充部分横跨文档顶部,然后继续以两列显示。此外,我希望补充中的任何新图或表格都以前缀“S”显示。
\documentclass[letterpaper]{article}
\usepackage{aaai18}
\usepackage[utf8]{inputenc}
\usepackage[numbers]{natbib}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{amsthm}
\title{
My Good Title}
\author{John Doe\\
Technologies Institute \\
Some University \\
Springfield, PA 12345\\
}
\begin{document}
\maketitle
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{introduction}
\lipsum[2]
\section{Methods}
\lipsum[3]
%\bibliographystyle{aaai.bst}
%\bibliography{hrg}
\include{supplement}
\end{document}
补充内容如下:
\setcounter{equation}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\setcounter{page}{1}
% \makeatletter
\renewcommand{\theequation}{S\arabic{equation}}
\renewcommand{\thefigure}{S\arabic{figure}}
\renewcommand{\bibnumfmt}[1]{[S#1]}
\renewcommand{\citenumfont}[1]{S#1}
\renewcommand{\citenumfont}[1]{\textit{#1}}
%%%%%%%%%% Prefix a "S" to all equations, figures, tables and reset the counter
\begin{center}
\textbf{\large Supplemental Materials: A far more interesting title like\\
Latent-Variable Probabilistic Widgets}
\end{center}
\section{Tree Explosions, it's real}
More formally, given a graph $H = (V,E)$, a \emph{tree decomposition} is a tree whose nodes, called \emph{bags}, are labeled with subsets of $V$, in such a way that the following properties are satisfied:
\begin{itemize}
\item For each node $v \in V$, there is a bag $\eta$ that contains $v$.
\item For each edge $(u,v) \in E$, there is a bag $\eta$ that contains $u$ and $v$.
\item If bags $\eta$ and $\eta^\prime$ contain $v$, then all the bags on the path from $\eta$ to $\eta^\prime$ also contain $v$.
\end{itemize}
答案1
好吧,根据你给出的代码和你的评论
在补充材料之前,文档是两列的。我需要一个新页面(或分页符),然后在顶部放置新标题,其余部分则使用两列正文。
我认为你想要类似下面的东西:
- 使用命令,
\onecolumn
您可以将两列更改为一列(包括分页符)。 - 使用包
multicol
您可以启动具有环境的两列部分\begin{multicols}{2}
请参阅以下 MWE
\documentclass[letterpaper]{article}
\usepackage{aaai18}
\usepackage[utf8]{inputenc}
\usepackage[numbers]{natbib}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{multicol} % <===============================================
\title{
My Good Title}
\author{John Doe\\
Technologies Institute \\
Some University \\
Springfield, PA 12345\\
}
\begin{document}
\maketitle
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{Introduction}
\lipsum[2]
\section{Methods}
\lipsum[3]
%\bibliographystyle{aaai.bst}
%\bibliography{hrg}
\setcounter{equation}{0}
\setcounter{figure}{0}
\setcounter{table}{0}
\setcounter{page}{1}
% \makeatletter
\renewcommand{\theequation}{S\arabic{equation}}
\renewcommand{\thefigure}{S\arabic{figure}}
\renewcommand{\bibnumfmt}[1]{[S#1]}
\renewcommand{\citenumfont}[1]{S#1}
\renewcommand{\citenumfont}[1]{\textit{#1}}
%%%%%%%%%% Prefix a "S" to all equations, figures, tables and reset the counter
\onecolumn % <==========================================================
\begin{center}
\textbf{\large Supplemental Materials: A far more interesting title like\\
Latent-Variable Probabilistic Widgets}
\end{center}
\begin{multicols}{2} % <================================================
\section{Tree Explosions, it's real}
More formally, given a graph $H = (V,E)$, a \emph{tree decomposition} is a tree whose nodes, called \emph{bags}, are labeled with subsets of $V$, in such a way that the following properties are satisfied:
\begin{itemize}
\item For each node $v \in V$, there is a bag $\eta$ that contains $v$.
\item For each edge $(u,v) \in E$, there is a bag $\eta$ that contains $u$ and $v$.
\item If bags $\eta$ and $\eta^\prime$ contain $v$, then all the bags on the path from $\eta$ to $\eta^\prime$ also contain $v$.
\end{itemize}
\end{multicols} % <=====================================================
\end{document}
结果如下:
答案2
这只是扩展评论...
我还是不确定,你喜欢获得什么。也许是这个?
如果是这种情况,那么您需要在序言加载multicol
包中写下您的补充内容:
\begin{center}
\textbf{\large Supplemental Materials: A far more interesting title like\\
Latent-Variable Probabilistic Widgets}
\end{center}
\begin{multicols}{2}
\section{Tree Explosions, it's real}
More formally, given a graph $H = (V,E)$, a \emph{tree decomposition} is a tree whose nodes,
called \emph{bags}, are labeled with subsets of $V$, in such a way that the following properties are satisfied:
\begin{itemize}
\item For each node $v \in V$, there is a bag $\eta$ that contains $v$.
\item For each edge $(u,v) \in E$, there is a bag $\eta$ that contains $u$ and $v$.
\item If bags $\eta$ and $\eta^\prime$ contain $v$, then all the bags on the path from $\eta$ to $\eta^\prime$ also contain $v$.
\end{itemize}
\end{multicols}
顺便说一句,补充材料通常属于appendix
。
编辑:从评论如下,鉴于姆韦具有误导性,所以我提出了无用的解决方案。似乎所有文档都是两栏,补充材料也是两栏,应该从新页面开始......这可以通过在补充文件\clearpage
之前\include{supplement}
或开头添加来简单实现。
\documentclass[letterpaper, twocolumn]{article}
\usepackage{aaai18}
\usepackage[utf8]{inputenc}
\usepackage[numbers]{natbib}
\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{amsthm}
\title{
My Good Title}
\author{John Doe\\
Technologies Institute \\
Some University \\
Springfield, PA 12345\\
}
\begin{document}
\maketitle
\begin{abstract}
\lipsum[1]
\end{abstract}
\section{introduction}
\lipsum[2]
\section{Methods}
\lipsum[3]
%\bibliographystyle{aaai.bst}
%\bibliography{hrg}
\clearpage% or \cleardoublepage if you like to start on odd page of two side document
\include{supplement}
\end{document}