Text FormattingProblems with margins

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
senseiandrea
Posts: 1
Joined: Wed Nov 21, 2018 4:14 pm

Problems with margins

Post by senseiandrea »

Hi all!
I'm facing a problem that i can't solve, i tried with suggestions find in the community but still.
This is my latex doc:

Code: Select all

\documentclass[a4paper, 12pt, oneside]{Thesis}  % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn

% Include any extra LaTeX packages required
\usepackage[square, numbers, comma, sort&compress]{natbib}  % Use the "Natbib" style for the references in the Bibliography
\usepackage[final]{pdfpages}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{float}
\usepackage[utf8]{inputenc}
\usepackage{verbatim}  % Needed for the "comment" environment to make LaTeX comments
\usepackage{listings} %Per inserire codice
\usepackage{multirow}
\usepackage{booktabs,siunitx}
\usepackage{array}
\usepackage{tabularx}
\usepackage{enumitem}
\usepackage{subfloat}
\usepackage{longtable}
\usepackage{hyperref}
\usepackage{changepage} 
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{fancyhdr}
\usepackage{amssymb}
\usepackage{fancyvrb}
\usepackage[textfont=it,labelfont=bf]{caption} %pacchetto per didascalie
%\usepackage[usenames]{color} % Per permettere la colorazione dei caratteri 
\PassOptionsToPackage{usenames,dvipsnames}{xcolor}
\hypersetup{urlcolor=black, colorlinks=false, allbordercolors=white}  % Colours hyperlinks in blue, but this can be distracting if there are many links.

%% ----------------------------------------------------------------
\begin{document}
\frontmatter      % Begin Roman style (i, ii, iii, iv...) page numbering


%% ----------------------------------------------------------------

\setstretch{1.3}  % It is better to have smaller font and larger line spacing than the other way round

% Define the page headers using the FancyHdr package and set up for one-sided printing
\fancyhead{}  % Clears all page headers and footers
\rhead{\thepage}  % Sets the right side header to show the page number
\lhead{}  % Clears the left side page header

\pagestyle{fancy}  % Finally, use the "fancy" page style to implement the FancyHdr headers


%% ----------------------------------------------------------------

\setlength{\voffset}{0cm}
\setlength{\hoffset}{0cm}

\includepdf[pages=-]{provabuona.pdf}

\setlength{\voffset}{-2.54cm}
\setlength{\hoffset}{-2.54cm}

% The "Funny Quote Page"
\pagestyle{empty}  % No headers or footers for the following pages

\null\vfill
% Now comes the "Funny Quote", written in italics
\textit{"Non sono le opere buone che fanno l'uomo buono \\ma è l'uomo buono che fa opere buone."}
%
\begin{flushright}
Martin Lutero
\end{flushright}

\vfill\vfill\vfill\vfill\vfill\vfill\null
\clearpage  % Funny Quote page ended, start a new page
%% ----------------------------------------------------------------
\newcommand{\facciatabianca}{\newpage\shipout\null}
%%\facciatabianca


% End of the pre-able, contents and lists of things
% Begin the Dedication page

\setstretch{1.5}  % Return the line spacing back to 1.3

\pagestyle{empty}  % Page style needs to be empty for this page
%\dedicatory{A chi ci ha creduto fino alla fine.}

\addtocontents{toc}{\vspace{2em}}  % Add a gap in the Contents, for aesthetics

%%\facciatabianca

\pagestyle{fancy}  %The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back


%% ----------------------------------------------------------------
\lhead{\emph{Contents}}  % Set the left side page header to "Contents"
\tableofcontents  % Write out the Table of Contents

%% ----------------------------------------------------------------
\lhead{\emph{Elenco delle Tabelle}}  % Set the left side page header to "List if Figures"
\listoftables  % Write out the List of Figures
%%\facciatabianca

%% ----------------------------------------------------------------



%% ----------------------------------------------------------------
\mainmatter	  % Begin normal, numeric (1,2,3...) page numbering
\pagestyle{fancy}  % Return the page headers back to the "fancy" style

% Include the chapters of the thesis, as separate files
% Just uncomment the lines as you write the chapters

\input{Chapters/Introduzione}
\input{Chapters/Ringraziamenti}
\input{Chapters/Chapter1}

\input{Chapters/Chapter2}



\input{Chapters/Conclusioni}



%% ----------------------------------------------------------------

\begin{thebibliography}{9}
\lhead{\emph{Bibliografia}}
\bibitem{}
Forestieri G., Eakins S., Mishkin F. (2015)
\emph{Istituzioni e mercati finanziari}, EcoBook-Rho (MI).

\bibitem{}
Angelini V., Cavapozzi D., Corazzini L., Paccagnella O. (2011), 
\emph{Age, Health and Life Satisfaction Among Older
	Europeans}, Springer, p. 293-308.

\bibitem{}
Bertoni M. (2014),
\emph{Hungry today, unhappy tomorrow? Childhood hunger and subjective wellbeing later in life}, Journal of Health Economics.


\bibitem{cap1:}
Borsch-Supan A., Brandt M., Hunkler C., Kneip T., Korbmacher J., Malter F., Schaan B., Stuck S., Zuber S. (2013), 
\emph{Data Resource Profile: The Survey of Health, Ageing and Retirement in Europe (SHARE)}, International Journal of Epidemiology.


