Skip to content
Snippets Groups Projects
Commit 930505bb authored by Jan Wille's avatar Jan Wille
Browse files

max width for headerelements and multiline (#7)

parent efa6b2a6
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
## [Current]
### Fixed
- `\ihead` and `\ohead` now have a max width and will break into multiple lines (#7)
## [1.4] - 2022-03-28
......
......@@ -168,15 +168,25 @@
%
%<*article|report>
%% header and footer
\pagestyle{scrheadings}
\clearpairofpagestyles
\newpagestyle{HsHheadings}{
{\parbox{\sls@headwidth}{\LaTeXraggedright\@title}}
{\parbox{\sls@headwidth}{\LaTeXraggedleft\leftmark}}
{
\parbox[b]{.45\sls@headwidth}{\LaTeXraggedright\@title}%
\hfill
\parbox[b]{.45\sls@headwidth}{\LaTeXraggedleft\headmark}%
}
(\textwidth,.1pt)
}{
{\pagemark}
{\hfill\pagemark}
{\hfill\pagemark}
}
\pagestyle{HsHheadings}
%<article>\automark{section}
%<report>\automark{chapter}
% Chaptertitles get same header/footer as everything:
%<report>\renewcommand*{\chapterpagestyle}{scrheadings}
\ohead{\headmark}
\ihead{\@title}
\ofoot*{\pagemark}
%<report>\renewcommand*{\chapterpagestyle}{HsHheadings}
%% floats
% positioning of floats
......
......@@ -119,12 +119,22 @@
\upsubscripts
%% header and footer
\pagestyle{scrheadings}
\clearpairofpagestyles
\newpagestyle{HsHheadings}{
{\parbox{\sls@headwidth}{\LaTeXraggedright\@title}}
{\parbox{\sls@headwidth}{\LaTeXraggedleft\leftmark}}
{
\parbox[b]{.45\sls@headwidth}{\LaTeXraggedright\@title}%
\hfill
\parbox[b]{.45\sls@headwidth}{\LaTeXraggedleft\headmark}%
}
(\textwidth,.1pt)
}{
{\pagemark}
{\hfill\pagemark}
{\hfill\pagemark}
}
\pagestyle{HsHheadings}
\automark{section}
\ohead{\headmark}
\ihead{\@title}
\ofoot*{\pagemark}
%% floats
\renewcommand{\fps@figure}{h!t}
......
......@@ -119,13 +119,23 @@
\upsubscripts
%% header and footer
\pagestyle{scrheadings}
\clearpairofpagestyles
\newpagestyle{HsHheadings}{
{\parbox{\sls@headwidth}{\LaTeXraggedright\@title}}
{\parbox{\sls@headwidth}{\LaTeXraggedleft\leftmark}}
{
\parbox[b]{.45\sls@headwidth}{\LaTeXraggedright\@title}%
\hfill
\parbox[b]{.45\sls@headwidth}{\LaTeXraggedleft\headmark}%
}
(\textwidth,.1pt)
}{
{\pagemark}
{\hfill\pagemark}
{\hfill\pagemark}
}
\pagestyle{HsHheadings}
\automark{chapter}
\renewcommand*{\chapterpagestyle}{scrheadings}
\ohead{\headmark}
\ihead{\@title}
\ofoot*{\pagemark}
\renewcommand*{\chapterpagestyle}{HsHheadings}
%% floats
\renewcommand{\fps@figure}{h!t}
......
No preview for this file type
......@@ -18,7 +18,7 @@
}
\titlehead{titlehead}
\subject{Subject}
\title{Title}
\title{long and elaborate title that just goes on and on witout stopping}
\subtitle{Subtitle}
\date{\today}
\professor{Professor}
......@@ -40,7 +40,7 @@
\cleardoublepage % unbedingt erforderlich bei Doppelseitigem layout vor neuer Seitennummerierung!
\pagenumbering{arabic} % Seitennummerierung normale zahlen
\chapter{one}
\chapter{very precice chapterheading with a bounch of important information}
\label{chap: one}
{\color{red}test} und stuff
\begin{figure}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment