首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >在Hexo的Markdown编辑中使用数据符号

在Hexo的Markdown编辑中使用数据符号

作者头像
keyle
发布2024-11-01 12:25:40
发布2024-11-01 12:25:40
20700
代码可运行
举报
文章被收录于专栏:礼拜八不工作礼拜八不工作
运行总次数:0
代码可运行

之前输入数学公式的一直用截图 自觉用户体验很差,最近发现用的这个主题带了好用的数学函数辅助,便一发不可收拾。顺便推荐一下我用的主题是maupassant-hexo github ,这里记录一下数学符的用法。

maupassant-hexo的数学函数开启方式

其他的主题可能方式不一样 具体需要对照文档

代码语言:javascript
代码运行次数:0
运行
复制
Math Equation

Add

mathjax: true
in Hexo's _config.yml.

In the post which you would like to use math equation, add mathjax: true in the front-matter. For example:

title: Test Math
date: 2016-04-05 14:16:00
categories: math
mathjax: true
---
The default math delimiters are $$...$$ and \\[...\\] for displayed mathematics, and $...$ and \\(...\\) for in-line mathematics.

However, if your post contains dollar signs ($), and they appear often in non-mathematical parts, in other words, you want to use $ as dollar sign not inline math delimiter, please add

mathjax2: true
in Hexo's _config.yml instead of mathjax: true. Correspondingly, add mathjax2: true to the front-matter of the post in which you would like to use math equation.

See the example.

添加标签则可用

代码语言:javascript
代码运行次数:0
运行
复制
$
    \\beta
    \\alpha
$ 

效果如下: βα��

或者这样以居中显示:

代码语言:javascript
代码运行次数:0
运行
复制
\\[\\beta \\alpha\\]

βα��

数学符

上面演示的 β� 之类的数学符号列表如下:

运算符

Symbol

Script

coscos

\cos

sinsin

\sin

limlim

\lim

expexp

\exp

→→

\to

∞∞

\infty

≡≡

\equiv

modmod

\bmod

××

\times

幂与指数

Symbol

Script

kn+1��+1

k_{n+1}

n2�2

n^2

k2n��2

k_n^2

分数与二项式

Symbol

Script

n!k!(n−k)!�!�!(�−�)!

\frac{n!}{k!(n-k)!}

(nk)(��)

\binom{n}{k}

x1x−y�1�−�

\frac{\frac{x}{1}}{x - y}

3/73/7

^3/_7

Symbol

Script

√k�

\sqrt{k}

n√k��

\sqrt[n]{k}

运算必须符

Symbol

Script

∑10i=1ti∑�=110��

\sum_{i=1}^{10} t_i

∫∞0e−x,dx∫0∞e−�,d�

\int_0^\infty \mathrm{e}^{-x},\mathrm{d}x

∑∑

\sum

∏∏

\prod

∐∐

\coprod

⨁⨁

\bigoplus

⨂⨂

\bigotimes

⨀⨀

\bigodot

⋃⋃

\bigcup

⋂⋂

\bigcap

⨄⨄

\biguplus

⨆⨆

\bigsqcup

⋁⋁

\bigvee

⋀⋀

\bigwedge

∫∫

\int

∮∮

\oint

∬∬

\iint

∭∭

\iiint

∫⋯∫∫⋯∫

\idotsint

∑0<i<m\0<j<nP(i,j)∑0<�<�\0<�<��(�,�)

\sum_{\substack{0<i<m\0<j<n}} P(i, j)

b∫a∫��

\int\limits_a^b

a′�′ a′�′

a` a^{\prime}

a′′�″

a’’

^a�^

hat{a}

¯a�¯

\bar{a}

`a�`

\grave{a}

´a�´

\acute{a}

˙a�˙

\dot{a}

¨a�¨

\ddot{a}

/a⧸�

\not{a}

˚a�˚

\mathring{a}

−−→AB��→

\overrightarrow{AB}

←−−AB��←

\overleftarrow{AB}

a′′′�‴

a’’’

¯¯¯¯¯¯¯¯¯aaa���¯

\overline{aaa}

ˇa�ˇ

\check{a}

⃗a�→

\vec{a}

a−�_

\underline{a}

x�

\color{red}x

±±

\pm

∓∓

\mp

∫ydx∫�d�

\int y \mathrm{d}x

,,

,

::

:

;;

;

!!

!

∫y,dx∫�,d�

\int y, \mathrm{d}x

……

\dots

……

\ldots

⋯⋯

\cdots

⋮⋮

\vdots

⋱⋱

\ddots

括弧

Symbol

Script

(a)(�)

(a)

[a][�]

[a]

a�

{a}

⟨f⟩⟨�⟩

\langle f \rangle

⌊f⌋⌊�⌋

\lfloor f \rfloor

⌈f⌉⌈�⌉

\lceil f \rceil

┌f┐⌜�⌝

\ulcorner f \urcorner

本文参与 腾讯云自媒体同步曝光计划,分享自微信公众号。
原始发表:2024-05-17,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 礼拜八不工作 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • maupassant-hexo的数学函数开启方式
  • 数学符
    • 运算符
    • 幂与指数
    • 分数与二项式
    • 运算必须符
    • 括弧
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档