[Tex/LaTex] How to set page size with geometry

geometrypaper-size

I would like to set page sizes of my project but when I do it the result isn't correct. I read some articles on Google but I didn't understand anything.

This is a head of my project

\documentclass[slovak]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[a6paper,top=10mm,bottom=15mm,left=10mm,right=10mm]{geometry} %- my set

But when I compile my project pages are A6 but margins aren't correct. But why?

On the picture there is – on the left what I want – on the right what I get.

What I want and what I get.

It looks correctly but when I try to change margins it hasn't any effect. Margins are set but they haven't my setting. I need a small left margin. I want to use all area of a paper.

Best Answer

The answer is:

\documentclass[10pt,a6paper,slovak]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[cm]{fullpage}     
\usepackage[top=10mm, bottom=10mm, left=0mm, right=10mm, showframe,
            foot=5mm, marginparsep=0mm]{geometry}

\geometry{bindingoffset=1cm}
\usepackage{blindtext}
\usepackage{enumitem}
\usepackage{pdfpages}

\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight


\makeatletter
\newcommand\usemm[1]{%
\strip@pt\dimexpr0.3514598\dimexpr #1\relax\relax mm%
}
\newcommand\usein[1]{%
\strip@pt\dimexpr0.013837\dimexpr #1\relax\relax in%
}
\makeatother

\setlength{\parindent}{0ex}

\begin{document}

\the\paperheight \par
\the\paperwidth  \par
\the\hsize       \par % or \textwidth
\the\vsize       \par % or \textheight

\usemm{\the\paperheight} \par
\usemm{\the\paperwidth}  \par
\usemm{\the\hsize}       \par
\usemm{\the\vsize}       \par

\usein{\the\paperheight} \par
\usein{\the\paperwidth}  \par
\usein{\the\hsize}       \par
\usein{\the\vsize}       \par

\end{document}

Everything looks very good and it is correct.