Page LayoutHeadings

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Isak Y
Posts: 12
Joined: Sat Jul 15, 2023 11:25 pm

Headings

Post by Isak Y »

Here there is all my code if it can help understanding my issues..
Attachments
Fiches MathSup (1).zip
(11.05 KiB) Downloaded 367 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Isak Y
Posts: 12
Joined: Sat Jul 15, 2023 11:25 pm

Headings

Post by Isak Y »

Once compiled i got this.
Attachments
Fiches_MathSup (6).pdf
(280.34 KiB) Downloaded 257 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Headings

Post by Stefan Kottwitz »

Ok, with that code I could test it. This puts the part title into the header:

Code: Select all

\let\Oldpart\part
\newcommand{\parttitle}{}
\renewcommand{\part}[1]{\Oldpart{#1}\renewcommand{\parttitle}{#1}}
\fancyhead[L]{\scriptsize \textsc{Partie \thepart. \parttitle}} % À changer
And this puts the numbering style on chapter start pages:

Code: Select all

\fancypagestyle{plain}{%
  \fancyhf{}% clear all header and footer fields
  \fancyfoot[C]{ $-$ \thepage  \ $-$}}
Stefan
LaTeX.org admin
Isak Y
Posts: 12
Joined: Sat Jul 15, 2023 11:25 pm

Headings

Post by Isak Y »

Oh perfect it works, last little issue, now I have the line in the header also on chapter and part pages like that :
And it annoys a bit, if it's possible to erase it ;)

Thank you so much,
Isak Y.
Attachments
cup.png
cup.png (4.13 KiB) Viewed 9264 times
cap.png
cap.png (27.11 KiB) Viewed 9264 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Headings

Post by Stefan Kottwitz »

No problem, modify above like this:

Code: Select all

\fancypagestyle{plain}{%
  \fancyhf{}% clear all header and footer fields
  \fancyfoot[C]{ $-$ \thepage  \ $-$}
  \renewcommand{\headrulewidth}{0pt}}
Stefan
LaTeX.org admin
Isak Y
Posts: 12
Joined: Sat Jul 15, 2023 11:25 pm

Headings

Post by Isak Y »

Thanks a lot for your time Mister, really.

Isak Y.
Post Reply