页眉/页脚和 is​​ov2 文档类

页眉/页脚和 is​​ov2 文档类

我目前正在使用异戊醇文档类。我希望每页都有页眉/页脚(从偶数到奇数不等)。我正在使用 fancyhdr 包中的当前代码。

% Header and Footer
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead{} % clear all header fields
\fancyhead[LE,RO]{\uppercase{ISO/IEEE 11073-10201:2013(E)}}
\fancyhead[RE]{\tiny{\uppercase{Health informatics --- Point-of-care medical device communication}}} % will need to resize later (NOT to tiny)
\fancyhead[LO]{\uppercase{Part 10201: Domain information model}}
\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{Copyright \textcopyright $\;$ 2013 ISO/IEEE. All rights reserved.}
%\fancyfoot[CO,RE]{To: Dean A. Smith}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

但是,我注意到页眉和页脚都只出现在标题页之前的页面上。它们在前几页之后“消失”。我尝试从文档类中删除选项,但没有帮助。我也查看了 iso 类 PDF,但找不到解决方案。下面包含一个 MWE。谢谢。

\documentclass[draft,wd,letterpaper]{isov2}
\let\ifpdf\relax 

% Header and Footer
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead{} % clear all header fields
\fancyhead[LE,RO]{\uppercase{ISO/IEEE 11073-10201:2013(E)}}
\fancyhead[RE]{\tiny{\uppercase{Health informatics --- Point-of-care medical device communication}}}
\fancyhead[LO]{\uppercase{Part 10201: Domain information model}}
\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{Copyright \textcopyright $\;$ 2013 ISO/IEEE. All rights reserved.}
%\fancyfoot[CO,RE]{To: Dean A. Smith}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}


\standard{ISO/IEEE 11073-10201}
\yearofedition{2013}
\languageofedition{(E)}
\setcounter{tocdepth}{3}     % ToC includes ssclauses and above

\usepackage{lipsum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\clause{Before Title}
Words before Title
\title{Example Document}{}{}

\newpage
\tableofcontents

\clause{Hello}\lipsum
\sclause{Little}\lipsum
\clause{Second}\lipsum

\end{document}

答案1

此外emptyisov2该类使用三种定义的页面样式:startpageisotitleheadheadings:在每个页面上激活页眉/页脚的最简单方法是将\let这些样式(或其中一些,取决于您想要保留标准样式的页面)设置为您的fancyplain样式,使用

\makeatletter
\let\ps@headings\ps@fancyplain
\let\ps@isotitlehead\ps@fancyplain
\let\ps@startpage\ps@fancyplain
\makeatother

完整示例:

\documentclass[draft,wd,letterpaper]{isov2}
\let\ifpdf\relax 

% Header and Footer
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead{} % clear all header fields
\fancyhead[LE,RO]{\uppercase{ISO/IEEE 11073-10201:2013(E)}}
\fancyhead[RE]{\tiny{\uppercase{Health informatics --- Point-of-care medical device communication}}}
\fancyhead[LO]{\uppercase{Part 10201: Domain information model}}
\fancyfoot{} % clear all footer fields
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[LO,RE]{Copyright \textcopyright $\;$ 2013 ISO/IEEE. All rights reserved.}
%\fancyfoot[CO,RE]{To: Dean A. Smith}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}

\makeatletter
\let\ps@headings\ps@fancyplain
\let\ps@isotitlehead\ps@fancyplain
\let\ps@startpage\ps@fancyplain
\makeatother

\standard{ISO/IEEE 11073-10201}
\yearofedition{2013}
\languageofedition{(E)}
\setcounter{tocdepth}{3}     % ToC includes ssclauses and above

\usepackage{lipsum}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\clause{Before Title}
Words before Title
\title{Example Document}{}{}

\newpage
\tableofcontents

\clause{Hello}\lipsum
\sclause{Little}\lipsum
\clause{Second}\lipsum

\end{document}

相关内容