2010-06-02 93 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}