summaryrefslogtreecommitdiff
path: root/crates/typst-library/src/math/equation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/typst-library/src/math/equation.rs')
-rw-r--r--crates/typst-library/src/math/equation.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/typst-library/src/math/equation.rs b/crates/typst-library/src/math/equation.rs
index 0c9ba11d..a2ae5447 100644
--- a/crates/typst-library/src/math/equation.rs
+++ b/crates/typst-library/src/math/equation.rs
@@ -1,5 +1,6 @@
use std::num::NonZeroUsize;
+use codex::styling::MathVariant;
use typst_utils::NonZeroExt;
use unicode_math_class::MathClass;
@@ -12,7 +13,7 @@ use crate::introspection::{Count, Counter, CounterUpdate, Locatable};
use crate::layout::{
AlignElem, Alignment, BlockElem, OuterHAlignment, SpecificAlignment, VAlignment,
};
-use crate::math::{MathSize, MathVariant};
+use crate::math::MathSize;
use crate::model::{Numbering, Outlinable, ParLine, Refable, Supplement};
use crate::text::{FontFamily, FontList, FontWeight, LocalName, TextElem};
@@ -111,7 +112,7 @@ pub struct EquationElem {
/// The style variant to select.
#[internal]
#[ghost]
- pub variant: MathVariant,
+ pub variant: Option<MathVariant>,
/// Affects the height of exponents.
#[internal]
@@ -128,7 +129,7 @@ pub struct EquationElem {
/// Whether to use italic glyphs.
#[internal]
#[ghost]
- pub italic: Smart<bool>,
+ pub italic: Option<bool>,
/// A forced class to use for all fragment.
#[internal]