無法在章節和章節號之間新增空格

無法在章節和章節號之間新增空格

我想在章節(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 在此輸入影像描述

相關內容