# 界面自定义 规范地址:https://xstavern.com/wiki/usage/user-settings/uicustomization/ 原文:https://sillytaverncn.net/usage/user-settings/uicustomization/ 核对日期:2026-11-03 授权迁移,保留作者、上游许可与出处。 UI 自定义 --- ## Message Sound To play your own custom sound on receiving a new message from bot, replace the following MP3 file in your SillyTavern folder: `public/sounds/message.mp3` Plays at 80% volume. If the "[Background Sound Only](index.md#miscellaneous)" option is enabled, the sound plays only if SillyTavern window is **unfocused**. ## Formulas Rendering To enable math formulas rendering, use the [LaTeX extension](https://github.com/SillyTavern/Extension-LaTeX). To get the extension, you need to install it via the "Download Extensions & Assets" menu in SillyTavern. Type your formulas in code blocks with `latex` or `asciimath` language identifiers for LaTeX and AsciiMath respectively. The extension uses [KaTeX](https://katex.org/) for rendering.
```latex
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
```
```asciimath
int_{-oo}^{oo} e^{-x^2} dx = sqrt{pi}
```
!!!info Deprecation notice
The legacy `$` and `$$` wrapper syntax is no longer supported. Please use the following regex scripts to polyfill the old syntax:
* [$$ - LaTeX](https://github.com/SillyTavern/Extension-LaTeX/raw/refs/heads/main/assets/$$_-_latex.json)
* [$ - AsciiMath](https://github.com/SillyTavern/Extension-LaTeX/raw/refs/heads/main/assets/$_-_asciimath.json)
---
# UI 自定义
## UI 主题
### 主题管理
主题文件允许您保存、共享和重复使用您的 UI 自定义设置。您可以维护多个主题以适应不同的心情或用途,并在它们之间即时切换。
* 导入/导出主题文件
* 删除现有主题
* 保存对当前主题的更改
* 另存为新主题
本节中的所有设置都保存到当前主题。如果您切换主题,这些设置将被新主题的设置替换。
### 显示设置
这些显示选项影响角色和消息在聊天界面中的呈现方式。
#### 头像样式
在圆形、方形或矩形之间选择。
#### 聊天样式
| 样式 | 描述 | [斜杠命令](/For_Contributors/st-script.md#ui-styling) |
|--------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|
| **平面** | 干净连续的"聊天日志"样式,一个让您的 AI 互动栩栩如生的平面画布。 | `/flat````latex
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
```
```asciimath
int_{-oo}^{oo} e^{-x^2} dx = sqrt{pi}
```
!!! info 弃用通知
不再支持传统的 `$` 和 `$$` 包装语法。请使用以下正则表达式脚本来兼容旧语法:
* [$$ - LaTeX](https://github.com/SillyTavern/Extension-LaTeX/raw/refs/heads/main/assets/$$_-_latex.json)
* [$ - AsciiMath](https://github.com/SillyTavern/Extension-LaTeX/raw/refs/heads/main/assets/$_-_asciimath.json)
!!!
许可与致谢:https://xstavern.com/wiki/licensecredits/