@drghaliasri/butex 5.4.4 → 5.4.6

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.
@@ -4861,7 +4861,7 @@ function arabicXeLatexPreamblePkg(twocolumn = false) {
4861
4861
  \usepackage{bidi}
4862
4862
  \usepackage{multirow}
4863
4863
  \usepackage{booktabs}
4864
- \usepackage{graphicx} % For \reflectbox
4864
+ \usepackage{graphicx} % For \butexreflect
4865
4865
  \usepackage{xcolor}
4866
4866
  \usepackage{tikz}
4867
4867
  \usepackage{tcolorbox} % For tcolorbox environment
@@ -4929,8 +4929,11 @@ function arabicXeLatexPreambleCmd() {
4929
4929
  \newcommand{\vertbar}{\rule[-1ex]{0.5pt}{2.5ex}}
4930
4930
  \newcommand{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
4931
4931
 
4932
- \newcommand{\arabsqrt}[2]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
4933
- \newcommand{\arabvec}[1]{\reflectbox{$\vec{\reflectbox{$#1$}}$}}
4932
+
4933
+ \newcommand{\butexreflect}[1]{\tikz[baseline=(n.base)]{\node[inner sep=0pt,outer sep=0pt,xscale=-1](n){#1};}}
4934
+
4935
+ \newcommand{\arabsqrt}[2]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
4936
+ \newcommand{\arabvec}[1]{\butexreflect{$\vec{\butexreflect{$#1$}}$}}
4934
4937
 
4935
4938
  \newcommand{\arabexp}[1]{{}^{#1}\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
4936
4939
  \newcommand{\arablog}[2]{\left(\text{#2}\right)\!\prescript{}{\text{#1}}{\text{\diwani{لو}}}}
@@ -4978,9 +4981,9 @@ function arabicXeLatexPreambleCmd() {
4978
4981
  \newcommand{\araboddde}[2][-5pt]{\stackrel{\raisebox{#1}{$\vcenter{\hbox{$\cdot\!\cdot\!\cdot$}}$}}{\text{#2}}}
4979
4982
  \newcommand{\arabpde}[1]{\prescript{}{#1\!\!}{\nabla}} % arabic partial differential equation (PDE)
4980
4983
 
4981
- \newcommand{\arabprime}[0]{\reflectbox{$\prime$}\!} % arabic prime notation
4982
- \newcommand{\arabpprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
4983
- \newcommand{\arabppprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
4984
+ \newcommand{\arabprime}[0]{\butexreflect{$\prime$}\!} % arabic prime notation
4985
+ \newcommand{\arabpprime}[0]{\butexreflect{$\prime$}\butexreflect{$\prime$}\!} % arabic prime notation
4986
+ \newcommand{\arabppprime}[0]{\butexreflect{$\prime$}\butexreflect{$\prime$}\butexreflect{$\prime$}\!} % arabic prime notation
4984
4987
 
4985
4988
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4986
4989
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -5000,7 +5003,7 @@ function arabicXeLatexPreambleCmd() {
5000
5003
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5001
5004
 
5002
5005
 
5003
- \newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
5006
+ \newcommand{\arsqrt}[2][]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
5004
5007
  \newcommand{\arexp}[0]{\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
5005
5008
  \newcommand{\arlog}[0]{\!\!\text{\diwani{لو}}}
5006
5009
  \newcommand{\arln}[0]{\!\!\prescript{}{\text{\diwani{ه}}}{\text{\diwani{لو}}}}