From 519597f094750b96e7136fa4a4aa4995d5fcd35d Mon Sep 17 00:00:00 2001 From: TEC Date: Thu, 11 Nov 2021 16:24:22 +0800 Subject: [PATCH] Config: Add a header to the PDF --- config.org | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.org b/config.org index 64bd542..c645c44 100644 --- a/config.org +++ b/config.org @@ -16,6 +16,9 @@ #+startup: fold #+latex_class: book +#+latex_header: \usepackage[autooneside=false,automark,headsepline]{scrlayer-scrpage} +#+latex_header: \clearpairofpagestyles \renewcommand*{\chaptermarkformat}{} \renewcommand*{\sectionmarkformat}{} +#+latex_header: \ihead{\upshape\scshape\leftmark} \chead{\ifstr{\leftmark}{\rightmark}{}{\rightmark}} \ohead[\pagemark]{\pagemark} #+begin_export html