![在作者单位下方和摘要上方放置一张两栏图片](https://linux22.com/image/279720/%E5%9C%A8%E4%BD%9C%E8%80%85%E5%8D%95%E4%BD%8D%E4%B8%8B%E6%96%B9%E5%92%8C%E6%91%98%E8%A6%81%E4%B8%8A%E6%96%B9%E6%94%BE%E7%BD%AE%E4%B8%80%E5%BC%A0%E4%B8%A4%E6%A0%8F%E5%9B%BE%E7%89%87.png)
我一直在搜索类似的问题,但没有一个对我有用。基本上,我正在写一篇两栏会议论文,其中有现有的模板,我想要的很简单,就是将一张图片横跨两列,放在作者所属机构的正下方和摘要的上方,我尝试过应用,figure*
但无论我放置代码片段,图片都会被推到第二页。这是我目前得到的结果:
\documentclass{sigchi}
\pagenumbering{arabic}
% Load basic packages
\usepackage{balance} % to better equalize the last page
\usepackage{graphics} % for EPS, load graphicx instead
\usepackage{times} % comment if you want LaTeX's default font
\usepackage{url} % llt: nicely formatted URLs
% llt: Define a global style for URLs, rather that the default one
\makeatletter
\def\url@leostyle{%
\@ifundefined{selectfont}{\def\UrlFont{\sf}}{\def\UrlFont{\small\bf\ttfamily}}}
\makeatother
\urlstyle{leo}
% To make various LaTeX processors do the right thing with page size.
\def\pprw{8.5in}
\def\pprh{11in}
\special{papersize=\pprw,\pprh}
\setlength{\paperwidth}{\pprw}
\setlength{\paperheight}{\pprh}
\setlength{\pdfpagewidth}{\pprw}
\setlength{\pdfpageheight}{\pprh}
\usepackage[pdftex]{hyperref}
\hypersetup{
pdftitle={SIGCHI Conference Proceedings Format},
pdfauthor={LaTeX},
pdfkeywords={SIGCHI, proceedings, archival format},
bookmarksnumbered,
pdfstartview={FitH},
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black,
breaklinks=true,
}
% create a shortcut to typeset table headings
\newcommand\tabhead[1]{\small\textbf{#1}}
% End of preamble. Here it comes the document.
\begin{document}
\title{SIGCHI Conference Proceedings Format}
\numberofauthors{3}
\author{
\alignauthor 1st Author Name\\
\affaddr{Affiliation}\\
\affaddr{Address}\\
\email{e-mail address}\\
\affaddr{Optional phone number}
\alignauthor 2nd Author Name\\
\affaddr{Affiliation}\\
\affaddr{Address}\\
\email{e-mail address}\\
\affaddr{Optional phone number}
}
\maketitle
\begin{figure*}[tp]
\includegraphics[width=1.5\columnwidth]{1}
\caption{With Caption Below, be sure to have a good resolution image
(see item D within the preparation instructions).}
\label{fig:figure1}
\end{figure*}
\begin{abstract}
In this paper we describe the formatting requirements for
SIGCHI Conference Proceedings, and this sample file
offers recommendations on writing for the worldwide
SIGCHI readership. Please review this document even if
you have submitted to SIGCHI conferences before, some
format details have changed relative to previous years.
\end{abstract}
\end{document}
有人能帮忙吗?非常感谢!!
答案1
这是双列文档的默认行为figure*
。您必须避免这种情况。
任何地方前调用\maketitle
,添加以下内容(替换example-image
为您的图像,包括\includegraphics
参数):
\makeatletter
\let\@oldmaketitle\@maketitle% Store \@maketitle
\renewcommand{\@maketitle}{\@oldmaketitle% Update \@maketitle to insert...
\includegraphics[width=\linewidth,height=4\baselineskip]
{example-image}\bigskip}% ... an image
\makeatother
上面的代码将图像作为\@maketitle
(末尾)的一部分插入,该图像在\twocolumn
模式中设置为标题的一部分。使用 documentclasssigchi.cls
,它会显示以下输出:
答案2
一个例子:
\documentclass[10pt,twocolumn,letterpaper]{article}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{lipsum}
\begin{document}
\title{\LaTeX Title}
\author{First Author\\
Institution1\\
Institution1 address\\
{\tt\small [email protected]}
}
\twocolumn[{
\maketitle
\begin{center}
\captionsetup{type=figure}
\includegraphics[width=.5\textwidth]{example-image}
\captionof{figure}{Test caption}
\end{center}
}]
\begin{abstract}
\lipsum[1] % Replace with your real text
\end{abstract}
\end{document}