如何删除章节编号后的点?

如何删除章节编号后的点?

我想删除章节标题后面的点。 在此处输入图片描述

我该怎么做?这是我使用 TeXShop 版本 3.75 的 mwe:

    \documentclass[fontsize=12pt,%
                   twoside=semi,%
                   headings=small,%
                   chapterprefix=true,%
                   listof=flat]%
    {scrbook}
    \usepackage{setspace}
    \usepackage{pdfpages} 

    %%%%%%%%%%%%%%%%%%%%%%%%%%numéros page%%%%%%%%%%%%
    \usepackage[automark]{scrlayer-scrpage}% See scrguien.pdf, chapter 5
    \ihead{\headmark}% running head at the inner edge of the page head
    \ohead*{\pagemark}% page number at the outer edge of the page head (plain pages too)
    \ofoot*{}% no page number at the outer edge of the page footer (plain pages too)
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    \addtokomafont{pageheadfoot}{\scshape\small}%changed to small caps in headers
    \addtokomafont{disposition}{\normalfont}
    \addtokomafont{part}{\scshape\LARGE}
    \addtokomafont{chapter}{\scshape\Huge}
    \addtokomafont{section}{\scshape\large}
    \addtokomafont{subsection}{\itshape}
    \addtokomafont{subsubsection}{\itshape}
    \addtokomafont{paragraph}{\scshape\small}
    \addtokomafont{subparagraph}{\scshape\small}
    %\let\bfseries\mdseries

    \usepackage[utf8]{inputenc}
    \usepackage [french]{babel}
    \usepackage[T1]{fontenc}
    \usepackage{mathptmx}
    \usepackage{chngcntr}
    \counterwithout{footnote}{chapter}
    \usepackage{hyperref}

\AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}}


%%%%%%%%%%%%Numérotation des chapitres et section%%%%%%%%%%%%%%%%%%%
\makeatletter
\@addtoreset{chapter}{part}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


    \usepackage{lipsum}

    \begin{document}

    \frontmatter
    \tableofcontents


    \chapter{Introduction}
    \lipsum

    \mainmatter

    \part{Objet et méthode}

    \chapter{Définitions}
    \lipsum
    \end{document}

答案1

要仅删除章节标题中章节号后的点,请重新定义\chapterformat¹:

\renewcommand*{\chapterformat}{%
  \mbox{\chapappifchapterprefix{\nobreakspace}\thechapter
  \IfUsePrefixLine{}{\enskip}}%
}

例子:

\documentclass[fontsize=12pt,%
               twoside=semi,%
               headings=small,%
               chapterprefix=true,%
               listof=flat]%
{scrbook}
\usepackage{setspace}
\usepackage{pdfpages} 

%%%%%%%%%%%%%%%%%%%%%%%%%%numéros page%%%%%%%%%%%%
\usepackage[automark]{scrlayer-scrpage}% See scrguien.pdf, chapter 5
\ihead{\headmark}% running head at the inner edge of the page head
\ohead*{\pagemark}% page number at the outer edge of the page head (plain pages too)
\ofoot*{}% no page number at the outer edge of the page footer (plain pages too)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\addtokomafont{pageheadfoot}{\scshape\small}%changed to small caps in headers
\addtokomafont{disposition}{\normalfont}
\addtokomafont{part}{\scshape\LARGE}
\addtokomafont{chapter}{\scshape\Huge}
\addtokomafont{section}{\scshape\large}
\addtokomafont{subsection}{\itshape}
\addtokomafont{subsubsection}{\itshape}
\addtokomafont{paragraph}{\scshape\small}
\addtokomafont{subparagraph}{\scshape\small}
%\let\bfseries\mdseries

%\usepackage[utf8]{inputenc}% can be removed with an uptodate TeX distribution
\usepackage [french]{babel}
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
%\usepackage{chngcntr}% can be removed with an uptodate TeX distribution
\counterwithout{footnote}{chapter}
\usepackage{hyperref}

%\AtBeginDocument{\renewcommand{\thepart}{\Roman{part}}}
\counterwithin*{chapter}{part}

\renewcommand*{\chapterformat}{%
  \mbox{\chapappifchapterprefix{\nobreakspace}\thechapter%\autodot
  \IfUsePrefixLine{}{\enskip}}%
}

\usepackage{lipsum}

\begin{document}

\frontmatter
\tableofcontents


\chapter{Introduction}
\lipsum

\mainmatter

\part{Objet et méthode}

\chapter{Définitions}
\lipsum
\end{document}

在此处输入图片描述


¹ 要删除所有数字(章节、部分、...、图表、表格)后的最后一个点,请使用类选项numbers=noenddot

相关内容