Skip to content

Commit

Permalink
Corrigida a formatação dos cabeçalhos das páginas.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbssousa committed Jan 18, 2025
1 parent 01ad720 commit 11d5c2e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/def-titles.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,23 @@
%\renewcommand{\thesubsection}{}
}

\NewDocumentCommand{\ubook}{D(){book} m}{%
\NewDocumentCommand{\ubook}{D(){book} m O{#2}}{%
\openright
\book*{#2}
\phantomsection
\addcontentsline{toc}{#1}{#2}
\chaptermark{#3}
}

\NewDocumentCommand{\upart}{D(){part} m}{%
\NewDocumentCommand{\upart}{D(){part} O{#2}}{%
\nopartblankpage
\begingroup
\let\cleardoublepage\relax
\part*{#2}
\endgroup
\phantomsection
\addcontentsline{toc}{#1}{#2}
\chaptermark{#3}
\openany
}

Expand All @@ -65,14 +67,13 @@
\endgroup
\phantomsection
\addcontentsline{toc}{#2}{#3}
\chaptermark{#5}
\sectionmark{#5}
}

\NewDocumentCommand{\usection}{D(){section} O{#3} m O{#3}}{%
\section*{#3}
\phantomsection
\addcontentsline{toc}{#1}{#3}
\sectionmark{#4}
}

\NewDocumentCommand{\usubsection}{D(){subsection} m}{%
Expand Down

0 comments on commit 11d5c2e

Please sign in to comment.