diff --git a/src/uni.rs b/src/uni.rs index ac456dd..f0b5fc5 100644 --- a/src/uni.rs +++ b/src/uni.rs @@ -17,7 +17,7 @@ impl UnicodeRenderer { } pub(crate) fn render_formula(&self, formula: &Formula) -> Result { - let mut output: String = "⊢ ".into(); + let mut output: String = " ".into(); // write!(output, "{} ", as_str(if use_provables let typesetting = self.database.typesetting_result(); let nset = self.database.name_result(); @@ -34,11 +34,12 @@ impl UnicodeRenderer { ) .unwrap(); } + write!(output, "").unwrap(); Ok(output) } pub(crate) fn render_statement(&self, sref: &StatementRef) -> Result { - let mut output: String = "".into(); + let mut output: String = "".into(); let typesetting = self.database.typesetting_result(); for token in sref.math_iter() { write!( @@ -52,6 +53,7 @@ impl UnicodeRenderer { ) .unwrap(); } + write!(output, "").unwrap(); Ok(output) } } diff --git a/static/metamath.css b/static/metamath.css index 3c754fd..94aeecf 100644 --- a/static/metamath.css +++ b/static/metamath.css @@ -1,3 +1,8 @@ +@font-face { + font-family: XITSMath-Regular; + src: url("/static/xits-math.woff"); +} + body { color: #001; font-family: Bitter,'Times New Roman', Times, serif; @@ -183,6 +188,7 @@ ol.breadcrumb li:not(:last-child)::after, nav.typesettings ul li:not(:last-child margin: 0 10px; } +.uni { font-family: Bitter,'Times New Roman', Times, serif, XITSMath-Regular } mjx-container { margin: .3em 0em !important } mjx-container { float: left!important; width: inherit !important; text-align: left !important; } mjx-container { display: inline-block!important; } diff --git a/static/xits-math.woff b/static/xits-math.woff new file mode 100644 index 0000000..d3f4b98 Binary files /dev/null and b/static/xits-math.woff differ