我需要在目录中的章节号后添加点。它需要看起来像这样:
1. Logoc-sarx – 上帝赐福
这是我的 MWE:
\documentclass[10pt,a4paper,twoside,egregdoesnotlikesansseriftitles]{scrbook}%
\usepackage[polutonikogreek,ngerman]{babel}%
\usepackage[utf8]{inputenc}%
\usepackage[T1]{fontenc}%
\usepackage{longtable}%
\usepackage{tabularx}%
\usepackage{array}%
\usepackage{float}%
\usepackage{setspace}%
\usepackage{tabto}%
\usepackage[font=small]{caption}
\usepackage{scrlayer-scrpage}
\usepackage{graphicx}%
\usepackage{nameref}%
\usepackage{xpatch}%
\usepackage{morewrites}
\usepackage{blindtext}
\usepackage{rotating}%
\usepackage[textwidth=2cm, textsize=tiny, backgroundcolor=white, linecolor=black]{todonotes}%
\usepackage{acronym}
\usepackage{bookmark}
\usepackage{xcolor}
\usepackage{mdwlist}
\usepackage{titlesec}
\usepackage[normalem]{ulem}
\usepackage{newtxtext}% Times font
\usepackage{newtxsf}
\usepackage{textcomp}%
%
% TEXT
\newcommand{\grk}[1]{{\foreignlanguage{polutonikogreek}{#1}}}% GREEK TEXT
\newcommand{\lat}[1]{\emph{{#1}}}% LATIN TEXT
%
%
% BIBLATEX:%
%
\usepackage[style=historische-zeitschrift, maxnames=2, hyperref=false, backref=true, backrefstyle=none, backend=bibtex,idemtracker=true, block=none]{biblatex}% change to hyperref=true to get clickable links
\usepackage[babel,german=quotes]{csquotes}%
\bibliography{Inhalt}
%
%
%
% REDESIGNING TITLE STYLES (REQUIRES TITLESEC)
%
\titleformat{\chapter}[display]% CHAPTER
{\fontsize{11}{12}\selectfont\scshape\centering}
{\scshape\chaptertitlename\ \thechapter.\enskip}{1pt}{\fontsize{11}{12}\selectfont}
\titlespacing*{\chapter}{0pt}{30pt}{30pt}% FIRST NUMBER BEFORE LAST NUMBER AFTER
\titleformat{\section}[block]% SECTION
{\fontsize{10.5}{8}\selectfont\centering}
{\thesection.\enskip}{1pt}{\fontsize{10.5}{8}\selectfont}
\titlespacing*{\section}{0pt}{15pt}{15pt}% FIRST NUMBER BEFORE LAST NUMBER AFTER
\titleformat{\subsection}[block]% SUBSECTION
{\fontsize{10.5}{8}\selectfont\centering\itshape}
{\itshape\thesubsection.\enskip}{1pt}{\fontsize{10.5}{8}\selectfont}
\titlespacing*{\subsection}{0pt}{15pt}{10pt}% FIRST NUMBER BEFORE LAST NUMBER AFTER
%
%
\begin{document}%
%
%
\tableofcontents
\pagestyle{scrheadings}%
\chapter{\grk{L'ogoc-s'arx} – Ein in Fleisch gekleideter Gott}\thispagestyle{empty}
\section{\grk{<Omoo'usios} – Der gottgleiche Sohn}
\blindtext
\begin{quote}\grk{o>uko~un t~w m`en >agenn'htw patr`i o>ike~ion >ax'iwma fulakt'eon, mhd'ena to~u e@inai a>ut~w t`on a>'ition l'egontas; t~w d`e u<i~w t`hn <arm'ozousan tim`hn >aponemht'eon, t`hn >'anarqon a>ut~w par`a to~u patr`os g'ennhsin >anatij'entas; ka`i <ws >efj'asamen a>ut~w s'ebas >apon'emontes, m'onon e>usebos ka`i e>uf'hmws t`o @hn ka`i t`o >ae`i ka`i t`o pr`o a>i'wnwn l'egontes >ep> a>uto~u, t`hn m'entoi je'othta a>uto~u m`h paraito'umenoi, >all`a t~h e>ik'oni ka`i t~w qarakt~hri to~u patr`os >aphkribwm'enhn >emf'ereian kat`a p'anta >anatij'entes, t`o d`e >ag'ennhton t~w patr`i m'onon >id'iwma pare~inai dox'azontes, <'ate d`h ka`i a>uto~u f'askontos to~u swt~hros; »<o pat'hr mou me'izwn mo'u >estin«.}\end{quote}
\blindtext
\cleardoublepage
\end{document}%
答案1
numbers=enddot
按照@Schweinebacke 的建议添加 KOMA-Script 选项。
在以下示例中,我删除了包titlesec
并改用 KOMA-Script 命令:
\documentclass[10pt,a4paper,twoside,
sfdefaults=false,% needs version 3.39 or newer, replaces egregdoesnotlikesansseriftitles,
chapterprefix,% <- added
numbers=enddot
]{scrbook}%
\usepackage[polutonikogreek,ngerman]{babel}%
%\usepackage[utf8]{inputenc}% not needed with an uptodate TeX Distribution
\usepackage[T1]{fontenc}%
\usepackage{scrlayer-scrpage}% sets pagestyle scrheadings automatically
\usepackage{blindtext}% only for dummy text
\usepackage{titlesec,showframe}
\usepackage{newtxtext}% Times font
\usepackage{newtxsf}
\usepackage{bookmark}
\newcommand{\grk}[1]{{\foreignlanguage{polutonikogreek}{#1}}}% GREEK TEXT
\newcommand{\lat}[1]{\emph{{#1}}}% LATIN TEXT
\renewcommand\raggedsection{\centering}
\RedeclareSectionCommand[
beforeskip=-30pt,
afterskip=30pt,
innerskip=1pt,
font=\fontsize{11}{12}\selectfont\mdseries\scshape
]{chapter}
\RedeclareSectionCommand[
beforeskip=-15pt,
afterskip=15pt,
font=\fontsize{10.5}{11}\selectfont\mdseries
]{section}
\RedeclareSectionCommand[
beforeskip=-15pt,
afterskip=10pt,
font=\fontsize{10.5}{11}\selectfont\mdseries\itshape
]{section}
\begin{document}%
\tableofcontents
\chapter{\grk{L'ogoc-s'arx} – Ein in Fleisch gekleideter Gott}\thispagestyle{empty}
\section{\grk{<Omoo'usios} – Der gottgleiche Sohn}
\blindtext
\begin{quote}\grk{o>uko~un t~w m`en >agenn'htw patr`i o>ike~ion >ax'iwma fulakt'eon, mhd'ena to~u e@inai a>ut~w t`on a>'ition l'egontas; t~w d`e u<i~w t`hn <arm'ozousan tim`hn >aponemht'eon, t`hn >'anarqon a>ut~w par`a to~u patr`os g'ennhsin >anatij'entas; ka`i <ws >efj'asamen a>ut~w s'ebas >apon'emontes, m'onon e>usebos ka`i e>uf'hmws t`o @hn ka`i t`o >ae`i ka`i t`o pr`o a>i'wnwn l'egontes >ep> a>uto~u, t`hn m'entoi je'othta a>uto~u m`h paraito'umenoi, >all`a t~h e>ik'oni ka`i t~w qarakt~hri to~u patr`os >aphkribwm'enhn >emf'ereian kat`a p'anta >anatij'entes, t`o d`e >ag'ennhton t~w patr`i m'onon >id'iwma pare~inai dox'azontes, <'ate d`h ka`i a>uto~u f'askontos to~u swt~hros; »<o pat'hr mou me'izwn mo'u >estin«.}\end{quote}
\blindtext
\end{document}