You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had already made changes to the table of contents with a series of tocloft batch commands, and there was no problem with older versions of the xepersian package; But in version 24.1, extra white space is added.
% !TEX TS-program = XeLaTeX% !TEX encoding = UTF-8 Unicode\documentclass{report} % or some other class% Any packages other than the xepersian package must be loaded here\usepackage{tocloft}
\renewcommand{\cftchappresnum}{\chaptername~}
\renewcommand{\cftchapaftersnum}{:}
\newlength{\chaplen}
\settowidth{\chaplen}{\chaptername~\cftchapaftersnum}
\addtolength{\cftchapnumwidth}{\chaplen}
\usepackage{lipsum}
% The xepersian package must be loaded as the last package\usepackage[%% Any xepersian package option goes here
]{xepersian}
\settextfont{IRXLotus}
% Any preamble code goes here\begin{document}
\tableofcontents\chapter{One}
\lipsum[1]
\chapter{Two}
\lipsum[2]
\end{document}
In the new version, due to compatibility with koma-script, the chapter renaming has been moved to after \begin{document}; So when the \chaptername command is used in the preamble to calculate the chapter word width, the English chapter word width is actually entered, which is greater than the Persian chapter word width. So the commands for calculating the width must either be moved to after \begin{document} or the command \renewcommand{\chaptername{{فصل}} write before the width calculations.
Brief outline of the issue
I had already made changes to the table of contents with a series of
tocloft
batch commands, and there was no problem with older versions of thexepersian
package; But in version 24.1, extra white space is added.Check/indicate
bidi
packagebidi
package issue tracker has been searched for similar issues?xepersian
package issue tracker has been searched for similar issues?Minimal example showing the issue
Expected behavior
Log and PDF files
test.log
test.pdf
The text was updated successfully, but these errors were encountered: