@drghaliasri/butex 5.4.3 → 5.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8609,15 +8609,16 @@ function arabicXeLatexPreamblePkg(twocolumn = false) {
8609
8609
  \usepackage{polyglossia} % For Arabic support
8610
8610
  \usepackage{array}
8611
8611
  \usepackage{cancel}
8612
+ \usepackage{bidi}
8612
8613
  \usepackage{multirow}
8613
8614
  \usepackage{booktabs}
8614
- \usepackage{graphicx} % For \reflectbox
8615
+ \usepackage{graphicx} % For \butexreflect
8615
8616
  \usepackage{xcolor}
8616
8617
  \usepackage{tikz}
8617
8618
  \usepackage{tcolorbox} % For tcolorbox environment
8618
8619
  \usepackage{textcomp} % For \textrightarrow command
8619
8620
  \usepackage{url}
8620
- \usepackage{bidi}
8621
+
8621
8622
 
8622
8623
  % visit : https://www.symbolcopy.com/punctuation-symbol.html
8623
8624
  % for inversed punctuation
@@ -8679,8 +8680,11 @@ function arabicXeLatexPreambleCmd() {
8679
8680
  \newcommand{\vertbar}{\rule[-1ex]{0.5pt}{2.5ex}}
8680
8681
  \newcommand{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
8681
8682
 
8682
- \newcommand{\arabsqrt}[2]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
8683
- \newcommand{\arabvec}[1]{\reflectbox{$\vec{\reflectbox{$#1$}}$}}
8683
+
8684
+ \newcommand{\butexreflect}[1]{%\tikz[baseline=(n.base)]{\node[inner sep=0pt,outer sep=0pt,xscale=-1] (n) {#1};}%}
8685
+
8686
+ \newcommand{\arabsqrt}[2]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
8687
+ \newcommand{\arabvec}[1]{\butexreflect{$\vec{\butexreflect{$#1$}}$}}
8684
8688
 
8685
8689
  \newcommand{\arabexp}[1]{{}^{#1}\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
8686
8690
  \newcommand{\arablog}[2]{\left(\text{#2}\right)\!\prescript{}{\text{#1}}{\text{\diwani{لو}}}}
@@ -8728,9 +8732,9 @@ function arabicXeLatexPreambleCmd() {
8728
8732
  \newcommand{\araboddde}[2][-5pt]{\stackrel{\raisebox{#1}{$\vcenter{\hbox{$\cdot\!\cdot\!\cdot$}}$}}{\text{#2}}}
8729
8733
  \newcommand{\arabpde}[1]{\prescript{}{#1\!\!}{\nabla}} % arabic partial differential equation (PDE)
8730
8734
 
8731
- \newcommand{\arabprime}[0]{\reflectbox{$\prime$}\!} % arabic prime notation
8732
- \newcommand{\arabpprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
8733
- \newcommand{\arabppprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
8735
+ \newcommand{\arabprime}[0]{\butexreflect{$\prime$}\!} % arabic prime notation
8736
+ \newcommand{\arabpprime}[0]{\butexreflect{$\prime$}\butexreflect{$\prime$}\!} % arabic prime notation
8737
+ \newcommand{\arabppprime}[0]{\butexreflect{$\prime$}\butexreflect{$\prime$}\butexreflect{$\prime$}\!} % arabic prime notation
8734
8738
 
8735
8739
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8736
8740
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -8750,7 +8754,7 @@ function arabicXeLatexPreambleCmd() {
8750
8754
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8751
8755
 
8752
8756
 
8753
- \newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
8757
+ \newcommand{\arsqrt}[2][]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
8754
8758
  \newcommand{\arexp}[0]{\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
8755
8759
  \newcommand{\arlog}[0]{\!\!\text{\diwani{لو}}}
8756
8760
  \newcommand{\arln}[0]{\!\!\prescript{}{\text{\diwani{ه}}}{\text{\diwani{لو}}}}