> For the complete documentation index, see [llms.txt](https://kb.howsci.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.howsci.com/output-style/modifying-style-templates/endnote-cleans-up.md).

# 自动清理

是不是被[EndNote](http://www.howsci.com/tag/endnote/)的规则给搞混乱了？好吧，即使你不一定把规则完全搞清楚，根据规则[EndNote](http://www.howsci.com/tag/endnote/)也会尽力清理格式化模板。一些明显的问题EndNote可以自动修复的。

EndNote通常情况下在栏目中输入文本是没有结束标点符号的，这样设置的好处在于输出的参考文献可以为特定的输出格式提供需要的标点符号。但是当从各种来源下载的文献可能有些信息中包含标点符号。

例如当[EndNote](http://www.howsci.com/tag/endnote/)根据一个输出格式在一个栏目后插入句号时，EndNote必须确定文献中的末尾栏目如何处理已存在标点符号

| 输出格式添加的多余的标点符号 | 替换为  |
| -------------- | ---- |
| 空格句号           | 句号   |
| 逗号句号(,.)       | 句号   |
| 分号句号(;.)       | 句号   |
| 冒号句号(:.)       | 句号   |
| 两个句号(..)       | 一个句号 |
| 问号句号(?.)       | 问号   |
| 叹号句号(!.)       | 叹号   |

[EndNote](http://www.howsci.com/tag/endnote/)处理其他多余的标点符号：

| 输出格式添加的多余的标点符号 | 替换为  |
| -------------- | ---- |
| 两个空格           | 一个空格 |
| 两个逗号(,,)       | 一个逗号 |
| 两个分号(;;)       | 一个分号 |
| 两个问号(??)       | 一个问号 |
| 两个句号(..)       | 一个句号 |
| 逗号句号(,.)       | 句号   |
| 问号句号(?.)       | 问号   |
| 叹号句号(!.)       | 叹号   |
| 问号叹号(?!)       | 问号   |
| 叹号句号(!?)       | 叹号   |

一组标点符号永远不会替代为句号逗号(.,)，因为句号逗号可用于缩写，如ed.,et al.,etc.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://kb.howsci.com/output-style/modifying-style-templates/endnote-cleans-up.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
