Koma 抄寫本 -- 單面,左側為章節標記,右側為章節標記

Koma 抄寫本 -- 單面,左側為章節標記,右側為章節標記

我仍在努力使用左標記和右標記。看來左標記=右標記!

我正在嘗試列印chaptermark在標題左側和sectionmark左側。

微量元素:

\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}

相關內容