General ⇒ Borders of the document
-
- Posts: 9
- Joined: Thu May 15, 2008 2:02 pm
Borders of the document
But the migration from MS Word is not so easy for me.
Can you please explain me how can I set page setup (need to set borders (just like in word))
Need to set borders T*B*L = 20mm and R=10mm
How to do it.
Thanks in advance,
Oleg
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Borders of the document
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Borders of the document
you are not disturbing. This forum exists because users want to speak about LaTeX, to look for help or to give it.
For setting the page borders to a certain size you can use the geometry package. For example:
Code: Select all
\usepackage[a4paper,vmargin={20mm,20mm},hmargin={20mm,10mm}]{geometry}
Have a look at the geometry manual for further information.
Stefan
-
- Posts: 9
- Joined: Thu May 15, 2008 2:02 pm
Re: Borders of the document
-
- Posts: 9
- Joined: Thu May 15, 2008 2:02 pm
Borders of the document

Have problems with the package. I am just a beginner in latex, but it seems that packages eskdx and geometry are in conflict

The code
Code: Select all
\usepackage[numbertop,numberright]{eskdplain}
\usepackage{graphics}
\usepackage{listings}
\usepackage[a4paper,vmargin={20mm,20mm},hmargin={20mm,10mm}]{geometry}
\begin{document}
\maketitle
\tableofcontents
\include{Intro}
\include{Chap1}
\include{Chap2}
\include{Chap3}
\include{Chap4}
\include{Chap5}
\include{Chap6}
\end{document}
And the output is:
(/usr/local/texlive/2007/texmf-dist/tex/latex/listings/lstpatch.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/listings/lstmisc.sty)
(/usr/local/texlive/2007/texmf-dist/tex/latex/listings/listings.cfg))
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.9
? H
You're in trouble here. Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Please help if possible

Oleg
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Borders of the document
eskdx already loads geometry. eskdplain uses eskdstamp and this file requires geometry this way:
Code: Select all
\RequirePackage[\ESKD@paper paper,%
\ifESKD@landscape landscape\else portrait\fi,%
tmargin=\ESKD@margin@t+\ESKD@padding@v,%
bmargin=\ESKD@margin@b+\ESKD@padding@v,%
inner=\ESKD@margin@si+\ESKD@padding@h,%
outer=\ESKD@margin@so+\ESKD@padding@h,%
headheight=0mm,headsep=0mm,footskip=0mm]{geometry}
Stefan