@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.
@@ -4858,15 +4858,16 @@ function arabicXeLatexPreamblePkg(twocolumn = false) {
4858
4858
  \usepackage{polyglossia} % For Arabic support
4859
4859
  \usepackage{array}
4860
4860
  \usepackage{cancel}
4861
+ \usepackage{bidi}
4861
4862
  \usepackage{multirow}
4862
4863
  \usepackage{booktabs}
4863
- \usepackage{graphicx} % For \reflectbox
4864
+ \usepackage{graphicx} % For \butexreflect
4864
4865
  \usepackage{xcolor}
4865
4866
  \usepackage{tikz}
4866
4867
  \usepackage{tcolorbox} % For tcolorbox environment
4867
4868
  \usepackage{textcomp} % For \textrightarrow command
4868
4869
  \usepackage{url}
4869
- \usepackage{bidi}
4870
+
4870
4871
 
4871
4872
  % visit : https://www.symbolcopy.com/punctuation-symbol.html
4872
4873
  % for inversed punctuation
@@ -4928,8 +4929,11 @@ function arabicXeLatexPreambleCmd() {
4928
4929
  \newcommand{\vertbar}{\rule[-1ex]{0.5pt}{2.5ex}}
4929
4930
  \newcommand{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
4930
4931
 
4931
- \newcommand{\arabsqrt}[2]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
4932
- \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$}}$}}
4933
4937
 
4934
4938
  \newcommand{\arabexp}[1]{{}^{#1}\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
4935
4939
  \newcommand{\arablog}[2]{\left(\text{#2}\right)\!\prescript{}{\text{#1}}{\text{\diwani{لو}}}}
@@ -4977,9 +4981,9 @@ function arabicXeLatexPreambleCmd() {
4977
4981
  \newcommand{\araboddde}[2][-5pt]{\stackrel{\raisebox{#1}{$\vcenter{\hbox{$\cdot\!\cdot\!\cdot$}}$}}{\text{#2}}}
4978
4982
  \newcommand{\arabpde}[1]{\prescript{}{#1\!\!}{\nabla}} % arabic partial differential equation (PDE)
4979
4983
 
4980
- \newcommand{\arabprime}[0]{\reflectbox{$\prime$}\!} % arabic prime notation
4981
- \newcommand{\arabpprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
4982
- \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
4983
4987
 
4984
4988
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4985
4989
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -4999,7 +5003,7 @@ function arabicXeLatexPreambleCmd() {
4999
5003
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5000
5004
 
5001
5005
 
5002
- \newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
5006
+ \newcommand{\arsqrt}[2][]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
5003
5007
  \newcommand{\arexp}[0]{\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
5004
5008
  \newcommand{\arlog}[0]{\!\!\text{\diwani{لو}}}
5005
5009
  \newcommand{\arln}[0]{\!\!\prescript{}{\text{\diwani{ه}}}{\text{\diwani{لو}}}}