2010-06-02 48 views
1

我正在使用IEEETrans.cls格式化我的论文。现在我需要在每个页面的右上角添加会议的名称。如何编写LaTeX标题

有人可以告诉我该怎么做吗?

+1

您可以找到[TeX的StackExchange]整个社区(http://tex.stackexchange.com/),在没有TEX相关的问题是太小。 – 2011-01-24 17:34:25

回答

3

我认为格式化页眉和页脚的最全面的方法是fancyhdr包。

\usepackage{fancyhdr} 
\pagestyle{fancy} 
\rhead{THX 1138} 

您可能需要查找的文档获取页眉和页脚的其余像你想要的。

+0

我只是添加链接到fancyhdr手册:http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr/fancyhdr.pdf – Crowley 2010-06-02 11:24:50

0

IEEEtran集合的作者在其website上维护了全面的FAQ部分,包括如何禁用和自定义页眉和页脚。

1

我有一个类似的问题,准备会议的相机准备版本。该指令是把

  1. 中心的会议名称标头中的所有页面

  2. 程序ID和IEEE版权的标题页的页脚留在所有剩余页面

  3. 页码为中心页脚

我使用的衍生自Michael Shell的website的胶乳代码如下所示。把它放在正上方的\ {开始}文件

\newcommand{\MYfooter}{\smash{ 
\hfil\parbox[t][\height][t]{\textwidth}{\centering 
\thepage}\hfil\hbox{}}} 

\makeatletter 

% normal pages 
\def\[email protected]{% 
\def\@oddhead{\parbox[t][\height][t]{\textwidth}{\centering 
14-th IEEE International Conference on Your conference\\ 
\noindent\makebox[\linewidth]{\rule{\textwidth}{0.4pt}} 
}\hfil\hbox{}}% 

\def\@evenhead{\parbox[t][\height][t]{\textwidth}{\centering 
14-th IEEE International Conference on Peer-to-Peer Computing\\ 
\noindent\makebox[\linewidth]{\rule{\textwidth}{0.4pt}} 
}\hfil\hbox{}}% 

\def\@oddfoot{\MYfooter}% 
\def\@evenfoot{\MYfooter}} 

% title page 
\def\[email protected]{% 
\def\@oddhead{\parbox[t][\height][t]{\textwidth}{\centering 
14-th IEEE International Conference on Your conference\\ 
\noindent\makebox[\linewidth]{\rule{\textwidth}{0.4pt}} 
}\hfil\hbox{}}% 
\def\@evenhead{\scriptsize\thepage \hfil \leftmark\mbox{}}% 
\def\@oddfoot{ 123-123-123-123/14/\$31.00 \textcopyright 2014 IEEE \hfil 
\leftmark\mbox{}}% 
\def\@evenfoot{\MYfooter}} 

\makeatother 
% make changes take effect 
\pagestyle{headings} 
% adjust as needed 
\addtolength{\footskip}{0\baselineskip} 
\addtolength{\textheight}{-1\baselineskip}