将会议标题添加到 ieeetran

将会议标题添加到 ieeetran

我只是要添加一个标题到我的ieeetran根据以下内容向我的文档添加标题鲁本的解决方案

但编译后没有添加任何标头。

这里是MWE

%% bare_conf.tex
%% V1.4b
%% 2015/08/26
\documentclass[conference]{IEEEtran}

\makeatletter

%%%%%%%%%%%for copyright notice
\def\ps@IEEEtitlepagestyle{%
    \def\@oddfoot{\mycopyrightnotice}%
    \def\@evenfoot{}%
}
\def\mycopyrightnotice{%
    {\footnotesize  978-1-4799-6773-5/14/\$31.00 \textcopyright2017 Crown\hfill}
    \gdef\mycopyrightnotice{}
}
%%%%%%%%%%%

\makeatletter
\newcommand{\algrule}[1][.2pt]{\par\vskip.5\baselineskip\hrule height #1\par\vskip.5\baselineskip}
\makeatother

\makeatletter
\newcommand*\titleheader[1]{\gdef\@titleheader{#1}}
\AtBeginDocument{%
    \let\st@red@title\@title
    \def\@title{%
        \bgroup\normalfont\large\centering\@titleheader\par\egroup
        \vskip1.5em\st@red@title}
}
\makeatother

\begin{document}

\title{X}
\titleheader{2017 IEEE 999999th International Something Conference}
\author{\IEEEauthorblockN{{X}
\IEEEauthorblockA{H}\\
J\\
I\\
Email: [email protected]}
}

\maketitle

\begin{abstract}

\end{abstract}

\IEEEpeerreviewmaketitle

\end{document}

答案1

的通常定义\title是定义\@title,因此即使有\AtBeginDocument{...}Ruben 的好主意,如果\title使用,它也会失败 \begin{document},因为再次\title 推翻。\@title

解决方案:使用\title\titleheader \begin{document}

%% bare_conf.tex
%% V1.4b
%% 2015/08/26
\documentclass[conference]{IEEEtran}

\makeatletter

%%%%%%%%%%%for copyright notice
\def\ps@IEEEtitlepagestyle{%
    \def\@oddfoot{\mycopyrightnotice}%
    \def\@evenfoot{}%
}
\def\mycopyrightnotice{%
    {\footnotesize  978-1-4799-6773-5/14/\$31.00 \textcopyright2017 Crown\hfill}
    \gdef\mycopyrightnotice{}
}
%%%%%%%%%%%

\makeatletter
\newcommand{\algrule}[1][.2pt]{\par\vskip.5\baselineskip\hrule height #1\par\vskip.5\baselineskip}
\makeatother

\makeatletter
\newcommand*\titleheader[1]{\gdef\@titleheader{#1}}
\AtBeginDocument{%
  \let\st@red@title\@title%
  \def\@title{%
    \bgroup\normalfont\large\centering\@titleheader\par\egroup
    \vskip1.5em\st@red@title}
}
\makeatother

\title{X}

\titleheader{2017 IEEE 999999th International Something Conference}

\begin{document}


%\makeatletter
%\meaning\@title
%\makeatother

\author{\IEEEauthorblockN{{X}
\IEEEauthorblockA{H}\\
J\\
I\\
Email: [email protected]}}


\maketitle

\begin{abstract}

\end{abstract}

\IEEEpeerreviewmaketitle

\end{document}

相关内容