> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/142-use-grammarly-with-overleaf.md).

# 在 Overleaf 中使用 Grammarly

## 如何在 Overleaf 中使用 Grammarly

按照以下步骤在 Overleaf 中使用 Grammarly：

1. 安装一个 [由 Grammarly 提供的浏览器扩展](https://support.grammarly.com/hc/en-us/articles/115000091552-How-to-instal)。我们建议读者查看 [Grammarly 的支持页面](https://support.grammarly.com/hc/en-us/articles/115000091592-How-does-the-Gramma) 以获取更多信息。
2. 安装好你偏好的浏览器扩展后，你需要注册一个 [Grammarly 账户](https://www.grammarly.com/plans).

以下截图显示了固定到 Chrome 工具栏上的 Grammarly Chrome 扩展：

![显示已在 Chrome 中安装 Grammarly 扩展的图片](/files/7454f035b646b25a5f5b5534d07632248055f302)

* **注意**：为避免 Grammarly 的建议可能产生冲突，你可以通过项目的 Menu 关闭 Overleaf 内置的拼写检查：

![显示如何关闭 Overleaf 拼写检查功能的图片](/files/80c31390afdad99dc5c933192bdc707dceaaea11)

Grammarly 扩展会始终检查编辑器中当前打开的文件，并会显示在文档底部。

![显示 Grammarly Chrome 扩展中可用设置的图片](/files/6d72330aeab534ff0426a95351f19f2d4358b3c3)

上面的截图显示了 Grammarly Premium 图标，表示这段文本有 4 条建议，这是从 [《白鲸记；或，鲸鱼》](https://en.wikipedia.org/wiki/Moby-Dick) 复制自 [古腾堡计划](https://www.gutenberg.org/files/2701/2701-h/2701-h.htm).

## 如何暂时禁用 Grammarly

1. 在浏览器中打开一个 Overleaf 项目，并确保它是当前活动的浏览器标签页。
2. 选择浏览器工具栏上的 Grammarly 图标（![Graamarly icon](/files/3978a62efd7dda363890ab644987b3a3b01e036f)）。
3. 确保 **overleaf.com** 域名显示在 Grammarly 的菜单中。
4. 将切换开关设为 Off，以在以下位置禁用 Grammarly： **overleaf.com**

这些步骤在下图中进行了总结：

![如何在 Overleaf 上禁用 Grammarly](/files/737976631f637c3f09ea684dd417daa2c35af821)

## 已知限制

我们的测试突出了以下几点：

1. Grammarly 无法识别 LaTeX 标记，因此有时会给出错误建议，并且某些单词不会进行拼写检查。例如，左花括号后面的文本 `{` 不会被 Grammarly 检查：

![显示 Grammarly 不会检查的 LaTeX 文本/标记的截图](/files/a8e9c1c2d6299f73f020246eb135304008e6323d)

3. 在可视化编辑器中，Grammarly 扩展报告的错误数量可能偏低，尤其是对于较大的文档。
4. 像 Grammarly 这样的浏览器扩展有时会在处理长文档时影响性能。如果你在输入或滚动时感到卡顿，请尝试暂时禁用 Grammarly，以测试这是否能改善行为。

## Grammarly Premium 功能：Snippets

Grammarly Premium 用户可以使用 [“snippets” 功能](https://support.grammarly.com/hc/en-us/articles/4403077145485-Introducing-snippets#h_01FNP7HWZAR3E7EMXS6N539QS6) ，默认通过反斜杠（\）字符（作为快捷方式）触发。此功能可能会与 Overleaf 对 LaTeX 命令的自动补全冲突，但幸运的是，可以使用 [来自 Grammarly 支持的建议](https://support.grammarly.com/hc/en-us/articles/4403077145485-Introducing-snippets#:~:text=their%20personal%20snippets.-,How%20do%20I%20customize%20my%20keyboard%20shortcut%3F,-To%20use%20a).


---

# 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://ayakaleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/142-use-grammarly-with-overleaf.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.
