# 数学公式

如果要在文章中显示数学公式，可以使用插件 [**hexo-filter-mathjax**](https://github.com/next-theme/hexo-filter-mathjax/)。

配置流程：

1. 在 Hexo 项目根目录下安装插件 **hexo-filter-mathjax**。

   ```bash
   $ cd hexo-site
   $ npm install hexo-filter-mathjax
   ```
2. 在 Hexo 配置文件 `_config.yml` 最底下增加如下配置。

   ```yaml
   mathjax:
     tags: none               # or 'ams' or 'all'
     single_dollars: true     # enable single dollar signs as in-line math delimiters
     cjk_width: 0.9           # relative CJK char width
     normal_width: 0.6        # relative normal (monospace) width
     append_css: true         # add CSS to every page
     every_page: false        # if true, every page will be rendered by mathjax regardless the `mathjax` setting in Front-matter of each article
   ```
3. 在文章页添加 `mathjax: true` 属性，至此，就可以在该页面中写公式了。

   示例：

   ```yaml
   ---
   title: MathJax Test
   date: 2020-09-12 16:02:07
   tags: MathJax
   categories: MathJax
   mathjax: true
   ---
   $$
   i\hbar\frac{\partial}{\partial t}\psi=-\frac{\hbar^2}{2m}\nabla^2\psi+V\psi
   $$
   ```

   效果图：<br>

   <figure><img src="https://evan.beee.top/img/image.76zdiodvgds0.png" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://evans-organization.gitbook.io/redefine-document/advanced/shu-xue-gong-shi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
