关闭 classicthesis 列表中的页码和编号 *

关闭 classicthesis 列表中的页码和编号 *

我想(始终)禁用 classicthesis 前言章节中每个“* 列表”第一页的章节和页标。如果您有多个小于 1 页的小列表,并且其中一个列表被推到单独的页面上,则当前样式不一致。在这种情况下,它会突然获得标题,而其他页面没有标题。

\thispagestyle{empty}现在我显然尝试使用诸如、\manualmark\markboth{}{}\ohead{}... 甚至 等命令来快速修复问题\renewcommand{\pagemark}{}。令我惊讶的是,该\thispagestyle{empty}命令似乎根本没有任何效果。\markboth{}{}我至少可以删除标题中的章节名称,但我从未设法删除页码。

那么,有什么想法可以让我摆脱以下 MWE 中章节第一页的标题吗(抱歉,冗长(精简的经典论文示例),搜索“PROBLEMHERE”)?

\RequirePackage{fix-cm} % fix some latex issues see: http://texdoc.net/texmf-dist/doc/latex/base/fixltx2e.pdf
\documentclass[ twoside,openright,titlepage,numbers=noenddot,headinclude,%1headlines,% letterpaper a4paper
                footinclude=true,cleardoublepage=empty,abstractoff, % <--- obsolete, remove (todo)
                BCOR=5mm,paper=a4,fontsize=11pt,%11pt,a4paper,%
                ngerman,american,%
                ]{scrreprt}

\PassOptionsToPackage{utf8}{inputenc}
  \usepackage{inputenc}

\PassOptionsToPackage{
  drafting=true,    % print version information on the bottom of the pages
  tocaligned=false, % the left column of the toc will be aligned (no indentation)
  dottedtoc=false,  % page numbers in ToC flushed right
  parts=true,       % use part division
  eulerchapternumbers=true, % use AMS Euler for chapter font (otherwise Palatino)
  linedheaders=false,       % chaper headers will have line above and beneath
  floatperchapter=true,     % numbering per chapter for all floats (i.e., Figure 1.1)
  listings=true,    % load listings package and setup LoL
  subfig=true,      % setup for preloaded subfig package
  eulermath=false,  % use awesome Euler fonts for mathematical formulae (only with pdfLaTeX)
  beramono=true,    % toggle a nice monospaced font (w/ bold)
  minionpro=false   % setup for minion pro font; use minion pro small caps as well (only with pdfLaTeX)
}{classicthesis}



