diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/lshort-persian/lshort.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/lshort-persian/lshort.sty | 52 |
1 files changed, 23 insertions, 29 deletions
diff --git a/Master/texmf-dist/doc/latex/lshort-persian/lshort.sty b/Master/texmf-dist/doc/latex/lshort-persian/lshort.sty index c5087444d22..9281eb7e106 100644 --- a/Master/texmf-dist/doc/latex/lshort-persian/lshort.sty +++ b/Master/texmf-dist/doc/latex/lshort-persian/lshort.sty @@ -1,3 +1,5 @@ +% !TeX root= lshort.tex +% !TEX TS-program=xelatex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Contents: Special Commands for the LShort2e Introduction % $Id: lshort.sty,v 1.2 2003/03/19 20:57:45 oetiker Exp $ @@ -9,7 +11,7 @@ %save pageref an label \let\lsspageref\pageref \ProvidesPackage{lshort} -%\RequirePackage[english,frenchb,german]{babel} + \RequirePackage{mflogo} \RequirePackage{verbatim} %\RequirePackage{fancyhea} @@ -28,18 +30,11 @@ %\RequirePackage{aeguill} % some packages which draw a euro \RequirePackage{textcomp} -\RequirePackage{setspace} +\RequirePackage[onehalfspacing]{setspace} \RequirePackage{hyperref} -%\NoHyper + \hypersetup{colorlinks=true,linkcolor=red,citecolor=green,filecolor=magneta,urlcolor=cyan} -%\RequirePackage[para*,perpage]{ednotes} -%%Lets have two layer of footnotes -%\SetFootnoteHook{\@RTLfalse}%--> must appear immediately before \DeclareNewFootnote -%\DeclareNewFootnote[para]{C}[fnsymbol] -%\renewcommand{\extrafootnoterule}{} -%\SelectFootnoteRule[0]{extra} -%\let\Footnote=\footnoteC -\newcommand{\Footnote}[1]{\LTRfootnote{#1}} + % need some magic here to keep the original definition of rightarrow \newcommand{\org@Rightarrow}{} @@ -193,8 +188,6 @@ {\\\hline\end{tabular}\par\nopagebreak\addvspace{3.2ex plus 0.8ex minus 0.2ex}% \vskip -\parskip\end{latin}} -\let\originalemph\emph -\renewcommand{\emph}[1]{\originalemph{\lr{#1}}} % % Type setting Code Fragments % @@ -288,8 +281,10 @@ %\ifx\pdfoutput\undefined % We're not running pdftex %\ifodd\lsspageref{exa\theexacnt}\hspace*{0pt}\else\hspace*{-\outdent}\fi% %\else -%% HyPsd@pageref internal hyperref command v6.69c - \ifodd\HyPsd@pageref{exa\theexacnt}\hspace*{0pt}\else\hspace*{-\outdent}\fi% +%% HyPsd@pageref internal hyperref command v6.69c<<<<<<< HEAD +% \if@twoside\ifodd\HyPsd@pageref{exa\theexacnt}\hspace*{-\outdent}\else\hspace*{0pt}\fi\fi + %======= + \ifodd\HyPsd@pageref{exa\theexacnt}\hspace*{-\outdent}\else\if@twoside\hspace*{0pt}\else\hspace*{-\outdent}\fi\fi%>>>>>>> 404cfb64c15599f79b0868b6d9ef8d43d8850358 %\fi \fi \makebox[\textwidth][l]{% @@ -329,34 +324,33 @@ {\clearpage\if@twoside \ifodd\c@page\else \hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi} -\def\setLR{\@RTLfalse} -\def\setRL{\@RTLtrue} -\let\unsetRL=\setLR + \newcommand{\graphicscompanion}{\cite{graphicscompanion} } \newcommand{\hobby}{\cite{metapost} } \newcommand{\hoenig}{\cite{unbound} } \newcommand{\graphicsinlatex}{\cite{ursoswald} } -%\usepackage{bidi} \usepackage{xepersian} -\numberwithin{table}{chapter} -\numberwithin{figure}{chapter} -\numberwithin{equation}{chapter} + +\@ifundefined{Footnote}{\let\Footnote\LTRfootnote}{} \newcommand{\romanindex}[1]{\index{\lr{#1}}} -\newcommand\emp[1]{\lr{''}#1\lr{``}} +\newcommand\emp[1]{«#1»} \newcommand\femph[1]{{\it #1}} +\let\originalemph\emph +\renewcommand{\emph}[1]{\originalemph{\lr{#1}}} + % \DeclareMathOperator{\argh}{argh} % \DeclareMathOperator*{\nut}{Nut} -\onehalfspacing + %%%%%%%%%%%%%%%%%%%End of titlesec definitions%%%%%%%%%%%%%%%%%%%%%%%%%%% -\settextfont[Scale=1]{XB Niloofar} +\settextfont[UprightFont={ALotus},BoldFont={ALotusBold},ItalicFont={ALotusItalic},Scale=1]{ALotus} \setlatintextfont[Scale=1]{Linux Libertine} -\defpersianfont\farsifontsayeh[Scale=1]{XB Kayhan Sayeh} -\defpersianfont\farsifontpook[Scale=1]{XB Kayhan Pook} -\defpersianfont\farsifontnavaar[Scale=1]{XB Kayhan Navaar} -\defpersianfont\farsifontshafigh[Scale=1.1]{Adobe Arabic} +\defpersianfont\farsifontsayeh[Scale=1.1]{ATitr} +\defpersianfont\farsifontpook[Scale=1]{AKufiOutline} +\defpersianfont\farsifontnavaar[Scale=1]{AHoma} +\defpersianfont\farsifontshafigh[Scale=1]{AMitra} \defpersianfont\farsifontscheherazade[Scale=1.1]{Scheherazade} \defpersianfont\nastaliq[Scale=2]{IranNastaliq} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |