1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812
|
%%
%% This is file `rlbabel.def',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% hebrew.dtx (with options: `rightleft')
%%
%% This is a generated file.
%%
%% Copyright 1997-2004 Boris Lavva and any individual authors
%% listed elsewhere in this file. All rights reserved.
%%
%% This is a generated file.
%%
%% Copyright 1989-2004 Johannes L. Braams and any individual authors
%% listed elsewhere in this file. All rights reserved.
%%
%% This file was generated from file(s) of the Babel system.
%% ---------------------------------------------------------
%%
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2003/12/01 or later.
%%
%% This work has the LPPL maintenance status "maintained".
%%
%% The Current Maintainer of this work is Johannes Braams.
%%
%% This file may only be distributed together with a copy of the Babel
%% system. You may however distribute the Babel system without
%% such generated files.
%%
%% The list of all files belonging to the Babel distribution is
%% given in the file `manifest.bbl'. See also `legal.bbl for additional
%% information.
%%
%% The list of derived (unpacked) files belonging to the distribution
%% and covered by LPPL is defined by the unpacking scripts (with
%% extension .ins) which are part of the distribution.
%% Hebrew language definition and additional packages.
%% Copyright (C) 1997 -- 2004 Boris Lavva.
%% Babel package for LaTeX version 2e
%% Copyright (C) 1989 -- 2004 by Johannes Braams,
%% TeXniek
%% All rights reserved.
\ProvidesFile{rlbabel.def}
[2004/02/20 v2.3h %
Right-to-Left support from the babel system
Hebrew language support from the babel system]
\ifx\TeXXeTstate\undefined\else%
\TeXXeTstate=1
\fi
\ifx\beginL\@undefined%
\newlinechar`\^^J
\typeout{^^JTo avoid this error message,^^J%
run TeX--XeT or e-TeX engine instead of regular TeX.^^J}
\errmessage{Right-to-Left Support Error: use TeX--XeT or e-TeX
engine}%
\fi
\newif\if@rl
\AtBeginDocument{% Here we set the main document direction
\newif\if@rlmain%
\if@rl% e.g: if the options to babel were [english,hebrew]
\@rlmaintrue%
\else% e.g: if the options to babel were [hebrew,english]
\@rlmainfalse%
\fi%
}
\DeclareRobustCommand{\@torl}[1]{%
\if@rl\else%
\let\lr@encodingdefault=\encodingdefault%
\fi%
\def\@rllanguagename{#1}%
\def\encodingdefault{\csname#1encoding\endcsname}%
\fontencoding{\encodingdefault}%
\selectfont%
\@rltrue}
\DeclareRobustCommand{\@fromrl}{%
\if@rl%
\let\encodingdefault=\lr@encodingdefault%
\fi%
\fontencoding{\encodingdefault}%
\selectfont%
\@rlfalse}
\expandafter\def\csname selectlanguage \endcsname#1{%
\edef\languagename{%
\ifnum\escapechar=\expandafter`\string#1\@empty
\else \string#1\@empty\fi}%
\@@selectlanguage{\languagename}}
\def\@@selectlanguage#1{%
\select@language{#1}%
\if@filesw
\protected@write\@auxout{}{\string\select@language{#1}}%
\if@rl%
\addtocontents{cot}{\xstring\select@language{#1}}%
\addtocontents{fol}{\xstring\select@language{#1}}%
\addtocontents{tol}{\xstring\select@language{#1}}%
\else%
\addtocontents{toc}{\xstring\select@language{#1}}%
\addtocontents{lof}{\xstring\select@language{#1}}%
\addtocontents{lot}{\xstring\select@language{#1}}%
\fi%
\fi}
\let\other@languagename=\languagename
\DeclareRobustCommand{\setrllanguage}[1]{%
\if@rl\else%
\let\other@languagename=\languagename%
\fi%
\def\languagename{#1}%
\@@selectlanguage{\languagename}}
\DeclareRobustCommand{\unsetrllanguage}[1]{%
\if@rl%
\let\languagename=\other@languagename%
\fi
\@@selectlanguage{\languagename}}
\let\next=\
\def\HeblatexRedefineL{%
\def\L{\protect\pL}%
}
\HeblatexRedefineL
\def\pL{\protect\afterassignment\moreL \let\next= }
\def\moreL{\bracetext \aftergroup\endL \beginL\csname
from\@rllanguagename\endcsname}
\def\R{\protect\pR}
\def\pR{\protect\afterassignment\moreR \let\next= }
\def\moreR{\bracetext \aftergroup\endR \beginR\csname
to\@rllanguagename\endcsname}
\def\bracetext{\ifcat\next{\else\ifcat\next}\fi
\errmessage{Missing left brace has been substituted}\fi \bgroup}
\everydisplay{\if@rl\aftergroup\beginR\fi }
\def\@ensure@R#1{\if@rl#1\else\R{#1}\fi}
\def\@ensure@L#1{\if@rl\L{#1}\else#1\fi}
\def\rl@everypar{\if@rl{\setbox\z@\lastbox\beginR\usebox\z@}\fi}
\let\o@everypar=\everypar
\def\everypar#1{\o@everypar{\rl@everypar#1}}
\newcommand{\hmbox}[1]{\mbox{\R{#1}}}
\newcommand{\embox}[1]{\mbox{\L{#1}}}
\def\@brackets#1#2#3{\protect\if@rl #3#2#1\protect\else
#1#2#3\protect\fi}
\def\@@number#1{\ifmmode\else\beginL\fi#1\ifmmode\else\endL\fi}
\def\@@latin#1{\@@number{{\@fromrl#1}}}
\def\@number{\protect\@@number}
\def\@latin{\protect\@@latin}
\let\@@arabic=\@arabic
\let\@@roman=\@roman
\let\@@Roman=\@Roman
\let\@@alph=\@alph
\let\@@Alph=\@Alph
\def\@arabic#1{\@number{\@@arabic#1}}
\def\@roman#1{\@latin{\@@roman#1}}
\def\@Roman#1{\@latin{\@@Roman#1}}
\def\arabicnorl#1{\expandafter\@@arabic\csname c@#1\endcsname}
\def\make@lr#1{\begingroup
\toks@=\expandafter{#1}%
\edef\x{\endgroup
\def\noexpand#1{\noexpand\@number{\the\toks@}}}%
\x}
\@ifclassloaded{letter}{}{%
\@ifclassloaded{slides}{}{%
\make@lr\thesection
\make@lr\thesubsection
\make@lr\thesubsubsection
\make@lr\theparagraph
\make@lr\thesubparagraph
\make@lr\thefigure
\make@lr\thetable
}
\make@lr\theequation
}
\let\@@TeX\TeX
\def\TeX{\@latin{\@@TeX}}
\let\@@LaTeX\LaTeX
\def\LaTeX{\@latin{\@@LaTeX}}
\let\@@LaTeXe\LaTeXe
\def\LaTeXe{\@latin{\@@LaTeXe}}
\def\list#1#2{%
\ifnum \@listdepth >5\relax
\@toodeep
\else
\global\advance\@listdepth\@ne
\fi
\rightmargin\z@
\listparindent\z@
\itemindent\z@
\csname @list\romannumeral\the\@listdepth\endcsname
\def\@itemlabel{#1}%
\let\makelabel\@mklab
\@nmbrlistfalse
#2\relax
\@trivlist
\parskip\parsep
\parindent\listparindent
\advance\linewidth -\rightmargin
\advance\linewidth -\leftmargin
\if@rl
\advance\@totalleftmargin \rightmargin
\else
\advance\@totalleftmargin \leftmargin
\fi
\parshape \@ne \@totalleftmargin \linewidth
\ignorespaces}
\def\labelenumii{\@brackets(\theenumii)}
\def\p@enumiii{\p@enumii\@brackets(\theenumii)}
\@ifclassloaded{letter}{}{% other
\@ifclassloaded{slides}{}{% other
\@ifclassloaded{article}{% article
\newcommand\@tableofcontents[1]{%
\section*{\contentsname\@mkboth%
{\MakeUppercase\contentsname}%
{\MakeUppercase\contentsname}}%
\@starttoc{#1}}
\newcommand\@listoffigures[1]{%
\section*{\listfigurename\@mkboth%
{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}}%
\@starttoc{#1}}
\newcommand\@listoftables[1]{%
\section*{\listtablename\@mkboth%
{\MakeUppercase\listtablename}%
{\MakeUppercase\listtablename}}%
\@starttoc{#1}}}%
{% else report or book
\newcommand\@tableofcontents[1]{%
\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn%
\fi\chapter*{\contentsname\@mkboth%
{\MakeUppercase\contentsname}%
{\MakeUppercase\contentsname}}%
\@starttoc{#1}\if@restonecol\twocolumn\fi}
\newcommand\@listoffigures[1]{%
\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn%
\fi\chapter*{\listfigurename\@mkboth%
{\MakeUppercase\listfigurename}%
{\MakeUppercase\listfigurename}}%
\@starttoc{#1}\if@restonecol\twocolumn\fi}
\newcommand\@listoftables[1]{%
\if@twocolumn\@restonecoltrue\onecolumn\else\@restonecolfalse\fi%
\chapter*{\listtablename\@mkboth%
{\MakeUppercase\listtablename}%
{\MakeUppercase\listtablename}}%
\@starttoc{#1}\if@restonecol\twocolumn\fi}}%
\newcommand\lrtableofcontents{\@tableofcontents{toc}}%
\newcommand\lrlistoffigures{\@listoffigures{lof}}%
\newcommand\lrlistoftables{\@listoftables{lot}}%
\newcommand\rltableofcontents{\@tableofcontents{cot}}%
\newcommand\rllistoffigures{\@listoffigures{fol}}%
\newcommand\rllistoftables{\@listoftables{tol}}%
\renewcommand\tableofcontents{\if@rl\rltableofcontents%
\else\lrtableofcontents\fi}
\renewcommand\listoffigures{\if@rl\rllistoffigures%
\else\lrlistoffigures\fi}
\renewcommand\listoftables{\if@rl\rllistoftables%
\else\lrlistoftables\fi}}}
\def\@dottedtocline#1#2#3#4#5{%
\ifnum #1>\c@tocdepth \else
\vskip \z@ \@plus.2\p@
{\if@rl\rightskip\else\leftskip\fi #2\relax
\if@rl\leftskip\else\rightskip\fi \@tocrmarg \parfillskip
-\if@rl\leftskip\else\rightskip\fi
\parindent #2\relax\@afterindenttrue
\interlinepenalty\@M
\leavevmode
\@tempdima #3\relax
\advance\if@rl\rightskip\else\leftskip\fi \@tempdima
\null\nobreak\hskip -\if@rl\rightskip\else\leftskip\fi
{#4}\nobreak
\leaders\hbox{$\m@th
\mkern \@dotsep mu\hbox{.}\mkern \@dotsep
mu$}\hfill
\nobreak
\hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor \beginL#5\endL}%
\par}%
\fi}
\@ifclassloaded{letter}{}{% other
\@ifclassloaded{slides}{}{% other
\renewcommand*\l@part[2]{%
\ifnum \c@tocdepth >-2\relax
\addpenalty{-\@highpenalty}%
\addvspace{2.25em \@plus\p@}%
\begingroup
\setlength\@tempdima{3em}%
\parindent \z@ \if@rl\leftskip\else\rightskip\fi \@pnumwidth
\parfillskip -\@pnumwidth
{\leavevmode
\large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss#2}}\par
\nobreak
\global\@nobreaktrue
\everypar{\global\@nobreakfalse\everypar{}}%
\endgroup
\fi}}}
\@ifclassloaded{article}{% article class
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\addcontentsline{cot}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\addcontentsline{cot}{part}{#1}%
\fi
{\parindent \z@ \raggedright
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >\m@ne
\Large\bfseries \partname~\thepart
\par\nobreak
\fi
\huge \bfseries #2%
\markboth{}{}\par}%
\nobreak
\vskip 3ex
\@afterheading}%
}{% report and book classes
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\addcontentsline{cot}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\addcontentsline{cot}{part}{#1}%
\fi
\markboth{}{}%
{\centering
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >-2\relax
\huge\bfseries \partname~\thepart
\par
\vskip 20\p@
\fi
\Huge \bfseries #2\par}%
\@endpart}}
\def\@sect#1#2#3#4#5#6[#7]#8{%
\ifnum #2>\c@secnumdepth
\let\@svsec\@empty
\else
\refstepcounter{#1}%
\protected@edef\@svsec{\@seccntformat{#1}\relax}%
\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup
#6{%
\@hangfrom{\hskip #3\relax\@svsec}%
\interlinepenalty \@M #8\@@par}%
\endgroup
\csname #1mark\endcsname{#7}%
\addcontentsline{toc}{#1}{%
\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}%
\fi
#7}%
\addcontentsline{cot}{#1}{%
\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}%
\fi
#7}%
\else
\def\@svsechd{%
#6{\hskip #3\relax
\@svsec #8}%
\csname #1mark\endcsname{#7}%
\addcontentsline{toc}{#1}{%
\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}%
\fi
#7}%
\addcontentsline{cot}{#1}{%
\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}%
\fi
#7}}%
\fi
\@xsect{#5}}
\long\def\@caption#1[#2]#3{%
\par
\addcontentsline{\csname ext@#1\endcsname}{#1}%
{\protect\numberline{\csname the#1\endcsname}%
{\ignorespaces #2}}%
\def\@fignm{figure}
\ifx#1\@fignm\addcontentsline{fol}{#1}%
{\protect\numberline{\csname the#1\endcsname}%
{\ignorespaces #2}}\fi%
\def\@tblnm{table}
\ifx#1\@tblnm\addcontentsline{tol}{#1}%
{\protect\numberline{\csname the#1\endcsname}%
{\ignorespaces #2}}\fi%
\begingroup
\@parboxrestore
\if@minipage
\@setminipage
\fi
\normalsize
\@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
\endgroup}
\@ifclassloaded{letter}{}{%
\@ifclassloaded{slides}{}{%
\@ifclassloaded{article}{}{%
\renewcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \if@rl\leftskip\else\rightskip\fi \@pnumwidth
\parfillskip -\@pnumwidth
\leavevmode \bfseries
\advance\if@rl\rightskip\else\leftskip\fi\@tempdima
\hskip -\if@rl\rightskip\else\leftskip\fi
#1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss#2}\par
\penalty\@highpenalty
\endgroup
\fi}}}}
\@ifclassloaded{article}{%
\renewcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
\renewcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
\renewcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
\renewcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
\renewcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}}{}
\let\@@outputdblcol\@outputdblcol
\renewcommand{\@outputdblcol}{%
\if@rlmain%
\rl@outputdblcol%
\else%
\@@outputdblcol%
\fi%
}
\newcommand{\rl@outputdblcol}{%
\if@firstcolumn
\global \@firstcolumnfalse
\global \setbox\@leftcolumn \box\@outputbox
\else
\global \@firstcolumntrue
\setbox\@outputbox \vbox {\hb@xt@\textwidth {%
\hskip\columnwidth%
\hfil\vrule\@width\columnseprule\hfil
\hb@xt@\columnwidth {%
\box\@leftcolumn \hss}%
\hb@xt@\columnwidth {%
\hskip-\textwidth%
\box\@outputbox \hss}%
\hskip\columnsep%
\hskip\columnwidth}}%
\@combinedblfloats
\@outputpage
\begingroup
\@dblfloatplacement
\@startdblcolumn
\@whilesw\if@fcolmade \fi
{\@outputpage
\@startdblcolumn}%
\endgroup
\fi}
\let\@@footnoterule=\footnoterule
\def\footnoterule{\if@rl\hb@xt@\hsize{\hss\vbox{\@@footnoterule}}%
\else\@@footnoterule\fi}
\@ifclassloaded{letter}{%
\def\headodd{\protect\if@rl\beginR\fi\headtoname{}
\ignorespaces\toname
\hfil \@date
\hfil \pagename{} \thepage\protect\if@rl\endR\fi}
\if@twoside
\def\ps@headings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@oddhead{\select@language{\headlanguage}\headodd}
\let\@evenhead\@oddhead}
\else
\def\ps@headings{%
\let\@oddfoot\@empty
\def\@oddhead{\select@language{\headlanguage}\headodd}}
\fi
\def\headfirst{\protect\if@rl\beginR\fi\fromlocation \hfill %
\telephonenum\protect\if@rl\endR\fi}
\def\ps@firstpage{%
\let\@oddhead\@empty
\def\@oddfoot{\raisebox{-45\p@}[\z@]{%
\hb@xt@\textwidth{\hspace*{100\p@}%
\ifcase \@ptsize\relax
\normalsize
\or
\small
\or
\footnotesize
\fi
\select@language{\headlanguage}\headfirst}}\hss}}
\renewcommand{\opening}[1]{%
\let\headlanguage=\languagename%
\ifx\@empty\fromaddress%
\thispagestyle{firstpage}%
{\raggedleft\@date\par}%
\else % home address
\thispagestyle{empty}%
{\raggedleft
\if@rl\begin{tabular}{@{\beginR\csname%
to\@rllanguagename\endcsname}r@{\endR}}\ignorespaces
\fromaddress \\*[2\parskip]%
\@date \end{tabular}\par%
\else\begin{tabular}{l}\ignorespaces
\fromaddress \\*[2\parskip]%
\@date \end{tabular}\par%
\fi}%
\fi
\vspace{2\parskip}%
{\raggedright \toname \\ \toaddress \par}%
\vspace{2\parskip}%
#1\par\nobreak}
}
{% article, report, book
\def\headeven{\protect\if@rl\beginR\thepage\hfil\rightmark\endR
\protect\else\thepage\hfil{\slshape\leftmark}
\protect\fi}
\def\headodd{\protect\if@rl\beginR\leftmark\hfil\thepage\endR
\protect\else{\slshape\rightmark}\hfil\thepage
\protect\fi}
\@ifclassloaded{article}{% article
\if@twoside % two-sided
\def\ps@headings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\select@language{\headlanguage}\headeven}%
\def\@oddhead{\select@language{\headlanguage}\headodd}%
\let\@mkboth\markboth
\def\sectionmark##1{%
\markboth {\MakeUppercase{%
\ifnum \c@secnumdepth >\z@
\thesection\quad
\fi
##1}}{}}%
\def\subsectionmark##1{%
\markright{%
\ifnum \c@secnumdepth >\@ne
\thesubsection\quad
\fi
##1}}}
\else % one-sided
\def\ps@headings{%
\let\@oddfoot\@empty
\def\@oddhead{\headodd}%
\let\@mkboth\markboth
\def\sectionmark##1{%
\markboth{\MakeUppercase{%
\ifnum \c@secnumdepth >\m@ne
\thesection\quad
\fi
##1}}{\MakeUppercase{%
\ifnum \c@secnumdepth >\m@ne
\thesection\quad
\fi
##1}}}}
\fi
\def\ps@myheadings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\select@language{\headlanguage}\headeven}%
\def\@oddhead{\select@language{\headlanguage}\headodd}%
\let\@mkboth\@gobbletwo
\let\sectionmark\@gobble
\let\subsectionmark\@gobble
}}{% report and book
\if@twoside % two-sided
\def\ps@headings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\select@language{\headlanguage}\headeven}
\def\@oddhead{\select@language{\headlanguage}\headodd}
\let\@mkboth\markboth
\def\chaptermark##1{%
\markboth{\MakeUppercase{%
\ifnum \c@secnumdepth >\m@ne
\@chapapp\ \thechapter. \ %
\fi
##1}}{}}%
\def\sectionmark##1{%
\markright {\MakeUppercase{%
\ifnum \c@secnumdepth >\z@
\thesection. \ %
\fi
##1}}}}
\else % one-sided
\def\ps@headings{%
\let\@oddfoot\@empty
\def\@oddhead{\select@language{\headlanguage}\headodd}
\let\@mkboth\markboth
\def\chaptermark##1{%
\markboth{\MakeUppercase{%
\ifnum \c@secnumdepth >\m@ne
\@chapapp\ \thechapter. \ %
\fi
##1}}{\MakeUppercase{%
\ifnum \c@secnumdepth >\m@ne
\@chapapp\ \thechapter. \ %
\fi
##1}}}}
\fi
\def\ps@myheadings{%
\let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@evenhead{\select@language{\headlanguage}\headeven}%
\def\@oddhead{\select@language{\headlanguage}\headodd}%
\let\@mkboth\@gobbletwo
\let\chaptermark\@gobble
\let\sectionmark\@gobble
}}}
\AtBeginDocument{%
%I assume that \@textcolor is only defined by the package color
\ifx\@textcolor\@undefined\else%
% If that macro was defined before the beginning of the document,
% that is: the package was loaded: redefine it with bidi support
\def\@textcolor#1#2#3{%
\if@rl%
\beginL\protect\leavevmode{\color#1{#2}\beginR#3\endR}\endL%
\else%
\protect\leavevmode{\color#1{#2}#3}%
\fi%
}%
\fi%
}
\@ifclassloaded{prosper}{%
\def\thetrueSlideCounter{\arabicnorl{trueSlideCounter}}
}{}
\def\raggedright{%
\let\\\@centercr
\leftskip\z@skip\rightskip\@flushglue
\parindent\z@\parfillskip\z@skip}
\let\@@raggedleft=\raggedleft
\let\@@raggedright=\raggedright
\renewcommand\raggedleft{\if@rl\@@raggedright%
\else\@@raggedleft\fi}
\renewcommand\raggedright{\if@rl\@@raggedleft%
\else\@@raggedright\fi}
\let\@@author=\author
\renewcommand{\author}[1]{\@@author{\if@rl\beginR #1\endR\else #1\fi}}
\let\@@MakeUppercase=\MakeUppercase
\def\MakeUppercase#1{\if@rl#1\else\@@MakeUppercase{#1}\fi}
\let\@@MakeLowercase=\MakeLowercase
\def\MakeLowercase#1{\if@rl#1\else\@@MakeLowercase{#1}\fi}
\let\@@@underline=\underline
\def\underline#1{\@@@underline{\if@rl\R{#1}\else #1\fi}}
\if@compatibility
\let\undertext=\underline
\fi
\def\@xnthm#1#2[#3]{%
\expandafter\@ifdefinable\csname #1\endcsname
{\@definecounter{#1}\@addtoreset{#1}{#3}%
\expandafter\xdef\csname the#1\endcsname{\noexpand\@number
{\expandafter\noexpand\csname the#3\endcsname \@thmcountersep
\@thmcounter{#1}}}%
\global\@namedef{#1}{\@thm{#1}{#2}}%
\global\@namedef{end#1}{\@endtheorem}}}
\def\@opargbegintheorem#1#2#3{%
\trivlist
\item[\hskip \labelsep{\bfseries #1\ #2\
\@brackets({#3})}]\itshape}
\@ifclassloaded{article}{}{%
% For pretty priniting
\def\@@chapapp{Chapter}
\def\@@thechapter{\@@arabic\c@chapter}
\def\@chapter[#1]#2{%
\let\headlanguage=\languagename%
%\set@outputdblcol%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@@chapapp\space\@@thechapter.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter}#1}
\addcontentsline{cot}{chapter}%
{\protect\numberline{\thechapter}#1}
\else
\addcontentsline{toc}{chapter}{#1}%
\addcontentsline{cot}{chapter}{#1}%
\fi
\chaptermark{#1}
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{fol}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\addtocontents{tol}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi}
%
\def\@schapter#1{%
\let\headlanguage=\languagename%
%\set@outputdblcol%
\if@twocolumn
\@topnewpage[\@makeschapterhead{#1}]%
\else
\@makeschapterhead{#1}%
\@afterheading
\fi}}
\@ifclassloaded{letter}{}{% other
\@ifclassloaded{slides}{}{% other
\@ifclassloaded{article}{% article
\renewcommand\appendix{\par
\setcounter{section}{0}%
\setcounter{subsection}{0}%
\renewcommand\thesection{\@Alph\c@section}}
}{% report and book
\renewcommand\appendix{\par
%\set@outputdblcol%
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\renewcommand\@chapapp{\appendixname}%
% For pretty priniting
\def\@@chapapp{Appendix}%
\def\@@thechapter{\@@Alph\c@chapter}
\renewcommand\thechapter{\@Alph\c@chapter}}}}}
\def\@cite#1#2{\@brackets[{#1\if@tempswa , #2\fi}]}
\def\@biblabel#1{\@brackets[{#1}]}
\def\@lbibitem[#1]#2{\item[\@biblabel{#1}\hfill]\if@filesw
{\let\protect\noexpand
\immediate
\if@rl\write\@auxout{\string\bibcite{#2}{\R{#1}}}%
\else\write\@auxout{\string\bibcite{#2}{\L{#1}}}\fi%
}\fi\ignorespaces}
\@ifclassloaded{letter}{}{% other
\@ifclassloaded{slides}{}{% other
\@ifclassloaded{article}{%
\renewenvironment{thebibliography}[1]
{\section*{\refname\@mkboth%
{\MakeUppercase\refname}%
{\MakeUppercase\refname}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\if@rl\leftmargin\else\rightmargin\fi\labelwidth
\advance\if@rl\leftmargin\else\rightmargin\fi\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}}%
{\renewenvironment{thebibliography}[1]{%
\chapter*{\bibname\@mkboth%
{\MakeUppercase\bibname}%
{\MakeUppercase\bibname}}%
\list{\@biblabel{\@arabic\c@enumiv}}%
{\settowidth\labelwidth{\@biblabel{#1}}%
\if@rl\leftmargin\else\rightmargin\fi\labelwidth
\advance\if@rl\leftmargin\else\rightmargin\fi\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy
\clubpenalty4000
\@clubpenalty \clubpenalty
\widowpenalty4000%
\sfcode`\.\@m}
{\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist}}}}
\def\@verbatim{%
\let\do\@makeother \dospecials%
\obeylines \verbatim@font \@noligs}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip%
\begin{center}%
#1: #2%
\end{center} \par%
\vskip\belowcaptionskip}
\newcommand{\bpart}[2]{\part{\protect\if@rl%
#1 \protect\else #2 \protect\fi}}
\newcommand{\bchapter}[2]{\chapter{\protect\if@rl%
#1 \protect\else #2 \protect\fi}}
\newcommand{\bsection}[2]{\section{\protect\if@rl%
#1 \protect\else #2 \protect\fi}}
\newcommand{\bsubsection}[2]{\subsection{\protect\if@rl%
#1 \protect\else #2 \protect\fi}}
\newcommand{\bsubsubsection}[2]{\subsubsection{\protect\if@rl%
#1 \protect\else #2 \protect\fi}}
\newcommand{\bcaption}[2]{%
\caption[\protect\if@rl \R{#1}\protect\else \L{#2}\protect\fi]{%
\if@rl\R{#1}\protect\\ \L{#2}
\else\L{#2}\protect\\ \R{#1}\fi}}
\newcommand{\bchapternn}[2]{\chapter*{\protect\if@rl%
#1 \protect\else #2 \protect\fi}}
\newcommand{\bsectionnn}[2]{\section*{\protect\if@rl%
#1 \protect\else #2 \protect\fi}}
\AtEndOfPackage{\rlAtEndOfPackage}
\def\rlAtEndOfPackage{%
\global\let\headlanguage=\languagename%\set@outputdblcol%
}
%%
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
\endinput
%%
%% End of file `rlbabel.def'.
|