\bibitem{}
Bossert W., Chakravarty S., D’Ambrosio C. (2013),
\emph{ Multidimensional poverty and material deprivation with discrete data}, Review of Income and Wealth 59. No. 1, p. 29–43.

Brunello G., Weber G., Weiss C. T. (2015), 
\emph{Books are forever: early life conditions, education and lifetime earnings in Europe}, The Economic Journal, 127.

\bibitem{}
Butler D. C., Petterson S., Phillips R.,
Bazemore A. W.(2013),
\emph{Measures of Social Deprivation That Predict Health Care Access and Need
	within a Rational Area of Primary Care Service Delivery},HSR: Health Services Research, Part I.


\bibitem{}
Capecchi S., Iannario M., Simone R. (2016),
\emph{Well-Being and Relational Goods: A Model-Based Approach to Detect Significant Relationships}, Social Indicators Research: An international and Interdisciplinary Journal for Quality-of-Life Measurement, Vol. 135, No. 2, p.729-750, Springer.

\bibitem{}
Decancq K., Lugo M. (2013),
\emph{Weights in multidimensional indices of well-being: an overview}, Econometric Reviews 32. No. 1, p. 7–34.



\bibitem{}
D'Elia A., Piccolo D. (2005),
\emph{A mixture models for preference data analysis}, Computational Statisics and Data Analysis, Vol. 49, p. 917-934.

\bibitem{}
Delli Zotti G. (2007),
\emph{Quaderni del Dipartimento di Scienze dell’Uomo: come creare un indice o una tipologia}, Università degli Studi di Trieste.

\bibitem{}
Fusco A., Guio A., Marlier E. (2013),
\emph{Building a material deprivation index in a multinational context: lessons from the EU experience}, Berenger, Valerie, Bresson, Florent (Eds.): Poverty and social exclusion around the mediterranean sea. New York: Springer Science+Business Media, p. 43–71.

\bibitem{}
Gambacorta R., Iannario M. (2013),
\emph{Measuring Job Satisfaction with CUB Models},LABOUR, 27, p. 198–224.


\bibitem{}
Haisken-DeNew J., Sinning M. (2010),
\emph{Social deprivation of immigrants in Germany}, Review of Income and Wealth 56. No. 4, p. 715–733.

\bibitem{}
Hilleras P. K., Aguero-Torres H., \& Winblad, B. (2001a),
\emph{ Factors influencing well-being in the elderly}, Current Opinion in Psychiatry, 14, 361–365.



\bibitem{}
Layard R., Clark A. E., Cornaglia F., Powdthavee N., Vernoit J. (2014), 
\emph{What predicts a successful life? A life-course model of well being}, The Economic Journal, 124.

\bibitem{}
McCullagh, P. (1980),
\emph{ Regression models for ordinal data (with discussion)}, Journal of the Royal Statistical
Society: Series B, 42, 109–142.

\bibitem{}
McCullagh, P., Nelder, J. (1989),
\emph{Generalized linear models (2nd ed.)}, London: Chapman and Hall/CRC

\bibitem{}
Meraviglia C. (2004),
\emph{Metodologia delle scienze sociali, Un'introduzione}, Carocci editore, Roma.

\bibitem{}
Michalos, A. C. (1997),
\emph{ Combining social, economic and environmental indicators to measure sustainable human well-being}, Social Indicators Research, 40, 221–258

\bibitem{}
Pampalon R, Raymond G. (2000),
\emph{ A deprivation index for health and welfare planning
in Quebec}, Chronic Dis Can, 21, 104-13.

\bibitem{}
Pampalon R., Hamel D., Gamache P., Philibert M. D., 
Raymond G., Simpson A. (2012),
\emph{An Area-based Material and Social Deprivation Index for Public
	Health in Québec and Canada}, CANADIAN JOURNAL OF PUBLIC HEALTH, Vol. 103.

\bibitem{}
Piccolo, D. (2003),
\emph{ On the moments of a mixture of uniform and shifted binomial random variables}, Quaderni di Statistica, 5, 85–104.


\bibitem{}
Rodriguez, A. (2010),
\emph{ Leisure and relationship to quality-of-life satisfaction}, Social Indicators Research, 43, 23–39.

\bibitem{}
Tourangeau R, Rips L. J., Rasinski K. (2000),
\emph{The Psychology of Survey Response}, Cambridge University Press.


\end{thebibliography}

\hbox{}
\thispagestyle{empty}
\newpage 
\chapter*{Ringraziamenti}
\addcontentsline{toc}{chapter}{Ringraziamenti}
\lhead{\emph{Ringraziamenti}} 
Sono molte le persone che mi sento di ringraziare apertamente alla fine di questo duro ed appagante momento ed in particolare, gli unici senza i quali non sarei la persona che sono oggi sono i miei genitori, Tony e Rossana, i cui insegnamenti sono stati e continuano ad essere la guida in tutto quello che faccio.\\



\end{document}  % The End
%% ----------------------------------------------------------------
the software is compyling everything without errors but margins are too stretched to the left border, i mean, not in the center.
how to fix that?

thank you in advance
Attachments
Immagine.png
Immagine.png (25.98 KiB) Viewed 2188 times

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Problems with margins

Post by Stefan Kottwitz »

Hi,

welcome to the forum!

It's caused by this line:

\setlength{\hoffset}{-2.54cm}

Remove it or comment it out (add ad % sign before it, at the beginning of the line). I would never change \hoffset or \voffset.

Stefan
LaTeX.org admin
Post Reply