-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.rs
32 lines (31 loc) · 999 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//! # KaTeX example
//!
//! This documentation is an example of how to use mathematical notation.
//!
//! ## Inline math
//!
//! Lorem ipsum `$\int^a_b f(x)\,{\mathop\mathrm{d}}x$` dolor sit amet,
//! consectetur `code` adipisicing elit.
//!
//! ## Display math
//!
//! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugiat placeat
//! enim quisquam maiores obcaecati, odit, itaque aut iste ducimus fugit
//! laboriosam ad sint autem repellendus accusamus veniam sunt nam architecto!
//!
//! ```math
//! \mu = \frac{1}{n} \sum^n_{i=1} x_i
//! ```
//!
//! Lorem ipsum dolor sit amet, consectetur adipisicing elit. Fugiat placeat
//! enim quisquam maiores obcaecati, odit, itaque aut iste ducimus fugit
//! laboriosam ad sint autem repellendus accusamus veniam sunt nam architecto!
//!
//! ```
//! println!("Hello, world!");
//! ```
/// You can even use inline math in the first paragraph summaries:
/// `$c = \sqrt{a^2 + b^2}$`.
///
/// More details here.
pub struct InlineMathInSummary;