在编译 IEEE 访问文件的 latex 模板时,它会强制将每页底部的内容设置为“第 4 卷,2016 年”。我该如何更改?请参阅下面的代码:
\documentclass{ieeeaccess}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{textcomp}
\usepackage{subfig}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 2019.}
\doi{10.1109/ACCESS.2019.DOI}
\title{BLA}
\author{\uppercase{R D}\authorrefmark{1}, \IEEEmembership{Senior Member, IEEE}}
\address[1]{BLA)}
\tfootnote{This work was supported in part by CMC Microsystems for the provision of software tools.}
\markboth
{R.D \headeretal: BLA}
{R.D \headeretal: BLA}
\corresp{Corresponding author: RD (e-mail: BLA).}
\begin{abstract}
BLA
\end{abstract}
%...etc
\end{document}
答案1
年份值在类中是硬编码的,这有点奇怪。但是,您可以使用包修补页脚命令etoolbox
以插入自定义宏。音量通过定义来控制\thevol
,无需修补即可工作。
梅威瑟:
\documentclass{ieeeaccess}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{textcomp}
\usepackage{subfig}
\usepackage{etoolbox}
%%% Define variable values
\def\thevol{3}
\def\myyear{2019}
%%% Patch the footer commands
\makeatletter
\patchcmd{\@evenfoot}{2016}{\myyear}{}{}
\patchcmd{\@oddfoot}{2016}{\myyear}{}{}
\makeatother
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\history{Date of publication xxxx 00, 0000, date of current version xxxx 00, 2019.}
\doi{10.1109/ACCESS.2019.DOI}
\title{BLA}
\author{\uppercase{R D}\authorrefmark{1}, \IEEEmembership{Senior Member, IEEE}}
\address[1]{BLA)}
\tfootnote{This work was supported in part by CMC Microsystems for the provision of software tools.}
\markboth
{R.D \headeretal: BLA}
{R.D \headeretal: BLA}
\corresp{Corresponding author: RD (e-mail: BLA).}
\begin{abstract}
BLA
\end{abstract}
abc
\EOD
\end{document}
结果:
答案2
您可以在 tex 文件中轻松地重新定义体积和年份,如下所示:
\renewcommand{\thevol}{15}
\renewcommand{\theyear}{2020}
然而,年份可能不会改变,因为 IEEE 访问样式类ieeeaccess.cls
错误地使用了硬编码年份而不是使用此\theyear
变量。
在这种情况下,您可以在文件中找到 2016 一词ieeeaccess.cls
并将其替换为\theyear
。但不要更改文件\def\theyear{2016}
中的行ieeeaccess.cls
:)
答案3
在 \begin{document} 标签之前添加以下代码。它对我来说编译得很完美。以下代码获得的输出如下图所示:
这里我们没有更改期刊的卷数。这应该由期刊的编辑团队更改。但是,可以更改最新年份,因为前几年没有当前卷数。
% FIX FOR ADDING CORRECT VOLUME AND YEAR AS IEEE ACCESS DEFAULT FORMAT IS SHOWING VOLUME 6, 2016. THE VOLUME XX NEEDS TO BE CHANGED TO THE CURRENT VOLUME IN THE BELOW LINE
% FIX for VOLUME AND YEAR STARTS HERE
\def\THEYEAR{2022}
\gdef\thevol{XX}
\makeatletter
\ifjtehm
\def\headerlogo{\raisebox{-2pt}{\includegraphics[width=7.61pc]{jtehmLogo.png}}}
\def\ps@titlepage{%
\def\@oddhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]{\raisebox{5pt}%
{{\titlepageheaderfont\color{accessblue}\headName}}}%
\hfill\headerlogo\mbox{}\vspace*{-3.5mm}\par\rule{30.54pc}{.3pt}}}
\def\@evenhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]\mbox{}\headerlogo%
\hfill{\raisebox{5pt}{{\titlepageheaderfont\color{accessblue}\headName}}}%
\vspace*{-3.5mm}\par\mbox{}\hfill\rule{30.54pc}{.3pt}}}
\def\@oddfoot{\raisebox{3pt}{%%
\hbox to 0pc{\hbox to \textwidth{{\footervolfont VOLUME\ \thevol, \THEYEAR}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont\@pubid}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footerpagefont\@artnum}}}%\hspace*{1.8pc}
}}
\def\@evenfoot{\raisebox{3pt}{%
\hbox to 0pc{\hbox to \textwidth{{\footerpagefont\@artnum}}\hfill\mbox{}}\hspace*{1.8pc}%\hspace*{-1.8pc}
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont\@pubid}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont VOLUME\ \thevol, \THEYEAR}}}%
}}
}
% normal page
\def\ps@headings{%
\def\@oddhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]{\raisebox{5pt}%
{\headerfont\rightmark}}\hfill\headerlogo\mbox{}\vspace*{-3.55mm}\par%
\rule{30.54pc}{.3pt}}}
\def\@evenhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]\mbox{}%
\headerlogo\hfill{\raisebox{5pt}{\headerfont\leftmark}}\vspace*{-3.55mm}\par%
\mbox{}\hfill\rule{30.54pc}{.3pt}}}
\def\@oddfoot{\raisebox{8pt}{%
\hbox to 0pc{\hbox to \textwidth{{\footervolfont VOLUME\ \thevol, \THEYEAR}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footerpagefont\@artnum}}}%\hspace*{1.8pc}
}}
\def\@evenfoot{\raisebox{8pt}{%
\hbox to 0pc{\hbox to \textwidth{{\footerpagefont\@artnum}\mbox{}\hfill}}%\hspace*{1.8pc}%\hspace*{-1.8pc}
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont VOLUME\ \thevol, \THEYEAR}}}%
}}
}
\else
\def\headerlogo{\raisebox{-2pt}{\includegraphics[width=7.61pc]{Logo.png}}}
\def\headerlogoall{\raisebox{-2pt}{\includegraphics[width=7.61pc]{notaglineLogo.png}}}
\def\ps@titlepage{%
\def\@oddhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]\mbox{}\nheaderfont\color{accessblue}\headName\hfill\headerlogo{\raisebox{-2pt}{\,}}\color{black}\vspace*{-1.5mm}\par\hrulefill}}
\def\@evenhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]\mbox{}\headerlogo\hfill\nheaderfont\color{accessblue}\headName{\raisebox{-2pt}{\,}}\color{black}\vspace*{-1.5mm}\par\hrulefill}}
\def\@oddfoot{\raisebox{3pt}{%%
\hbox to 0pc{\hbox to \textwidth{{\footervolfont VOLUME\ \thevol, \THEYEAR}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont\@pubid}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footerpagefont\thepage}}}%\hspace*{1.8pc}
}}
\def\@evenfoot{\raisebox{3pt}{%
\hbox to 0pc{\hbox to \textwidth{{\footerpagefont\thepage}\hfill}\mbox{}}\hspace*{1.8pc}%\hspace*{1.8pc}
\hspace*{-1.8pc}\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont\@pubid}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont VOLUME\ \thevol, \THEYEAR}}}\hspace*{1.8pc}% [updated here]
}}
}
% normal page
\def\ps@headings{%
\def\@oddhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]{\raisebox{-2pt}{\headerfont\rightmark}}\hfill\headerlogoall\mbox{}\vspace*{-1.5mm}\par\hrulefill}}
\def\@evenhead{\parbox[t]{\textwidth}{\mbox{}\\[-6.3mm]\mbox{}\headerlogoall\hfill{\raisebox{-2pt}{\headerfont\leftmark}}\vspace*{-1.5mm}\par\hrulefill}}
\def\@oddfoot{\raisebox{8pt}{%
\hbox to 0pc{\hbox to \textwidth{{\footervolfont VOLUME\ \thevol, \THEYEAR}\hfill\mbox{}}}%
\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footerpagefont\thepage}}}%\hspace*{1.8pc}
}}
\def\@evenfoot{\raisebox{8pt}{%
\hbox to 0pc{\hbox to \textwidth{{\footerpagefont\thepage}\mbox{}\hfill}}\hspace*{1.8pc}%\hspace*{-1.8pc}
\hspace*{-1.8pc}\hbox to 0pc{\hbox to \textwidth{\mbox{}\hfill{\footervolfont VOLUME\ \thevol, \THEYEAR}}}\hspace*{1.8pc}% [updated here]
}}
}
\fi
\pagestyle{headings}
\makeatother
% FIX for VOLUME AND YEAR END HERE
答案4
打开latex class ieeeaccess,找到2016,改成2020