Skip to content
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

Useful features (MiniToc and header) #16

Closed
nikosantoniadis opened this issue Feb 2, 2021 · 2 comments
Closed

Useful features (MiniToc and header) #16

nikosantoniadis opened this issue Feb 2, 2021 · 2 comments

Comments

@nikosantoniadis
Copy link

nikosantoniadis commented Feb 2, 2021

Firstly, I'd like to thank you for your nice template.

As I've spend a lot of time to find these, useful for me, features I'd like to share my findings:

So, to show MiniToc in every chapter, you can use the solution from here

Adding a header in pages, excluding the beginning of each chapter, the solution taken from here, the header part in mimosis.cls should be changed as:

\usepackage[automark,headsepline,plainheadsepline]{scrlayer-scrpage}
\pagestyle{scrheadings}
\automark[section]{chapter}

\lehead*{\headmark}
\cehead{}
\rehead{\headmark}

\lohead{\headmark}
\cohead{}
\rohead*{\headmark}

\newpairofpagestyles[scrheadings]{chapter}{%
	\KOMAoptions{headsepline=false,plainheadsepline=false}%
	\ihead*{}%
	\ohead*{}%
}

\newpairofpagestyles[scrheadings]{part}{%
	\KOMAoptions{headsepline=false,plainheadsepline=false}%
	\ihead*{}%
	\ohead*{}%
}

\renewcommand*\chapterpagestyle{chapter}

\renewcommand*\partpagestyle{part}

Maybe you can create an option in your template if anyone would like to use these styles.

@Pseudomanifold
Copy link
Owner

Thanks for this contribution, it's awesome! For now, I'll document it as an extension to the template because I am not sure how easily I can integrate it as a separate option.

@Pseudomanifold
Copy link
Owner

(I added you as a contributor and updated the README accordingly!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants