> 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-and-tra-loi/13-how-can-i-double-space-a-document.md).

# Làm thế nào để tôi giãn dòng đôi trong tài liệu?

Bạn có thể sử dụng `\doublespacing` lệnh do `setspace` gói cung cấp. Ví dụ sau sử dụng `\doublespacing` trong phần mở đầu tài liệu:

```latex
\documentclass{article}
% Chọn kích thước trang đủ nhỏ một cách thuận tiện
\usepackage[paperheight=18cm,paperwidth=14cm,textwidth=12cm]{geometry}
% Tải gói blindtext cho văn bản giả
\usepackage{blindtext}
% Tải gói setspace
\usepackage{setspace}
% Việc sử dụng \doublespacing trong phần mở đầu
% sẽ chuyển văn bản sang giãn dòng đôi
\doublespacing
\begin{document}
\blindtext[1]
\end{document}
```

[Mở `setspace` ví dụ trên Overleaf.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+use+of+the+doublespacing+command\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Choose+a+conveniently+small+page+size%0A%5Cusepackage%5Bpaperheight%3D18cm%2Cpaperwidth%3D14cm%2Ctextwidth%3D12cm%5D%7Bgeometry%7D%0A%25+Load+blindtext+package+for+dummy+text%0A%5Cusepackage%7Bblindtext%7D%0A%25+Load+the+setspace+package%0A%5Cusepackage%7Bsetspace%7D%0A%25+Using+%5Cdoublespacing+in+the+preamble+%0A%25+changes+the+text+to+double-line+spacing%0A%5Cdoublespacing%0A%5Cbegin%7Bdocument%7D%0A%5Cblindtext%5B1%5D%0A%5Cend%7Bdocument%7D)

Ví dụ này tạo ra kết quả sau:

![Ví dụ về lệnh \doublespacing của setspace](/files/68088ff7b0421750cb7eaababb453dccc245b5ed)


---

# 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-and-tra-loi/13-how-can-i-double-space-a-document.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.
