Page LayoutHow can I keep less blank space on two sides?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
anis_huq
Posts: 5
Joined: Fri Mar 16, 2012 1:26 am

How can I keep less blank space on two sides?

Post by anis_huq »

Hi,
My Latex file looks like the following:

Code: Select all

\documentclass[11pt,a4paper,oneside]{report}

\usepackage{t1enc}
\usepackage{alltt}
\usepackage{epsfig}
\usepackage[english, finnish, swedish]{babel}
\usepackage{url}
\usepackage{multirow}
\usepackage{eurosym} % To get a euro sign: \euro{}
\usepackage{verbatim}
\usepackage{fancyvrb}
\usepackage{supertabular}
\usepackage{longtable}

\usepackage[breaklinks=true]{hyperref}
\hypersetup{pdfborder = {0 0 0},citecolor=black,filecolor=black,linkcolor=black,urlcolor=black}

\hypersetup{	%this creates pdf attributes
pdfauthor = {bla},
pdftitle = {bla.},
pdfsubject = {bla.},
pdfkeywords = {bla.}
}



\usepackage[hyphenbreaks]{breakurl} %for links in multiple lines
\usepackage{enumitem}%for numbered list
\usepackage[sort&compress]{natbib}%for sorting citation
\usepackage{fixltx2e}%super script and subscript
\usepackage{xcolor}%do
\def\SPSB#1#2{\rlap{\textsuperscript{{#1}}}\SB{#2}}%do
\def\SP#1{\textsuperscript{{#1}}}%do
\def\SB#1{\textsubscript{{#1}}}%do
\usepackage[bottom]{footmisc}%so that footnotes r always at the bottom of the page. 
\interfootnotelinepenalty=10000%so that footnotes don't move into the next page.
\raggedbottom%Do.
\usepackage{listings}
\lstset{language=C}
\setcounter{secnumdepth}{5}
%\setlength{\belowcaptionskip}{6pt}
\usepackage[belowskip=-15pt,aboveskip=0pt]{caption}
\setlength{\intextsep}{10pt plus 2pt minus 2pt}

\parskip 1ex
\parindent 0pt

%All the words with special hyphenation:
\hyphenation{di-gi-taa-li-sta yksi-suun-tai-sta}


\hyphenpenalty=5000
\tolerance=1000

% Command

\begin{document}
\evensidemargin 19mm
\oddsidemargin 19mm
\textwidth 155mm

%%%%%%%%%%     PREAMBLE + DOC SETTINGS ENDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% By default, only up to 3rd level headers are numbered (e.g. 1.2.2.)
\setcounter{secnumdepth}{4} % what headers are numbered
\setcounter{tocdepth}{4} %what headers are put in the TOC


% -------------- COVER PAGE --------------
\newcommand{\TITLE}{bla.}
\newcommand{\TITLELINEONE}{bla }
\newcommand{\TITLELINETWO}{bla}
\newcommand{\TITLELINETHREE}{bla.}

\newcommand{\LINEONE}{bla}
\newcommand{\LINETWO}{bla}

\newcommand{\SUBTITLE}{}%not used
\newcommand{\DATE}{April 2012}
\newcommand{\DATESWED}{April 2012}
% Update the number of predule pages (in this example 7 pages)
\newcommand{\PAGES}{7 $+$ \pageref{pages-text}}
\newcommand{\SUPERVISORHOME}{bla}
\newcommand{\SUPERVISORHOST}{}
\newcommand{\INSTRUCTOR}{bla Lic. (Tech.)}
\newcommand{\AUTHOR}{bla}

% Comment out this \DRAFT macro if this version no longer is one!
%\newcommand{\DRAFT}{\begin{center} {\it DRAFT! \hfill --- \hfill DRAFT!
%\hfill --- \hfill DRAFT! \hfill --- \hfill DRAFT!}\end{center}}

% You can use the \concept - command for your concepts, and
% define its layout here
%\newcommand{\concept}{\bf}

%  Use this \DRAFT macro in the final version - or comment out the 
%  draft-command
\newcommand{\mytilde}{\raise.17ex\hbox{$\scriptstyle\mathtt{\sim}$}}
\newcommand{\DRAFT}{~}
\thispagestyle{empty}
%\DRAFT


{\small
\includegraphics[scale=1.0]{logo-en.eps} \\
bla UNIVERSITY \\
School of Science and Technology \\
Faculty of Information and Natural Sciences \\
Department of Computer Science and Engineering \\
}

\vskip 10mm
{\small \AUTHOR}
\vskip 5mm
{\LARGE \textbf{\TITLELINEONE} \\
\textbf{\TITLELINETWO}\linebreak[4]
\textbf{\TITLELINETHREE}
\vskip 0.2mm
\large  \textbf{\SUBTITLE}}
\vskip 70mm
{\small 
Master's Thesis \\
Espoo, \DATE \\
}
\vfill
{\small
\makebox[155mm][l]{Supervisors: \SUPERVISORHOME, bla University, Finland} \\ 
\makebox[155mm][l]{Instructor: \hskip 2mm \INSTRUCTOR, bla, Finland}\\ }


\pagenumbering{roman}
\selectlanguage{english}
\strut

%% -------------- ABSTRACT --------------
\cleardoublepage
\phantomsection
\input{abstract_english}

%\cleardoublepage
%\phantomsection
%\input{abstract_swedish}

% Move the text somewhat more right on the page (I hope).
%\reversemarginpar
%\addtolength\oddsidemargin {35pt}

% -------------- ACKNOWLEDGEMENTS & TOC --------------

\input{acknowledgement}


%\clearpage

%\tableofcontents
%\listoftables
%\listoffigures
%\cleardoublepage
%\newpage
%{\fontfamily{phv}\selectfont \tableofcontents}
%\tableofcontents

\newpage
{\fontfamily{phv}\selectfont \tableofcontents}

\newpage
\phantomsection \label{listoftab}
\addcontentsline{toc}{chapter}{List of Tables}
\listoftables

\newpage
\phantomsection \label{listoffig}
\addcontentsline{toc}{chapter}{List of Figures}
\listoffigures
\cleardoublepage

\newpage
\phantomsection \label{listofacronyms}
\addcontentsline{toc}{chapter}{Abbreviations and Acronyms}
\input{acronyms}
\cleardoublepage

%%%%%%%%%%%%%% The main content starts here %%%%%%%%%%%%%%%%%

\parskip1ex
\parindent0mm

\pagenumbering{arabic}
\pagestyle{headings}

\input{chapter1}
\input{chapter2}
\input{chapter3}
\input{chapter4}
\input{chapter5}

\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
%% You can use several .bib files:
%% \bibliography{thesis_sources,ietf_sources}
\bibliography{mySources}

\appendix
%\input{Appendix_A}
%\input{Appendix_B}

% Following label is used for page count
\label{pages-text}
\end{document}
Please forgive me if it looks a little more complicated that it should. It looks like this because its a common template for Masters Thesis.

Now the output looks like:
text and margin
text and margin
page.png (135.13 KiB) Viewed 2346 times
Now u should see that, there are too much space on both sides of the text. How may I reduce it and make the text wider?

Bye.
Last edited by Stefan Kottwitz on Thu Apr 26, 2012 9:05 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How can I keep less blank space on two sides?

Post by localghost »

If you wan to reduce the page margins, take look at the geometry package and read its manual.

And please learn how to prepare a proper minimal example to know which code is necessary and which not. Furthermore you should abstain from posting the same question on different sites (see below). This is counterproductive.


Thorsten


P.S.:
Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to {TeX} SX.
Post Reply