Koma スクラップブック - 片面、左側に章マーク、右側にセクションマーク

Koma スクラップブック - 片面、左側に章マーク、右側にセクションマーク

私はまだ leftmark と rightmark の使い方に苦労しています。leftmark = rightmark のようです!

chaptermarkヘッダーの左側に、sectionmark左側に印刷しようとしています。

MWE:

\documentclass[a4paper, oneside, 12pt, parskip=half]{scrbook}

\usepackage[a4paper,
  vmargin=2cm, hmargin=2cm, % page margins
  includehead, includefoot, % Margins calculated include header and footer
  footskip=2em]
{geometry}

\usepackage[footsepline=0.25pt, headsepline=0.25pt, automark]{scrlayer-scrpage}

% automark places chapter/section title in header. Also enables placement in footer.
\automark[section]{chapter}

\usepackage{lastpage}

\ohead{\rightmark}

% Footer content
\cfoot{\tiny{Page \thepage \ of  \pageref*{LastPage} \\
\leftmark}}

\usepackage{lipsum}

\begin{document}

\chapter{Chap One}

\lipsum[1]

\section{Sec One.One}

\lipsum[2-5]

\section{Sec One.Two}

\lipsum[6-10]

\chapter{Chap Two}

\lipsum[11-15]

\end{document}

答え1

autooneside=falseパッケージオプションに追加:

\documentclass[a4paper, oneside, 12pt, parskip=half]{scrbook}

\usepackage[
  margin=2cm, % page margins
  includeheadfoot, % Margins calculated include header and footer
  footskip=2em]
{geometry}

\usepackage[
  footsepline=0.25pt, headsepline=0.25pt,
  automark,
  autooneside=false% <- added
]{scrlayer-scrpage}
\chead{}
\ohead{\rightmark}

% Footer content
\cfoot{Page \thepage\ of \pageref{LastPage}\\\leftmark}
\addtokomafont{pagefoot}{\tiny}

\usepackage{lastpage}
\usepackage{lipsum}

\begin{document}
\chapter{Chap One}
\lipsum[1]
\section{Sec One.One}
\lipsum[2-5]
\section{Sec One.Two}
\lipsum[6-10]
\chapter{Chap Two}
\lipsum[11-15]
\end{document}

ここに画像の説明を入力してください

ここに画像の説明を入力してください

あるいは、次のようなことをしたいかもしれません:

ここに画像の説明を入力してください

\usepackage[
  footsepline=0.25pt, headsepline=0.25pt,
  automark,
  autooneside=false% <- added
]{scrlayer-scrpage}
\chead{}
\ihead{\leftmark}
\ohead{\rightmark}

関連情報