@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/document2.js
CHANGED
|
@@ -671,7 +671,7 @@ var CommandNode = class extends BaseAstNode {
|
|
|
671
671
|
arabicLatex() {
|
|
672
672
|
const sup = this.superscript !== null ? this.superscript.arabicLatex() : "";
|
|
673
673
|
const sub = this.subscript !== null ? this.subscript.arabicLatex() : "";
|
|
674
|
-
const arabicName = this.name === "\\sqrt"
|
|
674
|
+
const arabicName = this.name === "\\sqrt" || this.name === "\\arabsqrt" ? "\\arsqrt" : this.name;
|
|
675
675
|
const content = renderCommandCore({
|
|
676
676
|
name: arabicName,
|
|
677
677
|
optionalArgs: this.optionalArgs,
|
|
@@ -2964,7 +2964,7 @@ function renderNodeArabic(node, options) {
|
|
|
2964
2964
|
return arabicScripts(node, content, options);
|
|
2965
2965
|
}
|
|
2966
2966
|
if (node.kind === "sqrt" && node.radicand) {
|
|
2967
|
-
const content = `\\
|
|
2967
|
+
const content = `\\arsqrt${optionalRootIndexArabic(node, options)}{${renderChainArabic(node.radicand, options)}}`;
|
|
2968
2968
|
return arabicScripts(node, content, options);
|
|
2969
2969
|
}
|
|
2970
2970
|
if (node.kind === "overset" && node.baseExpr) {
|
|
@@ -3943,7 +3943,7 @@ function commandToEditorNode(node) {
|
|
|
3943
3943
|
}
|
|
3944
3944
|
return { editable: true, node: frac };
|
|
3945
3945
|
}
|
|
3946
|
-
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt") && node.mandatoryArgs.length >= 1) {
|
|
3946
|
+
if ((node.name === "\\sqrt" || node.name === "\\arabsqrt" || node.name === "\\arsqrt") && node.mandatoryArgs.length >= 1) {
|
|
3947
3947
|
const sqrt = createSqrtNode();
|
|
3948
3948
|
const radicand = chainToEditorChain(node.mandatoryArgs[0]);
|
|
3949
3949
|
if (!radicand.editable) {
|
|
@@ -5226,7 +5226,8 @@ function arabicXeLatexPreambleCmd() {
|
|
|
5226
5226
|
\newcommand{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
|
|
5227
5227
|
|
|
5228
5228
|
|
|
5229
|
-
\newcommand{\
|
|
5229
|
+
\newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
|
|
5230
|
+
\newcommand{\arabsqrt}[2][]{\arsqrt[#1]{#2}}
|
|
5230
5231
|
\newcommand{\arabvec}[1]{\reflectbox{$\vec{\reflectbox{$#1$}}$}}
|
|
5231
5232
|
|
|
5232
5233
|
\newcommand{\arabexp}[1]{{}^{#1}\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
|
|
@@ -5297,7 +5298,6 @@ function arabicXeLatexPreambleCmd() {
|
|
|
5297
5298
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
5298
5299
|
|
|
5299
5300
|
|
|
5300
|
-
\newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
|
|
5301
5301
|
\newcommand{\arexp}[0]{\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
|
|
5302
5302
|
\newcommand{\arlog}[0]{\!\!\text{\diwani{لو}}}
|
|
5303
5303
|
\newcommand{\arln}[0]{\!\!\prescript{}{\text{\diwani{ه}}}{\text{\diwani{لو}}}}
|