![在扩展摘要格式的摘要前添加图片](https://linux22.com/image/280251/%E5%9C%A8%E6%89%A9%E5%B1%95%E6%91%98%E8%A6%81%E6%A0%BC%E5%BC%8F%E7%9A%84%E6%91%98%E8%A6%81%E5%89%8D%E6%B7%BB%E5%8A%A0%E5%9B%BE%E7%89%87.png)
我正在用扩展摘要格式(chi-ext
由 SIGCHI 分发的类)撰写会议论文。我遇到的问题是要在作者描述部分下插入图片,如下图所示(以及如何在左侧边栏中插入图片)。
我目前拥有的代码是:
\documentclass{chi-ext}
\title{CHI \LaTeX\ Ext. Abstracts Template}
\numberofauthors{6}
\author{
\alignauthor{
\textbf{First Author}\\
\affaddr{AuthorCo, Inc.}\\
\affaddr{123 Author Ave.}\\
\affaddr{Authortown, PA 54321 USA}\\
\email{[email protected]}
}}
\usepackage{graphicx} % for EPS use the graphics package instead
\usepackage{balance} % useful for balancing the last columns
\usepackage{bibspacing} % save vertical space in references
\begin{document}
\maketitle
\begin{abstract}
In this sample we describe the formatting requirements for various SIGCHI related submissions XXXXX
\end{abstract}
\section{XXXX}
\section{XXXX}
\end{document}
请注意,此示例必须使用 XeTeX 或 LuaTeX 进行编译,因为该类需要它。
答案1
我chi-ext.cls
在 Github 上找到了 2008 年的一个版本,在 code.google 上找到了 2010 年的另一个版本。因此,我为每个版本都做了一个解决方案。您会发现,较旧的版本需要更多“手工制作”,而最新版本提供了一个\teaser
宏,该宏将包含作者下方的一些内容作为参数。但是,对于这两个版本,侧面的图片都是用边注实现的。出于测试目的,我将其用作\rule
图片的占位符。
代码 1
\documentclass{chi-ext} %2008/11/25
\usepackage{geometry}
\geometry{left=6cm}
\usepackage{graphicx} %for EPS use the graphics package instead
\usepackage{balance} %useful for balancing the last columns
%\usepackage{bibspacing} %save vertical space in references
\usepackage{url}
\usepackage{lipsum}
\title{CHI \LaTeX\ Ext. Abstracts Template}
\author{%
\textbf{First Author}\\
AuthorCo, Inc.\\
123 Author Ave.\\
Authortown, PA 54321 USA\\
\url{[email protected]}
}
\copyrightinfo{%
Copyright is held by the author/owner(s).\\
This is a generic SIGCHI \LaTeX\ template sample.\\
The corresponding ACM copyright statement must be included.
}
\begin{document}
\twocolumn[\maketitle]
\makeauthors\marginpar{\raggedright \rule{0.95\marginparwidth}{6cm}} %Replace "\rule..." with \includegraphics[width=0.95\marginparwidth]{picname}
\par
\vspace{2em}
{\raggedright \rule{.475\textwidth}{6cm}} %\rule -> \includegraphics[width=.475\textwidth]{picname}
\par
\makecopyright
\newpage
\begin{abstract}
In this sample we describe the formatting requirements for various SIGCHI related submissions XXXXX
\end{abstract}
\section{XXXX}
\section{XXXX}
\onecolumn %Just in case that you want to return to the original formatting
\lipsum
\end{document}
请注意,我禁用了该bibspacing
包,因为它与解决方案无关,并取消了一堆宏(\numberofauthors
,,\alignauthors
...),因为它们根本不存在于此版本的类中。您可以编译两次以使图片处于正确的位置。
代码 2
\documentclass{chi-ext} %2010/12/01
\usepackage{graphicx} %for EPS use the graphics package instead
\usepackage{balance} %useful for balancing the last columns
%\usepackage{bibspacing} %save vertical space in references
\usepackage{marginnote}
\reversemarginpar
\usepackage{lipsum}
\title{CHI \LaTeX\ Ext. Abstracts Template}
\numberofauthors{6}
\author{
\alignauthor{
\textbf{First Author}\\
\affaddr{AuthorCo, Inc.}\\
\affaddr{123 Author Ave.}\\
\affaddr{Authortown, PA 54321 USA}\\
\email{[email protected]}
}}
\copyrightinfo{
Copyright is held by the author/owner(s).\\
This is a generic SIGCHI \LaTeX\ template sample.\\
The corresponding ACM copyright statement must be included.
}
\teaser{\rule{\textwidth}{6cm}} %Replace "\rule..." with \includegraphics[width=\textwidth]{picname}
\begin{document}
\maketitle\marginnote{\centering \rule{\marginparwidth}{6cm}} %analougus to \teaser
\begin{abstract}
In this sample we describe the formatting requirements for various SIGCHI related submissions XXXXX
\end{abstract}
\keywords
Guides, instructions, author's kit, conference publications
%Enter your keywords here
\category{H.5.m}{Information interfaces and presentation (e.g., HCI)}{Miscellaneous}.
See: \url{http://www.acm.org/about/class/1998/}
for help using the ACM Classification system.
\terms{Documentation, Standardization}
\section{XXXX}
\section{XXXX}
\clearpage
\lipsum
\end{document}
在这里,我也bibspacing
因为与上述相同的原因而禁用了它,并且也可能需要编译两次。