@drghaliasri/butex 5.5.1 → 5.5.2
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.
- package/README.md +3 -3
- package/dist/document.js +2 -2
- package/dist/document.js.map +1 -1
- package/dist/document.mjs +2 -2
- package/dist/document.mjs.map +1 -1
- package/dist/document2.js +5 -5
- package/dist/document2.js.map +1 -1
- package/dist/document2.mjs +5 -5
- package/dist/document2.mjs.map +1 -1
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/react-document.js +3 -3
- package/dist/react-document.js.map +1 -1
- package/dist/react-document.mjs +3 -3
- package/dist/react-document.mjs.map +1 -1
- package/dist/react-document2.js +5 -5
- package/dist/react-document2.js.map +1 -1
- package/dist/react-document2.mjs +5 -5
- package/dist/react-document2.mjs.map +1 -1
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +1 -1
- package/dist/react.mjs.map +1 -1
- package/package.json +1 -1
package/dist/react-document2.mjs
CHANGED
|
@@ -522,7 +522,7 @@ var CommandNode = class extends BaseAstNode {
|
|
|
522
522
|
arabicLatex() {
|
|
523
523
|
const sup = this.superscript !== null ? this.superscript.arabicLatex() : "";
|
|
524
524
|
const sub = this.subscript !== null ? this.subscript.arabicLatex() : "";
|
|
525
|
-
const arabicName = this.name === "\\sqrt"
|
|
525
|
+
const arabicName = this.name === "\\sqrt" || this.name === "\\arabsqrt" ? "\\arsqrt" : this.name;
|
|
526
526
|
const content = renderCommandCore({
|
|
527
527
|
name: arabicName,
|
|
528
528
|
optionalArgs: this.optionalArgs,
|
|
@@ -2899,7 +2899,7 @@ function renderNodeArabic(node, options) {
|
|
|
2899
2899
|
return arabicScripts(node, content, options);
|
|
2900
2900
|
}
|
|
2901
2901
|
if (node.kind === "sqrt" && node.radicand) {
|
|
2902
|
-
const content = `\\
|
|
2902
|
+
const content = `\\arsqrt${optionalRootIndexArabic(node, options)}{${renderChainArabic(node.radicand, options)}}`;
|
|
2903
2903
|
return arabicScripts(node, content, options);
|
|
2904
2904
|
}
|
|
2905
2905
|
if (node.kind === "overset" && node.baseExpr) {
|
|
@@ -7722,7 +7722,7 @@ function commandToEditorNode(node) {
|
|
|
7722
7722
|
}
|
|
7723
7723
|
return { editable: true, node: frac };
|
|
7724
7724
|
}
|
|
7725
|
-
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt") && node.mandatoryArgs.length >= 1) {
|
|
7725
|
+
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt" || node.name === "\\arsqrt") && node.mandatoryArgs.length >= 1) {
|
|
7726
7726
|
const sqrt = createSqrtNode();
|
|
7727
7727
|
const radicand = chainToEditorChain(node.mandatoryArgs[0]);
|
|
7728
7728
|
if (!radicand.editable) {
|
|
@@ -8927,7 +8927,8 @@ function arabicXeLatexPreambleCmd() {
|
|
|
8927
8927
|
\newcommand{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
|
|
8928
8928
|
|
|
8929
8929
|
|
|
8930
|
-
\newcommand{\
|
|
8930
|
+
\newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
|
|
8931
|
+
\newcommand{\arabsqrt}[2][]{\arsqrt[#1]{#2}}
|
|
8931
8932
|
\newcommand{\arabvec}[1]{\reflectbox{$\vec{\reflectbox{$#1$}}$}}
|
|
8932
8933
|
|
|
8933
8934
|
\newcommand{\arabexp}[1]{{}^{#1}\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
|
|
@@ -8998,7 +8999,6 @@ function arabicXeLatexPreambleCmd() {
|
|
|
8998
8999
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
8999
9000
|
|
|
9000
9001
|
|
|
9001
|
-
\newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
|
|
9002
9002
|
\newcommand{\arexp}[0]{\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
|
|
9003
9003
|
\newcommand{\arlog}[0]{\!\!\text{\diwani{لو}}}
|
|
9004
9004
|
\newcommand{\arln}[0]{\!\!\prescript{}{\text{\diwani{ه}}}{\text{\diwani{لو}}}}
|