muboard

授权协议 MIT License
开发语言
所属分类 企业应用、 LaTeX排版系统
软件类型 开源软件
地区 不详
投 递 者 唐彦
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Muboard

Muboard is a tiny utility that runs a mathematicsdisplay board as a web page. Muboard lets you quickly scribblemathematics snippets using Markdown and LaTeX while presenting yourdesktop screen to others during real-world or virtual meetings.

Contents

Get Started

To get started with using Muboard, click here and starttyping Markdown + LaTeX input at the text field at the bottom.

Here is an example screenshot that shows how Muboard with some contentlooks like:

Distributable Boards

Muboard can be used to create distributable boards. To try it out,copy and paste the code below into an HTML file with .htmlextension:

<!DOCTYPE html><script src="https://cdn.jsdelivr.net/npm/muboard@0.5.1"></script><textarea>

# The Möbius function

For any positive integer $ n $, the Möbius function $ \mu(n) $ is
defined as follows:

$$ \mu(1) = 1; $$

If $ n > 1, $ write $ n = p_1^{a_1} \dots p_k^{a_k} $ (prime
factorization). Then

\begin{align*}
  \mu(n) & = (-1)^k \text{ if } a_1 = a_2 = \dots = a_k = 1, \\
  \mu(n) & = 0 \text{ otherwise}.
\end{align*}

If $ n \ge 1, $ we have

$$
  \sum_{d \mid n} \mu(d) =
  \begin{cases}
    1 & \text{ if } n = 1, \\
    0 & \text{ if } n > 1.
  \end{cases}
$$

Now open this file with a web browser. This is a self-renderingdistributable board file. It renders itself to look like this:mu.html.

Valid HTML5

The code snippet in the previous section shows how we can create aself-rendering document with a single line of HTML code but thisbrevity comes at the cost of standard conformance. For example, therequired <title> element is missing from the code. Further the<textarea> element is not closed. Despite the missing tags, thisexample works just fine because all web browsers follow therobustness principle.

For the sake of completeness and correctness, here is a minimal butcomplete and valid HTML example:valid-html5.html(source). It has a few more lines of codeto ensure that this HTML5 code validates successfully atvalidator.w3.org. In case you are wondering, a validHTML5 document does not require explicit <head>, <body>, or theclosing </html> tags, so they have been omitted for the sake ofbrevity while maintaining completeness and correctness in thisexample.

Features

  • Runs in a web browser.
  • Keyboard driven user interface.
  • Vertical splits.
  • Input is just LaTeX, Markdown, and HTML. Avoids any new syntax.
  • Conforms to CommonMark specification of Markdown.
  • Conforms to GitHub Flavored Markdown (GFM), a strict superset ofCommonMark.
  • Supports a subset of LaTeX using MathJax.
  • Supports creating self-rendering distributable boards with a singleline of HTML.
  • Supports editing commands such as ,i, ,d, ,align*, etc. toautomatically insert LaTeX delimiters for inline mathematics,display mathematics, align environment, etc. (Type ,help in theboard input to see a complete list of supported commands.)
  • Support for saving/loading snippets to/from browser's local storage.
  • Not a WYSIWYG tool.
  • Not a collaborative editing tool.

Why?

Muboard was created originally for Offbeat Computation Club analyticnumber theory meetings that I host. During the meetings, Ineeded a place to type out mathematics formulas and render themquickly. I chose to write a tiny non-WSYIWYG tool because I prefersuch tools. It also helps in keeping the LaTeX snippets in an HTMLfile that can render itself using JavaScript.

The name Muboard is a reference to the Möbius function μ(n) whichwas the first function definition we discussed using this tool.

License

This is free and open source software. You can use, copy, modify,merge, publish, distribute, sublicense, and/or sell copies of it,under the terms of the MIT License. See LICENSE.md for details.

This software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND,express or implied. See LICENSE.md for details.

Support

To report bugs, suggest improvements, or ask questions,create issues.

More

If you like this project, follow me on Twitter or checkout the related projects TeXMe andMathBin.

相关阅读

相关文章

相关问答

相关文档