summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def63
1 files changed, 63 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
new file mode 100644
index 00000000000..f7118b3e8ca
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/bidi/minitoc-xetex-bidi.def
@@ -0,0 +1,63 @@
+%%
+%% This is file `minitoc-xetex-bidi.def',
+
+%%
+%% __________________________________
+%% Copyright © 2009-2010 Vafa Khalighi
+%%
+%% License information appended.
+%%
+%%
+\ProvidesFile{minitoc-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for minitoc package for XeTeX engine]
+\def\@undottedtocline#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth\relax \else
+ \vskip \z@ plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \hbox{}%
+ \hskip -\if@RTL\rightskip\else\leftskip\fi
+ #4\nobreak\hfill \nobreak
+ \null\par}%
+ \fi}
+\def\@Undottedtocline#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth\relax \else
+ \vskip \z@ \@plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {\coffeefont #4}\nobreak \nobreak\null
+ \par}%
+ \fi}
+\def\@Undottedtoclinep#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth\relax \else
+ \vskip \z@ \@plus.2\p@
+ {\if@RTL\rightskip\else\leftskip\fi #2\relax \if@RTL\leftskip\else\rightskip\fi \@tocrmarg \parfillskip -\if@RTL\leftskip\else\rightskip\fi
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi
+ {#4}\nobreak \hfill \nobreak\null
+ \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}%
+ \par}%
+ \fi}
+%%
+%% Copyright © 2009-2010 by Vafa Khalighi <vafakh84@gmail.com>
+%%
+%% Distributable under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is "maintained" (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+%%
+%%
+%%
+%%
+%% End of file `minitoc-xetex-bidi.def'.