@drghaliasri/butex 5.5.0 → 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 +4 -3
- package/dist/document.js +4 -3
- package/dist/document.js.map +1 -1
- package/dist/document.mjs +4 -3
- package/dist/document.mjs.map +1 -1
- package/dist/document2.js +12 -13
- package/dist/document2.js.map +1 -1
- package/dist/document2.mjs +12 -13
- package/dist/document2.mjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.global.js +138 -38
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +138 -38
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +138 -38
- package/dist/index.mjs.map +1 -1
- package/dist/react-document.js +174 -42
- package/dist/react-document.js.map +1 -1
- package/dist/react-document.mjs +174 -42
- package/dist/react-document.mjs.map +1 -1
- package/dist/react-document2.js +181 -51
- package/dist/react-document2.js.map +1 -1
- package/dist/react-document2.mjs +181 -51
- package/dist/react-document2.mjs.map +1 -1
- package/dist/react.d.mts +1 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.js +172 -40
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +172 -40
- 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) {
|
|
@@ -3503,7 +3503,8 @@ ${BUTEX_FONT_FACE_CSS}
|
|
|
3503
3503
|
transition: box-shadow 0.15s ease, border-color 0.15s ease;
|
|
3504
3504
|
}
|
|
3505
3505
|
|
|
3506
|
-
.surface:focus
|
|
3506
|
+
.surface:focus,
|
|
3507
|
+
.surface.surface--typing-focus {
|
|
3507
3508
|
border-color: var(--butex-focus-border, rgba(13, 148, 136, 0.45));
|
|
3508
3509
|
box-shadow: 0 0 0 3px var(--butex-focus-shadow, rgba(13, 148, 136, 0.12));
|
|
3509
3510
|
}
|
|
@@ -3942,7 +3943,7 @@ function commandToEditorNode(node) {
|
|
|
3942
3943
|
}
|
|
3943
3944
|
return { editable: true, node: frac };
|
|
3944
3945
|
}
|
|
3945
|
-
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) {
|
|
3946
3947
|
const sqrt = createSqrtNode();
|
|
3947
3948
|
const radicand = chainToEditorChain(node.mandatoryArgs[0]);
|
|
3948
3949
|
if (!radicand.editable) {
|
|
@@ -5156,7 +5157,7 @@ function arabicXeLatexPreamblePkg(twocolumn = false) {
|
|
|
5156
5157
|
\usepackage{bidi}
|
|
5157
5158
|
\usepackage{multirow}
|
|
5158
5159
|
\usepackage{booktabs}
|
|
5159
|
-
\usepackage{graphicx} % For \
|
|
5160
|
+
\usepackage{graphicx} % For \reflectbox
|
|
5160
5161
|
\usepackage{xcolor}
|
|
5161
5162
|
\usepackage{tikz}
|
|
5162
5163
|
\usepackage{tcolorbox} % For tcolorbox environment
|
|
@@ -5225,10 +5226,9 @@ function arabicXeLatexPreambleCmd() {
|
|
|
5225
5226
|
\newcommand{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
|
|
5226
5227
|
|
|
5227
5228
|
|
|
5228
|
-
\newcommand{\
|
|
5229
|
-
|
|
5230
|
-
\newcommand{\
|
|
5231
|
-
\newcommand{\arabvec}[1]{\butexreflect{$\vec{\butexreflect{$#1$}}$}}
|
|
5229
|
+
\newcommand{\arsqrt}[2][]{\reflectbox{\(\sqrt[\reflectbox{\(#1\)}]{\reflectbox{\(#2\)}}\)}}
|
|
5230
|
+
\newcommand{\arabsqrt}[2][]{\arsqrt[#1]{#2}}
|
|
5231
|
+
\newcommand{\arabvec}[1]{\reflectbox{$\vec{\reflectbox{$#1$}}$}}
|
|
5232
5232
|
|
|
5233
5233
|
\newcommand{\arabexp}[1]{{}^{#1}\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
|
|
5234
5234
|
\newcommand{\arablog}[2]{\left(\text{#2}\right)\!\prescript{}{\text{#1}}{\text{\diwani{لو}}}}
|
|
@@ -5276,9 +5276,9 @@ function arabicXeLatexPreambleCmd() {
|
|
|
5276
5276
|
\newcommand{\araboddde}[2][-5pt]{\stackrel{\raisebox{#1}{$\vcenter{\hbox{$\cdot\!\cdot\!\cdot$}}$}}{\text{#2}}}
|
|
5277
5277
|
\newcommand{\arabpde}[1]{\prescript{}{#1\!\!}{\nabla}} % arabic partial differential equation (PDE)
|
|
5278
5278
|
|
|
5279
|
-
\newcommand{\arabprime}[0]{\
|
|
5280
|
-
\newcommand{\arabpprime}[0]{\
|
|
5281
|
-
\newcommand{\arabppprime}[0]{\
|
|
5279
|
+
\newcommand{\arabprime}[0]{\reflectbox{$\prime$}\!} % arabic prime notation
|
|
5280
|
+
\newcommand{\arabpprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
|
|
5281
|
+
\newcommand{\arabppprime}[0]{\reflectbox{$\prime$}\reflectbox{$\prime$}\reflectbox{$\prime$}\!} % arabic prime notation
|
|
5282
5282
|
|
|
5283
5283
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
5284
5284
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
@@ -5298,7 +5298,6 @@ function arabicXeLatexPreambleCmd() {
|
|
|
5298
5298
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
|
5299
5299
|
|
|
5300
5300
|
|
|
5301
|
-
\newcommand{\arsqrt}[2][]{\butexreflect{\(\sqrt[\butexreflect{\(#1\)}]{\butexreflect{\(#2\)}}\)}}
|
|
5302
5301
|
\newcommand{\arexp}[0]{\!\raisebox{-4.5pt}{\text{\diwani{ه}}}}
|
|
5303
5302
|
\newcommand{\arlog}[0]{\!\!\text{\diwani{لو}}}
|
|
5304
5303
|
\newcommand{\arln}[0]{\!\!\prescript{}{\text{\diwani{ه}}}{\text{\diwani{لو}}}}
|