I am a novice in LaTeX and I have problems with the left margin of a book document. Is there a way to reset the document's margin? I always have a small margin on the left side which I only can reset by setting the hoffset
to a negative range. Here is my code:
\documentclass{scrbook}
\usepackage[utf8]{inputenc}
\usepackage{pdfpages}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{layout}
\usepackage[absolute,overlay]{textpos}
\usepackage{fullpage}% http://ctan.org/pkg/fullpage
\usepackage[top=0mm, bottom=0mm, left=0mm, right=0mm, paperwidth=20cm, paperheight=20cm]{geometry}
\title{bbbbbbbbbb}
\setlength{\hoffset}{0mm}
\setlength{\voffset}{0mm}
\author{blah}
\date{\today}
\begin{document}
\includegraphics{test.jpg}
\newpage
fhaiushfaoishf
\newpage
\layout
\end{document}
Is there a better way to reset the margin? Any ideas?
left=2cm
and your left margin will be two centimeters.preview
document class will strip all margins. (Why would you want length 0 margins?)layout
package (andfullpage
that doesn't do anything good in this context).scrbook
) and a number of packages (fullpage
,geometry
) that each offer ways to change the page layout. Stick to only one package. And try to get your result withscrbook
. It's probably easier to start from zero than from some more or less broken template you found somewhere else on the Web.