如何插入页脚(版权和页码) IEEE 会议

如何插入页脚(版权和页码) IEEE 会议

我使用两个包来处理页脚:标准信函文档类(def)和(fancyhdr)。

我希望版权只能在右侧的第一页,页码从左侧的 11 开始。现在的结果是版权在第一页,但页码从第二页开始。尝试使用 fancy 都从第一页开始到最后一页。

有办法创建它吗?


\documentclass[conference]{IEEEtran}
\usepackage{cite}
\usepackage{mathtools}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{fancyhdr,lipsum} % fancy package
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
{\lstset{basicstyle=\scriptsize,xleftmargin=.04\textwidth,#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FooterLift
\makeatletter
\def\ps@IEEEtitlepagestyle{ % Standard Letter Document Class package 
    \def\@oddfoot{\mycopyrightnotice}
}
\def\mycopyrightnotice{
    {\footnotesize xxxxx~\copyright2019 IEEE\hfill}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FooterRight
\pagestyle{fancy}
\fancyhf{}
\fancyhead{} % clear all header fields
\fancyfoot{} % clear all footer fields
\setcounter{page}{11}
\fancyfoot[RO,LE]{\thepage}
\fancyfoot[LO,CE]{xxxxx~\copyright2019 IEEE}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

% \thispagestyle{firstPage}% 
\begin{document}
\begin{abstract}
LaTeX is a high-quality typesetting system
\end{abstract}
\end{document}

答案1

我假设您正在设置会议模板。否则,不要这样做。

\documentclass[conference]{IEEEtran}
\usepackage{cite}
\usepackage{mathtools}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{fancyhdr,lipsum} % fancy package
%\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
%T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
%{\lstset{basicstyle=\scriptsize,xleftmargin=.04\textwidth,#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FooterLift
\makeatletter
\def\ps@headings{% default to standard twoside headers, no footers
% will change later if the mode requires otherwise
\let\@oddhead\@empty
\let\@evenhead\@empty
\def\@oddfoot{\@IEEEheaderstyle\hfil\thepage}%
\def\@evenfoot{\@IEEEheaderstyle\thepage\hfil\hbox{}}% not used, oneside
}
\def\ps@IEEEtitlepagestyle{% default title page headers, no footers
\let\@oddhead\@empty
\let\@evenhead\@empty
\def\@oddfoot{\footnotesize xxxxx~\copyright2019 IEEE\hfill\thepage}%
\let\@evenfoot\@empty
}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%FooterRight

\pagestyle{headings}
\setcounter{page}{11}
\thispagestyle{IEEEtitlepagestyle}
\begin{document}

\begin{abstract}
LaTeX is a high-quality typesetting system
\end{abstract}

\lipsum[1-30]
\end{document}

答案2

从这个视频来看,https://www.youtube.com/watch?v=GDX2Y7jxuAA

复制下面的文本并粘贴到您的文件\begin{document}.tex

%%%%%for header%%%%%

\makeatletter
 \let\old@ps@headings\ps@headings
 \let\old@ps@IEEEtitlepagestyle\ps@IEEEtitlepagestyle
 \def\confheader#1{%
 % for all pages except the first
 \def\ps@headings{%
 \old@ps@headings%
 \def\@oddhead{\strut\hfill#1\hfill\strut}%
 \def\@evenhead{\strut\hfill#1\hfill\strut}%
 }%
 % for the first page
 \def\ps@IEEEtitlepagestyle{%
 \old@ps@IEEEtitlepagestyle%
 \def\@oddhead{\strut\hfill#1\hfill\strut}%
 \def\@evenhead{\strut\hfill#1\hfill\strut}%
 }%
 \ps@headings%
 }
 \makeatother

\confheader{%
 2017 Conference on Information and Communication Technology (CICT'17)
 }


%%%%%%%for footer%%%%%%%%%%%

 \usepackage[pscoord]{eso-pic}
\newcommand{\placetextbox}[3]{
 \setbox0=\hbox{#3}
 \AddToShipoutPictureFG*{ \put(\LenToUnit{#1\paperwidth},\LenToUnit{#2\paperheight}){\vtop{{\null}\makebox[0pt][c]{#3}}}
 }
 }
 \placetextbox{.23}{0.055}{\small{978-1-5386-1866-0/17/\$31.00~\copyright 2017 IEEE}}

相关内容