persiantex / bidi

Bidirectional typesetting in plain TeX and LaTeX, using XeTeX
https://ctan.org/pkg/bidi
10 stars 0 forks source link

Bidi clash with scrbook (TOC) #14

Open vafakhalighi opened 4 years ago

vafakhalighi commented 4 years ago

Brief outline of the issue

there seems to be a clash with scrbook (and maybo other classes):

When activating the bidi package, the chapter formatting in TOC is lost and cannot be recovered. Can this be fixed or is there a quick workaround?

Check/indicate

Minimal example showing the issue

\documentclass{scrbook}
%\usepackage{bidi} % <-- uncomment to see bidi/scrbook clash

\begin{document}

\tableofcontents

\chapter{Chapter A}
%This is typeset by \textsf{bidi} package, \bidiversion, \bididate
\section{Section B}
\chapter{Chapter C}
\section{Section D}

\end{document}

Expected behavior

Log and PDF files