# tex 函数

用 LaTeX 排版的表达式。

## 怎么写

### tex(expr)

**expr**

任意表达式：一个数、一个公式、一个列表或一个矩阵。接受一个表达式。

## 示例

- $\displaystyle \operatorname{tex}(x^{2}) = x^{2}$

  `tex(x^2)`

  在求解器中，`tex(x^2)` 的结果是 ``tex(`x^{2}`)``。

  [在求解器中打开](https://zh.hilberon.com/?q=tex%28x%5E2%29)

---
Source: https://zh.hilberon.com/library/tex
