> 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/vi/cau-hoi-latex/02-keep-track-of-your-labels-with-showlabels.md).

# Theo dõi nhãn của bạn với showlabels

**Tác giả: James Allen (tháng 1 năm 2012)**

Bất cứ khi nào tôi viết các tài liệu LaTeX dài, tôi luôn thấy mình nhảy qua lại trong mã để cố nhớ mình đã đặt tên cho một `\label`. Để khỏi làm mất chỗ đang đọc trong mã, tôi dùng [`showlabels`](https://ctan.org/pkg/showlabels?lang=en) gói hiển thị tên nhãn bên cạnh phương trình tương ứng. Khi đó tôi có thể xem trong PDF, nơi việc tìm phương trình tôi đang tìm dễ hơn, và tôi không cần phải nhảy qua lại trong mã của mình. Nó hoạt động với gần như mọi thứ mà bạn có thể gán một `\label` cho. Tuyệt vời!

**Cách dùng**

Trong phần tiền đề của bạn, hãy đặt:

```latex
\usepackage{showlabels}
```

**Ví dụ đầu ra**

![ShowlabelsExample.png](/files/96eb8b99ddb79f251aeafe9b51f299038aca7d08)

**Tùy chọn**

Bạn có thể cung cấp một tùy chọn cho showlabels để cho nó biết đặt các nhãn ở đâu:

```latex
\usepackage[inline]{showlabels}
```

Các tùy chọn khả dụng là (lấy từ [tài liệu](https://ctan.org/pkg/showlabels?lang=en)):

* `ngoài` \[mặc định]—tất cả ghi chú được đặt ở lề ngoài của văn bản
* `trong`—lề trong
* `trái`—lề trái
* `phải`—lề phải
* `lề` \[mặc định]—đặt ghi chú ở lề
* `nội dòng`—đặt ghi chú trong dòng nhiều nhất có thể, và bỏ qua mọi tùy chọn đặt ở lề ở trên
* `không nhãn`—không chèn ghi chú ở lề cho `\label` lệnh
* `bản nháp` \[mặc định]—không làm gì cả, đối tác của...
* `bản cuối`—tắt toàn bộ chức năng của gói

Lưu ý rằng `showlabels` nên được bao gồm sau các gói `amsmath` và `hyperref` để hoạt động đúng với chúng. Xem [tài liệu chính thức (PDF)](http://mirrors.ctan.org/macros/latex/contrib/showlabels/showlabels.pdf) để biết thêm chi tiết.


---

# 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/vi/cau-hoi-latex/02-keep-track-of-your-labels-with-showlabels.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.
