I am writing my paper in LaTeX (the document class is jlreq and the option is book).
The file is organized by dividing the files into chapters and putting them together in merge.tex.
If you type \tableofcontents
in merge.tex, the table of contents will be displayed, but it is not my favorite display.
Therefore, I am thinking of correcting it.
Specifically, you should center the table of contents, such as the table of contents.
Therefore, after loading the tocloft package using the here site, I added the following to merge.tex:
\renewcommand {\cftoctitlefont} {\hfill\large\bfseries}
US>\renewcommand
"Then, it became central, but the part of ""Chapter 章"" and the name of the chapter overlapped."
Also, the space between them has not been resolved.
Is there any way?
Please let me know.
The tocloft package is not supposed to be in Japanese.If you just want to change the jlreq table of contents heading, you just need to redefine \contentsname
without using tocloft.
%#!uplatex
\ documentclass [book] {jlreq}
US>\renewcommand{\contentsname}{%
\makebox[\linewidth] \hfill order \hspace{2zw}next \hfill}}
\begin { document }
\tableofcontents
\chapter
\chapter {some content}
\end { document }
Also, if you change only the heading of the table of contents, it seems that the design will not be consistent with other headings, so we recommend that you consider balancing the overall design separately.
859 GDB gets version error when attempting to debug with the Presense SDK (IDE)
968 Error in x, y, and format string must not be None
1015 Uncaught (inpromise) Error on Electron: An object could not be cloned
1489 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2025 OneMinuteCode. All rights reserved.