Answer the question
In order to leave comments, you need to log in
How to make page numbering centered, taking into account the margins?
In Word, the numbering looks a bit shifted to the right due to the margins
. And when layout through latex, the numbering is exactly in the center of the page
. How to make the same numbering, taking into account the margins in latex?
Answer the question
In order to leave comments, you need to log in
\documentclass{article}
\usepackage[
a4paper,
top=1cm,
bottom=1cm,
left=1cm,
right=1cm,
nohead,
nofoot,
showframe,
]{geometry}
\begin{document}
~
\end{document}
\documentclass{article}
\usepackage[
a4paper,
top=1cm,
bottom=1cm,
left=10cm,
right=1cm,
nohead,
nofoot,
showframe,
]{geometry}
\begin{document}
~
\end{document}
// Выбираем всё что в списке
preg_match('/<li>(.*?)<\/li>/ism', $str, $res);
// удаляем все теги
$clear = preg_replace('/<(.*?)>/ism', '', $res[1]);
// Заменяем исходную строку на очищенную от тегов
$str = str_replace($res[1], $clear, $str);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question