-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wielostronicowy spis treści ma "0. Spis treści" w rogu #26
Comments
eiti/eiti-thesis.cls @@ -197,11 +197,14 @@
\renewcommand{\sectionmark}[1]{
\markboth{#1}{#1}
}
+\newcommand{\fancyheadsec}{
+ \ifnum\value{section}=0 {} \else {\thesection.} \fi
+}
\fancyhead{}
\fancyheadoffset{0cm}
-\fancyhead[RO]{\nouppercase{\thesection.\hspace{8pt}\leftmark}}
-\fancyhead[LE]{\nouppercase{\thesection.\hspace{8pt}\leftmark}}
+\fancyhead[RO]{\nouppercase{\fancyheadsec\hspace{8pt}\leftmark}}
+\fancyhead[LE]{\nouppercase{\fancyheadsec\hspace{8pt}\leftmark}}
\fancyfoot{}
\fancyfoot[LE,RO]{\thepage}
skutkuje tym: Po wrzuceniu |
Zakładając że bibliografia albo inne spisy bez numeru zajmą więcej niż stronę, ich numery chyba też trzeba będzie dołączyć. Jeśli ktoś ma pomysł jak zawrzeć wszystkie sekcji bez numerów w jednym wyrażeniu warunkowym. chętnie o tym usłyszę. A jeśli chcesz wyłączyć całkowicie nagłówek, trzeba by pewnie sparametryzować |
@marcullo Lepiej chyba jest nadpisać domyślny styl, a następnie przełączać sobie styl strony w dowolnym miejscu, wedle uznania: main.tex: Mamy zatem dwa style: \pagestyle{plain} bez nagłówka oraz \pagestyle{headings} z nagłówkami. Styl plain ustawiłem dla spisu treści oraz spisów na końcu, a styl headings - w pozostałych miejscach. |
Wielostronicowy spis treści ma "0. Spis treści" w rogu.
Czy da się to w jakiś sposób wyłączyć?
The text was updated successfully, but these errors were encountered: