无法在章节和章节号之间添加空格

无法在章节和章节号之间添加空格

我想在章节 (BAB) 和章节编号 (BAB) 之间留出空格,但我无法添加空格。这是我的代码:

\documentclass[a4paper,12pt,twoside]{book}
\usepackage[hmargin={4cm,3cm},vmargin={4cm,3cm}]{geometry}
\usepackage{times}
\usepackage{setspace}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage[bahasa]{babel}
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{tocbasic}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\AtBeginDocument{
    \let\mtcontentsname\contentsname\renewcommand\contentsname{\MakeUppercase\mtcontentsname}
}
\titleformat{\chapter}[display]{\center\bfseries}{\large\MakeUppercase{\chaptertitlename}\thechapter}{1cm}{\large}
\titlespacing{\chapter}{0cm}{-1.5cm}{0cm}
\titleformat{\section}[hang]
{\bfseries}
{\bfseries\thesection}{1ex}{\bfseries}
\DeclareTOCStyleEntry[
linefill=\bfseries\TOCLineLeaderFill,beforeskip=2pt,entrynumberformat=\chapterprefixintoc,dynnumwidth
]{tocline}{chapter}
\newcommand*\chapterprefixintoc[1]{\MakeUppercase{\chaptername}~#1\enskip}
\begin{document}
    \onehalfspacing
    \frontmatter
    \cleardoublepage
    \newpage\phantomsection\addcontentsline{toc}{chapter}{DAFTAR ISI}
    \tableofcontents
    \mainmatter
    \chapter{tes}
\end{document}

如何在 BAB 和 BAB 数量之间添加空格?例如:BAB 1 在此处输入图片描述

相关内容