I have this code and this result. But I need the "Введение" to be in the middle and the line "Каждый из нас" to have a similar indentation as the "Целью реферата". how can this be done?
\section*{Введение}\addcontentsline{toc}{section}{Введение}
Каждый из нас ежедневно решает задачи различной сложности: как быстрее добраться в школу или на работу в условиях нехватки времени; в каком порядке выполнить дела, намеченные на текущий день, и т.д. Некоторые задачи настолько сложны, что требуют длительных размышлений для нахождения решения, другие задачи мы решаем автоматически, так как выполняем их ежедневно на протяжении многих лет. Но в любом случае решение каждой задачи можно подразделить на простые этапы.
Целью реферата является раскрытие базовых знаний об элементах теории алгоритмов.
Для решения поставленной цели необходимо выполнить следующие задачи:
Ty for answer. I used this but I lost the numbering of the section and subsection. How do I get the numbering back?
\usepackage{titlesec}
\titleformat{\section}[block]{\Large\bfseries\filcenter}{}{1em}{}
\titleformat{\subsection}[hang]{\large\bfseries\filcenter}{}{1em}{}
guys please tell me how do I return the numbering of y section id subsection and that the list of references is displayed in the content


titlesecpackage as for example shown here: https://tex.stackexchange.com/a/8547/134144 Regarding the second half of the question: Using theindentfirstpackage might hep. For some more alternative approaches, see also: No indent in the first paragraph in a section? – leandriis Dec 18 '20 at 13:14\section{...}and\subsection{...}. In this case\addcontentsline{toc}{section}{Введение}is redudant. – Zarko Dec 19 '20 at 09:22\section{...}and\section*{}should be the same. SInce we don't know anything about your document preamble we can only guess. Please provide an example of small document which reproduce your problem. – Zarko Dec 19 '20 at 10:54