MỚI: Hãy ghé thăm Overleaf Learning Center mới để khám phá các khóa học trực tuyến và webinar trực tiếp miễn phí — mọi thứ bạn cần để thành thạo LaTeX và tận dụng tối đa Overleaf.
Hướng dẫn nhập môn này không yêu cầu bạn có kinh nghiệm trước về LaTeX, nhưng hy vọng rằng khi hoàn thành, bạn không chỉ viết được tài liệu LaTeX đầu tiên mà còn có đủ kiến thức và sự tự tin để tiến thêm những bước tiếp theo hướng tới việc thành thạo LaTeX.
LaTeX là gì?
LaTeX (phát âm là “LAY-tek” hoặc “LAH-tek”) là một công cụ để sắp chữ các tài liệu có giao diện chuyên nghiệp. Tuy nhiên, cách thức hoạt động của LaTeX khá khác biệt so với nhiều ứng dụng tạo tài liệu khác mà bạn có thể đã dùng, như Microsoft Word hay LibreOffice Writer: những công cụ “WYSIWYG” đó cung cấp cho người dùng một trang tương tác để gõ, chỉnh sửa văn bản và áp dụng nhiều kiểu định dạng khác nhau. LaTeX hoạt động rất khác: tài liệu của bạn là một tệp văn bản thuần xen kẽ các lệnh LaTeX dùng để diễn đạt kết quả (sắp chữ) mong muốn. Để tạo ra một tài liệu đã được sắp chữ và có thể xem được, tệp LaTeX của bạn được xử lý bởi một phần mềm gọi là TeX engine, sử dụng các lệnh nhúng trong tệp văn bản để hướng dẫn và điều khiển quá trình sắp chữ, chuyển đổi các lệnh LaTeX và văn bản tài liệu thành một tệp PDF được sắp chữ chuyên nghiệp. Điều này có nghĩa là bạn chỉ cần tập trung vào nội dung của tài liệu, còn máy tính, thông qua các lệnh LaTeX và TeX engine, sẽ lo phần hình thức trình bày (định dạng).
Tại sao nên học LaTeX?
Có nhiều lập luận ủng hộ hoặc phản đối việc học LaTeX thay cho các ứng dụng soạn thảo tài liệu khác; nhưng rốt cuộc, đó là lựa chọn cá nhân dựa trên sở thích, sự phù hợp và yêu cầu về tài liệu.Các lập luận ủng hộ LaTeX bao gồm:
hỗ trợ sắp chữ các công thức toán học, bảng biểu và nội dung kỹ thuật cực kỳ phức tạp cho các ngành khoa học tự nhiên;
các tiện ích cho chú thích cuối trang, tham chiếu chéo và quản lý danh mục tài liệu tham khảo;
dễ dàng tạo ra các thành phần tài liệu phức tạp hoặc tẻ nhạt như chỉ mục, bảng thuật ngữ, mục lục, danh sách hình;
khả năng tùy biến cao để tạo tài liệu theo yêu cầu riêng nhờ tính lập trình được vốn có và khả năng mở rộng thông qua hàng nghìn gói bổ sung miễn phí.
Nhìn chung, LaTeX cho phép người dùng kiểm soát rất nhiều đối với việc tạo ra các tài liệu được sắp chữ theo tiêu chuẩn cực kỳ cao. Tất nhiên, có những loại tài liệu hoặc ấn phẩm mà LaTeX không phát huy thế mạnh, bao gồm nhiều thiết kế trang “tự do” thường thấy trong các ấn phẩm dạng tạp chí.Một lợi ích quan trọng của LaTeX là sự tách biệt giữa nội dung và kiểu trình bày của tài liệu: một khi đã viết xong nội dung, bạn có thể dễ dàng thay đổi hình thức của nó. Tương tự, bạn có thể tạo một tệp LaTeX định nghĩa bố cục/kiểu dáng của một loại tài liệu cụ thể, và tệp đó có thể được dùng làm mẫu (template) để chuẩn hóa việc soạn thảo/tạo ra các tài liệu khác cùng loại; ví dụ, điều này cho phép các nhà xuất bản khoa học tạo các mẫu bài báo bằng LaTeX để tác giả dùng khi viết bài gửi đến tạp chí. Overleaf có một thư viện chứa hàng nghìn mẫu, bao quát rất nhiều loại tài liệu — từ bài báo khoa học, báo cáo và sách đến CV và bài thuyết trình. Vì các mẫu này đã định nghĩa bố cục và kiểu dáng của tài liệu, tác giả chỉ cần mở chúng trong Overleaf — tạo một dự án mới — và bắt đầu viết để thêm nội dung.
Viết đoạn LaTeX đầu tiên
Bước đầu tiên là tạo một dự án LaTeX mới. Bạn có thể làm điều này trên máy tính của mình bằng cách tạo một tệp .tex mới; hoặc bạn có thể bắt đầu một dự án mới trong Overleaf.Hãy bắt đầu với ví dụ hoạt động đơn giản nhất, có thể mở trực tiếp trong Overleaf:
\documentclass{article}\begin{document}First document. This is a simple example, with no extra parameters or packages included.\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Bạn có thể thấy LaTeX đã tự động thụt lề dòng đầu tiên của đoạn văn, tự lo phần định dạng đó cho bạn. Hãy xem kỹ hơn từng phần trong đoạn mã của chúng ta làm gì.Dòng mã đầu tiên, \documentclass{article}, khai báo loại tài liệu, được gọi là lớp (class) của nó, quyết định hình thức tổng thể của tài liệu. Các loại tài liệu khác nhau cần các lớp khác nhau; ví dụ, một CV/sơ yếu lý lịch sẽ cần một lớp khác với một bài báo khoa học, vốn có thể dùng lớp article tiêu chuẩn của LaTeX. Các loại tài liệu khác mà bạn có thể làm việc có thể cần các lớp khác như book hoặc report. Để có cái nhìn về nhiều loại lớp LaTeX hiện có, hãy truy cập trang liên quan trên CTAN (Comprehensive TeX Archive Network).Sau khi đặt lớp tài liệu, nội dung của chúng ta, được gọi là phần thân (body) của tài liệu, được viết giữa các thẻ \begin{document} và \end{document}. Sau khi mở ví dụ trên, bạn có thể thay đổi văn bản và khi xong, xem tệp PDF được sắp chữ bằng cách biên dịch lại tài liệu. Để làm điều này trong Overleaf, chỉ cần nhấn Recompile, như minh họa trong đoạn video ngắn này:Bất kỳ dự án Overleaf nào cũng có thể được cấu hình để tự động biên dịch lại mỗi khi được chỉnh sửa: nhấp vào mũi tên nhỏ bên cạnh nút Recompile và đặt Auto Compile thành On, như trong ảnh chụp màn hình sau:Sau khi đã biết cách thêm nội dung vào tài liệu, bước tiếp theo là đặt tiêu đề cho nó. Để làm điều này, chúng ta cần nói qua về preamble (phần mở đầu).
Phần preamble của tài liệu
Ảnh chụp màn hình ở trên cho thấy Overleaf lưu tài liệu LaTeX dưới dạng tệp có tên main.tex: theo quy ước, phần mở rộng .tex được dùng khi đặt tên cho các tệp chứa mã LaTeX của tài liệu.Ví dụ trước cho thấy nội dung tài liệu được nhập sau lệnh \begin{document}; tuy nhiên, mọi thứ trong tệp .tex xuất hiện trước vị trí đó được gọi là preamble, đóng vai trò là phần “thiết lập” của tài liệu. Trong preamble, bạn định nghĩa lớp (loại) tài liệu cùng với các chi tiết cụ thể như ngôn ngữ được dùng khi viết tài liệu; nạp các gói (package) mà bạn muốn sử dụng (sẽ nói thêm về điều này ở phần sau), và đây cũng là nơi bạn áp dụng các loại cấu hình khác.Một preamble tối giản có thể trông như sau:
trong đó \documentclass[12pt, letterpaper]{article} định nghĩa lớp (loại) tổng thể của tài liệu. Các tham số bổ sung, phải được phân tách bằng dấu phẩy, được đặt trong cặp ngoặc vuông ([...]) và dùng để cấu hình phiên bản này của lớp article; tức là các thiết lập mà chúng ta muốn dùng cho tài liệu cụ thể dựa trên lớp article này.Trong ví dụ này, hai tham số có tác dụng như sau:
12pt đặt cỡ chữ
letterpaper đặt khổ giấy
Tất nhiên có thể dùng các cỡ chữ khác như 9pt, 11pt, 12pt, nhưng nếu không chỉ định, cỡ chữ mặc định là 10pt. Về khổ giấy, các giá trị khác có thể dùng là a4paper và legalpaper. Để biết thêm thông tin, hãy xem bài viết về khổ trang và lề.Dòng preamble
\usepackage{graphicx}
là một ví dụ về việc nạp một gói bên ngoài (ở đây là graphicx) để mở rộng khả năng của LaTeX, cho phép nó nhập các tệp đồ họa bên ngoài. Các gói LaTeX được thảo luận trong phần Tìm kiếm và sử dụng các gói LaTeX.
Thêm thông tin tiêu đề, tác giả và ngày tháng
Để thêm tiêu đề, tác giả và ngày tháng vào tài liệu, cần thêm ba dòng vào preamble (không phải phần thân chính của tài liệu). Các dòng đó là:
\title{My first LaTeX document}: tiêu đề tài liệu
\author{Hubert Farnsworth}: ở đây bạn viết tên (các) tác giả và, tùy chọn, lệnh \thanks trong cặp ngoặc nhọn:
\thanks{Funded by the Overleaf team.}: có thể được thêm sau tên tác giả, bên trong cặp ngoặc nhọn của lệnh author. Lệnh này sẽ thêm một chỉ số trên và một chú thích cuối trang với văn bản bên trong ngoặc. Hữu ích nếu bạn cần cảm ơn một tổ chức trong bài viết.
\date{August 2022}: bạn có thể nhập ngày thủ công hoặc dùng lệnh \today để sắp chữ ngày hiện tại mỗi khi tài liệu được biên dịch
Sau khi thêm các dòng này, preamble của bạn sẽ trông giống như sau:
\documentclass[12pt, letterpaper]{article}\title{My first LaTeX document}\author{Hubert Farnsworth\thanks{Funded by the Overleaf team.}}\date{August 2022}
Để sắp chữ tiêu đề, tác giả và ngày tháng, hãy dùng lệnh \maketitle trong phần thân của tài liệu:
\begin{document}\maketitleWe have now added a title, author and date to our first \LaTeX{} document!\end{document}
Giờ đây preamble và phần thân có thể được kết hợp để tạo thành một tài liệu hoàn chỉnh có thể mở trong Overleaf:
\documentclass[12pt, letterpaper]{article}\title{My first LaTeX document}\author{Hubert Farnsworth\thanks{Funded by the Overleaf team.}}\date{August 2022}\begin{document}\maketitleWe have now added a title, author and date to our first \LaTeX{} document!\end{document}
LaTeX là một dạng “mã chương trình”, nhưng là loại chuyên dùng cho việc sắp chữ tài liệu; do đó, cũng như với mã viết bằng bất kỳ ngôn ngữ lập trình nào khác, việc thêm chú thích (comment) vào tài liệu có thể rất hữu ích. Chú thích LaTeX là một đoạn văn bản sẽ không được sắp chữ hoặc không ảnh hưởng đến tài liệu theo bất kỳ cách nào — thường dùng để thêm ghi chú “việc cần làm”; thêm ghi chú giải thích; giải thích ngay tại chỗ các macro phức tạp hoặc vô hiệu hóa các dòng/đoạn mã LaTeX khi gỡ lỗi.Để tạo chú thích trong LaTeX, chỉ cần viết ký hiệu % ở đầu dòng, như trong đoạn mã sau dựa trên ví dụ ở trên:
\documentclass[12pt, letterpaper]{article}\title{My first LaTeX document}\author{Hubert Farnsworth\thanks{Funded by the Overleaf team.}}\date{August 2022}\begin{document}\maketitleWe have now added a title, author and date to our first \LaTeX{} document!% This line here is a comment. It will not be typeset in the document.\end{document}
Tiếp theo, chúng ta sẽ xem xét một số lệnh định dạng văn bản:
In đậm: văn bản in đậm trong LaTeX được sắp chữ bằng lệnh \textbf{...}.
In nghiêng: văn bản in nghiêng được tạo bằng lệnh \textit{...}.
Gạch chân: để gạch chân văn bản, hãy dùng lệnh \underline{...}.
Ví dụ tiếp theo minh họa các lệnh này:
Some of the \textbf{greatest}discoveries in \underline{science} were made by \textbf{\textit{accident}}.
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Một lệnh rất hữu ích khác là \emph{_argument_}, tác dụng của nó lên _argument_ phụ thuộc vào ngữ cảnh. Trong văn bản thường, văn bản được nhấn mạnh sẽ được in nghiêng, nhưng hành vi này bị đảo ngược nếu dùng bên trong văn bản đã in nghiêng — xem ví dụ tiếp theo:
Some of the greatest \emph{discoveries} in science were made by accident.\textit{Some of the greatest \emph{discoveries} in science were made by accident.}\textbf{Some of the greatest \emph{discoveries} in science were made by accident.}
Dùng Code Editor để viết mã LaTeX chèn hình đồ họa.
Cách 1 và 2 tự động tạo mã LaTeX cần thiết để chèn hình ảnh, nhưng ở đây chúng tôi giới thiệu cách 3 — lưu ý rằng bạn sẽ cần tải các hình ảnh đó lên dự án Overleaf của mình. Ví dụ sau minh họa cách chèn một hình ảnh:
\documentclass{article}\usepackage{graphicx} %LaTeX package to import graphics\graphicspath{{images/}} %configuring the graphicx package\begin{document}The universe is immense and it seems to be homogeneous, on a large scale, everywhere we look.% The \includegraphics command is % provided (implemented) by the % graphicx package\includegraphics{universe} There's a picture of a galaxy above.\end{document}
Mở ví dụ hình ảnh này trong Overleaf.Ví dụ này tạo ra kết quả sau:Việc nhập hình đồ họa vào tài liệu LaTeX cần một gói bổ sung cung cấp các lệnh và tính năng cần thiết để chèn các tệp đồ họa bên ngoài. Ví dụ trên nạp gói graphicx, gói này, bên cạnh nhiều lệnh khác, cung cấp \includegraphics{...} để nhập hình đồ họa và \graphicspath{...} để cho LaTeX biết vị trí của các hình đồ họa.Để dùng gói graphicx, hãy thêm dòng sau vào preamble của tài liệu Overleaf:
\usepackage{graphicx}
Trong ví dụ của chúng ta, lệnh \graphicspath{{images/}} cho LaTeX biết rằng các hình ảnh được lưu trong một thư mục có tên images, nằm trong thư mục hiện tại:Lệnh \includegraphics{universe} thực hiện việc chèn hình ảnh vào tài liệu. Ở đây, universe là tên của tệp hình ảnh nhưng không có phần mở rộng.Lưu ý:
Mặc dù có thể dùng tên tệp đầy đủ, bao gồm cả phần mở rộng, trong lệnh \includegraphics, nhưng cách làm tốt nhất là bỏ qua phần mở rộng tệp vì khi đó LaTeX sẽ tìm kiếm tất cả các định dạng được hỗ trợ.
Nhìn chung, tên tệp đồ họa không nên chứa khoảng trắng hoặc nhiều dấu chấm; bạn cũng nên dùng chữ thường cho phần mở rộng tệp khi tải các tệp hình ảnh lên Overleaf.
Hình ảnh có thể được thêm chú thích (caption), gắn nhãn (label) và tham chiếu thông qua môi trường figure, như dưới đây:
\documentclass{article}\usepackage{graphicx}\graphicspath{{images/}}\begin{document}\begin{figure}[h] \centering \includegraphics[width=0.75\textwidth]{mesh} \caption{A nice plot.} \label{fig:mesh1}\end{figure}As you can see in figure \ref{fig:mesh1}, the function grows near the origin. This example is on page \pageref{fig:mesh1}.\end{document}
\includegraphics[width=0.75\textwidth]{mesh}: Dạng này của \includegraphics yêu cầu LaTeX đặt chiều rộng của hình bằng 75% chiều rộng văn bản — giá trị này được lưu trong lệnh \textwidth.
\caption{A nice plot.}: Đúng như tên gọi, lệnh này đặt chú thích cho hình, có thể đặt ở trên hoặc dưới hình. Nếu bạn tạo danh sách hình, chú thích này sẽ được dùng trong danh sách đó.
\label{fig:mesh1}: Để tham chiếu đến hình ảnh này trong tài liệu, bạn gán cho nó một nhãn bằng lệnh \label. Nhãn được dùng để tạo số thứ tự cho hình ảnh và, kết hợp với lệnh tiếp theo, sẽ cho phép bạn tham chiếu đến nó.
\ref{fig:mesh1}: Đoạn mã này sẽ được thay thế bằng số thứ tự tương ứng với hình được tham chiếu.
Hình ảnh được đưa vào tài liệu LaTeX nên được đặt bên trong môi trường figure hoặc tương tự, để LaTeX có thể tự động đặt hình ảnh ở vị trí phù hợp trong tài liệu.Hướng dẫn thêm có trong các bài viết trợ giúp sau của Overleaf:
Bạn có thể tạo các loại danh sách khác nhau bằng môi trường (environment), vốn được dùng để bao bọc mã LaTeX cần thiết để thực hiện một tính năng sắp chữ cụ thể. Một môi trường bắt đầu bằng \begin{_environment-name_} và kết thúc bằng \end{_environment-name_}, trong đó _environment-name_ có thể là figure, tabular hoặc một trong các loại danh sách: itemize cho danh sách không có thứ tự hoặc enumerate cho danh sách có thứ tự.
Danh sách không có thứ tự
Danh sách không có thứ tự được tạo bằng môi trường itemize. Mỗi mục trong danh sách phải đứng sau lệnh \item, như dưới đây:
\documentclass{article}\begin{document}\begin{itemize} \item The individual entries are indicated with a black dot, a so-called bullet. \item The text in the entries may be of any length.\end{itemize}\end{document}
Danh sách có thứ tự dùng cú pháp giống danh sách không có thứ tự nhưng được tạo bằng môi trường enumerate:
\documentclass{article}\begin{document}\begin{enumerate} \item This is the first entry in our list. \item The list numbers increase with each entry we add.\end{enumerate}\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Giống như với danh sách unordered, mỗi mục phải đứng sau lệnh \item; ở đây lệnh này tự động tạo giá trị nhãn số thứ tự cho danh sách, bắt đầu từ 1.Để biết thêm thông tin, bạn có thể mở dự án Overleaf lớn hơn này, minh họa nhiều loại danh sách LaTeX khác nhau, hoặc xem bài viết trợ giúp chuyên về danh sách LaTeX của chúng tôi, nơi cung cấp nhiều ví dụ hơn và hướng dẫn cách tạo danh sách tùy chỉnh.
Thêm công thức toán vào LaTeX
Một trong những ưu điểm chính của LaTeX là sự dễ dàng khi viết các biểu thức toán học. LaTeX cung cấp hai chế độ viết để sắp chữ toán học:
chế độ toán inline (trong dòng) dùng để viết các công thức là một phần của đoạn văn
chế độ toán display (hiển thị) dùng để viết các biểu thức không thuộc văn bản hay đoạn văn và được sắp chữ trên các dòng riêng
Chế độ toán inline
Hãy xem một ví dụ về chế độ toán inline:
\documentclass[12pt, letterpaper]{article}\begin{document}In physics, the mass-energy equivalence is stated by the equation $E=mc^2$, discovered in 1905 by Albert Einstein.\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Để sắp chữ toán ở chế độ inline, bạn có thể dùng một trong các cặp dấu phân cách sau: \( ... \), $ ... $ hoặc \begin{math} ... \end{math}, như minh họa trong ví dụ sau:
\documentclass[12pt, letterpaper]{article}\begin{document}\begin{math}E=mc^2\end{math} is typeset in a paragraph using inline math mode---as is $E=mc^2$, and so too is \(E=mc^2\).\end{document}
Các phương trình được sắp chữ ở chế độ display có thể được đánh số hoặc không, như trong ví dụ sau:
\documentclass[12pt, letterpaper]{article}\begin{document}The mass-energy equivalence is described by the famous equation\[ E=mc^2 \] discovered in 1905 by Albert Einstein. In natural units ($c = 1$), the formula expresses the identity\begin{equation}E=m\end{equation}\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Để sắp chữ toán ở chế độ display, bạn có thể dùng một trong các cặp dấu phân cách sau: \[ ... \], \begin{displaymath} ... \end{displaymath} hoặc \begin{equation} ... \end{equation}. Trước đây, việc sắp chữ toán ở chế độ display cần dùng dấu phân cách $$, như $$ _... display math here ..._$$, nhưng cách này không còn được khuyến nghị: hãy dùng dấu phân cách \[ ... \] của LaTeX thay thế.
Các ví dụ đầy đủ hơn
Các ví dụ sau minh họa nhiều loại nội dung toán học được sắp chữ bằng LaTeX.
\documentclass{article}\begin{document}Subscripts in math mode are written as $a_b$ and superscripts are written as $a^b$. These can be combined and nested to write expressions such as\[ T^{i_1 i_2 \dots i_p}_{j_1 j_2 \dots j_q} = T(x^{i_1},\dots,x^{i_p},e_{j_1},\dots,e_{j_q}) \]We write integrals using $\int$ and fractions using $\frac{a}{b}$. Limits are placed on integrals using superscripts and subscripts:\[ \int_0^1 \frac{dx}{e^x} = \frac{e-1}{e} \]Lower case Greek letters are written as $\omega$ $\delta$ etc. while upper case Greek letters are written as $\Omega$ $\Delta$.Mathematical operators are prefixed with a backslash as $\sin(\beta)$, $\cos(\alpha)$, $\log(x)$ etc.\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Ví dụ tiếp theo dùng môi trường equation* do gói amsmath cung cấp, vì vậy chúng ta cần thêm dòng sau vào preamble của tài liệu:
\usepackage{amsmath}% For the equation* environment
\documentclass{article}\usepackage{amsmath}% For the equation* environment\begin{document}\section{First example}The well-known Pythagorean theorem \(x^2 + y^2 = z^2\) was proved to be invalid for other exponents, meaning the next equation has no integer solutions for \(n>2\):\[ x^n + y^n = z^n \]\section{Second example}This is a simple math expression \(\sqrt{x^2+1}\) inside text. And this is also the same: \begin{math}\sqrt{x^2+1}\end{math}but by using another command.This is a simple math expression without numbering\[\sqrt{x^2+1}\]separated from text.This is also the same:\begin{displaymath}\sqrt{x^2+1}\end{displaymath}\ldots and this:\begin{equation*}\sqrt{x^2+1}\end{equation*}\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Khả năng xử lý toán học trong LaTeX là vô tận, vì vậy hãy ghé thăm các trang trợ giúp của chúng tôi để có lời khuyên và ví dụ về các chủ đề cụ thể:
Tiếp theo, chúng ta tìm hiểu về phần tóm tắt và cách chia tài liệu LaTeX thành các chương, mục và đoạn văn khác nhau.
Tóm tắt
Các bài báo khoa học thường có một phần tóm tắt (abstract), là bản tổng quan/tóm lược ngắn gọn về các chủ đề hoặc luận điểm cốt lõi của bài. Ví dụ tiếp theo minh họa cách sắp chữ phần tóm tắt bằng môi trường abstract của LaTeX:
\documentclass{article}\begin{document}\begin{abstract}This is a simple paragraph at the beginning of the document. A brief introduction about the main subject.\end{abstract}\end{document}
Sau khi đã có phần tóm tắt, chúng ta có thể bắt đầu viết đoạn văn đầu tiên. Ví dụ tiếp theo minh họa:
cách tạo một đoạn văn mới bằng cách nhấn phím “enter” hai lần, kết thúc dòng hiện tại và chèn thêm một dòng trống;
cách bắt đầu một dòng mới mà không bắt đầu đoạn văn mới bằng cách chèn ngắt dòng thủ công với lệnh \\ (hai dấu gạch chéo ngược); hoặc dùng lệnh \newline.
Đoạn văn thứ ba trong ví dụ này minh họa cách dùng các lệnh \\ và \newline:
\documentclass{article}\begin{document}\begin{abstract}This is a simple paragraph at the beginning of the document. A brief introduction about the main subject.\end{abstract}After our abstract we can begin the first paragraph, then press ``enter'' twice to start the second one.This line will start a second paragraph.I will start the third paragraph and then add \\ a manual line break which causes this text to start on a new line but remains part of the same paragraph. Alternatively, I can use the \verb|\newline|\newline command to start a new line, which is also part of the same paragraph.\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Hãy lưu ý cách LaTeX tự động thụt lề các đoạn văn — trừ khi đứng ngay sau các tiêu đề tài liệu như section và subsection — như chúng ta sẽ thấy.Người dùng mới được khuyên không nên dùng nhiều lệnh \\ hoặc \newline để “giả lập” các đoạn văn có khoảng cách lớn hơn giữa chúng, vì điều này có thể ảnh hưởng đến các thuật toán sắp chữ của LaTeX. Cách được khuyến nghị là tiếp tục dùng các dòng trống để tạo đoạn văn mới, không dùng \\, và nạp gói parskip bằng cách thêm \usepackage{parskip} vào preamble.Bạn có thể tìm thêm thông tin về đoạn văn trong các bài viết sau:
Các tài liệu dài hơn, bất kể phần mềm soạn thảo nào, thường được chia thành các phần, chương, mục, tiểu mục, v.v. LaTeX cũng cung cấp các lệnh cấu trúc tài liệu, nhưng các lệnh có sẵn và cách chúng được triển khai (chúng làm gì) có thể phụ thuộc vào lớp tài liệu đang dùng. Ví dụ, các tài liệu được tạo bằng lớp book có thể được chia thành các phần, chương, mục, tiểu mục, v.v., nhưng lớp letter không cung cấp (hỗ trợ) bất kỳ lệnh nào để làm điều đó.Ví dụ tiếp theo minh họa các lệnh dùng để cấu trúc một tài liệu dựa trên lớp book:
\documentclass{book}\begin{document}\chapter{First Chapter}\section{Introduction}This is the first section.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...\section{Second Section}Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...\subsection{First Subsection}Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...\section*{Unnumbered Section}Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem...\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Tên của các lệnh phân mục phần lớn đã tự giải thích được ý nghĩa; ví dụ, \chapter{First Chapter} tạo một chương mới có tiêu đề First Chapter, \section{Introduction} tạo một mục có tiêu đề Introduction, v.v. Các mục có thể được chia nhỏ hơn thành \subsection{...} và thậm chí \subsubsection{...}. Việc đánh số các mục, tiểu mục, v.v. là tự động, nhưng có thể tắt bằng cách dùng cái gọi là phiên bản có dấu sao của lệnh tương ứng, tức là có dấu hoa thị (*) ở cuối, chẳng hạn \section*{...} và \subsection*{...}.Nhìn chung, các lớp tài liệu LaTeX cung cấp các lệnh phân mục sau, với mỗi lớp cụ thể hỗ trợ một tập con phù hợp:
\part{part}
\chapter{chapter}
\section{section}
\subsection{subsection}
\subsubsection{subsubsection}
\paragraph{paragraph}
\subparagraph{subparagraph}
Đặc biệt, các lệnh \part và \chapter chỉ có trong các lớp tài liệu report và book.Hãy xem bài viết của Overleaf về mục và chương để biết thêm thông tin về các lệnh cấu trúc tài liệu.
Tạo bảng
Overleaf cung cấp ba cách để tạo bảng:
Dùng nút Insert Table trên thanh công cụ của Visual Editor (hoặc Code Editor).
Nếu bạn mới làm quen với LaTeX, dùng thanh công cụ trong Visual Editor (cách 1) là một cách tuyệt vời để bắt đầu — bạn có thể chuyển đổi giữa Visual Editor và Code Editor để xem mã đằng sau bảng.Ở đây, chúng ta tập trung vào cách 3 — phương pháp linh hoạt nhất để tạo bảng — và đưa ra các ví dụ minh họa cách tạo bảng trong LaTeX, bao gồm việc thêm đường kẻ (rule) và chú thích. Khi đã có thêm kinh nghiệm, hãy xem hướng dẫn chi tiết của chúng tôi về cách tạo bảng bằng LaTeX.
Tạo một bảng cơ bản trong LaTeX
Chúng ta bắt đầu với một ví dụ cho thấy cách sắp chữ một bảng cơ bản:
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Môi trường tabular là phương pháp mặc định của LaTeX để tạo bảng. Bạn phải chỉ định một tham số cho môi trường này, trong trường hợp này là {c c c}, cho LaTeX biết rằng sẽ có ba cột và văn bản trong mỗi cột phải được căn giữa. Bạn cũng có thể dùng r để căn phải văn bản và l để căn trái. Ký hiệu căn chỉnh & được dùng để phân tách các ô trong một hàng của bảng. Để kết thúc một hàng, hãy dùng lệnh xuống dòng\\. Bảng của chúng ta được đặt trong môi trường center để căn giữa trong phạm vi chiều rộng văn bản của trang.
Thêm đường viền
Môi trường tabular hỗ trợ các đường kẻ (rule) ngang và dọc như một phần của bảng:
để thêm đường kẻ ngang ở trên và dưới các hàng, hãy dùng lệnh \hline
để thêm đường kẻ dọc giữa các cột, hãy dùng tham số đường thẳng đứng |
Trong ví dụ này, đối số là {|c|c|c|}, khai báo ba cột (căn giữa), mỗi cột được phân tách bằng một đường kẻ dọc; ngoài ra, chúng ta dùng \hline để đặt một đường kẻ ngang phía trên hàng đầu tiên và phía dưới hàng cuối cùng:
Bạn có thể thêm chú thích và tham chiếu cho bảng theo cách tương tự như với hình ảnh. Điểm khác biệt duy nhất là thay vì môi trường figure, bạn dùng môi trường table.Bảng \ref{table:data} cho thấy cách thêm chú thích cho bảng và tham chiếu đến một bảng.
Việc tạo mục lục rất đơn giản vì lệnh \tableofcontents làm gần như toàn bộ công việc cho bạn:
\documentclass{article}\title{Sections and Chapters}\author{Gubert Farnsworth}\date{August 2022}\begin{document}\maketitle\tableofcontents\section{Introduction}This is the first section.Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortisfacilisis sem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...\section*{Unnumbered Section}\addcontentsline{toc}{section}{Unnumbered Section}Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...\section{Second Section}Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet mi necante...\end{document}
Mở ví dụ này trong Overleaf.Ví dụ này tạo ra kết quả sau:Các mục, tiểu mục và chương được tự động đưa vào mục lục. Để thêm mục thủ công, chẳng hạn một mục không đánh số, hãy dùng lệnh \addcontentsline như trong ví dụ.
Tải xuống tài liệu đã hoàn thành
Đoạn video ngắn sau đây cho thấy cách tải xuống mã nguồn của dự án hoặc tệp PDF đã được sắp chữ:Bạn có thể tìm thêm thông tin trong bài viết trợ giúp của Overleaf Xuất tác phẩm của bạn từ Overleaf.
Tìm kiếm và sử dụng các gói LaTeX
LaTeX không chỉ mang lại khả năng sắp chữ mạnh mẽ mà còn cung cấp một khung mở rộng thông qua việc sử dụng các gói (package) bổ sung. Thay vì cố gắng cung cấp các lệnh và tính năng “làm được mọi thứ”, LaTeX được thiết kế để có thể mở rộng, cho phép người dùng nạp các khối mã bên ngoài (gói) cung cấp những khả năng sắp chữ chuyên biệt hơn hoặc mở rộng các tính năng tích hợp sẵn của LaTeX — chẳng hạn như sắp chữ bảng. Như đã thấy trong phần Thêm hình ảnh, gói graphicx mở rộng LaTeX bằng cách cung cấp các lệnh để nhập tệp đồ họa và được nạp (trong preamble) bằng cách viết
\usepackage{graphicx}
Nạp gói
Như đã nói ở trên, các gói được nạp trong preamble của tài liệu thông qua lệnh \usepackage, nhưng vì (nhiều) gói LaTeX cung cấp một tập tùy chọn có thể dùng để cấu hình hành vi của chúng, nên lệnh \usepackage thường trông như sau:
\usepackage[options]{somepackage}
Cặp ngoặc vuông “[...]” cho LaTeX biết tập tùy chọn nào cần được áp dụng khi nạp somepackage. Trong tập tùy chọn mà người dùng yêu cầu, các tùy chọn hoặc thiết lập riêng lẻ thường được phân tách bằng dấu phẩy; ví dụ, gói geometry cung cấp nhiều tùy chọn để cấu hình bố cục trang trong LaTeX, vì vậy một cách dùng geometry điển hình có thể trông như sau:
Gói geometry là một ví dụ về gói được viết và đóng góp bởi các thành viên của cộng đồng LaTeX toàn cầu, và được cung cấp miễn phí cho bất kỳ ai muốn sử dụng.Nếu một gói LaTeX không cung cấp tùy chọn nào, hoặc người dùng muốn dùng các giá trị mặc định của tùy chọn, gói đó sẽ được nạp như sau:
\usepackage{somepackage}
Khi bạn viết \usepackage[...]{somepackage}, LaTeX sẽ tìm một tệp tương ứng có tên _somepackage_.sty mà nó cần nạp và xử lý — để các lệnh của gói sẵn sàng sử dụng và thực thi bất kỳ mã nào khác do gói đó cung cấp. Nếu LaTeX không tìm thấy _somepackage_.sty, nó sẽ dừng lại với một lỗi, như minh họa trong ví dụ Overleaf sau:
\documentclass[12pt, letterpaper]{article}\usepackage{somepackage}% a NON-EXISTENT package\begin{document}This will fail!\end{document}
Các gói được phân phối thông qua Comprehensive TeX Archive Network, thường được gọi là CTAN; tại thời điểm viết bài, mạng này lưu trữ 6287 gói từ 2881 người đóng góp. CTAN tự mô tả mình là
… một tập hợp các trang Internet trên khắp thế giới cung cấp tài liệu liên quan đến TEX để tải xuống.
Bạn có thể duyệt CTAN để tìm các gói hữu ích; ví dụ:
Mỗi năm một lần, một tập con (lớn) các gói được lưu trữ trên CTAN, cùng với các phông chữ liên quan đến LaTeX và phần mềm khác, được tập hợp và phân phối dưới dạng một hệ thống gọi là TeX Live, có thể được dùng để cài đặt môi trường LaTeX (cục bộ) của riêng bạn. Trên thực tế, máy chủ của Overleaf cũng sử dụng TeX Live và được cập nhật khi có phiên bản TeX Live mới. Các bản cập nhật TeX Live của Overleaf không diễn ra ngay lập tức mà vài tháng sau khi phát hành, giúp chúng tôi có thời gian kiểm tra khả năng tương thích của phiên bản TeX Live mới với hàng nghìn mẫu trong thư viện của chúng tôi. Ví dụ, đây là thông báo nâng cấp TeX Live 2025 của chúng tôi.Mặc dù TeX Live chứa một tập con (lớn) các gói của CTAN, bạn vẫn có thể gặp một gói thú vị, chẳng hạn như igo để sắp chữ sơ đồ cờ vây, được lưu trữ trên CTAN nhưng không có trong (không được phân phối bởi) TeX Live và do đó không khả dụng trên Overleaf. Một số gói trên CTAN không thuộc TeX Live vì nhiều lý do khác nhau: có thể gói đó đã lỗi thời, có vấn đề về giấy phép, còn quá mới (vừa được tải lên) hoặc phụ thuộc vào nền tảng, chẳng hạn hoạt động trên Windows nhưng không hoạt động trên Linux.Các gói mới và bản cập nhật cho các gói hiện có được tải lên CTAN quanh năm, nhưng các bản cập nhật TeX Live được phân phối hằng năm; do đó, các gói có trong phiên bản TeX Live hiện tại sẽ không cập nhật bằng các gói trên CTAN. Vì máy chủ của Overleaf sử dụng TeX Live, có thể các gói được cài đặt trên máy chủ của chúng tôi — tức là các gói mà người dùng có thể sử dụng — không phải là phiên bản mới nhất có trên CTAN, nhưng nhìn chung điều này hiếm khi gây ra vấn đề.
Lần sửa đổi cuối 8 tháng 11, 2026
Trang này có hữu ích không?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ayakaleaf Pro","description":"Overleaf Community Edition enhanced with all Pro features: open source, free to use, self-hostable.","colors":{"primary":"#0E0E0E","light":"#D4A27F","dark":"#0E0E0E"},"logo":{"light":"https://mintcdn.com/ayakaleaf-pro/JetHeEeglWIIXNds/logo/light.png?fit=max\u0026auto=format\u0026n=JetHeEeglWIIXNds\u0026q=85\u0026s=7f1abd8dcc74dd3b7cdafac9e6e82092","dark":"https://mintcdn.com/ayakaleaf-pro/JetHeEeglWIIXNds/logo/dark.png?fit=max\u0026auto=format\u0026n=JetHeEeglWIIXNds\u0026q=85\u0026s=4e369d29a8c5a6cd8b4b7697ddb1f7e2","href":"/"},"favicon":"https://mintcdn.com/ayakaleaf-pro/x9kfDjtWlyyhG_mR/favicon.png?fit=max\u0026auto=format\u0026n=x9kfDjtWlyyhG_mR\u0026q=85\u0026s=832c6bfafce5eb69ebc83783083a4a85","background":{"color":{"light":"#FDFDF7","dark":"#09090B"}},"navbar":{"links":[{"href":"https://github.com/ayaka-notes/ayakaleaf-pro-playground","label":"Playground"},{"href":"https://github.com/orgs/ayaka-notes/packages/container/package/overleaf-pro","label":"Docker Image"},{"href":"https://github.com/ayaka-notes/texlive-full","label":"TeXLive Full"}],"primary":{"type":"button","label":"Open GitHub","href":"https://github.com/ayaka-notes/ayakaleaf-pro"}},"footer":{"socials":{"github":"https://github.com/ayaka-notes"}},"styling":{"latex":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","assistant","download-pdf","download-spec"],"display":"header"},"metadata":{"timestamp":true},"navigation":{"languages":[{"language":"en","default":true,"href":""},{"language":"zh-CN","href":"zh-CN"},{"language":"zh-TW","href":"zh-TW"},{"language":"ja","href":"ja"},{"language":"de","href":"de"},{"language":"fr","href":"fr"},{"language":"es","href":"es"},{"language":"it","href":"it"},{"language":"ko","href":"ko"},{"language":"ru","href":"ru"},{"language":"nl","href":"nl"},{"language":"pt","href":"pt"},{"language":"tr","href":"tr"},{"language":"uk","href":"uk"},{"language":"pl","href":"pl"},{"language":"cs","href":"cs"},{"language":"sv","href":"sv"},{"language":"fi","href":"fi"},{"language":"ar","href":"ar"},{"language":"vi","href":"vi"},{"language":"no","href":"no"},{"language":"da","href":"da"},{"language":"id","href":"id"},{"language":"zh-Hans","href":"zh-Hans"},{"language":"zh-Hant","href":"zh-Hant"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ayakaleaf-pro","hasAudioNarration":false,"actualSubdomain":"ayakaleaf-pro","customDomains":[],"gitSource":{"type":"github","owner":"ayaka-notes","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b015084275034e27381e646","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"en","tag":"On-Premises","count":159},{"language":"ar","tag":"الاستضافة المحلية","count":141},{"language":"cs","tag":"On-Premises","count":141},{"language":"da","tag":"On-premises","count":141},{"language":"de","tag":"On-Premises","count":141},{"language":"es","tag":"Local","count":141},{"language":"fi","tag":"Paikallinen asennus","count":141},{"language":"fr","tag":"Sur site","count":141},{"language":"id","tag":"On-Premises","count":141},{"language":"it","tag":"On-premise","count":141},{"language":"ja","tag":"オンプレミス","count":141},{"language":"ko","tag":"온프레미스","count":141},{"language":"nl","tag":"On-premises","count":141},{"language":"no","tag":"Lokal drift","count":141},{"language":"pl","tag":"On-Premises","count":141},{"language":"pt","tag":"On-Premises","count":141},{"language":"ru","tag":"Локальное развертывание","count":141},{"language":"sv","tag":"On-Premises","count":141},{"language":"tr","tag":"Şirket İçi Kurulum","count":141},{"language":"uk","tag":"Локальне розгортання","count":141},{"language":"vi","tag":"Tự triển khai (On-Premises)","count":141},{"language":"zh-CN","tag":"本地部署","count":141},{"language":"zh-Hans","tag":"本地部署","count":141},{"language":"zh-Hant","tag":"本地部署","count":141},{"language":"zh-TW","tag":"本地部署","count":141},{"language":"ar","tag":"الإعداد","count":66},{"language":"en","tag":"Configuration","count":66},{"language":"cs","tag":"Konfigurace","count":66},{"language":"da","tag":"Konfiguration","count":66},{"language":"de","tag":"Konfiguration","count":66},{"language":"es","tag":"Configuración","count":66},{"language":"fi","tag":"Määritys","count":66},{"language":"fr","tag":"Configuration","count":66},{"language":"id","tag":"Konfigurasi","count":66},{"language":"it","tag":"Configurazione","count":66},{"language":"ja","tag":"設定","count":66},{"language":"ko","tag":"구성","count":66},{"language":"nl","tag":"Configuratie","count":66},{"language":"no","tag":"Konfigurasjon","count":66},{"language":"pl","tag":"Konfiguracja","count":66},{"language":"pt","tag":"Configuração","count":66},{"language":"ru","tag":"Настройка","count":66},{"language":"sv","tag":"Konfiguration","count":66},{"language":"tr","tag":"Yapılandırma","count":66},{"language":"uk","tag":"Конфігурація","count":66},{"language":"vi","tag":"Cấu hình","count":66},{"language":"zh-CN","tag":"配置","count":66},{"language":"zh-Hans","tag":"配置","count":66},{"language":"zh-Hant","tag":"設定","count":66},{"language":"zh-TW","tag":"設定","count":66},{"language":"en","tag":"Developer","count":57},{"language":"ar","tag":"التثبيت","count":40},{"language":"en","tag":"Installation","count":40},{"language":"cs","tag":"Instalace","count":40},{"language":"da","tag":"Installation","count":40},{"language":"de","tag":"Installation","count":40},{"language":"es","tag":"Instalación","count":40},{"language":"fi","tag":"Asennus","count":40},{"language":"fr","tag":"Installation","count":40},{"language":"id","tag":"Instalasi","count":40},{"language":"it","tag":"Installazione","count":40},{"language":"ja","tag":"インストール","count":40},{"language":"ko","tag":"설치","count":40},{"language":"nl","tag":"Installatie","count":40},{"language":"no","tag":"Installasjon","count":40},{"language":"pl","tag":"Instalacja","count":40},{"language":"pt","tag":"Instalação","count":40},{"language":"ru","tag":"Установка","count":40},{"language":"sv","tag":"Installation","count":40},{"language":"tr","tag":"Kurulum","count":40},{"language":"uk","tag":"Встановлення","count":40},{"language":"vi","tag":"Cài đặt","count":40},{"language":"zh-CN","tag":"安装","count":40},{"language":"zh-Hans","tag":"安装","count":40},{"language":"zh-Hant","tag":"安裝","count":40},{"language":"zh-TW","tag":"安裝","count":40},{"language":"en","tag":"Data Model","count":37},{"language":"ar","tag":"Docker Compose","count":34},{"language":"en","tag":"Docker Compose","count":34},{"language":"cs","tag":"Docker Compose","count":34},{"language":"da","tag":"Docker Compose","count":34},{"language":"de","tag":"Docker Compose","count":34},{"language":"es","tag":"Docker Compose","count":34},{"language":"fi","tag":"Docker Compose","count":34},{"language":"fr","tag":"Docker Compose","count":34},{"language":"id","tag":"Docker Compose","count":34},{"language":"it","tag":"Docker Compose","count":34},{"language":"ja","tag":"Docker Compose","count":34},{"language":"ko","tag":"Docker Compose","count":34},{"language":"nl","tag":"Docker Compose","count":34},{"language":"no","tag":"Docker Compose","count":34},{"language":"pl","tag":"Docker Compose","count":34},{"language":"pt","tag":"Docker Compose","count":34},{"language":"ru","tag":"Docker Compose","count":34},{"language":"sv","tag":"Docker Compose","count":34},{"language":"tr","tag":"Docker Compose","count":34},{"language":"uk","tag":"Docker Compose","count":34},{"language":"vi","tag":"Docker Compose","count":34},{"language":"zh-CN","tag":"Docker Compose","count":34},{"language":"zh-Hans","tag":"Docker Compose","count":34},{"language":"zh-Hant","tag":"Docker Compose","count":34},{"language":"zh-TW","tag":"Docker Compose","count":34},{"language":"ar","tag":"Kubernetes","count":32},{"language":"en","tag":"Kubernetes","count":32},{"language":"cs","tag":"Kubernetes","count":32},{"language":"da","tag":"Kubernetes","count":32},{"language":"de","tag":"Kubernetes","count":32},{"language":"es","tag":"Kubernetes","count":32},{"language":"fi","tag":"Kubernetes","count":32},{"language":"fr","tag":"Kubernetes","count":32},{"language":"id","tag":"Kubernetes","count":32},{"language":"it","tag":"Kubernetes","count":32},{"language":"ja","tag":"Kubernetes","count":32},{"language":"ko","tag":"Kubernetes","count":32},{"language":"nl","tag":"Kubernetes","count":32},{"language":"no","tag":"Kubernetes","count":32},{"language":"pl","tag":"Kubernetes","count":32},{"language":"pt","tag":"Kubernetes","count":32},{"language":"ru","tag":"Kubernetes","count":32},{"language":"sv","tag":"Kubernetes","count":32},{"language":"tr","tag":"Kubernetes","count":32},{"language":"uk","tag":"Kubernetes","count":32},{"language":"vi","tag":"Kubernetes","count":32},{"language":"zh-CN","tag":"Kubernetes","count":32},{"language":"zh-Hans","tag":"Kubernetes","count":32},{"language":"zh-Hant","tag":"Kubernetes","count":32},{"language":"zh-TW","tag":"Kubernetes","count":32},{"language":"ar","tag":"استخدام Docker Compose","count":27},{"language":"en","tag":"Using Docker Compose","count":27},{"language":"cs","tag":"Použití Docker Compose","count":27},{"language":"da","tag":"Brug af Docker Compose","count":27},{"language":"de","tag":"Docker Compose verwenden","count":27},{"language":"es","tag":"Uso de Docker Compose","count":27},{"language":"fi","tag":"Docker Composen käyttö","count":27},{"language":"fr","tag":"Utiliser Docker Compose","count":27},{"language":"id","tag":"Menggunakan Docker Compose","count":27},{"language":"it","tag":"Utilizzo di Docker Compose","count":27},{"language":"ja","tag":"Docker Compose の使用","count":27},{"language":"ko","tag":"Docker Compose 사용","count":27},{"language":"nl","tag":"Docker Compose gebruiken","count":27},{"language":"no","tag":"Bruke Docker Compose","count":27},{"language":"pl","tag":"Korzystanie z Docker Compose","count":27},{"language":"pt","tag":"Usando o Docker Compose","count":27},{"language":"ru","tag":"Использование Docker Compose","count":27},{"language":"sv","tag":"Använda Docker Compose","count":27},{"language":"tr","tag":"Docker Compose kullanımı","count":27},{"language":"uk","tag":"Використання Docker Compose","count":27},{"language":"vi","tag":"Sử dụng Docker Compose","count":27},{"language":"zh-CN","tag":"使用 Docker Compose","count":27},{"language":"zh-Hans","tag":"使用 Docker Compose","count":27},{"language":"zh-Hant","tag":"使用 Docker Compose","count":27},{"language":"zh-TW","tag":"使用 Docker Compose","count":27},{"language":"ar","tag":"المطوّرون","count":24},{"language":"en","tag":"User guide","count":24},{"language":"cs","tag":"Vývojáři","count":24},{"language":"da","tag":"Udvikler","count":24},{"language":"de","tag":"Entwickler","count":24},{"language":"es","tag":"Desarrollador","count":24},{"language":"fi","tag":"Kehittäjä","count":24},{"language":"fr","tag":"Développeur","count":24},{"language":"id","tag":"Pengembang","count":24},{"language":"it","tag":"Sviluppatore","count":24},{"language":"ja","tag":"開発者","count":24},{"language":"ko","tag":"개발자","count":24},{"language":"nl","tag":"Ontwikkelaar","count":24},{"language":"no","tag":"Utvikler","count":24},{"language":"pl","tag":"Dla deweloperów","count":24},{"language":"pt","tag":"Desenvolvedor","count":24},{"language":"ru","tag":"Разработчикам","count":24},{"language":"sv","tag":"Utvecklare","count":24},{"language":"tr","tag":"Geliştirici","count":24},{"language":"uk","tag":"Розробникам","count":24},{"language":"vi","tag":"Nhà phát triển","count":24},{"language":"zh-CN","tag":"开发者","count":24},{"language":"zh-Hans","tag":"开发者","count":24},{"language":"zh-Hant","tag":"開發者","count":24},{"language":"zh-TW","tag":"開發者","count":24},{"language":"ar","tag":"التكاملات","count":22},{"language":"en","tag":"Integrations","count":22},{"language":"cs","tag":"Integrace","count":22},{"language":"da","tag":"Integrationer","count":22},{"language":"de","tag":"Integrationen","count":22},{"language":"es","tag":"Integraciones","count":22},{"language":"fi","tag":"Integraatiot","count":22},{"language":"fr","tag":"Intégrations","count":22},{"language":"id","tag":"Integrasi","count":22},{"language":"it","tag":"Integrazioni","count":22},{"language":"ja","tag":"連携","count":22},{"language":"ko","tag":"통합","count":22},{"language":"nl","tag":"Integraties","count":22},{"language":"no","tag":"Integrasjoner","count":22},{"language":"pl","tag":"Integracje","count":22},{"language":"pt","tag":"Integrações","count":22},{"language":"ru","tag":"Интеграции","count":22},{"language":"sv","tag":"Integrationer","count":22},{"language":"tr","tag":"Entegrasyonlar","count":22},{"language":"uk","tag":"Інтеграції","count":22},{"language":"vi","tag":"Tích hợp","count":22},{"language":"zh-CN","tag":"集成","count":22},{"language":"zh-Hans","tag":"集成","count":22},{"language":"zh-Hant","tag":"整合","count":22},{"language":"zh-TW","tag":"整合","count":22},{"language":"ar","tag":"المصادقة","count":14},{"language":"cs","tag":"Ověřování","count":14},{"language":"da","tag":"Godkendelse","count":14},{"language":"de","tag":"Authentifizierung","count":14},{"language":"es","tag":"Autenticación","count":14},{"language":"fi","tag":"Todennus","count":14},{"language":"fr","tag":"Authentification","count":14},{"language":"id","tag":"Autentikasi","count":14},{"language":"it","tag":"Autenticazione","count":14},{"language":"ja","tag":"認証","count":14},{"language":"ko","tag":"인증","count":14},{"language":"nl","tag":"Authenticatie","count":14},{"language":"no","tag":"Autentisering","count":14},{"language":"pl","tag":"Uwierzytelnianie","count":14},{"language":"pt","tag":"Autenticação","count":14},{"language":"ru","tag":"Аутентификация","count":14},{"language":"sv","tag":"Autentisering","count":14},{"language":"tr","tag":"Kimlik Doğrulama","count":14},{"language":"uk","tag":"Автентифікація","count":14},{"language":"vi","tag":"Xác thực","count":14},{"language":"zh-CN","tag":"身份验证","count":14},{"language":"zh-Hans","tag":"身份验证","count":14},{"language":"zh-Hant","tag":"身分驗證","count":14},{"language":"zh-TW","tag":"身分驗證","count":14},{"language":"ar","tag":"واجهات برمجة الخدمات","count":13},{"language":"cs","tag":"API služeb","count":13},{"language":"da","tag":"Tjeneste-API","count":13},{"language":"de","tag":"Service-API","count":13},{"language":"es","tag":"API de servicios","count":13},{"language":"fi","tag":"Palvelujen API","count":13},{"language":"fr","tag":"API des services","count":13},{"language":"id","tag":"API layanan","count":13},{"language":"it","tag":"API dei servizi","count":13},{"language":"ja","tag":"サービス API","count":13},{"language":"ko","tag":"서비스 API","count":13},{"language":"nl","tag":"Service-API","count":13},{"language":"no","tag":"Tjeneste-API","count":13},{"language":"pl","tag":"API usług","count":13},{"language":"pt","tag":"API dos serviços","count":13},{"language":"ru","tag":"API сервисов","count":13},{"language":"sv","tag":"Tjänste-API","count":13},{"language":"tr","tag":"Hizmet API'si","count":13},{"language":"uk","tag":"API сервісів","count":13},{"language":"vi","tag":"API dịch vụ","count":13},{"language":"zh-CN","tag":"服务 API","count":13},{"language":"zh-Hans","tag":"服务 API","count":13},{"language":"zh-Hant","tag":"服務 API","count":13},{"language":"zh-TW","tag":"服務 API","count":13}],"searchSettings":{"maxResults":6}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-Regular-Static.otf\") format(\"opentype\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-RegularItalic-Static.otf\") format(\"opentype\");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-Medium-Static.otf\") format(\"opentype\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-MediumItalic-Static.otf\") format(\"opentype\");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-Semibold-Static.otf\") format(\"opentype\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-SemiboldItalic-Static.otf\") format(\"opentype\");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-Bold-Static.otf\") format(\"opentype\");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:\"Site Sans\";src:url(\"/fonts/SiteSans-Text-BoldItalic-Static.otf\") format(\"opentype\");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:\"Site Serif Display\";src:url(\"/fonts/SiteSerif-Display-Regular-Static.otf\") format(\"opentype\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif Display\";src:url(\"/fonts/SiteSerif-Display-RegularItalic-Static.otf\") format(\"opentype\");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:\"Site Serif Display\";src:url(\"/fonts/SiteSerif-Display-Medium-Static.otf\") format(\"opentype\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif Display\";src:url(\"/fonts/SiteSerif-Display-Semibold-Static.otf\") format(\"opentype\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif Display\";src:url(\"/fonts/SiteSerif-Display-Bold-Static.otf\") format(\"opentype\");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-Regular-Static.otf\") format(\"opentype\");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-RegularItalic-Static.otf\") format(\"opentype\");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-Medium-Static.otf\") format(\"opentype\");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-MediumItalic-Static.otf\") format(\"opentype\");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-Semibold-Static.otf\") format(\"opentype\");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-SemiboldItalic-Static.otf\") format(\"opentype\");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-Bold-Static.otf\") format(\"opentype\");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:\"Site Serif\";src:url(\"/fonts/SiteSerif-Text-BoldItalic-Static.otf\") format(\"opentype\");font-weight:700;font-style:italic;font-display:swap}:root{--always-white: 0 0% 100%;--always-black: 0 0% 0%;--constant-book-cloth: 15 55% 80%;--constant-clay: 15 60% 85%;--constant-kraft: 25 40% 83%;--constant-manilla: 40 20% 92%;--constant-slate-000: 0 0% 100%;--constant-slate-050: 48 33.3% 97.1%;--constant-slate-100: 53 28.6% 94.5%;--constant-slate-150: 48 25% 92.2%;--constant-slate-200: 50 20.7% 88.6%;--constant-slate-250: 51 16.5% 84.5%;--constant-slate-300: 50 11.5% 79.6%;--constant-slate-350: 50 9% 73.7%;--constant-slate-400: 49 6.5% 66.9%;--constant-slate-450: 48 4.8% 59.2%;--constant-slate-500: 53 3.2% 51.4%;--constant-slate-550: 51 3.1% 43.7%;--constant-slate-600: 48 2.7% 35.9%;--constant-slate-650: 48 3.4% 29.2%;--constant-slate-700: 60 2.5% 23.3%;--constant-slate-750: 60 2.1% 18.4%;--constant-slate-800: 60 2.7% 14.5%;--constant-slate-850: 30 3.3% 11.8%;--constant-slate-900: 30 4% 9.8%;--constant-slate-950: 60 2.6% 7.6%;--constant-slate-1000: 60 3.4% 5.7%}:root:not(.dark){--accent-brand: 15 63.1% 59.6%;--accent-main-000: 15 55.6% 52.4%;--accent-main-100: 15 55.6% 52.4%;--accent-main-200: 15 63.1% 59.6%;--accent-main-900: 0 0% 0%;--accent-pro-000: 251 34.2% 33.3%;--accent-pro-100: 251 40% 45.1%;--accent-pro-200: 251 61% 72.2%;--accent-pro-900: 253 33.3% 91.8%;--accent-secondary-000: 210 73.7% 40.2%;--accent-secondary-100: 210 70.9% 51.6%;--accent-secondary-200: 210 70.9% 51.6%;--accent-secondary-900: 211 72% 90%;--bg-000: 0 0% 100%;--bg-100: 48 33.3% 97.1%;--bg-200: 53 28.6% 94.5%;--bg-300: 48 25% 92.2%;--bg-400: 50 20.7% 88.6%;--bg-500: 50 20.7% 88.6%;--border-100: 30 3.3% 11.8%;--border-200: 30 3.3% 11.8%;--border-300: 30 3.3% 11.8%;--border-400: 30 3.3% 11.8%;--danger-000: 0 61.4% 22.4%;--danger-100: 0 58.6% 34.1%;--danger-200: 0 58.6% 34.1%;--danger-900: 0 50% 95%;--oncolor-100: 0 0% 100%;--oncolor-200: 60 6.7% 97.1%;--oncolor-300: 60 6.7% 97.1%;--text-000: 60 2.6% 7.6%;--text-100: 60 2.6% 7.6%;--text-200: 60 2.5% 23.3%;--text-300: 60 2.5% 23.3%;--text-400: 51 3.1% 43.7%;--text-500: 51 3.1% 43.7%}:root.dark{--accent-brand: 15 63.1% 59.6%;--accent-main-000: 15 55.6% 52.4%;--accent-main-100: 15 63.1% 59.6%;--accent-main-200: 15 63.1% 59.6%;--accent-main-900: 0 0% 0%;--accent-pro-000: 251 84.6% 74.5%;--accent-pro-100: 251 40.2% 54.1%;--accent-pro-200: 251 40% 45.1%;--accent-pro-900: 250 25.3% 19.4%;--accent-secondary-000: 210 71.1% 62%;--accent-secondary-100: 210 70.9% 51.6%;--accent-secondary-200: 210 70.9% 51.6%;--accent-secondary-900: 210 55.9% 24.6%;--bg-000: 60 2.1% 18.4%;--bg-100: 60 2.7% 14.5%;--bg-200: 30 3.3% 11.8%;--bg-300: 60 2.6% 7.6%;--bg-400: 60 3.4% 5.7%;--bg-500: 60 3.4% 5.7%;--border-100: 51 16.5% 84.5%;--border-200: 51 16.5% 84.5%;--border-300: 51 16.5% 84.5%;--border-400: 51 16.5% 84.5%;--danger-000: 0 73.1% 66.5%;--danger-100: 0 58.6% 34.1%;--danger-200: 0 58.6% 34.1%;--danger-900: 0 23% 15.6%;--oncolor-100: 0 0% 100%;--oncolor-200: 60 6.7% 97.1%;--oncolor-300: 60 6.7% 97.1%;--text-000: 48 33.3% 97.1%;--text-100: 48 33.3% 97.1%;--text-200: 50 9% 73.7%;--text-300: 50 9% 73.7%;--text-400: 48 4.8% 59.2%;--text-500: 48 4.8% 59.2%}#home-header{font-family:\"Site Sans\", system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;font-weight:400!important;font-size:50px;line-height:1.2;margin-bottom:1rem;color:--text-000;display:flex;align-items:baseline;justify-content:center;flex-wrap:nowrap}#localization-select-trigger>:has(img[src*=\"flags\"]){display:none}div[id^=\"localization-select-item\"]>:has(img[src*=\"flags\"]){display:none}@media (min-width: 768px){#home-header{justify-content:center}}.build-with{font-family:\"Site Sans\", system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;letter-spacing:-0.02em}.claude-wordmark-wrapper{display:inline-flex;align-items:baseline;margin-left:10px}.claude-wordmark{height:40px;width:auto;position:relative}.dark #home-header{color:white}.description-text{color:black}.dark .description-text{color:white}.dark .claude-wordmark{filter:invert(1)}:root{--bg-color: #f0efea}.dark{--bg-color: #2b2b2b}body,input,#category-select,.dropdown-item,#table-of-contents{font-family:\"Site Sans\", system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif}.eyebrow{font-family:\"Site Sans\", system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif;text-transform:uppercase;letter-spacing:0.02rem}#content-container{font-family:\"Site Sans\", system-ui, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif}#content-container h1,#content-container h2,#content-container h3,#content-container h4,#content-container h5,#content-container h6{font-family:\"Site Serif Display\", Georgia, \"Times New Roman\", Times, serif;font-weight:400;letter-spacing:0;word-spacing:0.1em}#content-container p{font-size:1rem;line-height:1.65rem}.font-extrabold{font-weight:600!important}.wide-table{width:100%;overflow-x:auto}.wide-table table{width:175%;margin-bottom:0}#prompt-library-container{margin:4rem auto;max-width:48rem;padding-left:1.25rem;padding-right:1.25rem}.prompt-library-title{font-size:24px;text-align:center;font-weight:700;color:#1f2937}.dark .prompt-library-title{color:#e5e7eb}.prompt-library-description{margin-top:1rem;text-align:center}.main-content{margin-bottom:10rem;max-width:64rem;margin-left:auto;margin-right:auto;padding-left:1.25rem;padding-right:1.25rem}.prompt-controllers{display:flex;gap:0.5rem}.prompt-search-container{position:relative;flex:1 1 0%}.prompt-search-icon-container{display:flex;position:absolute;top:0;bottom:0;left:0;align-items:center;padding-left:0.75rem}.prompt-search-icon{margin-left:0.25rem;margin-right:0.75rem;flex:none;width:1rem;height:1rem;background-color:#6b7280;mask-image:url(https://mintlify.b-cdn.net/v6.5.1/solid/magnifying-glass.svg);mask-repeat:no-repeat;mask-position:center center}input.prompt-search-bar{display:block;height:2.5rem;padding-left:2.5rem;border-radius:0.75rem;border-width:1px;background-color:#ffffff;width:100%;color:#111827;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.dark input.prompt-search-bar{color:#ffffff;background-color:rgb(var(--background-dark));border-color:#d1d5db1a}input.prompt-search-bar:focus{outline-color:rgb(var(--primary))}.dark input.prompt-search-bar:focus{outline-color:rgb(var(--primary-light))}.dark .prompt-search-icon{background-color:#ffffff80}#category-select{padding-left:1rem;padding-right:2.5rem;height:2.5rem;display:flex;align-items:center;border-radius:0.75rem;border-width:1px;color:#111827;background-color:#ffffff;cursor:pointer;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);white-space:nowrap}.dark #category-select{background-color:rgb(var(--background-dark));border-color:#d1d5db1a;color:#ffffff}#category-select:hover{background-color:#f9fafb}.dark #category-select:hover{background-color:#ffffff0d}#category-select:focus{outline-color:rgb(var(--primary))}.dark #category-select:focus{outline-color:rgb(var(--primary-light))}#categories-dropdown{top:calc(100% + 4px);padding:0.5rem 0.5rem;display:none;position:absolute;z-index:10;border-radius:0.75rem;border-width:1px;width:100%;color:#111827;background-color:#ffffff;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05)}.dark #categories-dropdown{background-color:rgb(var(--background-dark));border-color:#d1d5db1a;color:#ffffff}#categories-dropdown-clickout{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0}.dropdown-icon-container{display:flex;position:absolute;top:0;bottom:0;right:0;align-items:center;padding-right:0.25rem}.dropdown-icon{margin-left:0.25rem;margin-right:0.75rem;flex:none;width:0.75rem;height:0.75rem;background-color:#6b7280;mask-image:url(https://mintlify.b-cdn.net/v6.5.1/solid/caret-down.svg);mask-repeat:no-repeat;mask-position:center center}.dark .dropdown-icon{background-color:#ffffff80}#prompts-container{grid-template-columns:repeat(1, minmax(0, 1fr));gap:2rem}.dropdown-item{padding:0.25rem 0.5rem;border-radius:0.375rem;display:flex;align-items:center;cursor:pointer}.dropdown-item:hover{background-color:#f9fafb}.dark .dropdown-item:hover{background-color:#ffffff0d}.check-icon{mask-image:url(https://mintlify.b-cdn.net/v6.5.1/solid/check.svg);height:0.875rem;width:1rem;background-color:rgb(var(--primary-light));mask-repeat:no-repeat;mask-position:center center}.prompt-card{margin:-0.75rem;padding:0.75rem;display:flex;border-radius:1rem}.prompt-card:hover{background-color:#03071208}.dark .prompt-card:hover{background-color:#ffffff08}.prompt-icon-container{display:flex;flex:none;align-items:center;justify-content:center;margin-right:1.5rem;border-radius:0.75rem;height:4rem;width:4rem;background-color:#cb785c1a}.prompt-icon{height:1.5rem;width:1.5rem;background-color:rgb(var(--primary-light));mask-repeat:no-repeat;mask-position:center center}.prompt-title{color:rgb(31 41 55);font-weight:600}.dark .prompt-title{color:rgb(229 231 235)}.prompt-description{margin-top:0.25rem}#prompts-container{display:grid;margin-top:2.5rem}@media (min-width: 640px){#category-select{width:16rem}}@media (min-width: 1024px){#prompts-container{grid-template-columns:repeat(2, minmax(0, 1fr))}}.home-cards-custom{display:grid;grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(2, auto);gap:1.5rem}.home-cards-custom .card{background:transparent;border:0.5px solid hsl(var(--border-300));border-radius:12px;padding:0.25rem}@media (max-width: 1024px){.home-cards-custom{grid-template-columns:repeat(2, 1fr);grid-template-rows:repeat(3, auto)}}@media (max-width: 768px){.home-cards-custom{grid-template-columns:1fr;grid-template-rows:repeat(6, auto)}}.relative{position:relative}.flex-1{flex:1 1 0%}.mermaid{position:relative;background-color:#FDFDFB;background-image:linear-gradient(rgba(235, 219, 188, .25) 1px, transparent 1px), /* Secondary color #EBDBBC with low opacity */\n linear-gradient(90deg, rgba(235, 219, 188, .25) 1px, transparent 1px),\n linear-gradient(rgba(235, 219, 188, .1) 1px, transparent 1px),\n linear-gradient(90deg, rgba(235, 219, 188, .1) 1px, transparent 1px);background-size:20px 20px,\n 20px 20px,\n 4px 4px,\n 4px 4px;background-position:-1px -1px,\n -1px -1px,\n -1px -1px,\n -1px -1px;padding:20px;border-radius:8px;border:1px solid rgba(235, 219, 188, .4);box-shadow:0 2px 4px rgba(64, 64, 62, 0.08)}.dark .mermaid{background-color:#1a1918;background-image:linear-gradient(rgba(212, 162, 127, .15) 1px, transparent 1px), /* Tertiary color #D4A27F with low opacity */\n linear-gradient(90deg, rgba(212, 162, 127, .15) 1px, transparent 1px),\n linear-gradient(rgba(212, 162, 127, .08) 1px, transparent 1px),\n linear-gradient(90deg, rgba(212, 162, 127, .08) 1px, transparent 1px);border:1px solid rgba(102, 102, 99, .5);box-shadow:0 2px 4px rgba(0, 0, 0, 0.2)}.digest-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0.5rem 1rem;padding:0.75rem 1rem;margin:1.5rem 0 2.5rem;border:1px solid hsl(var(--border-300) / 0.15);background:hsl(var(--bg-200));font-variant-numeric:tabular-nums;font-size:0.875rem;color:hsl(var(--text-400))}#content-container .digest-meta a{color:hsl(var(--accent-main-100));font-weight:500;text-decoration:none;border-bottom:none}#content-container .digest-meta a:hover{text-decoration:underline}.digest-feature{position:relative;margin:2.5rem 0;padding:1.875rem 1.875rem 1.625rem;background:radial-gradient(circle, hsl(var(--text-000) / 0.025) 1px, transparent 1px) 0 0 / 18px 18px,\n linear-gradient(180deg, hsl(var(--constant-manilla) / 0.55), hsl(var(--constant-manilla) / 0.38));border:1px solid hsl(var(--border-300) / 0.12);box-shadow:inset 0 1px 0 hsl(var(--text-000) / 0.04),\n 0 1px 2px hsl(var(--always-black) / 0.04)}.digest-feature::before{content:\"\";position:absolute;inset:0 auto 0 0;width:4px;background:hsl(var(--accent-brand))}.dark .digest-feature{background:radial-gradient(circle, hsl(var(--text-000) / 0.02) 1px, transparent 1px) 0 0 / 18px 18px,\n linear-gradient(180deg, hsl(var(--bg-000) / 0.75), hsl(var(--bg-000) / 0.5));border-color:hsl(var(--border-300) / 0.1);box-shadow:inset 0 1px 0 hsl(var(--text-000) / 0.03),\n 0 1px 2px hsl(var(--always-black) / 0.25)}.digest-feature>:first-child{margin-top:0}.digest-feature>:last-child{margin-bottom:0}.digest-feature-header{display:flex;align-items:center;flex-wrap:wrap;gap:0.625rem;margin:0 0 0.75rem}#content-container .digest-feature-title{font-family:\"Site Serif Display\", Georgia, serif;font-size:1.75rem;line-height:1.15;font-weight:500;letter-spacing:-0.015em;color:hsl(var(--text-000));margin:0}#content-container .digest-feature-pill{font-family:ui-monospace, \"SF Mono\", Menlo, Consolas, monospace;font-size:0.75rem;line-height:1;letter-spacing:0.01em;padding:0.3rem 0.6rem;border-radius:999px;background:hsl(var(--accent-brand) / 0.12);color:hsl(var(--accent-main-000));border:1px solid hsl(var(--accent-brand) / 0.25);white-space:nowrap;transform:translateY(1px)}#content-container .digest-feature-lede{font-size:1.0625rem;line-height:1.65;color:hsl(var(--text-100));margin:0 0 1.25rem;max-width:none}#content-container .digest-feature-lede code{font-size:0.875em;padding:0.1em 0.35em}#content-container .digest-feature-try{font-size:0.875rem;color:hsl(var(--text-400));margin:1.25rem 0 0.5rem}#content-container .digest-feature .frame{margin:1rem 0;border-radius:0;padding:0}#content-container .digest-feature .frame>*{border-radius:0}#content-container .digest-feature pre,#content-container .digest-feature [class*=\"CodeBlock\"]{border-radius:0}#content-container .digest-feature-link{display:inline-flex;align-items:center;gap:0.35rem;font-size:0.875rem;font-weight:500;color:hsl(var(--accent-main-100));text-decoration:none;border-bottom:none;margin-top:0.75rem}#content-container .digest-feature-link::after{content:\"→\";transition:transform 120ms ease-out}#content-container .digest-feature-link:hover::after{transform:translateX(3px)}.digest-wins{margin:2.5rem 0;padding:1.5rem 1.75rem 1.25rem;background:hsl(var(--bg-200));border:1px solid hsl(var(--border-300) / 0.1)}.dark .digest-wins{background:hsl(var(--bg-200) / 0.6)}#content-container .digest-wins-title{font-family:\"Site Serif Display\", Georgia, serif;font-size:1.25rem;font-weight:500;color:hsl(var(--text-000));margin:0 0 0.75rem}.digest-wins-grid{display:grid;grid-template-columns:repeat(auto-fit, minmax(16rem, 1fr));column-gap:2rem}#content-container .digest-wins-grid>div{position:relative;font-size:0.875rem;line-height:1.5;color:hsl(var(--text-300));padding:0.5rem 0 0.5rem 1.125rem;border-top:1px solid hsl(var(--border-300) / 0.06);margin:0}#content-container .digest-wins-grid>div::before{content:\"+\";position:absolute;left:0;top:0.5rem;font-family:ui-monospace, \"SF Mono\", Menlo, Consolas, monospace;font-size:0.8125rem;font-weight:600;color:hsl(var(--accent-brand))}#content-container .digest-wins-grid>div:first-child,#content-container .digest-wins-grid>div:nth-child(2){border-top:none;padding-top:0}#content-container .digest-wins-grid>div:first-child::before,#content-container .digest-wins-grid>div:nth-child(2)::before{top:0}#content-container .digest-wins-grid code{font-size:0.8125rem;padding:0.1em 0.3em}:root{--toc-wrapper-max: 92rem;--toc-wrapper-pad: 2rem;--toc-col: 19rem;--toc-side: 28rem;--toc-btn-size: 1.75rem}#toc-collapse-toggle{display:none;align-items:center;justify-content:center;position:fixed;top:10rem;right:calc(\n max((100% - var(--toc-wrapper-max)) / 2, 0px) + var(--toc-wrapper-pad) +\n var(--toc-col) - var(--toc-btn-size) - 0.35rem\n );transition:right 200ms ease-out;z-index:30;width:var(--toc-btn-size);height:var(--toc-btn-size);border-radius:9999px;border:1px solid hsl(var(--border-300) / 0.15);background:hsl(var(--bg-100));color:hsl(var(--text-400));cursor:pointer}#toc-collapse-toggle:hover{background:hsl(var(--bg-300));color:hsl(var(--text-100))}#toc-collapse-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}#toc-collapse-toggle .toc-glyph{display:none;stroke-width:2}@media print{#toc-collapse-toggle{display:none!important}}@media (prefers-reduced-motion: reduce){#toc-collapse-toggle{transition:none}}@media (min-width: 1280px){html:has(#table-of-contents-layout) #toc-collapse-toggle{display:flex}html.toc-collapsed #toc-collapse-toggle .toc-chevron{transform:rotate(180deg)}html.toc-collapsed #toc-collapse-toggle{right:0.5rem;width:auto;padding:0 0.5rem;gap:0.25rem}html.toc-collapsed #toc-collapse-toggle .toc-glyph{display:block}html.toc-collapsed #table-of-contents-layout{display:none!important}html.toc-collapsed #content-side-layout:has(#table-of-contents-layout){display:none!important}html.toc-collapsed #content-container:has(#table-of-contents-layout) #content-area{width:100%!important}html.toc-collapsed #content-container:has(#table-of-contents-layout) #content-area>*{max-width:calc(var(--toc-wrapper-max) - var(--toc-side))}}@media (max-width: 640px){.digest-feature{padding:1.25rem 1rem 1rem;margin:1.5rem 0}#content-container .digest-feature-title{font-size:1.375rem}.digest-wins{padding:1.25rem 1rem 1rem}.digest-wins-grid{grid-template-columns:1fr}#content-container .digest-wins-grid>div:nth-child(2){border-top:1px solid hsl(var(--border-300) / 0.06);padding-top:0.5rem}#content-container .digest-wins-grid>div:nth-child(2)::before{top:0.5rem}}img[data-component-part=\"card-image\"]{aspect-ratio:16 / 9;height:auto;object-fit:cover;object-position:top center}"},{"filePath":"button.css","content":".btn{position:relative;display:inline-flex;gap:0.5rem;align-items:center;justify-content:center;flex-shrink:0;min-width:5rem;height:2.25rem;padding:0.5rem 1rem;white-space:nowrap;font-family:Styrene;font-weight:600;border-radius:0.5rem;\u0026:active{transform:scale(0.985)}\u0026.size-xs{height:1.75rem;min-width:3.5rem;padding:0 0.5rem;border-radius:0.25rem;font-size:0.75rem;gap:0.25rem}\u0026.size-sm{height:2rem;min-width:4rem;padding:0 0.75rem;border-radius:0.375rem;font-size:0.75rem}\u0026.size-lg{height:2.75rem;min-width:6rem;padding:0 1.25rem;border-radius:0.6rem}\u0026:disabled{pointer-events:none;opacity:0.5;box-shadow:none}\u0026:focus-visible{outline:none;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow)}\u0026.primary{font-weight:600;color:hsl(var(--oncolor-100));background-color:hsl(var(--accent-main-100));background-image:linear-gradient(\n to right,\n hsl(var(--accent-main-100)) 0%,\n hsl(var(--accent-main-200) / 0.5) 50%,\n hsl(var(--accent-main-200)) 100%\n );background-size:200% 100%;background-position:0% 0%;border:0.5px solid hsl(var(--border-300) / 0.25);box-shadow:inset 0 0.5px 0px rgba(255, 255, 0, 0.15),\n 0 1px 1px rgba(0, 0, 0, 0.05);text-shadow:0 1px 2px rgb(0 0 0 / 10%);transition:all 150ms cubic-bezier(0.4, 0, 0.2, 1);\u0026:hover{background-position:100% 0%;background-image:linear-gradient(\n to right,\n hsl(var(--accent-main-200)) 0%,\n hsl(var(--accent-main-200)) 100%\n )}\u0026:active{background-color:hsl(var(--accent-main-000));box-shadow:inset 0 1px 6px rgba(0, 0, 0, 0.2);transform:scale(0.985)}}\u0026.flat{font-weight:500;color:hsl(var(--oncolor-100));background-color:hsl(var(--accent-main-100));transition:background-color 150ms;\u0026:hover{background-color:hsl(var(--accent-main-200))}}\u0026.secondary{font-weight:600;color:hsl(var(--text-100) / 0.9);background-image:radial-gradient(\n ellipse at center,\n hsl(var(--bg-500) / 0.1) 50%,\n hsl(var(--bg-500) / 0.3) 100%\n );border:0.5px solid hsl(var(--border-400));transition:color 150ms, background-color 150ms;\u0026:hover{color:hsl(var(--text-000));background-color:hsl(var(--bg-500) / 0.6)}\u0026:active{background-color:hsl(var(--bg-500) / 0.5)}}\u0026.outline{font-weight:600;color:hsl(var(--text-200));background-color:transparent;border:1.5px solid currentColor;transition:color 150ms, background-color 150ms;\u0026:hover{color:hsl(var(--text-100));background-color:hsl(var(--bg-400));border-color:hsl(var(--bg-400))}}\u0026.ghost{color:hsl(var(--text-200));border-color:transparent;transition:color 150ms, background-color 150ms;\u0026:hover{color:hsl(var(--text-100));background-color:hsl(var(--bg-500) / 0.4)}\u0026:active{background-color:hsl(var(--bg-400))}}\u0026.underline{opacity:0.8;text-decoration-line:none;text-underline-offset:3px;transition:all 150ms;\u0026:hover{opacity:1;text-decoration-line:underline}\u0026:active{transform:scale(0.985)}}\u0026.danger{font-weight:600;color:hsl(var(--oncolor-100));background-color:hsl(var(--danger-100));transition:background-color 150ms;\u0026:hover{background-color:hsl(var(--danger-200))}}}"}]}
{"page":{"pagePath":"vi/texlive/latex-basics/learn-latex-in-30-minutes","slug":"/vi/texlive/latex-basics/learn-latex-in-30-minutes","pageMetadata":{"title":"Học LaTeX trong 30 phút","description":null,"href":"/vi/texlive/latex-basics/learn-latex-in-30-minutes"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,em:`em`,img:`img`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(`strong`,{children:`MỚI:`}),` Hãy ghé thăm `,_jsx(_components.a,{href:`https://learn.overleaf.com/`,children:`Overleaf Learning Center`}),` mới để khám phá các khóa học trực tuyến và webinar trực tiếp miễn phí — mọi thứ bạn cần để thành thạo LaTeX và tận dụng tối đa Overleaf.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Hướng dẫn nhập môn này không yêu cầu bạn có kinh nghiệm trước về LaTeX, nhưng hy vọng rằng khi hoàn thành, bạn không chỉ viết được tài liệu LaTeX đầu tiên mà còn có đủ kiến thức và sự tự tin để tiến thêm những bước tiếp theo hướng tới việc thành thạo LaTeX.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-is-latex`,children:`LaTeX là gì?`}),`\n`,_jsxs(_components.p,{children:[`LaTeX (phát âm là “`,_jsx(_components.em,{children:`LAY`}),`-tek” hoặc “`,_jsx(_components.em,{children:`LAH`}),`-tek”) là một công cụ để sắp chữ các tài liệu có giao diện chuyên nghiệp. Tuy nhiên, cách thức hoạt động của LaTeX khá khác biệt so với nhiều ứng dụng tạo tài liệu khác mà bạn có thể đã dùng, như Microsoft Word hay LibreOffice Writer: những công cụ “`,_jsx(_components.a,{href:`https://en.wikipedia.org/wiki/WYSIWYG`,children:`WYSIWYG`}),`” đó cung cấp cho người dùng một trang tương tác để gõ, chỉnh sửa văn bản và áp dụng nhiều kiểu định dạng khác nhau. LaTeX hoạt động rất khác: tài liệu của bạn là một tệp văn bản thuần xen kẽ các `,_jsx(_components.em,{children:`lệnh`}),` LaTeX dùng để diễn đạt kết quả (sắp chữ) mong muốn. Để tạo ra một tài liệu đã được sắp chữ và có thể xem được, tệp LaTeX của bạn được xử lý bởi một phần mềm gọi là `,_jsx(_components.em,{children:`TeX engine`}),`, sử dụng các lệnh nhúng trong tệp văn bản để hướng dẫn và điều khiển quá trình sắp chữ, chuyển đổi các lệnh LaTeX và văn bản tài liệu thành một tệp PDF được sắp chữ chuyên nghiệp. Điều này có nghĩa là bạn chỉ cần tập trung vào `,_jsx(_components.em,{children:`nội dung`}),` của tài liệu, còn máy tính, thông qua các lệnh LaTeX và TeX engine, sẽ lo phần `,_jsx(_components.em,{children:`hình thức trình bày`}),` (định dạng).`]}),`\n`,_jsx(Heading,{level:`2`,id:`why-learn-latex`,children:`Tại sao nên học LaTeX?`}),`\n`,_jsx(_components.p,{children:`Có nhiều lập luận ủng hộ hoặc phản đối việc học LaTeX thay cho các ứng dụng soạn thảo tài liệu khác; nhưng rốt cuộc, đó là lựa chọn cá nhân dựa trên sở thích, sự phù hợp và yêu cầu về tài liệu.`}),`\n`,_jsx(_components.p,{children:`Các lập luận ủng hộ LaTeX bao gồm:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`hỗ trợ sắp chữ các công thức toán học, bảng biểu và nội dung kỹ thuật cực kỳ phức tạp cho các ngành khoa học tự nhiên;`}),`\n`,_jsx(_components.li,{children:`các tiện ích cho chú thích cuối trang, tham chiếu chéo và quản lý danh mục tài liệu tham khảo;`}),`\n`,_jsx(_components.li,{children:`dễ dàng tạo ra các thành phần tài liệu phức tạp hoặc tẻ nhạt như chỉ mục, bảng thuật ngữ, mục lục, danh sách hình;`}),`\n`,_jsxs(_components.li,{children:[`khả năng tùy biến cao để tạo tài liệu theo yêu cầu riêng nhờ tính lập trình được vốn có và khả năng mở rộng thông qua hàng nghìn `,_jsx(_components.a,{href:`https://www.ctan.org/pkg`,children:`gói bổ sung miễn phí`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Nhìn chung, LaTeX cho phép người dùng kiểm soát rất nhiều đối với việc tạo ra các tài liệu được sắp chữ theo tiêu chuẩn cực kỳ cao. Tất nhiên, có những loại tài liệu hoặc ấn phẩm mà LaTeX không phát huy thế mạnh, bao gồm nhiều thiết kế trang “tự do” thường thấy trong các ấn phẩm dạng tạp chí.`}),`\n`,_jsxs(_components.p,{children:[`Một lợi ích quan trọng của LaTeX là sự tách biệt giữa nội dung và kiểu trình bày của tài liệu: một khi đã viết xong nội dung, bạn có thể dễ dàng thay đổi hình thức của nó. Tương tự, bạn có thể tạo một tệp LaTeX định nghĩa bố cục/kiểu dáng của một loại tài liệu cụ thể, và tệp đó có thể được dùng làm `,_jsx(_components.em,{children:`mẫu`}),` (template) để chuẩn hóa việc soạn thảo/tạo ra các tài liệu khác cùng loại; ví dụ, điều này cho phép các nhà xuất bản khoa học tạo các mẫu bài báo bằng LaTeX để tác giả dùng khi viết bài gửi đến tạp chí. Overleaf có một `,_jsx(_components.a,{href:`https://www.overleaf.com/gallery`,children:`thư viện chứa hàng nghìn mẫu`}),`, bao quát rất nhiều loại tài liệu — từ bài báo khoa học, báo cáo và sách đến CV và bài thuyết trình. Vì các mẫu này đã định nghĩa bố cục và kiểu dáng của tài liệu, tác giả chỉ cần mở chúng trong Overleaf — tạo một dự án mới — và bắt đầu viết để thêm nội dung.`]}),`\n`,_jsx(Heading,{level:`2`,id:`writing-your-first-piece-of-latex`,children:`Viết đoạn LaTeX đầu tiên`}),`\n`,_jsxs(_components.p,{children:[`Bước đầu tiên là tạo một dự án LaTeX mới. Bạn có thể làm điều này trên máy tính của mình bằng cách tạo một tệp `,_jsx(_components.code,{children:`.tex`}),` mới; hoặc bạn có thể `,_jsx(_components.a,{href:`https://docs.overleaf.com/getting-started/your-first-project`,children:`bắt đầu một dự án mới trong Overleaf`}),`.`]}),`\n`,_jsx(_components.p,{children:`Hãy bắt đầu với ví dụ hoạt động đơn giản nhất, có thể mở trực tiếp trong Overleaf:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`First document. This is a simple example, with no `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`extra parameters or packages included.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Simplest+working+example+LaTeX+document\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AFirst+document.+This+is+a+simple+example%2C+with+no+%0Aextra+parameters+or+packages+included.%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/5oBbZABsWEnHZpwhfvV2PD/95ba7d5496616b4f10dffe6fb90f578a/LL30Fig1-plain.svg`,alt:`Tài liệu ví dụ`})}),`\n`,_jsx(_components.p,{children:`Bạn có thể thấy LaTeX đã tự động thụt lề dòng đầu tiên của đoạn văn, tự lo phần định dạng đó cho bạn. Hãy xem kỹ hơn từng phần trong đoạn mã của chúng ta làm gì.`}),`\n`,_jsxs(_components.p,{children:[`Dòng mã đầu tiên, `,_jsx(_components.code,{children:`\\\\documentclass{article}`}),`, khai báo loại tài liệu, được gọi là `,_jsx(_components.em,{children:`lớp`}),` (class) của nó, quyết định hình thức tổng thể của tài liệu. Các loại tài liệu khác nhau cần các lớp khác nhau; ví dụ, một CV/sơ yếu lý lịch sẽ cần một lớp khác với một bài báo khoa học, vốn có thể dùng lớp `,_jsx(_components.code,{children:`article`}),` tiêu chuẩn của LaTeX. Các loại tài liệu khác mà bạn có thể làm việc có thể cần các lớp khác như `,_jsx(_components.code,{children:`book`}),` hoặc `,_jsx(_components.code,{children:`report`}),`. Để có cái nhìn về nhiều loại lớp LaTeX hiện có, `,_jsx(_components.a,{href:`https://www.ctan.org/topic/class`,children:`hãy truy cập trang liên quan trên CTAN (Comprehensive TeX Archive Network)`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Sau khi đặt lớp tài liệu, nội dung của chúng ta, được gọi là `,_jsx(_components.em,{children:`phần thân`}),` (body) của tài liệu, được viết giữa các thẻ `,_jsx(_components.code,{children:`\\\\begin{document}`}),` và `,_jsx(_components.code,{children:`\\\\end{document}`}),`. Sau khi mở ví dụ trên, bạn có thể thay đổi văn bản và khi xong, xem tệp PDF được sắp chữ bằng cách `,_jsx(_components.em,{children:`biên dịch lại tài liệu`}),`. Để làm điều này trong Overleaf, chỉ cần nhấn `,_jsx(_components.strong,{children:`Recompile`}),`, như minh họa trong đoạn video ngắn này:`]}),`\n`,_jsxs(_components.p,{children:[`Bất kỳ dự án Overleaf nào cũng có thể được cấu hình để tự động biên dịch lại mỗi khi được chỉnh sửa: nhấp vào mũi tên nhỏ bên cạnh nút `,_jsx(_components.strong,{children:`Recompile`}),` và đặt `,_jsx(_components.strong,{children:`Auto Compile`}),` thành `,_jsx(_components.strong,{children:`On`}),`, như trong ảnh chụp màn hình sau:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/ayakaleaf-pro/GmaXa-Cu4QQRFT4C/images/texlive/ll30autocompile.png?fit=max\u0026auto=format\u0026n=GmaXa-Cu4QQRFT4C\u0026q=85\u0026s=a109144b1a0939f182ce202207687428`,alt:`Ảnh chụp màn hình cho thấy cách bật hoặc tắt Auto Compile`,\"data-og-width\":`1820`,width:`1820`,\"data-og-height\":`831`,height:`831`,\"data-path\":`images/texlive/ll30autocompile.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ayakaleaf-pro/GmaXa-Cu4QQRFT4C/images/texlive/ll30autocompile.png?w=280\u0026fit=max\u0026auto=format\u0026n=GmaXa-Cu4QQRFT4C\u0026q=85\u0026s=e164db1856f25bf6404cd7ba5065cfcf 280w, https://mintcdn.com/ayakaleaf-pro/GmaXa-Cu4QQRFT4C/images/texlive/ll30autocompile.png?w=560\u0026fit=max\u0026auto=format\u0026n=GmaXa-Cu4QQRFT4C\u0026q=85\u0026s=ca319ff6a9315ef5fbe4c409e37cb6f7 560w, https://mintcdn.com/ayakaleaf-pro/GmaXa-Cu4QQRFT4C/images/texlive/ll30autocompile.png?w=840\u0026fit=max\u0026auto=format\u0026n=GmaXa-Cu4QQRFT4C\u0026q=85\u0026s=f7ad06fbf7199367c7bc9f5b46a01b03 840w, https://mintcdn.com/ayakaleaf-pro/GmaXa-Cu4QQRFT4C/images/texlive/ll30autocompile.png?w=1100\u0026fit=max\u0026auto=format\u0026n=GmaXa-Cu4QQRFT4C\u0026q=85\u0026s=bfec0fb1e0993b7c877512a1e2c99488 1100w, https://mintcdn.com/ayakaleaf-pro/GmaXa-Cu4QQRFT4C/images/texlive/ll30autocompile.png?w=1650\u0026fit=max\u0026auto=format\u0026n=GmaXa-Cu4QQRFT4C\u0026q=85\u0026s=6115017cfa95aa2e6f74ccd144dd59c3 1650w, https://mintcdn.com/ayakaleaf-pro/GmaXa-Cu4QQRFT4C/images/texlive/ll30autocompile.png?w=2500\u0026fit=max\u0026auto=format\u0026n=GmaXa-Cu4QQRFT4C\u0026q=85\u0026s=76157afa59c7c1782a41112b9fb4dec6 2500w`}),`\n`,_jsxs(_components.p,{children:[`Sau khi đã biết cách thêm nội dung vào tài liệu, bước tiếp theo là đặt tiêu đề cho nó. Để làm điều này, chúng ta cần nói qua về `,_jsx(_components.strong,{children:`preamble`}),` (phần mở đầu).`]}),`\n`,_jsx(Heading,{level:`2`,id:`the-preamble-of-a-document`,children:`Phần preamble của tài liệu`}),`\n`,_jsxs(_components.p,{children:[`Ảnh chụp màn hình ở trên cho thấy Overleaf lưu tài liệu LaTeX dưới dạng tệp có tên `,_jsx(_components.code,{children:`main.tex`}),`: theo quy ước, phần mở rộng `,_jsx(_components.code,{children:`.tex`}),` được dùng khi đặt tên cho các tệp chứa mã LaTeX của tài liệu.`]}),`\n`,_jsxs(_components.p,{children:[`Ví dụ trước cho thấy nội dung tài liệu được nhập sau lệnh `,_jsx(_components.code,{children:`\\\\begin{document}`}),`; tuy nhiên, mọi thứ trong tệp `,_jsx(_components.code,{children:`.tex`}),` xuất hiện `,_jsx(_components.em,{children:`trước`}),` vị trí đó được gọi là `,_jsx(_components.em,{children:`preamble`}),`, đóng vai trò là phần “thiết lập” của tài liệu. Trong preamble, bạn định nghĩa lớp (loại) tài liệu cùng với các chi tiết cụ thể như ngôn ngữ được dùng khi viết tài liệu; nạp các `,_jsx(_components.em,{children:`gói`}),` (package) mà bạn muốn sử dụng (sẽ nói thêm về điều này `,_jsx(_components.a,{href:`#finding-and-using-latex-packages`,children:`ở phần sau`}),`), và đây cũng là nơi bạn áp dụng các loại cấu hình khác.`]}),`\n`,_jsx(_components.p,{children:`Một preamble tối giản có thể trông như sau:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`graphicx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`trong đó `,_jsx(_components.code,{children:`\\\\documentclass[12pt, letterpaper]{article}`}),` định nghĩa lớp (loại) tổng thể của tài liệu. Các tham số bổ sung, phải được phân tách bằng dấu phẩy, được đặt trong cặp ngoặc vuông (`,_jsx(_components.code,{children:`[...]`}),`) và dùng để cấu hình phiên bản này của lớp article; tức là các thiết lập mà chúng ta muốn dùng cho tài liệu cụ thể dựa trên lớp `,_jsx(_components.code,{children:`article`}),` này.`]}),`\n`,_jsx(_components.p,{children:`Trong ví dụ này, hai tham số có tác dụng như sau:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`12pt`}),` đặt cỡ chữ`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`letterpaper`}),` đặt khổ giấy`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Tất nhiên có thể dùng các cỡ chữ khác như `,_jsx(_components.code,{children:`9pt`}),`, `,_jsx(_components.code,{children:`11pt`}),`, `,_jsx(_components.code,{children:`12pt`}),`, nhưng nếu không chỉ định, cỡ chữ mặc định là `,_jsx(_components.code,{children:`10pt`}),`. Về khổ giấy, các giá trị khác có thể dùng là `,_jsx(_components.code,{children:`a4paper`}),` và `,_jsx(_components.code,{children:`legalpaper`}),`. Để biết thêm thông tin, hãy xem bài viết về `,_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Page_size_and_margins`,children:`khổ trang và lề`}),`.`]}),`\n`,_jsx(_components.p,{children:`Dòng preamble`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`graphicx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`là một ví dụ về việc nạp một gói bên ngoài (ở đây là `,_jsx(_components.a,{href:`https://ctan.org/pkg/graphicx?lang=en`,children:`graphicx`}),`) để mở rộng khả năng của LaTeX, cho phép nó nhập các tệp đồ họa bên ngoài. Các gói LaTeX được thảo luận trong phần `,_jsx(_components.a,{href:`#finding-and-using-latex-packages`,children:`Tìm kiếm và sử dụng các gói LaTeX`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`including-title-author-and-date-information`,children:`Thêm thông tin tiêu đề, tác giả và ngày tháng`}),`\n`,_jsxs(_components.p,{children:[`Để thêm tiêu đề, tác giả và ngày tháng vào tài liệu, cần thêm ba dòng vào `,_jsx(_components.em,{children:`preamble`}),` (`,_jsx(_components.em,{children:`không phải`}),` phần thân chính của tài liệu). Các dòng đó là:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\\\\title{My first LaTeX document}`}),`: tiêu đề tài liệu`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\\\\author{Hubert Farnsworth}`}),`: ở đây bạn viết tên (các) tác giả và, tùy chọn, lệnh `,_jsx(_components.code,{children:`\\\\thanks`}),` trong cặp ngoặc nhọn:`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\\\\thanks{Funded by the Overleaf team.}`}),`: có thể được thêm sau tên tác giả, bên trong cặp ngoặc nhọn của lệnh `,_jsx(_components.code,{children:`author`}),`. Lệnh này sẽ thêm một chỉ số trên và một chú thích cuối trang với văn bản bên trong ngoặc. Hữu ích nếu bạn cần cảm ơn một tổ chức trong bài viết.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\\\\date{August 2022}`}),`: bạn có thể nhập ngày thủ công hoặc dùng lệnh `,_jsx(_components.code,{children:`\\\\today`}),` để sắp chữ ngày hiện tại mỗi khi tài liệu được biên dịch`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Sau khi thêm các dòng này, preamble của bạn sẽ trông giống như sau:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{My first LaTeX document}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\author`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Hubert Farnsworth`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\thanks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Funded by the Overleaf team.}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{August 2022}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Để sắp chữ tiêu đề, tác giả và ngày tháng, hãy dùng lệnh `,_jsx(_components.code,{children:`\\\\maketitle`}),` trong `,_jsx(_components.em,{children:`phần thân`}),` của tài liệu:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\maketitle`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`We have now added a title, author and date to our first `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\LaTeX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{} document!`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Giờ đây preamble và phần thân có thể được kết hợp để tạo thành một tài liệu hoàn chỉnh có thể mở trong Overleaf:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{My first LaTeX document}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\author`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Hubert Farnsworth`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\thanks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Funded by the Overleaf team.}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{August 2022}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\maketitle`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`We have now added a title, author and date to our first `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\LaTeX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{} document!`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=My+first+LaTeX+document\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Ctitle%7BMy+first+LaTeX+document%7D%0A%5Cauthor%7BHubert+Farnsworth%5Cthanks%7BFunded+by+the+Overleaf+team.%7D%7D%0A%5Cdate%7BAugust+2022%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0AWe+have+now+added+a+title%2C+author+and+date+to+our+first+%5CLaTeX%7B%7D+document%21%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/3WzMd0bx2zlj3zLTKS8SxT/dc2b7c16adbc96bdd750b6d2c8b4227e/LL30Fig2r-plain.svg`,alt:`Hình ảnh một tài liệu đơn giản được tạo bằng LaTeX`})}),`\n`,_jsx(Heading,{level:`2`,id:`adding-comments`,children:`Thêm chú thích`}),`\n`,_jsx(_components.p,{children:`LaTeX là một dạng “mã chương trình”, nhưng là loại chuyên dùng cho việc sắp chữ tài liệu; do đó, cũng như với mã viết bằng bất kỳ ngôn ngữ lập trình nào khác, việc thêm chú thích (comment) vào tài liệu có thể rất hữu ích. Chú thích LaTeX là một đoạn văn bản sẽ không được sắp chữ hoặc không ảnh hưởng đến tài liệu theo bất kỳ cách nào — thường dùng để thêm ghi chú “việc cần làm”; thêm ghi chú giải thích; giải thích ngay tại chỗ các macro phức tạp hoặc vô hiệu hóa các dòng/đoạn mã LaTeX khi gỡ lỗi.`}),`\n`,_jsxs(_components.p,{children:[`Để tạo chú thích trong LaTeX, chỉ cần viết ký hiệu `,_jsx(_components.code,{children:`%`}),` ở đầu dòng, như trong đoạn mã sau dựa trên ví dụ ở trên:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{My first LaTeX document}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\author`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Hubert Farnsworth`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\thanks`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Funded by the Overleaf team.}}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{August 2022}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\maketitle`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`We have now added a title, author and date to our first `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\LaTeX`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{} document!`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`% This line here is a comment. It will not be typeset in the document.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=My+first+LaTeX+document+with+a+comment\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Ctitle%7BMy+first+LaTeX+document%7D%0A%5Cauthor%7BHubert+Farnsworth%5Cthanks%7BFunded+by+the+Overleaf+team.%7D%7D%0A%5Cdate%7BAugust+2022%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0AWe+have+now+added+a+title%2C+author+and+date+to+our+first+%5CLaTeX%7B%7D+document%21%0A%0A%25+This+line+here+is+a+comment.+It+will+not+be+typeset+in+the+document.%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả giống hệt với mã LaTeX trước đó không chứa chú thích.`}),`\n`,_jsx(Heading,{level:`2`,id:`bold-italics-and-underlining`,children:`In đậm, in nghiêng và gạch chân`}),`\n`,_jsx(_components.p,{children:`Tiếp theo, chúng ta sẽ xem xét một số lệnh định dạng văn bản:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`In đậm`}),`: văn bản in đậm trong LaTeX được sắp chữ bằng lệnh `,_jsx(_components.code,{children:`\\\\textbf{...}`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.em,{children:`In nghiêng`}),`: văn bản in nghiêng được tạo bằng lệnh `,_jsx(_components.code,{children:`\\\\textit{...}`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Gạch chân: để gạch chân văn bản, hãy dùng lệnh `,_jsx(_components.code,{children:`\\\\underline{...}`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Ví dụ tiếp theo minh họa các lệnh này:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Some of the `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\textbf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`greatest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`discoveries in `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\underline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{science} `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`were made by `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\textbf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#DCDCAA`,\"--shiki-dark-font-weight\":`bold`},children:`\\\\textit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-style\":`italic`},children:`accident`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`}`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}.`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=First+example+with+formatted+text\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Ctitle%7BMy+first+LaTeX+document%7D%0A%5Cauthor%7BHubert+Farnsworth%5Cthanks%7BFunded+by+the+Overleaf+team.%7D%7D%0A%5Cdate%7BAugust+2022%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cmaketitle%0ASome+of+the+%5Ctextbf%7Bgreatest%7D%0Adiscoveries+in+%5Cunderline%7Bscience%7D+%0Awere+made+by+%5Ctextbf%7B%5Ctextit%7Baccident%7D%7D.%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/6vo15r0tLCByTpcvn1w2E8/8f14edc7ece1f10ce4ba2c76e1e58a56/LL30Fig3r-plain.svg`,alt:`Hình ảnh văn bản được định dạng trong tài liệu LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Một lệnh rất hữu ích khác là `,_jsx(_components.code,{children:`\\\\emph{_argument_}`}),`, tác dụng của nó lên `,_jsx(_components.code,{children:`_argument_`}),` phụ thuộc vào ngữ cảnh. Trong văn bản thường, văn bản được nhấn mạnh sẽ được in nghiêng, nhưng hành vi này bị đảo ngược nếu dùng bên trong văn bản đã in nghiêng — xem ví dụ tiếp theo:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Some of the greatest `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\emph`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#D4D4D4`,\"--shiki-dark-font-style\":`italic`},children:`discoveries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} in science `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`were made by accident.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\textit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#D4D4D4`,\"--shiki-dark-font-style\":`italic`},children:`Some of the greatest `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#DCDCAA`,\"--shiki-dark-font-style\":`italic`},children:`\\\\emph`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#D4D4D4`,\"--shiki-dark-font-style\":`italic`},children:`{discoveries} `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#D4D4D4`,\"--shiki-dark-font-style\":`italic`},children:`in science were made by accident.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\textbf`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`Some of the greatest `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#DCDCAA`,\"--shiki-dark-font-weight\":`bold`},children:`\\\\emph`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-style\":`italic`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-style\":`italic`},children:`discoveries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`} `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-light-font-weight\":`bold`,\"--shiki-dark\":`#569CD6`,\"--shiki-dark-font-weight\":`bold`},children:`in science were made by accident.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsxs(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Using+the+emph+command\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Ctitle%7BMy+first+LaTeX+document%7D%0A%5Cauthor%7BHubert+Farnsworth%5Cthanks%7BFunded+by+the+Overleaf+team.%7D%7D%0A%5Cdate%7BAugust+2022%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cparindent0pt%25+To+remove+the+paragraph+indentation%0A%5Cmaketitle%0ASome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+in+science+%0Awere+made+by+accident.%0A%0A%5Ctextit%7BSome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+%0Ain+science+were+made+by+accident.%7D%0A%0A%5Ctextbf%7BSome+of+the+greatest+%5Cemph%7Bdiscoveries%7D+%0Ain+science+were+made+by+accident.%7D%0A%5Cend%7Bdocument%7D`,children:[`Mở ví dụ `,_jsx(`strong`,{children:`\\\\emph`}),` này trong Overleaf.`]})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/1K0A8RXXOomakJBAr2usmp/62d0e8b5275092dd0b1b4a59c745b632/LL30Fig4r-plain.svg`,alt:`Hình ảnh minh họa cách dùng lệnh \\\\emph của LaTeX`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(`strong`,{children:`Lưu ý:`}),` một số gói, chẳng hạn như `,_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Beamer`,children:`Beamer`}),`, thay đổi hành vi của lệnh `,_jsx(_components.code,{children:`\\\\emph`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-images`,children:`Thêm hình ảnh`}),`\n`,_jsx(_components.p,{children:`Trong phần này, chúng ta sẽ xem cách thêm hình ảnh vào tài liệu LaTeX. Overleaf hỗ trợ ba cách để chèn hình ảnh:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Dùng `,_jsxs(_components.a,{href:`https://docs.overleaf.com/writing-and-editing/inserting-images/using-the-insert-figure-button`,children:[`nút `,_jsx(_components.strong,{children:`Insert Figure`})]}),`(`,_jsx(_components.img,{src:`https://sharelatex-wiki-cdn-671420.cdn77.org/learn-scripts/images/a/a8/InsertFigureButton.png`,alt:`Nút Insert Figure trên thanh công cụ của trình soạn thảo`}),`) nằm trên thanh công cụ của trình soạn thảo để chèn hình ảnh vào `,_jsx(_components.strong,{children:`Visual Editor`}),` hoặc `,_jsx(_components.strong,{children:`Code Editor`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://docs.overleaf.com/writing-and-editing/inserting-images/pasting-images-into-your-project`,children:`Sao chép và dán hình ảnh`}),` vào `,_jsx(_components.strong,{children:`Visual Editor`}),` hoặc `,_jsx(_components.strong,{children:`Code Editor`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Dùng `,_jsx(_components.strong,{children:`Code Editor`}),` để viết mã LaTeX chèn hình đồ họa.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Cách 1 và 2 tự động tạo mã LaTeX cần thiết để chèn hình ảnh, nhưng ở đây chúng tôi giới thiệu cách 3 — lưu ý rằng bạn sẽ cần `,_jsx(_components.a,{href:`https://docs.overleaf.com/writing-and-editing/inserting-images`,children:`tải các hình ảnh đó lên`}),` dự án Overleaf của mình. Ví dụ sau minh họa cách chèn một hình ảnh:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`graphicx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`%LaTeX package to import graphics`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\graphicspath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{{images/}} `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`%configuring the graphicx package`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`The universe is immense and it seems to be homogeneous, `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`on a large scale, everywhere we look.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`% The \\\\includegraphics command is `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`% provided (implemented) by the `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`% graphicx package`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\includegraphics`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{universe} `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`There's a picture of a galaxy above.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/project/new/template/25686?id=107971142\u0026templateName=Example+using+images+in+LaTeX\u0026latexEngine=pdflatex\u0026texImage=texlive-full%3A2022.1\u0026mainFile=`,children:`Mở ví dụ hình ảnh này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/4p5toat08FUgehv4yuNwXS/efc9e75e4342c9caeec94f26627fa337/LL30Fig5v2-plain.svg`,alt:`Hình minh họa một hình ảnh được nhập vào tài liệu LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Việc nhập hình đồ họa vào tài liệu LaTeX cần `,_jsxs(_components.a,{href:`#finding-and-using-latex-packages`,children:[`một `,_jsx(_components.em,{children:`gói`}),` bổ sung`]}),` cung cấp các lệnh và tính năng cần thiết để chèn các tệp đồ họa bên ngoài. Ví dụ trên nạp `,_jsx(_components.a,{href:`https://ctan.org/pkg/graphicx?lang=en`,children:`gói graphicx`}),`, gói này, bên cạnh nhiều lệnh khác, cung cấp `,_jsx(_components.code,{children:`\\\\includegraphics{...}`}),` để nhập hình đồ họa và `,_jsx(_components.code,{children:`\\\\graphicspath{...}`}),` để cho LaTeX biết vị trí của các hình đồ họa.`]}),`\n`,_jsxs(_components.p,{children:[`Để dùng gói `,_jsx(_components.code,{children:`graphicx`}),`, hãy thêm dòng sau vào preamble của tài liệu Overleaf:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`graphicx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Trong ví dụ của chúng ta, lệnh `,_jsx(_components.code,{children:`\\\\graphicspath{{images/}}`}),` cho LaTeX biết rằng các hình ảnh được lưu trong một thư mục có tên `,_jsx(_components.code,{children:`images`}),`, nằm trong thư mục hiện tại:`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://sharelatex-wiki-cdn-671420.cdn77.org/learn-scripts/images/1/17/ImagesInAFolder.png`,alt:`Hình ảnh cho thấy LaTeX truy cập các hình ảnh được lưu trong một thư mục`})}),`\n`,_jsxs(_components.p,{children:[`Lệnh `,_jsx(_components.code,{children:`\\\\includegraphics{universe}`}),` thực hiện việc chèn hình ảnh vào tài liệu. Ở đây, `,_jsx(_components.code,{children:`universe`}),` là tên của tệp hình ảnh nhưng không có phần mở rộng.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Lưu ý`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Mặc dù có thể dùng tên tệp đầy đủ, bao gồm cả phần mở rộng, trong lệnh `,_jsx(_components.code,{children:`\\\\includegraphics`}),`, nhưng cách làm tốt nhất là bỏ qua phần mở rộng tệp vì khi đó LaTeX sẽ tìm kiếm tất cả các định dạng được hỗ trợ.`]}),`\n`,_jsx(_components.li,{children:`Nhìn chung, tên tệp đồ họa không nên chứa khoảng trắng hoặc nhiều dấu chấm; bạn cũng nên dùng chữ thường cho phần mở rộng tệp khi tải các tệp hình ảnh lên Overleaf.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể tìm thêm thông tin về các gói LaTeX ở cuối hướng dẫn này, trong phần `,_jsx(_components.a,{href:`#finding-and-using-latex-packages`,children:`Tìm kiếm và sử dụng các gói LaTeX`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`captions-labels-and-references`,children:`Chú thích hình, nhãn và tham chiếu`}),`\n`,_jsxs(_components.p,{children:[`Hình ảnh có thể được thêm chú thích (caption), gắn nhãn (label) và tham chiếu thông qua môi trường `,_jsx(_components.code,{children:`figure`}),`, như dưới đây:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`graphicx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\graphicspath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{{images/}}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`figure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}[h]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\centering`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\includegraphics`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[width=0.75`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\textwidth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{mesh}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\caption`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{A nice plot.}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` \\\\label`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`fig:mesh1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`figure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`As you can see in figure `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\ref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`fig:mesh1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, the function grows near the origin. This example is on page `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\pageref`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`fig:mesh1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}.`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/project/new/template/25519?id=107980830\u0026templateName=Example+using+image+captions+in+LaTeX\u0026latexEngine=pdflatex\u0026texImage=texlive-full%3A2022.1\u0026mainFile=`,children:`Mở ví dụ hình ảnh này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/4DkAWWkQqZP6QHU2EErogQ/9aa2371f2cde0f3f8bf22aa1c0b91789/LL30Fig6r-plain.svg`,alt:`Hình minh họa cách dùng chú thích hình trong LaTeX`})}),`\n`,_jsx(_components.p,{children:`Có một số lệnh đáng chú ý trong ví dụ:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`\\\\includegraphics[width=0.75\\\\textwidth]{mesh}`})}),`: Dạng này của `,_jsx(_components.code,{children:`\\\\includegraphics`}),` yêu cầu LaTeX đặt chiều rộng của hình bằng 75% chiều rộng văn bản — giá trị này được lưu trong lệnh `,_jsx(_components.code,{children:`\\\\textwidth`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`\\\\caption{A nice plot.}`})}),`: Đúng như tên gọi, lệnh này đặt chú thích cho hình, có thể đặt ở trên hoặc dưới hình. Nếu bạn tạo danh sách hình, chú thích này sẽ được dùng trong danh sách đó.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`\\\\label{fig:mesh1}`})}),`: Để tham chiếu đến hình ảnh này trong tài liệu, bạn gán cho nó một nhãn bằng lệnh `,_jsx(_components.code,{children:`\\\\label`}),`. Nhãn được dùng để tạo số thứ tự cho hình ảnh và, kết hợp với lệnh tiếp theo, sẽ cho phép bạn tham chiếu đến nó.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:_jsx(_components.code,{children:`\\\\ref{fig:mesh1}`})}),`: Đoạn mã này sẽ được thay thế bằng số thứ tự tương ứng với hình được tham chiếu.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Hình ảnh được đưa vào tài liệu LaTeX nên được đặt bên trong môi trường `,_jsx(_components.code,{children:`figure`}),` hoặc tương tự, để LaTeX có thể tự động đặt hình ảnh ở vị trí phù hợp trong tài liệu.`]}),`\n`,_jsx(_components.p,{children:`Hướng dẫn thêm có trong các bài viết trợ giúp sau của Overleaf:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Positioning_images_and_tables`,children:`Định vị hình`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://docs.overleaf.com/writing-and-editing/inserting-images`,children:`Chèn hình ảnh`})}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-lists-in-latex`,children:`Tạo danh sách trong LaTeX`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể tạo các loại danh sách khác nhau bằng `,_jsx(_components.em,{children:`môi trường`}),` (environment), vốn được dùng để bao bọc mã LaTeX cần thiết để thực hiện một tính năng sắp chữ cụ thể. Một môi trường bắt đầu bằng `,_jsx(_components.code,{children:`\\\\begin{_environment-name_}`}),` và kết thúc bằng `,_jsx(_components.code,{children:`\\\\end{_environment-name_}`}),`, trong đó `,_jsx(_components.code,{children:`_environment-name_`}),` có thể là `,_jsx(_components.code,{children:`figure`}),`, `,_jsx(_components.code,{children:`tabular`}),` hoặc một trong các loại danh sách: `,_jsx(_components.code,{children:`itemize`}),` cho danh sách không có thứ tự hoặc `,_jsx(_components.code,{children:`enumerate`}),` cho danh sách có thứ tự.`]}),`\n`,_jsx(Heading,{level:`3`,id:`unordered-lists`,children:`Danh sách không có thứ tự`}),`\n`,_jsxs(_components.p,{children:[`Danh sách không có thứ tự được tạo bằng môi trường `,_jsx(_components.code,{children:`itemize`}),`. Mỗi mục trong danh sách phải đứng sau lệnh `,_jsx(_components.code,{children:`\\\\item`}),`, như dưới đây:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`itemize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` \\\\item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` The individual entries are indicated with a black dot, a so-called bullet.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` \\\\item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` The text in the entries may be of any length.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`itemize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Example+of+a+LaTeX+unordered+list\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bitemize%7D%0A++%5Citem+The+individual+entries+are+indicated+with+a+black+dot%2C+a+so-called+bullet.%0A++%5Citem+The+text+in+the+entries+may+be+of+any+length.%0A%5Cend%7Bitemize%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/1lDj29Mg9ZuLNHXwZrTJew/cd7d950c65fd05b251c4aa55746f4eb7/LL30Fig7-plain.svg`,alt:`Ví dụ về danh sách gạch đầu dòng trong LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Bạn cũng có thể mở `,_jsx(_components.a,{href:`https://www.overleaf.com/project/new/template/25521?id=107987258\u0026templateName=Demonstrating+various+types+of+LaTeX+list\u0026latexEngine=pdflatex\u0026texImage=texlive-full%3A2022.1\u0026mainFile=`,children:`dự án Overleaf lớn hơn này`}),`, minh họa nhiều loại danh sách LaTeX khác nhau.`]}),`\n`,_jsx(Heading,{level:`3`,id:`ordered-lists`,children:`Danh sách có thứ tự`}),`\n`,_jsxs(_components.p,{children:[`Danh sách có thứ tự dùng cú pháp giống danh sách không có thứ tự nhưng được tạo bằng môi trường `,_jsx(_components.code,{children:`enumerate`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enumerate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` \\\\item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` This is the first entry in our list.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` \\\\item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` The list numbers increase with each entry we add.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`enumerate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Example+of+the+enumerate+environment\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Benumerate%7D%0A++%5Citem+This+is+the+first+entry+in+our+list.%0A++%5Citem+The+list+numbers+increase+with+each+entry+we+add.%0A%5Cend%7Benumerate%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/2vkfa7RiAIJxv5wIZbg9UK/530c384f159d091a587de279d13fefec/LL30Fig8-plain.svg`,alt:`Ví dụ về danh sách đánh số được tạo bằng LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Giống như với danh sách `,_jsx(_components.code,{children:`unordered`}),`, mỗi mục phải đứng sau lệnh `,_jsx(_components.code,{children:`\\\\item`}),`; ở đây lệnh này tự động tạo giá trị nhãn số thứ tự cho danh sách, bắt đầu từ 1.`]}),`\n`,_jsxs(_components.p,{children:[`Để biết thêm thông tin, bạn có thể mở `,_jsx(_components.a,{href:`https://www.overleaf.com/project/new/template/25521?id=107987258\u0026templateName=Demonstrating+various+types+of+LaTeX+list\u0026latexEngine=pdflatex\u0026texImage=texlive-full%3A2022.1\u0026mainFile=`,children:`dự án Overleaf lớn hơn này`}),`, minh họa nhiều loại danh sách LaTeX khác nhau, hoặc xem `,_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Lists`,children:`bài viết trợ giúp chuyên về danh sách LaTeX`}),` của chúng tôi, nơi cung cấp nhiều ví dụ hơn và hướng dẫn cách tạo danh sách tùy chỉnh.`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-math-to-latex`,children:`Thêm công thức toán vào LaTeX`}),`\n`,_jsx(_components.p,{children:`Một trong những ưu điểm chính của LaTeX là sự dễ dàng khi viết các biểu thức toán học. LaTeX cung cấp hai chế độ viết để sắp chữ toán học:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`chế độ toán `,_jsx(_components.em,{children:`inline`}),` (trong dòng) dùng để viết các công thức là một phần của đoạn văn`]}),`\n`,_jsxs(_components.li,{children:[`chế độ toán `,_jsx(_components.em,{children:`display`}),` (hiển thị) dùng để viết các biểu thức không thuộc văn bản hay đoạn văn và được sắp chữ trên các dòng riêng`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`inline-math-mode`,children:`Chế độ toán inline`}),`\n`,_jsx(_components.p,{children:`Hãy xem một ví dụ về chế độ toán inline:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`In physics, the mass-energy equivalence is stated `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`by the equation `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`E=mc^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, discovered in 1905 by Albert Einstein.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Inline+LaTeX+maths+example\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AIn+physics%2C+the+mass-energy+equivalence+is+stated+%0Aby+the+equation+%24E%3Dmc%5E2%24%2C+discovered+in+1905+by+Albert+Einstein.%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/77oK8pfew1B1VvxiBtALag/15714f2da4e469bbb8cf70a0d3733e5d/LL30Fig9-plain.svg`,alt:`Hình ảnh công thức toán được sắp chữ ở chế độ toán inline`})}),`\n`,_jsxs(_components.p,{children:[`Để sắp chữ toán ở chế độ inline, bạn có thể dùng một trong các cặp dấu phân cách sau: `,_jsx(_components.code,{children:`\\\\( ... \\\\)`}),`, `,_jsx(_components.code,{children:`$ ... $`}),` hoặc `,_jsx(_components.code,{children:`\\\\begin{math} ... \\\\end{math}`}),`, như minh họa trong ví dụ sau:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`E=mc^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} is typeset in a paragraph using inline math mode---as is `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`E=mc^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, and so too is `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`E=mc^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\)`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Demonstrating+inline+math+mode\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bmath%7D%0AE%3Dmc%5E2%0A%5Cend%7Bmath%7D+is+typeset+in+a+paragraph+using+inline+math+mode---as+is+%24E%3Dmc%5E2%24%2C+and+so+too+is+%5C%28E%3Dmc%5E2%5C%29.%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/46VPfEGxYJ3di18TLzaLo9/ed67df07532c52b6543fd2bae7cb7c04/LL30Fig10r-plain.svg`,alt:`Hình ảnh minh họa nội dung được tạo bằng chế độ toán inline của LaTeX`})}),`\n`,_jsx(Heading,{level:`3`,id:`display-math-mode`,children:`Chế độ toán display`}),`\n`,_jsx(_components.p,{children:`Các phương trình được sắp chữ ở chế độ display có thể được đánh số hoặc không, như trong ví dụ sau:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`The mass-energy equivalence is described by the famous equation`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` E=mc^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` \\\\]`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` discovered in 1905 by Albert Einstein. `})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`In natural units (`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`c = `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), the formula expresses the identity`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`equation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`E=m`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`equation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Display+math+mode+example\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0AThe+mass-energy+equivalence+is+described+by+the+famous+equation%0A%5C%5B+E%3Dmc%5E2+%5C%5D+discovered+in+1905+by+Albert+Einstein.+%0A%0AIn+natural+units+%28%24c+%3D+1%24%29%2C+the+formula+expresses+the+identity%0A%5Cbegin%7Bequation%7D%0AE%3Dm%0A%5Cend%7Bequation%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/6n1FPYFzmzCHPpWoEoYQZM/79b33f1096be06326bff7d2e1976c67c/LL30Fig11-plain.svg`,alt:`Hình ảnh công thức toán ở chế độ display trong LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Để sắp chữ toán ở chế độ display, bạn có thể dùng một trong các cặp dấu phân cách sau: `,_jsx(_components.code,{children:`\\\\[ ... \\\\]`}),`, `,_jsx(_components.code,{children:`\\\\begin{displaymath} ... \\\\end{displaymath}`}),` hoặc `,_jsx(_components.code,{children:`\\\\begin{equation} ... \\\\end{equation}`}),`. Trước đây, việc sắp chữ toán ở chế độ display cần dùng dấu phân cách `,_jsx(_components.code,{children:`$$`}),`, như `,_jsx(_components.code,{children:`$$ _... display math here ..._$$`}),`, nhưng cách này `,_jsx(_components.a,{href:`https://texfaq.org/FAQ-dolldoll`,children:`không còn được khuyến nghị`}),`: hãy dùng dấu phân cách `,_jsx(_components.code,{children:`\\\\[ ... \\\\]`}),` của LaTeX thay thế.`]}),`\n`,_jsx(Heading,{level:`3`,id:`more-complete-examples`,children:`Các ví dụ đầy đủ hơn`}),`\n`,_jsx(_components.p,{children:`Các ví dụ sau minh họa nhiều loại nội dung toán học được sắp chữ bằng LaTeX.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Subscripts in math mode are written as `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`a_b`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` and superscripts are written as `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`a^b`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`. These can be combined and nested to write expressions such as`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` T^{i_`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` i_`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` \\\\dots i_p}_{j_`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` j_`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` \\\\dots j_q} = T(x^{i_`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`},\\\\dots,x^{i_p},e_{j_`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`},\\\\dots,e_{j_q}) `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`We write integrals using `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\int`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` and fractions using `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\frac{a}{b}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`. Limits are placed on integrals using superscripts and subscripts:`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\[`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` \\\\int`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`_`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` \\\\frac{dx}{e^x} = \\\\frac{e-`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`}{e} `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Lower case Greek letters are written as `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\omega`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` $`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\delta`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` etc. while upper case Greek letters are written as `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\Omega`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` $`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\Delta`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Mathematical operators are prefixed with a backslash as `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\sin(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\beta`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`)`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\cos(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\alpha`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`)`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\log(x)`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`$`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` etc.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=More+advanced+LaTeX+math+example\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ASubscripts+in+math+mode+are+written+as+%24a%5Fb%24+and+superscripts+are+written+as+%24a%5Eb%24.+These+can+be+combined+and+nested+to+write+expressions+such+as%0A%0A%5C%5B+T%5E%7Bi%5F1+i%5F2+%5Cdots+i%5Fp%7D%5F%7Bj%5F1+j%5F2+%5Cdots+j%5Fq%7D+%3D+T%28x%5E%7Bi%5F1%7D%2C%5Cdots%2Cx%5E%7Bi%5Fp%7D%2Ce%5F%7Bj%5F1%7D%2C%5Cdots%2Ce%5F%7Bj%5Fq%7D%29+%5C%5D%0A+%0AWe+write+integrals+using+%24%5Cint%24+and+fractions+using+%24%5Cfrac%7Ba%7D%7Bb%7D%24.+Limits+are+placed+on+integrals+using+superscripts+and+subscripts%3A%0A%0A%5C%5B+%5Cint%5F0%5E1+%5Cfrac%7Bdx%7D%7Be%5Ex%7D+%3D++%5Cfrac%7Be-1%7D%7Be%7D+%5C%5D%0A%0ALower+case+Greek+letters+are+written+as+%24%5Comega%24+%24%5Cdelta%24+etc.+while+upper+case+Greek+letters+are+written+as+%24%5COmega%24+%24%5CDelta%24.%0A%0AMathematical+operators+are+prefixed+with+a+backslash+as+%24%5Csin%28%5Cbeta%29%24%2C+%24%5Ccos%28%5Calpha%29%24%2C+%24%5Clog%28x%29%24+etc.%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/5xfm4NybWckHL5ndpdnBRq/bc0b5e27044820ea5cdd11648a68f543/LL30Fig12r-plain.svg`,alt:`Hình ảnh nhiều loại công thức toán được sắp chữ trong LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Ví dụ tiếp theo dùng môi trường `,_jsx(_components.code,{children:`equation*`}),` do gói `,_jsx(_components.code,{children:`amsmath`}),` cung cấp, vì vậy chúng ta cần thêm dòng sau vào preamble của tài liệu:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`amsmath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`% For the equation* environment`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Để biết thêm thông tin về cách dùng `,_jsx(_components.code,{children:`amsmath`}),`, hãy xem `,_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Aligning_equations_with_amsmath`,children:`bài viết trợ giúp của chúng tôi`}),`.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`32`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`amsmath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`% For the equation* environment`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`First example`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`The well-known Pythagorean theorem `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`x^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` + y^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` = z^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\)`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` was proved to be invalid for other exponents, meaning the next equation has no integer solutions for `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`n>`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\)`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` x^n + y^n = z^n `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`Second example`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is a simple math expression `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\sqrt{x^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\)`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` inside text. `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`And this is also the same: `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\sqrt{x^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`but by using another command.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is a simple math expression without numbering`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\sqrt{x^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`}`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\]`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`separated from text.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is also the same:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displaymath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\sqrt{x^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displaymath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\ldots`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` and this:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`equation*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`\\\\sqrt{x^`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`equation*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=More+math+content+typeset+in+LaTeX\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%25+For+the+equation%2A+environment%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7BFirst+example%7D%0A%0AThe+well-known+Pythagorean+theorem+%5C%28x%5E2+%2B+y%5E2+%3D+z%5E2%5C%29+was+proved+to+be+invalid+for+other+exponents%2C+meaning+the+next+equation+has+no+integer+solutions+for+%5C%28n%3E2%5C%29%3A%0A%0A%5C%5B+x%5En+%2B+y%5En+%3D+z%5En+%5C%5D%0A%0A%5Csection%7BSecond+example%7D%0A%0AThis+is+a+simple+math+expression+%5C%28%5Csqrt%7Bx%5E2%2B1%7D%5C%29+inside+text.+%0AAnd+this+is+also+the+same%3A+%0A%5Cbegin%7Bmath%7D%0A%5Csqrt%7Bx%5E2%2B1%7D%0A%5Cend%7Bmath%7D%0Abut+by+using+another+command.%0A%0AThis+is+a+simple+math+expression+without+numbering%0A%5C%5B%5Csqrt%7Bx%5E2%2B1%7D%5C%5D+%0Aseparated+from+text.%0A%0AThis+is+also+the+same%3A%0A%5Cbegin%7Bdisplaymath%7D%0A%5Csqrt%7Bx%5E2%2B1%7D%0A%5Cend%7Bdisplaymath%7D%0A%0A%5Cldots+and+this%3A%0A%5Cbegin%7Bequation%2A%7D%0A%5Csqrt%7Bx%5E2%2B1%7D%0A%5Cend%7Bequation%2A%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/hT85gkewCDlxCHeNU5slE/9256c129b25bec7a93dcfe9e44b0654a/LL30Fig13r-plain.svg`,alt:`Hình ảnh nhiều loại công thức toán được sắp chữ trong LaTeX`})}),`\n`,_jsx(_components.p,{children:`Khả năng xử lý toán học trong LaTeX là vô tận, vì vậy hãy ghé thăm các trang trợ giúp của chúng tôi để có lời khuyên và ví dụ về các chủ đề cụ thể:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Mathematical_expressions`,children:`Biểu thức toán học`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Subscripts_and_superscripts`,children:`Chỉ số dưới và chỉ số trên`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Brackets_and_Parentheses`,children:`Dấu ngoặc`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Fractions_and_Binomials`,children:`Phân số và hệ số nhị thức`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Aligning_equations_with_amsmath`,children:`Căn chỉnh phương trình`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Operators`,children:`Toán tử`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Spacing_in_math_mode`,children:`Khoảng cách trong chế độ toán`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Integrals%2C_sums_and_limits`,children:`Tích phân, tổng và giới hạn`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Display_style_in_math_mode`,children:`Kiểu hiển thị trong chế độ toán`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/List_of_Greek_letters_and_math_symbols`,children:`Danh sách chữ cái Hy Lạp và ký hiệu toán học`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Mathematical_fonts`,children:`Phông chữ toán học`})}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`basic-document-structure`,children:`Cấu trúc tài liệu cơ bản`}),`\n`,_jsx(_components.p,{children:`Tiếp theo, chúng ta tìm hiểu về phần tóm tắt và cách chia tài liệu LaTeX thành các chương, mục và đoạn văn khác nhau.`}),`\n`,_jsx(Heading,{level:`3`,id:`abstracts`,children:`Tóm tắt`}),`\n`,_jsxs(_components.p,{children:[`Các bài báo khoa học thường có một phần `,_jsx(_components.em,{children:`tóm tắt`}),` (abstract), là bản tổng quan/tóm lược ngắn gọn về các chủ đề hoặc luận điểm cốt lõi của bài. Ví dụ tiếp theo minh họa cách sắp chữ phần tóm tắt bằng môi trường `,_jsx(_components.code,{children:`abstract`}),` của LaTeX:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`abstract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is a simple paragraph at the beginning of the `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`document. A brief introduction about the main subject.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`abstract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=How+to+create+a+document+abstract\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Babstract%7D%0AThis+is+a+simple+paragraph+at+the+beginning+of+the+%0Adocument.+A+brief+introduction+about+the+main+subject.%0A%5Cend%7Babstract%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/4cPu8x8ZxuDVF6efcZ03yi/91aa6aa84719613b0e25c725b70aa0b8/LL30Fig14-plain.svg`,alt:`Hình ảnh phần tóm tắt được sắp chữ trong LaTeX`})}),`\n`,_jsx(Heading,{level:`3`,id:`paragraphs-and-new-lines`,children:`Đoạn văn và xuống dòng`}),`\n`,_jsx(_components.p,{children:`Sau khi đã có phần tóm tắt, chúng ta có thể bắt đầu viết đoạn văn đầu tiên. Ví dụ tiếp theo minh họa:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`cách tạo một đoạn văn mới bằng cách nhấn phím “enter” hai lần, kết thúc dòng hiện tại và chèn thêm một dòng trống;`}),`\n`,_jsxs(_components.li,{children:[`cách bắt đầu một dòng mới mà không bắt đầu đoạn văn mới bằng cách chèn ngắt dòng thủ công với lệnh `,_jsx(_components.code,{children:`\\\\\\\\`}),` (hai dấu gạch chéo ngược); hoặc dùng lệnh `,_jsx(_components.code,{children:`\\\\newline`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Đoạn văn thứ ba trong ví dụ này minh họa cách dùng các lệnh `,_jsx(_components.code,{children:`\\\\\\\\`}),` và `,_jsx(_components.code,{children:`\\\\newline`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`abstract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is a simple paragraph at the beginning of the `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`document. A brief introduction about the main subject.`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`abstract`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:\"After our abstract we can begin the first paragraph, then press ``enter'' twice to start the second one.\"})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This line will start a second paragraph.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`I will start the third paragraph and then add `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` a manual line break which causes this text to start on a new line but remains part of the same paragraph. Alternatively, I can use the `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\verb`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`|\\\\newline|`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\newline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` command to start a new line, which is also part of the same paragraph.`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Example+to+create+a+new+paragraph\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cbegin%7Babstract%7D%0AThis+is+a+simple+paragraph+at+the+beginning+of+the+%0Adocument.+A+brief+introduction+about+the+main+subject.%0A%5Cend%7Babstract%7D%0A%0AAfter+our+abstract+we+can+begin+the+first+paragraph%2C+then+press+%60%60enter%27%27+twice+to+start+the+second+one.%0A%0AThis+line+will+start+a+second+paragraph.%0A%0AI+will+start+the+third+paragraph+and+then+add+%5C%5C+a+manual+line+break+which+causes+this+text+to+start+on+a+new+line+but+remains+part+of+the+same+paragraph.+Alternatively%2C+I+can+use+the+%5Cverb%7C%5Cnewline%7C%5Cnewline+command+to+start+a+new+line%2C+which+is+also+part+of+the+same+paragraph.%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/5DdSH06hFli8k4lR0dxw4m/a55cddf9aa10b64302ae7b72ba0c6447/LL30Fig15r-plain.svg`,alt:`Hình ảnh minh họa việc tạo đoạn văn trong LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Hãy lưu ý cách LaTeX tự động thụt lề các đoạn văn — trừ khi đứng ngay sau các tiêu đề tài liệu như section và subsection — `,_jsx(_components.a,{href:`#chapters-and-sections`,children:`như chúng ta sẽ thấy`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Người dùng mới được khuyên không nên dùng nhiều lệnh `,_jsx(_components.code,{children:`\\\\\\\\`}),` hoặc `,_jsx(_components.code,{children:`\\\\newline`}),` để “giả lập” các đoạn văn có khoảng cách lớn hơn giữa chúng, vì điều này có thể ảnh hưởng đến các thuật toán sắp chữ của LaTeX. Cách được khuyến nghị là tiếp tục dùng các dòng trống để tạo đoạn văn mới, không dùng `,_jsx(_components.code,{children:`\\\\\\\\`}),`, và nạp `,_jsx(_components.a,{href:`https://ctan.org/pkg/parskip?lang=en`,children:`gói parskip`}),` bằng cách thêm `,_jsx(_components.code,{children:`\\\\usepackage{parskip}`}),` vào preamble.`]}),`\n`,_jsx(_components.p,{children:`Bạn có thể tìm thêm thông tin về đoạn văn trong các bài viết sau:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Paragraphs_and_new_lines`,children:`Đoạn văn và xuống dòng`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Articles/How_to_change_paragraph_spacing_in_LaTeX`,children:`Cách thay đổi khoảng cách đoạn văn trong LaTeX`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Errors/LaTeX_Error%3A_There%27s_no_line_here_to_end`,children:`LaTeX Error: There’s no line here to end`}),` cung cấp thêm lời khuyên và hướng dẫn về cách dùng `,_jsx(_components.code,{children:`\\\\\\\\`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`chapters-and-sections`,children:`Chương và mục`}),`\n`,_jsxs(_components.p,{children:[`Các tài liệu dài hơn, bất kể phần mềm soạn thảo nào, thường được chia thành các phần, chương, mục, tiểu mục, v.v. LaTeX cũng cung cấp các lệnh cấu trúc tài liệu, nhưng các lệnh có sẵn và cách chúng được triển khai (chúng làm gì) có thể phụ thuộc vào lớp tài liệu đang dùng. Ví dụ, các tài liệu được tạo bằng lớp `,_jsx(_components.code,{children:`book`}),` có thể được chia thành các phần, chương, mục, tiểu mục, v.v., nhưng lớp `,_jsx(_components.code,{children:`letter`}),` không cung cấp (hỗ trợ) bất kỳ lệnh nào để làm điều đó.`]}),`\n`,_jsxs(_components.p,{children:[`Ví dụ tiếp theo minh họa các lệnh dùng để cấu trúc một tài liệu dựa trên lớp `,_jsx(_components.code,{children:`book`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`27`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`27`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`book`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\chapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`First Chapter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`Introduction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is the first section.`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Lorem ipsum dolor sit amet, consectetuer adipiscing `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`elit. Etiam lobortisfacilisis sem. Nullam nec mi et `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`neque pharetra sollicitudin. Praesent imperdietmi nec ante. `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Donec ullamcorper, felis non sodales...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`Second Section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Lorem ipsum dolor sit amet, consectetuer adipiscing elit. `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Etiam lobortis facilisissem. Nullam nec mi et neque pharetra `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sollicitudin. Praesent imperdiet mi necante...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\subsection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`First Subsection`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Praesent imperdietmi nec ante. Donec ullamcorper, felis non sodales...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`Unnumbered Section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Lorem ipsum dolor sit amet, consectetuer adipiscing elit. `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Etiam lobortis facilisissem...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Book+class+example+document\u0026snip=%5Cdocumentclass%7Bbook%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cchapter%7BFirst+Chapter%7D%0A%0A%5Csection%7BIntroduction%7D%0A%0AThis+is+the+first+section.%0A%0ALorem++ipsum++dolor++sit++amet%2C++consectetuer++adipiscing++%0Aelit.+Etiam++lobortisfacilisis+sem.++Nullam+nec+mi+et+%0Aneque+pharetra+sollicitudin.++Praesent+imperdietmi+nec+ante.+%0ADonec+ullamcorper%2C+felis+non+sodales...%0A%0A%5Csection%7BSecond+Section%7D%0A%0ALorem+ipsum+dolor+sit+amet%2C+consectetuer+adipiscing+elit.++%0AEtiam+lobortis+facilisissem.++Nullam+nec+mi+et+neque+pharetra+%0Asollicitudin.++Praesent+imperdiet+mi+necante...%0A%0A%5Csubsection%7BFirst+Subsection%7D%0APraesent+imperdietmi+nec+ante.+Donec+ullamcorper%2C+felis+non+sodales...%0A%0A%5Csection%2A%7BUnnumbered+Section%7D%0ALorem+ipsum+dolor+sit+amet%2C+consectetuer+adipiscing+elit.++%0AEtiam+lobortis+facilisissem...%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/1A1T7YsurQdM058OwmLqd8/7f6e962c31356bafa702bab9062f6061/LL30Fig16-plain.svg`,alt:`Hình ảnh các mục trong tài liệu book của LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Tên của các lệnh phân mục phần lớn đã tự giải thích được ý nghĩa; ví dụ, `,_jsx(_components.code,{children:`\\\\chapter{First Chapter}`}),` tạo một chương mới có tiêu đề `,_jsx(_components.code,{children:`First Chapter`}),`, `,_jsx(_components.code,{children:`\\\\section{Introduction}`}),` tạo một mục có tiêu đề `,_jsx(_components.code,{children:`Introduction`}),`, v.v. Các mục có thể được chia nhỏ hơn thành `,_jsx(_components.code,{children:`\\\\subsection{...}`}),` và thậm chí `,_jsx(_components.code,{children:`\\\\subsubsection{...}`}),`. Việc đánh số các mục, tiểu mục, v.v. là tự động, nhưng có thể tắt bằng cách dùng cái gọi là `,_jsx(_components.em,{children:`phiên bản có dấu sao`}),` của lệnh tương ứng, tức là có dấu hoa thị (*) ở cuối, chẳng hạn `,_jsx(_components.code,{children:`\\\\section*{...}`}),` và `,_jsx(_components.code,{children:`\\\\subsection*{...}`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.em,{children:`Nhìn chung`}),`, các lớp tài liệu LaTeX cung cấp các lệnh phân mục sau, với mỗi lớp cụ thể hỗ trợ một tập con phù hợp:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\\\\part{part}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\\\\chapter{chapter}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\\\\section{section}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\\\\subsection{subsection}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\\\\subsubsection{subsubsection}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\\\\paragraph{paragraph}`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`\\\\subparagraph{subparagraph}`})}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Đặc biệt, các lệnh `,_jsx(_components.code,{children:`\\\\part`}),` và `,_jsx(_components.code,{children:`\\\\chapter`}),` chỉ có trong các lớp tài liệu `,_jsx(_components.code,{children:`report`}),` và `,_jsx(_components.code,{children:`book`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Hãy xem `,_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Sections_and_chapters`,children:`bài viết của Overleaf về mục và chương`}),` để biết thêm thông tin về các lệnh cấu trúc tài liệu.`]}),`\n`,_jsx(Heading,{level:`2`,id:`creating-tables`,children:`Tạo bảng`}),`\n`,_jsx(_components.p,{children:`Overleaf cung cấp ba cách để tạo bảng:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Dùng `,_jsxs(_components.a,{href:`https://docs.overleaf.com/writing-and-editing/generating-and-inserting-tables`,children:[`nút `,_jsx(_components.strong,{children:`Insert Table`})]}),` trên thanh công cụ của `,_jsx(_components.strong,{children:`Visual Editor`}),` (hoặc `,_jsx(_components.strong,{children:`Code Editor`}),`).`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://docs.overleaf.com/writing-and-editing/generating-and-inserting-tables/pasting-tables-into-your-project`,children:`Sao chép và dán một bảng`}),` từ tài liệu khác khi đang dùng `,_jsx(_components.strong,{children:`Visual Editor`}),`.`]}),`\n`,_jsx(_components.li,{children:`Viết mã LaTeX cho bảng trong Code Editor.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Nếu bạn mới làm quen với LaTeX, dùng thanh công cụ trong `,_jsx(_components.strong,{children:`Visual Editor`}),` (cách 1) là một cách tuyệt vời để bắt đầu — bạn có thể chuyển đổi giữa `,_jsx(_components.strong,{children:`Visual Editor`}),` và `,_jsx(_components.strong,{children:`Code Editor`}),` để xem mã đằng sau bảng.`]}),`\n`,_jsxs(_components.p,{children:[`Ở đây, chúng ta tập trung vào cách 3 — phương pháp linh hoạt nhất để tạo bảng — và đưa ra các ví dụ minh họa cách tạo bảng trong LaTeX, bao gồm việc thêm đường kẻ (rule) và chú thích. Khi đã có thêm kinh nghiệm, hãy xem hướng dẫn chi tiết của chúng tôi về `,_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Tables`,children:`cách tạo bảng bằng LaTeX`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`creating-a-basic-table-in-latex`,children:`Tạo một bảng cơ bản trong LaTeX`}),`\n`,_jsx(_components.p,{children:`Chúng ta bắt đầu với một ví dụ cho thấy cách sắp chữ một bảng cơ bản:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}{c c c}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell3 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell4 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell5 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell6 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell7 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell8 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell9 `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=An+example+of+a+basic+table\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bcenter%7D%0A%5Cbegin%7Btabular%7D%7Bc+c+c%7D%0A+cell1+%26+cell2+%26+cell3+%5C%5C+%0A+cell4+%26+cell5+%26+cell6+%5C%5C++%0A+cell7+%26+cell8+%26+cell9++++%0A%5Cend%7Btabular%7D%0A%5Cend%7Bcenter%7D%0A%5Cend%7Bdocument%7D%0A%3C%2Fsource%3E`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/5K46QavbKv9vF4RI1GbUf2/f22d4f8a06d00251166f86d2c891321e/LL30Fig17-plain.svg`,alt:`Hình minh họa một bảng được sắp chữ trong LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Môi trường `,_jsx(_components.code,{children:`tabular`}),` là phương pháp mặc định của LaTeX để tạo bảng. Bạn phải chỉ định một tham số cho môi trường này, trong trường hợp này là `,_jsx(_components.code,{children:`{c c c}`}),`, cho LaTeX biết rằng sẽ có ba cột và văn bản trong mỗi cột phải được căn giữa. Bạn cũng có thể dùng `,_jsx(_components.code,{children:`r`}),` để căn phải văn bản và `,_jsx(_components.code,{children:`l`}),` để căn trái. Ký hiệu căn chỉnh `,_jsx(_components.code,{children:`\u0026`}),` được dùng để phân tách các ô trong một hàng của bảng. Để kết thúc một hàng, hãy dùng lệnh `,_jsx(_components.em,{children:`xuống dòng`}),` `,_jsx(_components.code,{children:`\\\\\\\\`}),`. Bảng của chúng ta được đặt trong môi trường `,_jsx(_components.code,{children:`center`}),` để căn giữa trong phạm vi chiều rộng văn bản của trang.`]}),`\n`,_jsx(Heading,{level:`3`,id:`adding-borders`,children:`Thêm đường viền`}),`\n`,_jsxs(_components.p,{children:[`Môi trường `,_jsx(_components.code,{children:`tabular`}),` hỗ trợ các đường kẻ (rule) ngang và dọc như một phần của bảng:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`để thêm đường kẻ ngang ở trên và dưới các hàng, hãy dùng lệnh `,_jsx(_components.code,{children:`\\\\hline`})]}),`\n`,_jsxs(_components.li,{children:[`để thêm đường kẻ dọc giữa các cột, hãy dùng tham số đường thẳng đứng `,_jsx(_components.code,{children:`|`})]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Trong ví dụ này, đối số là `,_jsx(_components.code,{children:`{|c|c|c|}`}),`, khai báo ba cột (căn giữa), mỗi cột được phân tách bằng một đường kẻ dọc; ngoài ra, chúng ta dùng `,_jsx(_components.code,{children:`\\\\hline`}),` để đặt một đường kẻ ngang phía trên hàng đầu tiên và phía dưới hàng cuối cùng:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}{|c|c|c|} `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell3 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell4 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell5 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell6 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell7 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell8 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` cell9 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Table+example+with+rules\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bcenter%7D%0A%5Cbegin%7Btabular%7D%7B%7Cc%7Cc%7Cc%7C%7D+%0A+%5Chline%0A+cell1+%26+cell2+%26+cell3+%5C%5C+%0A+cell4+%26+cell5+%26+cell6+%5C%5C+%0A+cell7+%26+cell8+%26+cell9+%5C%5C+%0A+%5Chline%0A%5Cend%7Btabular%7D%0A%5Cend%7Bcenter%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/5uWYGUhK1XJJJaWz5R1EmX/3ee88bf6b2eaf8d0644b57fa8064800b/LL30Fig18-plain.svg`,alt:`Hình minh họa một bảng được sắp chữ trong LaTeX có các đường kẻ ngang và dọc`})}),`\n`,_jsx(_components.p,{children:`Đây là một ví dụ khác:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}{||c c c c||} `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col3 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [0.5ex] `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline\\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 6 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 87837 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 787 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 7 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 78 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 5415 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 3 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 545 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 778 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 7507 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 4 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 545 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 18744 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 7560 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 5 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 88 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 788 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 6344 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [1ex] `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`center`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Another+table+example+containing+rules\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bcenter%7D%0A+%5Cbegin%7Btabular%7D%7B%7C%7Cc+c+c+c%7C%7C%7D+%0A+%5Chline%0A+Col1+%26+Col2+%26+Col2+%26+Col3+%5C%5C+%5B0.5ex%5D+%0A+%5Chline%5Chline%0A+1+%26+6+%26+87837+%26+787+%5C%5C+%0A+%5Chline%0A+2+%26+7+%26+78+%26+5415+%5C%5C%0A+%5Chline%0A+3+%26+545+%26+778+%26+7507+%5C%5C%0A+%5Chline%0A+4+%26+545+%26+18744+%26+7560+%5C%5C%0A+%5Chline%0A+5+%26+88+%26+788+%26+6344+%5C%5C+%5B1ex%5D+%0A+%5Chline%0A%5Cend%7Btabular%7D%0A%5Cend%7Bcenter%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/1Cy9FcRnDVDRUPQdCgaKq6/c21e5f7d9a53514756c6e1f2996e51e0/LL30Fig19-plain.svg`,alt:`Hình minh họa một bảng được sắp chữ trong LaTeX có các đường kẻ ngang và dọc`})}),`\n`,_jsx(Heading,{level:`3`,id:`captions-labels-and-references-2`,children:`Chú thích, nhãn và tham chiếu`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể thêm chú thích và tham chiếu cho bảng theo cách tương tự như với hình ảnh. Điểm khác biệt duy nhất là thay vì môi trường `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`figure`})}),`, bạn dùng môi trường `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`table`})}),`.`]}),`\n`,_jsx(_components.p,{children:`Bảng \\\\ref{table:data} cho thấy cách thêm chú thích cho bảng và tham chiếu đến một bảng.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`table`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}[h!]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\centering`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}{||c c c c||} `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Col3 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [0.5ex] `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline\\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 1 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 6 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 87837 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 787 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 2 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 7 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 78 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 5415 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 3 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 545 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 778 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 7507 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 4 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 545 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 18744 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 7560 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 5 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 88 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 788 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` 6344 `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\\\\\`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [1ex] `})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` \\\\hline`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`tabular`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\caption`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Table to test captions and labels.}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\label`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`table:data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`table`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Table+captions+and+references\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Cbegin%7Bdocument%7D%0ATable+%5Cref%7Btable%3Adata%7D+shows+how+to+add+a+table+caption+and+reference+a+table.%0A%5Cbegin%7Btable%7D%5Bh%21%5D%0A%5Ccentering%0A%5Cbegin%7Btabular%7D%7B%7C%7Cc+c+c+c%7C%7C%7D+%0A+%5Chline%0A+Col1+%26+Col2+%26+Col2+%26+Col3+%5C%5C+%5B0.5ex%5D+%0A+%5Chline%5Chline%0A+1+%26+6+%26+87837+%26+787+%5C%5C+%0A+2+%26+7+%26+78+%26+5415+%5C%5C%0A+3+%26+545+%26+778+%26+7507+%5C%5C%0A+4+%26+545+%26+18744+%26+7560+%5C%5C%0A+5+%26+88+%26+788+%26+6344+%5C%5C+%5B1ex%5D+%0A+%5Chline%0A%5Cend%7Btabular%7D%0A%5Ccaption%7BTable+to+test+captions+and+labels.%7D%0A%5Clabel%7Btable%3Adata%7D%0A%5Cend%7Btable%7D%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/1f5w74UIaTCkpApaPdVeWf/580a87c2413ddc9d6bdef3bf462689fc/LL30Fig20-plain.svg`,alt:`Một bảng LaTeX có chú thích`})}),`\n`,_jsx(Heading,{level:`2`,id:`adding-a-table-of-contents`,children:`Thêm mục lục`}),`\n`,_jsxs(_components.p,{children:[`Việc tạo mục lục rất đơn giản vì lệnh `,_jsx(_components.code,{children:`\\\\tableofcontents`}),` làm gần như toàn bộ công việc cho bạn:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`32`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Sections and Chapters}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\author`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{Gubert Farnsworth}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\date`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{August 2022}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\maketitle`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\tableofcontents`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`Introduction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This is the first section.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Lorem ipsum dolor sit amet, consectetuer adipiscing `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`elit. Etiam lobortisfacilisis sem. Nullam nec mi et `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`neque pharetra sollicitudin. Praesent imperdietmi nec ante. `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Donec ullamcorper, felis non sodales...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`Unnumbered Section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\addcontentsline`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{toc}{section}{Unnumbered Section}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Lorem ipsum dolor sit amet, consectetuer adipiscing elit. `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Etiam lobortis facilisissem. Nullam nec mi et neque pharetra `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sollicitudin. Praesent imperdiet mi necante...`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#D4D4D4`},children:`Second Section`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Lorem ipsum dolor sit amet, consectetuer adipiscing elit. `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Etiam lobortis facilisissem. Nullam nec mi et neque pharetra `})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`sollicitudin. Praesent imperdiet mi necante...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Generating+a+table+of+contents\u0026snip=%5Cdocumentclass%7Barticle%7D%0A%5Ctitle%7BSections+and+Chapters%7D%0A%5Cauthor%7BGubert+Farnsworth%7D%0A%5Cdate%7BAugust+2022%7D%0A%5Cbegin%7Bdocument%7D%0A++%0A%5Cmaketitle%0A++%0A%5Ctableofcontents%0A%0A%5Csection%7BIntroduction%7D%0A+++%0AThis+is+the+first+section.%0A++++++%0ALorem++ipsum++dolor++sit++amet%2C++consectetuer++adipiscing++%0Aelit.+++Etiam++lobortisfacilisis+sem.++Nullam+nec+mi+et+%0Aneque+pharetra+sollicitudin.++Praesent+imperdietmi+nec+ante.+%0ADonec+ullamcorper%2C+felis+non+sodales...%0A+++++++%0A%5Csection%2A%7BUnnumbered+Section%7D%0A%5Caddcontentsline%7Btoc%7D%7Bsection%7D%7BUnnumbered+Section%7D%0A%0ALorem+ipsum+dolor+sit+amet%2C+consectetuer+adipiscing+elit.++%0AEtiam+lobortis+facilisissem.++Nullam+nec+mi+et+neque+pharetra+%0Asollicitudin.++Praesent+imperdiet+mi+necante...%0A%0A%5Csection%7BSecond+Section%7D%0A+++++++%0ALorem+ipsum+dolor+sit+amet%2C+consectetuer+adipiscing+elit.++%0AEtiam+lobortis+facilisissem.++Nullam+nec+mi+et+neque+pharetra+%0Asollicitudin.++Praesent+imperdiet+mi+necante...%0A%5Cend%7Bdocument%7D`,children:`Mở ví dụ này trong Overleaf.`})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://images.ctfassets.net/nrgyaltdicpt/MxY592Q6EGsDKMA2mZw0t/fffa41a0a0d30770526f73aff72a7be1/LL30Fig21r-plain.svg`,alt:`Hình minh họa mục lục được tạo bởi LaTeX`})}),`\n`,_jsxs(_components.p,{children:[`Các mục, tiểu mục và chương được tự động đưa vào mục lục. Để thêm mục thủ công, chẳng hạn một mục không đánh số, hãy dùng lệnh `,_jsx(_components.code,{children:`\\\\addcontentsline`}),` như trong ví dụ.`]}),`\n`,_jsx(Heading,{level:`2`,id:`downloading-your-finished-document`,children:`Tải xuống tài liệu đã hoàn thành`}),`\n`,_jsx(_components.p,{children:`Đoạn video ngắn sau đây cho thấy cách tải xuống mã nguồn của dự án hoặc tệp PDF đã được sắp chữ:`}),`\n`,_jsxs(_components.p,{children:[`Bạn có thể tìm thêm thông tin trong bài viết trợ giúp của Overleaf `,_jsx(_components.a,{href:`https://docs.overleaf.com/managing-projects-and-files/downloading-a-project`,children:`Xuất tác phẩm của bạn từ Overleaf`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`finding-and-using-latex-packages`,children:`Tìm kiếm và sử dụng các gói LaTeX`}),`\n`,_jsxs(_components.p,{children:[`LaTeX không chỉ mang lại khả năng sắp chữ mạnh mẽ mà còn cung cấp một `,_jsx(_components.em,{children:`khung mở rộng`}),` thông qua việc sử dụng các `,_jsx(_components.em,{children:`gói`}),` (package) bổ sung. Thay vì cố gắng cung cấp các lệnh và tính năng “làm được mọi thứ”, LaTeX được thiết kế để có thể `,_jsx(_components.em,{children:`mở rộng`}),`, cho phép người dùng nạp các khối mã bên ngoài (gói) cung cấp những khả năng sắp chữ chuyên biệt hơn hoặc mở rộng các tính năng tích hợp sẵn của LaTeX — chẳng hạn như sắp chữ bảng. Như đã thấy trong phần `,_jsx(_components.a,{href:`#adding-images`,children:`Thêm hình ảnh`}),`, gói `,_jsx(_components.code,{children:`graphicx`}),` mở rộng LaTeX bằng cách cung cấp các lệnh để nhập tệp đồ họa và được nạp (trong preamble) bằng cách viết`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`graphicx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`loading-packages`,children:`Nạp gói`}),`\n`,_jsxs(_components.p,{children:[`Như đã nói ở trên, các gói được nạp trong preamble của tài liệu thông qua lệnh `,_jsx(_components.code,{children:`\\\\usepackage`}),`, nhưng vì (nhiều) gói LaTeX cung cấp một tập `,_jsx(_components.em,{children:`tùy chọn`}),` có thể dùng để cấu hình hành vi của chúng, nên lệnh `,_jsx(_components.code,{children:`\\\\usepackage`}),` thường trông như sau:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`options`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`somepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Cặp ngoặc vuông “`,_jsx(_components.code,{children:`[...]`}),`” cho LaTeX biết tập tùy chọn nào cần được áp dụng khi nạp `,_jsx(_components.code,{children:`somepackage`}),`. Trong tập tùy chọn mà người dùng yêu cầu, các tùy chọn hoặc thiết lập riêng lẻ thường được phân tách bằng dấu phẩy; ví dụ, `,_jsx(_components.a,{href:`https://ctan.org/pkg/geometry`,children:`gói geometry`}),` cung cấp nhiều tùy chọn để cấu hình bố cục trang trong LaTeX, vì vậy một cách dùng `,_jsx(_components.code,{children:`geometry`}),` điển hình có thể trông như sau:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`total={6.5in,8.75in},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`top=1.2in, left=0.9in, includefoot`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`geometry`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Gói `,_jsx(_components.code,{children:`geometry`}),` là một ví dụ về gói được viết và đóng góp bởi các thành viên của cộng đồng LaTeX toàn cầu, và được cung cấp miễn phí cho bất kỳ ai muốn sử dụng.`]}),`\n`,_jsx(_components.p,{children:`Nếu một gói LaTeX không cung cấp tùy chọn nào, hoặc người dùng muốn dùng các giá trị mặc định của tùy chọn, gói đó sẽ được nạp như sau:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`somepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Khi bạn viết `,_jsx(_components.code,{children:`\\\\usepackage[...]{somepackage}`}),`, LaTeX sẽ tìm một tệp tương ứng có tên `,_jsx(_components.code,{children:`_somepackage_.sty`}),` mà nó cần nạp và xử lý — để các lệnh của gói sẵn sàng sử dụng và thực thi bất kỳ mã nào khác do gói đó cung cấp. Nếu LaTeX không tìm thấy `,_jsx(_components.code,{children:`_somepackage_.sty`}),`, nó sẽ dừng lại với một lỗi, như minh họa trong ví dụ Overleaf sau:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`latex`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`latex`,children:_jsxs(_components.code,{language:`latex`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\documentclass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`12pt, letterpaper`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`article`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`\\\\usepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`somepackage`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`% a NON-EXISTENT package`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\begin`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`This will fail!`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`\\\\end`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:_jsxs(_components.a,{href:`https://www.overleaf.com/docs?engine=pdflatex\u0026snip%5Fname=Error+due+to+missing+package\u0026snip=%5Cdocumentclass%5B12pt%2C+letterpaper%5D%7Barticle%7D%0A%5Cusepackage%7Bsomepackage%7D%25+a+NON-EXISTENT+package%0A%5Cbegin%7Bdocument%7D%0AThis+will+fail%21%0A%5Cend%7Bdocument%7D`,children:[`Mở `,_jsx(_components.em,{children:_jsx(_components.strong,{children:`ví dụ gây lỗi`})}),` này trên Overleaf`]})}),`\n`,_jsx(_components.p,{children:`Ví dụ này tạo ra kết quả sau:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.img,{src:`https://sharelatex-wiki-cdn-671420.cdn77.org/learn-scripts/images/6/60/LL30packagefail.png`,alt:`Hình ảnh lỗi do thiếu gói`})}),`\n`,_jsx(Heading,{level:`3`,id:`finding-information-about-packages-ctan`,children:`Tìm thông tin về các gói: CTAN`}),`\n`,_jsxs(_components.p,{children:[`Các gói được phân phối thông qua `,_jsx(_components.a,{href:`https://www.ctan.org/`,children:`Comprehensive TeX Archive Network`}),`, thường được gọi là CTAN; tại thời điểm viết bài, mạng này lưu trữ 6287 gói từ 2881 người đóng góp. CTAN `,_jsx(_components.a,{href:`https://www.ctan.org/ctan`,children:`tự mô tả mình`}),` là`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsx(_components.p,{children:`… một tập hợp các trang Internet trên khắp thế giới cung cấp tài liệu liên quan đến TEX để tải xuống.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Bạn có thể duyệt CTAN để tìm các gói hữu ích; ví dụ:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://www.ctan.org/topics/cloud`,children:`theo chủ đề`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://www.ctan.org/pkg`,children:`theo thứ tự bảng chữ cái`}),` (hữu ích nếu bạn biết tên gói)`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Bạn cũng có thể dùng `,_jsx(_components.a,{href:`https://www.ctan.org/pkg`,children:`chức năng tìm kiếm`}),` (ở đầu trang).`]}),`\n`,_jsx(Heading,{level:`3`,id:`packages-available-on-overleaf-introducing-tex-live`,children:`Các gói có sẵn trên Overleaf: Giới thiệu TeX Live`}),`\n`,_jsxs(_components.p,{children:[`Mỗi năm một lần, một `,_jsx(_components.em,{children:`tập con`}),` (lớn) các gói được lưu trữ trên CTAN, cùng với các phông chữ liên quan đến LaTeX và phần mềm khác, được tập hợp và phân phối dưới dạng một hệ thống gọi là `,_jsx(_components.a,{href:`https://tug.org/texlive/`,children:`TeX Live`}),`, có thể được dùng để cài đặt môi trường LaTeX (cục bộ) của riêng bạn. Trên thực tế, `,_jsx(_components.a,{href:`https://www.overleaf.com/learn/latex/Overleaf_and_TeX_Live`,children:`máy chủ của Overleaf cũng sử dụng TeX Live`}),` và được cập nhật khi có phiên bản TeX Live mới. Các bản cập nhật TeX Live của Overleaf không diễn ra ngay lập tức mà vài tháng sau khi phát hành, giúp chúng tôi có thời gian kiểm tra khả năng tương thích của phiên bản TeX Live mới với `,_jsx(_components.a,{href:`https://www.overleaf.com/gallery`,children:`hàng nghìn mẫu trong thư viện của chúng tôi`}),`. Ví dụ, đây là `,_jsx(_components.a,{href:`https://www.overleaf.com/blog/tex-live-2025-is-now-available`,children:`thông báo nâng cấp TeX Live 2025`}),` của chúng tôi.`]}),`\n`,_jsxs(_components.p,{children:[`Mặc dù TeX Live chứa một `,_jsx(_components.em,{children:`tập con`}),` (lớn) các gói của CTAN, bạn vẫn có thể gặp một gói thú vị, chẳng hạn như `,_jsx(_components.a,{href:`https://ctan.org/pkg/igo?lang=en`,children:`igo để sắp chữ sơ đồ cờ vây`}),`, được lưu trữ trên CTAN nhưng không có trong (không được phân phối bởi) TeX Live và do đó không khả dụng trên Overleaf. Một số gói trên CTAN không thuộc TeX Live vì nhiều lý do khác nhau: có thể gói đó đã lỗi thời, có vấn đề về giấy phép, còn quá mới (vừa được tải lên) hoặc phụ thuộc vào nền tảng, chẳng hạn hoạt động trên Windows nhưng không hoạt động trên Linux.`]}),`\n`,_jsx(_components.p,{children:`Các gói mới và bản cập nhật cho các gói hiện có được tải lên CTAN quanh năm, nhưng các bản cập nhật TeX Live được phân phối hằng năm; do đó, các gói có trong phiên bản TeX Live hiện tại sẽ không cập nhật bằng các gói trên CTAN. Vì máy chủ của Overleaf sử dụng TeX Live, có thể các gói được cài đặt trên máy chủ của chúng tôi — tức là các gói mà người dùng có thể sử dụng — không phải là phiên bản mới nhất có trên CTAN, nhưng nhìn chung điều này hiếm khi gây ra vấn đề.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Học LaTeX trong 30 phút","description":null,"href":"/vi/texlive/latex-basics/learn-latex-in-30-minutes"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"LaTeX là gì?","slug":"what-is-latex","depth":2,"children":[]},{"title":"Tại sao nên học LaTeX?","slug":"why-learn-latex","depth":2,"children":[]},{"title":"Viết đoạn LaTeX đầu tiên","slug":"writing-your-first-piece-of-latex","depth":2,"children":[]},{"title":"Phần preamble của tài liệu","slug":"the-preamble-of-a-document","depth":2,"children":[]},{"title":"Thêm thông tin tiêu đề, tác giả và ngày tháng","slug":"including-title-author-and-date-information","depth":2,"children":[]},{"title":"Thêm chú thích","slug":"adding-comments","depth":2,"children":[]},{"title":"In đậm, in nghiêng và gạch chân","slug":"bold-italics-and-underlining","depth":2,"children":[]},{"title":"Thêm hình ảnh","slug":"adding-images","depth":2,"children":[]},{"title":"Chú thích hình, nhãn và tham chiếu","slug":"captions-labels-and-references","depth":2,"children":[]},{"title":"Tạo danh sách trong LaTeX","slug":"creating-lists-in-latex","depth":2,"children":[{"title":"Danh sách không có thứ tự","slug":"unordered-lists","depth":3,"children":[]},{"title":"Danh sách có thứ tự","slug":"ordered-lists","depth":3,"children":[]}]},{"title":"Thêm công thức toán vào LaTeX","slug":"adding-math-to-latex","depth":2,"children":[{"title":"Chế độ toán inline","slug":"inline-math-mode","depth":3,"children":[]},{"title":"Chế độ toán display","slug":"display-math-mode","depth":3,"children":[]},{"title":"Các ví dụ đầy đủ hơn","slug":"more-complete-examples","depth":3,"children":[]}]},{"title":"Cấu trúc tài liệu cơ bản","slug":"basic-document-structure","depth":2,"children":[{"title":"Tóm tắt","slug":"abstracts","depth":3,"children":[]},{"title":"Đoạn văn và xuống dòng","slug":"paragraphs-and-new-lines","depth":3,"children":[]},{"title":"Chương và mục","slug":"chapters-and-sections","depth":3,"children":[]}]},{"title":"Tạo bảng","slug":"creating-tables","depth":2,"children":[{"title":"Tạo một bảng cơ bản trong LaTeX","slug":"creating-a-basic-table-in-latex","depth":3,"children":[]},{"title":"Thêm đường viền","slug":"adding-borders","depth":3,"children":[]},{"title":"Chú thích, nhãn và tham chiếu","slug":"captions-labels-and-references-2","depth":3,"children":[]}]},{"title":"Thêm mục lục","slug":"adding-a-table-of-contents","depth":2,"children":[]},{"title":"Tải xuống tài liệu đã hoàn thành","slug":"downloading-your-finished-document","depth":2,"children":[]},{"title":"Tìm kiếm và sử dụng các gói LaTeX","slug":"finding-and-using-latex-packages","depth":2,"children":[{"title":"Nạp gói","slug":"loading-packages","depth":3,"children":[]},{"title":"Tìm thông tin về các gói: CTAN","slug":"finding-information-about-packages-ctan","depth":3,"children":[]},{"title":"Các gói có sẵn trên Overleaf: Giới thiệu TeX Live","slug":"packages-available-on-overleaf-introducing-tex-live","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"ayakaleaf-pro","siteName":"Ayakaleaf Pro","title":"Học LaTeX trong 30 phút - Ayakaleaf Pro","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"zh-CN":{"href":"/zh-CN/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"zh-TW":{"href":"/zh-TW/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"ja":{"href":"/ja/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"de":{"href":"/de/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"fr":{"href":"/fr/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"es":{"href":"/es/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"it":{"href":"/it/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"ko":{"href":"/ko/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"ru":{"href":"/ru/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"nl":{"href":"/nl/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"pt":{"href":"/pt/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"tr":{"href":"/tr/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"uk":{"href":"/uk/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"pl":{"href":"/pl/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"cs":{"href":"/cs/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"sv":{"href":"/sv/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"fi":{"href":"/fi/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"ar":{"href":"/ar/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"vi":{"href":"/vi/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":0},"no":{"href":"/no/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"da":{"href":"/da/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"id":{"href":"/id/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"zh-Hans":{"href":"/zh-Hans/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1},"zh-Hant":{"href":"/zh-Hant/texlive/latex-basics/learn-latex-in-30-minutes","matchLevel":1}}},"lastModified":"2026-11-08T04:24:13.006Z","gitLastModified":"2026-11-08T04:23:51.000Z","originalFileLocation":"vi/texlive/latex-basics/learn-latex-in-30-minutes.mdx","locale":"vi"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Ayakaleaf Pro\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Học LaTeX trong 30 phút - Ayakaleaf Pro\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ayakaleaf Pro\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ayakaleaf-pro.mintlify.site/_mintlify/api/og/v2?division=Ki%E1%BA%BFn+th%E1%BB%A9c+c%C6%A1+b%E1%BA%A3n+v%E1%BB%81+LaTeX\u0026amp;title=H%E1%BB%8Dc+LaTeX+trong+30+ph%C3%BAt\u0026amp;theme=a85f2ba202ff92d99974cf6c\u0026amp;signature=a4186237ebe3b9f94748828901ef7747fc52c1cf7d3dad82592fe85a5b2da6b6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Học LaTeX trong 30 phút - Ayakaleaf Pro\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ayakaleaf-pro.mintlify.site/_mintlify/api/og/v2?division=Ki%E1%BA%BFn+th%E1%BB%A9c+c%C6%A1+b%E1%BA%A3n+v%E1%BB%81+LaTeX\u0026amp;title=H%E1%BB%8Dc+LaTeX+trong+30+ph%C3%BAt\u0026amp;theme=a85f2ba202ff92d99974cf6c\u0026amp;signature=a4186237ebe3b9f94748828901ef7747fc52c1cf7d3dad82592fe85a5b2da6b6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/ayakaleaf-pro/o_LAbiVNKQm96Y75/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ayakaleaf Pro\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0E0E0E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/vi/texlive/latex-basics/learn-latex-in-30-minutes.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"vi\" href=\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://ayakaleaf-pro.mintlify.app/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-CN\" href=\"https://ayakaleaf-pro.mintlify.app/zh-CN/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-TW\" href=\"https://ayakaleaf-pro.mintlify.app/zh-TW/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://ayakaleaf-pro.mintlify.app/ja/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"de\" href=\"https://ayakaleaf-pro.mintlify.app/de/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://ayakaleaf-pro.mintlify.app/fr/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://ayakaleaf-pro.mintlify.app/es/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"it\" href=\"https://ayakaleaf-pro.mintlify.app/it/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ko\" href=\"https://ayakaleaf-pro.mintlify.app/ko/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://ayakaleaf-pro.mintlify.app/ru/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"nl\" href=\"https://ayakaleaf-pro.mintlify.app/nl/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://ayakaleaf-pro.mintlify.app/pt/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"tr\" href=\"https://ayakaleaf-pro.mintlify.app/tr/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"uk\" href=\"https://ayakaleaf-pro.mintlify.app/uk/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pl\" href=\"https://ayakaleaf-pro.mintlify.app/pl/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"cs\" href=\"https://ayakaleaf-pro.mintlify.app/cs/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"sv\" href=\"https://ayakaleaf-pro.mintlify.app/sv/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fi\" href=\"https://ayakaleaf-pro.mintlify.app/fi/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://ayakaleaf-pro.mintlify.app/ar/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"no\" href=\"https://ayakaleaf-pro.mintlify.app/no/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"da\" href=\"https://ayakaleaf-pro.mintlify.app/da/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://ayakaleaf-pro.mintlify.app/id/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hans\" href=\"https://ayakaleaf-pro.mintlify.app/zh-Hans/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh-Hant\" href=\"https://ayakaleaf-pro.mintlify.app/zh-Hant/texlive/latex-basics/learn-latex-in-30-minutes\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://ayakaleaf-pro.mintlify.app/texlive/latex-basics/learn-latex-in-30-minutes\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://ayakaleaf-pro.mintlify.app/#organization\",\"name\":\"Ayakaleaf Pro\",\"url\":\"https://ayakaleaf-pro.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/ayakaleaf-pro/JetHeEeglWIIXNds/logo/light.png?fit=max\u0026auto=format\u0026n=JetHeEeglWIIXNds\u0026q=85\u0026s=7f1abd8dcc74dd3b7cdafac9e6e82092\"}},{\"@type\":\"WebSite\",\"@id\":\"https://ayakaleaf-pro.mintlify.app#website\",\"name\":\"Ayakaleaf Pro\",\"url\":\"https://ayakaleaf-pro.mintlify.app\",\"publisher\":{\"@id\":\"https://ayakaleaf-pro.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes#webpage\",\"url\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes\",\"name\":\"Học LaTeX trong 30 phút\",\"dateModified\":\"2026-11-08T04:23:51.000Z\",\"isPartOf\":{\"@id\":\"https://ayakaleaf-pro.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ayakaleaf Pro\",\"item\":\"https://ayakaleaf-pro.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Học LaTeX trong 30 phút\",\"item\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes#article\",\"headline\":\"Học LaTeX trong 30 phút\",\"name\":\"Học LaTeX trong 30 phút\",\"url\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes\",\"mainEntityOfPage\":{\"@id\":\"https://ayakaleaf-pro.mintlify.app/vi/texlive/latex-basics/learn-latex-in-30-minutes#webpage\"},\"dateModified\":\"2026-11-08T04:23:51.000Z\",\"publisher\":{\"@id\":\"https://ayakaleaf-pro.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://ayakaleaf-pro.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ayakaleaf Pro\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ayakaleaf Pro\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/vi/texlive/latex-basics/learn-latex-in-30-minutes.md","siteName":"Ayakaleaf Pro","nav":{"global":null,"languages":[{"language":"en","default":true,"pages":[{"title":"en","href":"/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"zh-CN","pages":[{"title":"zh-CN","href":"/zh-CN/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"zh-TW","pages":[{"title":"zh-TW","href":"/zh-TW/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"ja","pages":[{"title":"ja","href":"/ja/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"de","pages":[{"title":"de","href":"/de/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"es","pages":[{"title":"es","href":"/es/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"it","pages":[{"title":"it","href":"/it/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"ko","pages":[{"title":"ko","href":"/ko/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"ru","pages":[{"title":"ru","href":"/ru/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"nl","pages":[{"title":"nl","href":"/nl/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"tr","pages":[{"title":"tr","href":"/tr/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"uk","pages":[{"title":"uk","href":"/uk/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"pl","pages":[{"title":"pl","href":"/pl/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"cs","pages":[{"title":"cs","href":"/cs/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"sv","pages":[{"title":"sv","href":"/sv/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"fi","pages":[{"title":"fi","href":"/fi/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"ar","pages":[{"title":"ar","href":"/ar/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"vi","tabs":[{"tab":"Trang chủ","icon":"house-chimney","pages":[{"title":"Trang chủ","href":"/vi"}]},{"tab":"Tự triển khai (On-Premises)","icon":"server","pages":[{"title":"Tự triển khai (On-Premises)","href":"/vi/on-premises"}]},{"tab":"Blog","icon":"rss","pages":[{"title":"Blog","href":"/vi/blog"}]},{"tab":"TeXLive","icon":"compact-disc","groups":[{"group":"Tổng quan","pages":[{"title":"TeX Live","icon":"compact-disc","href":"/vi/texlive"},{"title":"TeX Live trong Docker","icon":"https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/brands/docker.svg","href":"/vi/texlive/texlive-in-docker"}]},{"group":"Phát hành","pages":[{"title":"TeX Live 2026 đã ra mắt","icon":"box-isometric","href":"/vi/texlive/release/tex-live-2026-is-now-available"}]},{"group":"Skills","pages":[{"title":"Thêm các phụ thuộc LaTeX","icon":"https://d3gk2c5xim1je2.cloudfront.net/fontawesome/v7.2.0/brands/codepen.svg","href":"/vi/texlive/skills/adding-latex-dependencies"},{"title":"Tạo PDF có khả năng tiếp cận","icon":"universal-access","href":"/vi/texlive/skills/creating-accessible-pdfs"},{"title":"Mã R (knitr)","icon":"binary","description":null,"href":"/vi/texlive/skills/r-code-knitr"}]},{"group":"Kiến thức cơ bản về LaTeX","pages":[{"title":"Học LaTeX trong 30 phút","href":"/vi/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"group":"Liên quan đến gói","pages":[{"title":"{Minted}","icon":"code","description":null,"href":"/vi/texlive/package-related/minted"}]}]},{"tab":"Nhà phát triển","icon":"rectangle-terminal","pages":[{"title":"Nhà phát triển","href":"/vi/dev"}]}]},{"language":"no","pages":[{"title":"no","href":"/no/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"da","pages":[{"title":"da","href":"/da/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"id","pages":[{"title":"id","href":"/id/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"zh-Hans","pages":[{"title":"zh-Hans","href":"/zh-Hans/texlive/latex-basics/learn-latex-in-30-minutes"}]},{"language":"zh-Hant","pages":[{"title":"zh-Hant","href":"/zh-Hant/texlive/latex-basics/learn-latex-in-30-minutes"}]}]},"basePath":"","title":"Học LaTeX trong 30 phút - Ayakaleaf Pro","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BQ4tbj_9.js","lightbox-handle-r17bVUz3.js"]}