在 scrbook 中交替显示页码

在 scrbook 中交替显示页码

我刚刚意识到,用 编写的文档scrbook并非每页都有页码,这种行为对我来说看起来很奇怪:我的文档主要由包含该\include命令的章节组成。页码不是每页都有,也不是交替的:写了数字 5、8、12,但没有 6、7、9、10、11。我还引入了一些虚假的\chapter; 在这种情况下,页码在所有页面上都有。这似乎是由于命令而导致的\include问题

这是我的 MWE 和完整序言。

\documentclass[chapterprefix=true,oneside,bibliography=leveldown]{scrbook}

\setcounter{secnumdepth}{0}
\usepackage[table]{xcolor}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{textcomp}
\usepackage{indentfirst}
\usepackage{times}
\usepackage{mathptmx}
\usepackage{setspace}
\usepackage{tikz}%per la flowchart
\usetikzlibrary{positioning,chains}
\doublespacing
\usepackage{caption}  %per aggiungere captions al PRISMA ed evitare il floating delle tavole
\usepackage{booktabs} % For prettier tables
\usepackage{subfig} %per figure multiple


\usepackage{amsmath}%aggiunto per le tabelle dell'appendice
\usepackage{amssymb,amsfonts,textcomp}%aggiunto per le tabelle dell'appendice


\usepackage[style=vancouver,citestyle=numeric-comp,sorting=none,isbn=false,url=false,eprint=false, doi=false]{biblatex}

%\usepackage[italian]{babel}
\usepackage{color}
\usepackage{array}
%\usepackage{supertabular}
\usepackage{hhline}
\usepackage{pdfpages}%per inserire pdf multipagina
\usepackage{tabularray}
%\usepackage{graphicx}
\usepackage{pdflscape}
\usepackage{longtable}
\usepackage{rotating}
\usepackage{multicol}%multicolonna
\usepackage{enumitem}%mi serve per gli elenchi semza punto
\usepackage{datatool}
\usepackage{lipsum}
\usepackage{hyperref}
\hypersetup{pdftex, colorlinks=true, linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue, pdftitle=, pdfauthor=, pdfsubject=, pdfkeywords=}%toglie i riquadri rossi intorno a hyperlinks come toc e citazioni e ne ridefinisce alcuni in blu


% Text styles
\newcommand\textstyleEmphasis[1]{\textit{#1}}
\makeatletter
\newcommand\arraybslash{\let\\\@arraycr}
\makeatother

\makeatletter
\newcommand\ps@Standard{
    \renewcommand\@oddhead{}
    \renewcommand\@evenhead{}
    \renewcommand\@oddfoot{}
    \renewcommand\@evenfoot{}
    \renewcommand\thepage{\arabic{page}}
}
\makeatother
\pagestyle{Standard}
\setlength\tabcolsep{1mm}
\renewcommand\arraystretch{1.3}
%qui finisce l'ultima aggiunta

%per ordinare alfabeticamente le abbreviazioni
\newcommand{\sortitem}[2]{%
    \DTLnewrow{list}%
    \DTLnewdbentry{list}{label}{#1}%
    \DTLnewdbentry{list}{description}{#2}%
}

\newenvironment{sortedlist}{%
    \DTLifdbexists{list}{\DTLcleardb{list}}{\DTLnewdb{list}}%
}{%
    \DTLsort{label}{list}%
    \begin{description}%
        \DTLforeach*{list}{\theLabel=label,\theDesc=description}{%
            \item[\theLabel] \theDesc }%
    \end{description}%
}

\definecolor{chaptergrey}{rgb}{0.7,0.7,0.7}

\let\raggedchapter\raggedleft
\addtokomafont{disposition}{\normalfont}
%\setkomafont{element}{commands}
\setkomafont{title}{\color{cyan}\LARGE}
\addtokomafont{part}{\color{cyan}}
\setkomafont{chapter}{\color{cyan}\LARGE}
\setkomafont{subtitle}{\color{black}}
\addtokomafont{section}{\color{cyan}}
\addtokomafont{subsection}{\color{cyan}}
\addtokomafont{subsubsection}{\textbf}
\renewcommand*{\partformat}{\color{cyan}\partname~\thepart}
\renewcommand*{\chapterformat}{%
    \scalebox{3}{\color{cyan}\thechapter}%
}


\RedeclareSectionCommand[
tocindent=2em
]{chapter}

\RedeclareSectionCommand[
tocindent=4em
]{section}

\RedeclareSectionCommand[
tocindent=6em
]{subsection}

\makeatletter
\g@addto@macro\appendix{%
    \renewcommand*{\chapterformat}{%
        {\chapapp\nobreakspace\thechapter}%
    }
    
}
\makeatother
\defbibheading{bibliography}[\bibname]{%
    \subsection*{#1}%ridefinisce l'heading della bibliografia come subsection
    \addxcontentsline{toc}{subsection}{#1}}%lo aggiunge alla TOC

\addbibresource{LGBiBiblio.bib}
%\renewbibmacro*{url+urldate}{}


\begin{document}
    \author{}
    
    \subject{Linea Guida}
    \title{\textbf{Il trattamento laparoscopico di laparocele e ernie ventrali}}
    \subtitle{}
    \titlehead{}
    
    
    \date{Gennaio 2022}
    
    \frontmatter
    \maketitle
    \tableofcontents

    
    \mainmatter

    \chapter{one}
    
    text
    
    \chapter{two}
    
    text
    
    \chapter{three}
    
    text
    
    \chapter{four}
    
    text
    
    \include{./capitoli/in_italia}
    \include{./capitoli/scopo}
    \include{./capitoli/definizioni}
    
\end{document}

相关内容