summaryrefslogtreecommitdiffstats
path: root/common/rtemsstyle.sty
diff options
context:
space:
mode:
Diffstat (limited to 'common/rtemsstyle.sty')
-rw-r--r--common/rtemsstyle.sty4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rtemsstyle.sty b/common/rtemsstyle.sty
index 8f963c4..96313f1 100644
--- a/common/rtemsstyle.sty
+++ b/common/rtemsstyle.sty
@@ -61,10 +61,10 @@ gobble=0,
\fancypagestyle{normal}{
\fancyhf{}
\fancyfoot[LE,RO]{{\thepage}}
- \fancyfoot[LO]{{\nouppercase{\rightmark}}}
+ \fancyfoot[LO]{{\ifnum\value{chapter}>0{\nouppercase{\rightmark}}\fi}}
\fancyfoot[RE]{{\nouppercase{\leftmark}}}
\fancyhead[LE,RO]{{\@title, \py@release}}
- \fancyhead[RE,LO]{{\chaptername\:\thechapter\:Section\:\thesection}}
+ \fancyhead[RE,LO]{{\ifnum\value{chapter}>0{\chaptername\:\thechapter\:Section\:\thesection}\fi}}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
}