自定义经典论文的页眉

自定义经典论文的页眉

我正在尝试自定义我的论文的标题,classic thesis但我不知道如何获得以下结果:

  • 左页:左侧为页码,中间​​为当前章节的标题;
  • 右页:右侧为页码,中间​​为当前章节的标题。

这是我的序言:

`% book example for classicthesis.sty
\documentclass[11pt,a4paper,footinclude=true,headinclude=true]{scrbook} % KOMA-Script book
\usepackage[T1]{fontenc}   
\usepackage[applemac]{inputenc}    
\usepackage[frenchb]{babel}
\usepackage{setspace} 
\usepackage{hyperref} 
\usepackage{epigraph} 
\usepackage[tight,french]{minitoc}
\usepackage{apacite}
\usepackage{lipsum}
\usepackage[parts,pdfspacing,dottedtoc,eulerchapternumbers]{../classicthesis} %,manychapters
%\usepackage[osf]{libertine}
\usepackage{epigraph}
\renewcommand\textflush{flushright}

\usepackage{etoolbox}
\makeatletter
\newlength\epitextskip
\pretocmd{\@epitext}{\em}{}{}
\apptocmd{\@epitext}{\em}{}{}
\patchcmd{\epigraph}{\@epitext{#1}\\}{\@epitext{#1}\\[\epitextskip]}{}{}
\makeatother

\setlength\epigraphrule{0pt}
\setlength\epitextskip{2ex}
\setlength\epigraphwidth{.8\textwidth}

\FrenchFootnotes
\usepackage{amsthm}
\usepackage{lineno}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}
\AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}}
\frontmatter


%%%%%%%%%%%%%%%%%%%%%%%modifie la taille des numéros de     chapitres%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifthenelse{\boolean{@eulerchapternumbers}}% font for the chapter numbers
{\newcommand\mychapterNumber{\fontencoding{U}\fontfamily{eur}\fontseries{b}\fontsize{28}  {29}\selectfont}}%
{\newcommand\mychapterNumber{\fontencoding{T1}\fontfamily{pplj}\fontsize{25}{26}\selectfont}}

\ifthenelse{\boolean{@linedheaders}}%
{%
\titleformat{\chapter}[block]%
    {\relax}{\titlerule\vspace*{.9\baselineskip}\\\raggedleft{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}%
    {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
}{%
\titleformat{\chapter}[block]%
    {\relax}{{\color{halfgray}\mychapterNumber\thechapter}}{1.2em}%
    {\raggedright\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]%
    }

    \begin{document}

%   \pagestyle{scrheadings}
%   \manualmark
%   \markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}

\pagestyle{scrheadings}`

这是我所寻找的观点:在此处输入图片描述

你能帮我做那件事吗?

答案1

在法语中,\leftmark似乎在右页, 而\rightmark在左页。

我们应该记住,classicthesis仍然使用现已过时的包scrpage2。对于其后继者scrlayer-scrpage,以下命令保持不变。

\ohead{\pagemark}%page on the outside
\cehead{\rightmark}%rightmark on even/left pages
\cohead{\leftmark}%leftmark on odd/right pages

相关内容