> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/latex/uk/inshi-temi/09-commands-and-environments.md).

# Команди та середовища

## Команди

Поведінку документів LaTeX можна керувати, використовуючи певну команду. Типова структура команди така:

```
\commandname[необов’язковий аргумент]{основний аргумент}
```

Зауважте, що всі команди **необхідно** мають починатися зі знака зворотної скісної риски, а основний аргумент має бути включений у пару {..}.

Деякі команди мають більше ніж один аргумент, наприклад:

```
\multicolumn{кількість об’єднаних стовпців}{вирівнювання}{вміст}
```

Деякі команди не потребують пари {} для коректної роботи, наприклад:

```
\item Текст, що є вмістом елемента
```

Деякі команди мають необов’язкові аргументи, наприклад:

```
\item[--] Текст, що є вмістом елемента
\\[2ex]
```

## Середовища

Особливим типом команди є середовище. Типова структура середовища така:

```
\begin{назва_середовища}
 вміст
\end{назва_середовища}
```

Наприклад:

```latex
\begin{center}
Зразковий текст
\end{center}
```

або

```latex
\begin{enumerate}
\item Перший пункт
\item Другий пункт
\end{enumerate}
```

Зауважте, що всі середовища **необхідно** починаються з \begin{назва\_середовища} і закінчуються на \end{назва\_середовища}.

Деякі середовища приймають аргументи та необов’язкові аргументи, як і команди. Наприклад

```latex
\begin{tabular}[позиція таблиці]{специфікації стовпців}
 вміст таблиці
\end{tabular}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/latex/uk/inshi-temi/09-commands-and-environments.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
