%% %% This is file `scrartcl-xetex-bidi.def', %% generated with the docstrip utility. %% %% The original source files were: %% %% bidi.dtx (with options: `scrartcl-xetex-bidi.def') %% %% ______________________________________ %% Copyright © 2009–2010 Vafa Khalighi %% %% License information appended. %% %% \ProvidesFile{scrartcl-xetex-bidi.def}[2010/07/25 v0.3 bidi adaptations for scrartcl class for XeTeX engine] \renewcommand*\maketitle[1][1]{% \if@titlepage \begin{titlepage} \setcounter{page}{% #1% }% \let\footnotesize\small \let\right@footnote\relax \let\left@footnote\relax \let\textwidth@footnote\relax \let\footnote\thanks \let\LTRfootnote\LTRthanks \let\RTLfootnote\RTLthanks \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% \let\@oldmakefnmark\@makefnmark \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark}% \ifx\@extratitle\@empty \else \noindent\@extratitle\next@tpage\cleardoubleemptypage \thispagestyle{empty}% \fi \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative \ifx\@titlehead\@empty \else \begin{minipage}[t]{\textwidth}% \@titlehead \end{minipage}\par \fi \null\vfill \begin{center} \ifx\@subject\@empty \else {\subject@font \@subject \par}% \vskip 3em \fi {\titlefont\huge \@title\par}% \vskip 1em {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}% \vskip 2em {\Large \lineskip 0.75em \begin{tabular}[t]{c} \@author \end{tabular}\par }% \vskip 1.5em {\Large \@date \par}% \vskip \z@ \@plus3fill {\Large \@publishers \par}% \vskip 3em \end{center}\par \@thanks \vfill\null \if@twoside\next@tpage \begin{minipage}[t]{\textwidth} \@uppertitleback \end{minipage}\par \vfill \begin{minipage}[b]{\textwidth} \@lowertitleback \end{minipage} \fi \ifx\@dedication\@empty \else \next@tpage\null\vfill {\centering \Large \@dedication \par}% \vskip \z@ \@plus3fill \if@twoside \next@tpage\cleardoubleemptypage \fi \fi \end{titlepage} \else \par \@tempcnta=% #1% \relax\ifnum\@tempcnta=1\else \ClassWarning{\KOMAClassName}{% Optional argument of \string\maketitle\space ignored at\MessageBreak notitlepage-mode% }% \fi \begingroup \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% \let\@oldmakefnmark\@makefnmark \renewcommand*{\@makefnmark}{\rlap\@oldmakefnmark} \if@twocolumn \ifnum \col@number=\@ne \@maketitle \else \twocolumn[\@maketitle]% \fi \else \newpage \global\@topnum\z@ \@maketitle \fi \thispagestyle{\titlepagestyle}\@thanks \endgroup \fi \setcounter{footnote}{0}% \let\thanks\relax \let\LTRthanks\relax \let\RTLthanks\relax \let\maketitle\relax \let\@maketitle\relax \global\let\@thanks\@empty \global\let\@author\@empty \global\let\@date\@empty \global\let\@title\@empty \global\let\@subtitle\@empty \global\let\@extratitle\@empty \global\let\@titlehead\@empty \global\let\@subject\@empty \global\let\@publishers\@empty \global\let\@uppertitleback\@empty \global\let\@lowertitleback\@empty \global\let\@dedication\@empty \global\let\author\relax \global\let\title\relax \global\let\extratitle\relax \global\let\titlehead\relax \global\let\subject\relax \global\let\publishers\relax \global\let\uppertitleback\relax \global\let\lowertitleback\relax \global\let\dedication\relax \global\let\date\relax \global\let\and\relax }% \renewcommand*{\@maketitle}{% \clearpage \let\footnote\thanks \let\LTRfootnote\LTRthanks \let\RTLfootnote\RTLthanks \ifx\@extratitle\@empty \else \noindent\@extratitle \next@tpage \if@twoside \null\next@tpage \fi \fi \setparsizes{\z@}{\z@}{\z@\@plus 1fil}\par@updaterelative \ifx\@titlehead\@empty \else \begin{minipage}[t]{\textwidth} \@titlehead \end{minipage}\par \fi \null \vskip 2em% \begin{center}% \ifx\@subject\@empty \else {\subject@font \@subject \par} \vskip 1.5em \fi {\titlefont\huge \@title \par}% \vskip .5em {\ifx\@subtitle\@empty\else\usekomafont{subtitle}\@subtitle\par\fi}% \vskip 1em {\Large \lineskip .5em% \begin{tabular}[t]{c} \@author \end{tabular}\par }% \vskip 1em% {\Large \@date \par}% \vskip \z@ \@plus 1em {\Large \@publishers \par} \ifx\@dedication\@empty \else \vskip 2em {\Large \@dedication \par} \fi \end{center}% \par \vskip 2em }% \renewcommand*\l@part[2]{% \ifnum \c@tocdepth >\m@ne\relax \addpenalty{\@secpenalty}% \addvspace{2.25em \@plus\p@}% \setlength{\@tempdima}{2em}% \if@tocleft \ifx\toc@l@number\@empty\else \setlength\@tempdima{0\toc@l@number}% \fi \fi \begingroup \parindent \z@ \if@RTL\leftskip\else\rightskip\fi \@pnumwidth \parfillskip -\@pnumwidth \leavevmode \advance\if@RTL\rightskip\else\leftskip\fi\@tempdima \hskip -\if@RTL\rightskip\else\leftskip\fi \usekomafont{partentry}{#1\nobreak \usekomafont{partentrypagenumber}{\hfil\nobreak \hb@xt@\@pnumwidth{\hss#2}}}\par \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax \endgroup \penalty20010 \else \if@compatibility \global\@nobreaktrue \everypar{\global\@nobreakfalse\everypar{}}% \else \penalty\@highpenalty \fi \endgroup \fi \fi } \renewcommand*\l@section[2]{% \ifnum \c@tocdepth >\z@ \ifnum \lastpenalty<20009 \addpenalty{\@secpenalty}% \fi \addvspace{1.0em \@plus\p@}% \setlength\@tempdima{1.5em}% \if@tocleft \ifx\toc@l@number\@empty\else \setlength\@tempdima{0\toc@l@number}% \fi \fi \begingroup \raggedsectionentry \parindent \z@ \advance\if@RTL\leftskip\else\rightskip\fi \@pnumwidth \parfillskip -\@pnumwidth \interlinepenalty\@M \leavevmode \advance\if@RTL\rightskip\else\leftskip\fi \@tempdima \null\nobreak\hskip -\if@RTL\rightskip\else\leftskip\fi \usekomafont{sectionentry}{#1\nobreak \usekomafont{sectionentrypagenumber}{% \hfill\nobreak \hb@xt@\@pnumwidth{\hss#2}}}\par \endgroup \ifnum \scr@compatibility>\@nameuse{scr@v@2.96}\relax \penalty20008 \fi \fi } \def\raggedsection{\if@RTL\raggedleft\else\raggedright\fi} \def\raggedpart{\if@RTL\raggedleft\else\raggedright\fi} \renewcommand*\autodot{\if@altsecnumformat\@SepMark\fi} \renewcommand*{\thesubsection}{\thesection\@SepMark\@arabic\c@subsection} \renewcommand*{\thesubsubsection}{% \thesubsection\@SepMark\@arabic\c@subsubsection } \renewcommand*{\theparagraph}{\thesubsubsection\@SepMark\@arabic\c@paragraph} \renewcommand*{\thesubparagraph}{% \theparagraph\@SepMark\@arabic\c@subparagraph } \renewenvironment{thebibliography}[1]{% \if@bib@break@ \bib@beginhook \else \bib@heading \ifx\bibpreamble\relax\else\ifx\bibpreamble\@empty\else \noindent\bibpreamble\par\nobreak \fi\fi \bib@beginhook \bib@before@hook \fi \renewcommand{\BreakBibliography}[1]{% \@bib@break \end{thebibliography}% \begingroup ##1\endgroup \begin{thebibliography}{#1} }% \if@RTL\if@LTRbibitems\@RTLfalse\else\fi\else\if@RTLbibitems\@RTLtrue\else\fi\fi \list{% \@biblabel{\@arabic\c@enumiv}% }{% \settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code \if@bib@break@ \edef\@tempa{% \noexpand\usecounter{enumiv}% \noexpand\setcounter{enumiv}{\the\c@enumiv}% }\@tempa \no@bib@break \else \usecounter{enumiv}% \fi \let\p@enumiv\@empty \renewcommand*\theenumiv{\@arabic\c@enumiv}% }% \sloppy\clubpenalty4000 \widowpenalty4000 \sfcode`\.=\@m }{% \if@bib@break@ \def\@noitemerr{% \@latex@warning{% \string\BreakBibliography\space at begin of `thebibliography' environment\MessageBreak or following \string\BreakBibliography}% }% \else \def\@noitemerr{% \@latex@warning{% Empty `thebibliography' environment or \string\BreakBibliography\MessageBreak before end of `thebibliography' environment}% }% \fi \endlist \if@bib@break@ \else \bib@after@hook \let\bib@before@hook\@empty \let\bib@after@hook\@empty \fi \bib@endhook } \renewcommand*\left@footnote{% \kern-3\p@ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi \hrule\@width.4\columnwidth \kern 2.6\p@} \renewcommand*\right@footnote{% \hbox to \columnwidth {\beginR \vbox{% \kern-3\p@ \ifx\@textbottom\relax\else\vskip \z@ \@plus.05fil\fi \hrule\@width.4\columnwidth \kern 2.6\p@}\hfil\endR}} \renewcommand*{\raggeddictum}{\if@RTL\raggedright\else\raggedleft\fi} \renewcommand*{\raggeddictumtext}{\if@RTL\raggedleft\else\raggedright\fi} \renewcommand*{\raggeddictumauthor}{\if@RTL\raggedright\else\raggedleft\fi} \renewcommand\marginline[1]{% \marginpar[\if@RTL\raggedright\else\raggedleft\fi{#1}]{\if@RTL\raggedleft\else\raggedright\fi #1}% } %% %% Copyright © 2009–2010 Vafa Khalighi %% %% It may be distributed and/or modified 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 “author-maintained” (as per LPPL maintenance status) %% by Vafa Khalighi. %% %% In addition to the terms of LPPL any distributed version %% (unchanged or modified) of bidi has to keep the statement %% about the moral obligation for using bidi. In case of major %% changes where this would not be appropriate the author of the %% changed version should contact the copyright holder. %% %% %% %% Moral obligation for using bidi: %% ____________________________________ %% %% Users of bidi who wish to include or use bidi or a modified %% version in a proprietary and commercially market product are asked %% under certain conditions (see below) for the payment of a license %% fee. The size of this fee is to be determined, in each instance, %% by the commercial user, depending on his/her judgment of the value of %% bidi for his/her product. %% %% %% The conditions for this are as follows: %% %% The producer of a proprietary and commercially market product %% that involves typesetting using bidi is asked to determine %% the value of a license fee for using bidi if %% %% - the product is a document and the producer has decided to %% include bidi to typeset (parts of) the document or has %% directed the author of the document to include bidi (for %% example, by providing a class file to be used by the author) %% %% - the product is a LaTeX class or package that includes bidi %% %% %% There is no moral obligation in case %% %% - the product is a document but producer has not directed %% the author to include bidi (in that case the moral obligation %% lies with the author of the document) %% %% - the product does not involve typesetting, e.g., consists, for %% example, of distributing bidi and its documentation. %% %% - the product is not proprietary, i.e., is made available as free %% software itself (which doesn't prohibit its commercial marketing) %% %% - bidi is used for non-commercial purposes %% %% %% Determinating a license fee might result in a license fee of zero %% (i.e., no payment) in case a producer has determined that the use %% of bidi has no enhancing effect on the product. This is a %% plausible scenario, i.e., in the above two cases the producer is %% only asked to evaluate the value of bidi for the product %% not for the payment of a license fee per se (which might or might %% not follow from this evaluation). %% %% The license fee, if any, can be payed to the author of %% the program who can be contacted at %% %% vafakhlgh@gmail.com %% %% %% %% %% End of file `scrartcl-xetex-bidi.def'.