Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

i am starting with latex and i have problems with the left margin of a book document. is there a way to reset the documents 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 latex:

\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? any ideas?

share|improve this question
1  
Welcome to TeX.sx! You are telling LaTeX that the margins are zero. Use left=2cm and your left margin will be two centimeters. –  egreg Mar 28 '13 at 21:25
    
i want them all to be zero. but the left margin is still about 3mm. –  user28122 Mar 28 '13 at 21:32
    
the preview document class will strip all margins. (Why would you want length 0 margins?) –  Sean Allred Mar 28 '13 at 21:39
    
Remove the layout package (and fullpage that doesn't do anything good in this context). –  egreg Mar 28 '13 at 21:48
    
You are mixing a class (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 with scrbook. It's probably easier to start from zero than from some more or less broken template you found somewhere else on the Web. –  Martin Schröder Mar 28 '13 at 21:49
add comment

1 Answer

Your text is flush left but you are seeing the paragraph indent and you only have two one line paragrphs so no text goes flush left.

add

fhaiushfaoishf

\noindent X\dotfill X

enter image description here

You could add

\setlength\parindent{0pt}
share|improve this answer
    
i didn't knew that there is an default indent. thanks a lot for that hint. that solves it! thanks! –  user28122 Mar 28 '13 at 22:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.