Hidden section in header

This question already has an answer here:

  • How to get the name of unnumbered section into headings? 2 answers

My problem is that I don't know how to include \section*{Some Title} in \rightmark. Currently \rightmark is working fine for all types of pages e.g. list of figures, list of tables, table of content etc. But when there is a page wiith \section*{Some Title}, \rightmark is empty.

Any suggestions how to solve my problem?

MWE:

\documentclass[a4paper,listof=totoc,bibliography=totoc]{scratcl}  \usepackage[headsepline,automark]{scrlayer-scrpage} \clearpairofpagestyles \ihead{Musterhausarbeit\\ \rightmark{} \\ \markboth{#1}{#1}} \ofoot{\thepage}  \renewcommand*{\titlepagestyle}{empty}  \addtokomafont{section}{\clearpage}  \begin{document}     \tableofcontents     \newpage      \listoffigures     \newpage      \listoftables     \newpage      \section*{Some title}     \addcontentsline{toc}{section}{Some title}     \newpage      \section{Some more title} \end{document} 

Replay

Like inserting the ToC entry manually, add the right mark manually using

\section*{Some title}
\addcontentsline{toc}{section}{Some title}
\markright{Some title}

or via \markboth{<left>}{<right>}.

This process can be automated if needed.

Category: sectioning Time: 2016-07-28 Views: 1

Related post

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development

search

Front-end development

Database

development tools

Open Platform

Javascript development

.NET development

cloud computing

server

Copyright (C) avrocks.com, All Rights Reserved.

processed in 0.237 (s). 12 q(s)