> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-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 的建议产生潜在冲突，您可能希望通过项目的“菜单”关闭 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. 将切换开关设为“关闭”以在 **overleaf.com**

这些步骤总结如下图所示：

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

## 已知限制

我们的测试凸显了以下几点：

1. Grammarly 无法识别 LaTeX 标记，这有时会导致错误的建议，并且某些单词不会被拼写检查。例如，紧跟在左花括号后面的文本 `{` 不会被 Grammarly 检查：

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

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

## Grammarly Premium 功能：片段

Grammarly Premium 用户可使用一个 [“片段”功能](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://overleaf-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.
