S
S
Sergey Karbivnichy2020-04-17 20:59:58
Layout
Sergey Karbivnichy, 2020-04-17 20:59:58

How to center text in LaTeX?

5e99ee2f5c3df844903913.png
On one page the text is to the left, on the second to the right, and so on in a circle all the pages. How do I get the text to be equally centered?
The template used Book.

% !TeX spellcheck = ru_RU
\documentclass[10pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[english, russian]{babel} 
\usepackage{listings}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
StudMG, 2020-06-20
@StudMG

Try to define commands in the head template of the page where you include packages to align the content of the page with specific indents from the edges, you can probably fix the problem. For example:

/headheight=0.5cm % Место для контитула 
/headsep=0.5cm % Отступ для контитула
/usepackage [right=1cm, left=2.5cm, top=2cm, bottom=2cm]{geometry}

Perhaps it will work out, I took the sizes from the standards for writing theses, scientific articles, you can play with the parameters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question