\newcounter{dummy} % necessary for correct hyperlinks (to index, bib, etc.)
\newlength{\abcd} % for ab..z string length calculation
\providecommand{\mLyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
\newcommand{\ie}{i.\,e.}
\newcommand{\Ie}{I.\,e.}
\newcommand{\eg}{e.\,g.}
\newcommand{\Eg}{E.\,g.}

\usepackage{babel}


\PassOptionsToPackage{T1}{fontenc} % T2A for cyrillics
  \usepackage{fontenc}
\usepackage{textcomp} % fix warning with missing font shapes
\usepackage{scrhack} % fix warnings when using KOMA with listings package
\usepackage{xspace} % to get the spacing after macros right
\usepackage{mparhack} % get marginpar right
%\usepackage{fixltx2e} % fixes some LaTeX stuff --> since 2015 in the LaTeX kernel (see below)
\usepackage[latest]{latexrelease} % emulate newer kernel version if older is detected

\PassOptionsToPackage{smaller}{acronym}
  \usepackage{acronym} % nice macros for handling all acronyms in the thesis
  \def\bflabel#1{{\acsfont{#1}\hfill}}
  \def\aclabelfont#1{\acsfont{#1}}

\usepackage{subfig}

\usepackage{listings}
\PassOptionsToPackage{hyperfootnotes=false,pdfpagelabels}{hyperref}
  \usepackage{hyperref}  % backref linktocpage pagebackref
  \usepackage{graphicx}

\usepackage{lipsum}

\usepackage{classicthesis}

\begin{document}
\frenchspacing
\raggedbottom
\selectlanguage{american} % american ngerman
%\renewcommand*{\bibname}{new name}
%\setbibpreamble{}
\pagenumbering{roman}
\pagestyle{plain}

\pagestyle{scrheadings}
\cleardoublepage


%*******************************************************
% Table of Contents
%*******************************************************
%\phantomsection
\refstepcounter{dummy}
\pdfbookmark[1]{\contentsname}{tableofcontents}
\setcounter{tocdepth}{2} % <-- 2 includes up to subsections in the ToC
\setcounter{secnumdepth}{3} % <-- 3 numbers up to subsubsections
\manualmark
\markboth{\spacedlowsmallcaps{\contentsname}}{\spacedlowsmallcaps{\contentsname}}
\tableofcontents
\automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
%*******************************************************
% List of Figures and of the Tables
%*******************************************************
\clearpage

\begingroup
    \let\clearpage\relax
    \let\cleardoublepage\relax
    \let\cleardoublepage\relax
    %*******************************************************
    % List of Figures
    %*******************************************************
    %\phantomsection
    \refstepcounter{dummy}
    %\addcontentsline{toc}{chapter}{\listfigurename}
    \pdfbookmark[1]{\listfigurename}{lof}
    \listoffigures

    \vspace{8ex}

    %*******************************************************
    % List of Tables
    %*******************************************************
    %\phantomsection
    \refstepcounter{dummy}
    %\addcontentsline{toc}{chapter}{\listtablename}
    \pdfbookmark[1]{\listtablename}{lot}
    \listoftables

    \vspace{8ex}
    %\newpage

    %*******************************************************
    % List of Listings
    %*******************************************************
    %\phantomsection
    \refstepcounter{dummy}
    %\addcontentsline{toc}{chapter}{\lstlistlistingname}
    \pdfbookmark[1]{\lstlistlistingname}{lol}
    \lstlistoflistings

    \vspace{8ex}

    %*******************************************************
    % Acronyms
    %*******************************************************
    %\phantomsection
    \refstepcounter{dummy}
    \pdfbookmark[1]{Acronyms}{acronyms}
    \markboth{\spacedlowsmallcaps{Acronyms}}{\spacedlowsmallcaps{Acronyms}}
    \chapter*{Acronyms}
    \begin{acronym}[UMLX]
        \acro{DRY}{Don't Repeat Yourself}
        \acro{API}{Application Programming Interface}
        \acro{UML}{Unified Modeling Language}
    \end{acronym}
    \lipsum[1]

    \vspace{8ex}

    %*******************************************************
    % More Lists / Glossaries
    %*******************************************************
    %\phantomsection
    \refstepcounter{dummy}
    \pdfbookmark[1]{More Lists}{more}
    % PROBLEMHERE: (and no, just removing the following line or emptying it doesn't work)
    \markboth{\spacedlowsmallcaps{More Lists}}{\spacedlowsmallcaps{More Lists}}
    \chapter*{More Lists}
    \begin{itemize}
        \item some
        \item other
        \item list
    \end{itemize}



    %*******************************************************
    % More Lists / Glossaries
    %*******************************************************
    %\phantomsection
    %\refstepcounter{dummy}
    %\pdfbookmark[1]{Even More Lists}{evenmore}
    %\markboth{\spacedlowsmallcaps{Even More Lists}}{\spacedlowsmallcaps{Even More Lists}}
    %\chapter*{More Lists}
    %\begin{itemize}
    %    \item some
    %    \item other
    %    \item list
    %\end{itemize}
    %\lipsum[1-3]
    %Would be cool if these pages actually kept its header, (only the first shouldn't have one)
    %\lipsum

\endgroup



%********************************************************************
% Mainmatter
%*******************************************************
\cleardoublepage\pagenumbering{arabic}
%\setcounter{page}{90}
% use \cleardoublepage here to avoid problems with pdfbookmark
\cleardoublepage
\part{Some Kind of Manual}
\chapter{Test 1}
text

\appendix
%\renewcommand{\thechapter}{\alph{chapter}}
\cleardoublepage
\part{Appendix}

\end{document}
% ********************************************************************

换句话说:我想删除以下第一张图片中的标题,但不删除第二张图片中的标题:

不一致的标头

在此处输入图片描述

答案1

这与 KOMA 或 classicthesis 无关:\thispagestyle 直接设置布尔值。这意味着它受“异步页面构建器问题”的影响:它可能会影响“上一页”。例如,请参见此示例,其中设置了第一页的页面样式,而不是人们所期望的第二页:

\documentclass[a4paper]{report}
\pagestyle{headings}
\begin{document}

\markboth{Hallo}{Hallo}
abc

\vspace{45\baselineskip}

abc

\section*{a section}    
a \thispagestyle{empty}

\end{document}

相关内容