@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.
@@ -8644,15 +8644,16 @@ function arabicXeLatexPreamblePkg(twocolumn = false) {
8644
8644
  \usepackage{polyglossia} % For Arabic support
8645
8645
  \usepackage{array}
8646
8646
  \usepackage{cancel}
8647
+ \usepackage{bidi}
8647
8648
  \usepackage{multirow}
8648
8649
  \usepackage{booktabs}
8649
- \usepackage{graphicx} % For \reflectbox
8650
+ \usepackage{graphicx} % For \butexreflect
8650
8651
  \usepackage{xcolor}
8651
8652
  \usepackage{tikz}
8652
8653
  \usepackage{tcolorbox} % For tcolorbox environment
8653
8654
  \usepackage{textcomp} % For \textrightarrow command
8654
8655
  \usepackage{url}
8655
- \usepackage{bidi}
8656
+
8656
8657
 
8657
8658
  % visit : https://www.symbolcopy.com/punctuation-symbol.html
8658
8659
  % for inversed punctuation
@@ -8714,8 +8715,11 @@ function arabicXeLatexPreambleCmd() {
8714
8715
  \newcommand{\vertbar}{\rule[-1ex]{0.5pt}{2.5ex}}
8715
8716
  \newcommand{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
8716
8717
 
8717
- \newcommand{\arabsqrt}[2]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
8718
- \newcommand{\arabvec}[1]{\reflectbox{$\vec{\reflectbox{$#1$}}$}}
8718
+
8719
+ \newcommand{\butexreflect}[1]{%\tikz[baseline=(n.base)]{\node[inner sep=0pt,outer sep=0pt,xscale=-1] (n) {#1};}%}
8720
+
8721
+ \newcommand{\arabsqrt}[2]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
8722
+ \newcommand{\arabvec}[1]{\butexreflect{$\vec{\butexreflect{$#1$}}$}}
8719
8723
 
8720
8724
  \newcommand{\arabexp}[1]{{}^{#1}\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
8721
8725
  \newcommand{\arablog}[2]{\left(\text{#2}\right)\!\prescript{}{\text{#1}}{\text{\diwani{لو}}}}
@@ -8763,9 +8767,9 @@ function arabicXeLatexPreambleCmd() {
8763
8767
  \newcommand{\araboddde}[2][-5pt]{\stackrel{\raisebox{#1}{$\vcenter{\hbox{$\cdot\!\cdot\!\cdot$}}$}}{\text{#2}}}
8764
8768
  \newcommand{\arabpde}[1]{\prescript{}{#1\!\!}{\nabla}} % arabic partial differential equation (PDE)
8765
8769
 
8766
- \newcommand{\arabprime}[0]{\reflectbox{$\prime$}\!} % arabic prime notation
8767
- \newcommand{\arabpprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
8768
- \newcommand{\arabppprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
8770
+ \newcommand{\arabprime}[0]{\butexreflect{$\prime$}\!} % arabic prime notation
8771
+ \newcommand{\arabpprime}[0]{\butexreflect{$\prime$}\butexreflect{$\prime$}\!} % arabic prime notation
8772
+ \newcommand{\arabppprime}[0]{\butexreflect{$\prime$}\butexreflect{$\prime$}\butexreflect{$\prime$}\!} % arabic prime notation
8769
8773
 
8770
8774
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8771
8775
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -8785,7 +8789,7 @@ function arabicXeLatexPreambleCmd() {
8785
8789
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8786
8790
 
8787
8791
 
8788
- \newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
8792
+ \newcommand{\arsqrt}[2][]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
8789
8793
  \newcommand{\arexp}[0]{\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
8790
8794
  \newcommand{\arlog}[0]{\!\!\text{\diwani{لو}}}
8791
8795
  \newcommand{\arln}[0]{\!\!\prescript{}{\text{\diwani{ه}}}{\text{\diwani{لو}}}}