如何才能将会议标题、日期和地点仅添加到 IEEE 会议论文源文档第一页(标题页)的右上角(字体大小为 9pt)?它看起来像这样:
IEEE PEDS 2015, Sydney, Australia 9 – 12 June 2015
答案1
您可以使用eso-pic
(或类似的,例如tikz
)并放置文本。
\usepackage{eso-pic}
\newcommand\AtPageUpperMyright[1]{\AtPageUpperLeft{%
\put(\LenToUnit{0.5\paperwidth},\LenToUnit{-1cm}){%
\parbox{0.5\textwidth}{\raggedleft\fontsize{9}{11}\selectfont #1}}%
}}%
\newcommand{\conf}[1]{%
\AddToShipoutPictureBG*{%
\AtPageUpperMyright{#1}
}
}
然后像使用它一样
\maketitle
\conf{IEEE PEDS 2015, Sydney, Australia 9 – 12 June 2015}
完整代码:
\documentclass[conference]{IEEEtran}
\usepackage{blindtext}
\usepackage{eso-pic}
\title{Sample paper}
\author{\IEEEauthorblockN{author 1\\ Department 1}%
%\IEEEauthorblockA{}
\and
\IEEEauthorblockN{author 2\\ Department 2}
\IEEEauthorblockA{Institution/university \\
mail1,mail2,mail3,mail4} \and
\IEEEauthorblockN{author 3\\ Department 3}
%\IEEEauthorblockA{}
}
\usepackage{eso-pic}
\newcommand\AtPageUpperMyright[1]{\AtPageUpperLeft{%
\put(\LenToUnit{0.5\paperwidth},\LenToUnit{-1cm}){%
\parbox{0.5\textwidth}{\raggedleft\fontsize{9}{11}\selectfont #1}}%
}}%
\newcommand{\conf}[1]{%
\AddToShipoutPictureBG*{%
\AtPageUpperMyright{#1}
}
}
\begin{document}
\maketitle
\conf{IEEE PEDS 2015, Sydney, Australia 9 – 12 June 2015}
\begin{abstract}
We propose ...
\end{abstract}
\begin{IEEEkeywords}
Broad band networks, quality of service, WDM.
\end{IEEEkeywords}
\Blinddocument
\end{document}
答案2
为什么不采用简单而又花哨的标题呢?
\documentclass[conference]{IEEEtran}
\usepackage{blindtext}
\usepackage{fancyhdr}
\rhead{
\sffamily\fontsize{9}{12}\selectfont
IEEE PEDS 2015, Sydney, Australia 9 – 12 June 2015}
\renewcommand{\headrulewidth}{0pt}
\begin{document}
\title{The title}
\author{The author}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
\blindtext
\end{abstract}
\begin{IEEEkeywords}
Lore ipsum, sample, fancyhdr
\end{IEEEkeywords}
\Blinddocument
\end{document}