LaTeX forum ⇒ Text FormattingProblems with margins Topic is solved

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

Problems with margins

Postby senseiandrea » Wed Nov 21, 2018 4:29 pm

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:

  1. \documentclass[a4paper, 12pt, oneside]{Thesis} % Use the "Thesis" style, based on the ECS Thesis style by Steve Gunn
  2.  
  3. % Include any extra LaTeX packages required
  4. \usepackage[square, numbers, comma, sort&compress]{natbib} % Use the "Natbib" style for the references in the Bibliography
  5. \usepackage[final]{pdfpages}
  6. \usepackage[italian]{babel}
  7. \usepackage[T1]{fontenc}
  8. \usepackage{float}
  9. \usepackage[utf8]{inputenc}
  10. \usepackage{verbatim} % Needed for the "comment" environment to make LaTeX comments
  11. \usepackage{listings} %Per inserire codice
  12. \usepackage{multirow}
  13. \usepackage{booktabs,siunitx}
  14. \usepackage{array}
  15. \usepackage{tabularx}
  16. \usepackage{enumitem}
  17. \usepackage{subfloat}
  18. \usepackage{longtable}
  19. \usepackage{hyperref}
  20. \usepackage{changepage}
  21. \usepackage{setspace}
  22. \usepackage{amsmath}
  23. \usepackage{amsfonts}
  24. \usepackage{fancyhdr}
  25. \usepackage{amssymb}
  26. \usepackage{fancyvrb}
  27. \usepackage[textfont=it,labelfont=bf]{caption} %pacchetto per didascalie
  28. %\usepackage[usenames]{color} % Per permettere la colorazione dei caratteri
  29. \PassOptionsToPackage{usenames,dvipsnames}{xcolor}
  30. \hypersetup{urlcolor=black, colorlinks=false, allbordercolors=white} % Colours hyperlinks in blue, but this can be distracting if there are many links.
  31.  
  32. %% ----------------------------------------------------------------
  33. \begin{document}
  34. \frontmatter % Begin Roman style (i, ii, iii, iv...) page numbering
  35.  
  36.  
  37. %% ----------------------------------------------------------------
  38.  
  39. \setstretch{1.3} % It is better to have smaller font and larger line spacing than the other way round
  40.  
  41. % Define the page headers using the FancyHdr package and set up for one-sided printing
  42. \fancyhead{} % Clears all page headers and footers
  43. \rhead{\thepage} % Sets the right side header to show the page number
  44. \lhead{} % Clears the left side page header
  45.  
  46. \pagestyle{fancy} % Finally, use the "fancy" page style to implement the FancyHdr headers
  47.  
  48.  
  49. %% ----------------------------------------------------------------
  50.  
  51. \setlength{\voffset}{0cm}
  52. \setlength{\hoffset}{0cm}
  53.  
  54. \includepdf[pages=-]{provabuona.pdf}
  55.  
  56. \setlength{\voffset}{-2.54cm}
  57. \setlength{\hoffset}{-2.54cm}
  58.  
  59. % The "Funny Quote Page"
  60. \pagestyle{empty} % No headers or footers for the following pages
  61.  
  62. \null\vfill
  63. % Now comes the "Funny Quote", written in italics
  64. \textit{"Non sono le opere buone che fanno l'uomo buono \\ma è l'uomo buono che fa opere buone."}
  65. %
  66. \begin{flushright}
  67. Martin Lutero
  68. \end{flushright}
  69.  
  70. \vfill\vfill\vfill\vfill\vfill\vfill\null
  71. \clearpage % Funny Quote page ended, start a new page
  72. %% ----------------------------------------------------------------
  73. \newcommand{\facciatabianca}{\newpage\shipout\null}
  74. %%\facciatabianca
  75.  
  76.  
  77. % End of the pre-able, contents and lists of things
  78. % Begin the Dedication page
  79.  
  80. \setstretch{1.5} % Return the line spacing back to 1.3
  81.  
  82. \pagestyle{empty} % Page style needs to be empty for this page
  83. %\dedicatory{A chi ci ha creduto fino alla fine.}
  84.  
  85. \addtocontents{toc}{\vspace{2em}} % Add a gap in the Contents, for aesthetics
  86.  
  87. %%\facciatabianca
  88.  
  89. \pagestyle{fancy} %The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back
  90.  
  91.  
  92. %% ----------------------------------------------------------------
  93. \lhead{\emph{Contents}} % Set the left side page header to "Contents"
  94. \tableofcontents % Write out the Table of Contents
  95.  
  96. %% ----------------------------------------------------------------
  97. \lhead{\emph{Elenco delle Tabelle}} % Set the left side page header to "List if Figures"
  98. \listoftables % Write out the List of Figures
  99. %%\facciatabianca
  100.  
  101. %% ----------------------------------------------------------------
  102.  
  103.  
  104.  
  105. %% ----------------------------------------------------------------
  106. \mainmatter % Begin normal, numeric (1,2,3...) page numbering
  107. \pagestyle{fancy} % Return the page headers back to the "fancy" style
  108.  
  109. % Include the chapters of the thesis, as separate files
  110. % Just uncomment the lines as you write the chapters
  111.  
  112. \input{Chapters/Introduzione}
  113. \input{Chapters/Ringraziamenti}
  114. \input{Chapters/Chapter1}
  115.  
  116. \input{Chapters/Chapter2}
  117.  
  118.  
  119.  
  120. \input{Chapters/Conclusioni}
  121.  
  122.  
  123.  
  124. %% ----------------------------------------------------------------
  125.  
  126. \begin{thebibliography}{9}
  127. \lhead{\emph{Bibliografia}}
  128. \bibitem{}
  129. Forestieri G., Eakins S., Mishkin F. (2015)
  130. \emph{Istituzioni e mercati finanziari}, EcoBook-Rho (MI).
  131.  
  132. \bibitem{}
  133. Angelini V., Cavapozzi D., Corazzini L., Paccagnella O. (2011),
  134. \emph{Age, Health and Life Satisfaction Among Older
  135. Europeans}, Springer, p. 293-308.
  136.  
  137. \bibitem{}
  138. Bertoni M. (2014),
  139. \emph{Hungry today, unhappy tomorrow? Childhood hunger and subjective wellbeing later in life}, Journal of Health Economics.
  140.  
  141.  
  142. \bibitem{cap1:}
  143. Borsch-Supan A., Brandt M., Hunkler C., Kneip T., Korbmacher J., Malter F., Schaan B., Stuck S., Zuber S. (2013),
  144. \emph{Data Resource Profile: The Survey of Health, Ageing and Retirement in Europe (SHARE)}, International Journal of Epidemiology.
  145.  
  146.  
  147. \bibitem{}
  148. Bossert W., Chakravarty S., D’Ambrosio C. (2013),
  149. \emph{ Multidimensional poverty and material deprivation with discrete data}, Review of Income and Wealth 59. No. 1, p. 29–43.
  150.  
  151. Brunello G., Weber G., Weiss C. T. (2015),
  152. \emph{Books are forever: early life conditions, education and lifetime earnings in Europe}, The Economic Journal, 127.
  153.  
  154. \bibitem{}
  155. Butler D. C., Petterson S., Phillips R.,
  156. Bazemore A. W.(2013),
  157. \emph{Measures of Social Deprivation That Predict Health Care Access and Need
  158. within a Rational Area of Primary Care Service Delivery},HSR: Health Services Research, Part I.
  159.  
  160.  
  161. \bibitem{}
  162. Capecchi S., Iannario M., Simone R. (2016),
  163. \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.
  164.  
  165. \bibitem{}
  166. Decancq K., Lugo M. (2013),
  167. \emph{Weights in multidimensional indices of well-being: an overview}, Econometric Reviews 32. No. 1, p. 7–34.
  168.  
  169.  
  170.  
  171. \bibitem{}
  172. D'Elia A., Piccolo D. (2005),
  173. \emph{A mixture models for preference data analysis}, Computational Statisics and Data Analysis, Vol. 49, p. 917-934.
  174.  
  175. \bibitem{}
  176. Delli Zotti G. (2007),
  177. \emph{Quaderni del Dipartimento di Scienze dell’Uomo: come creare un indice o una tipologia}, Università degli Studi di Trieste.
  178.  
  179. \bibitem{}
  180. Fusco A., Guio A., Marlier E. (2013),
  181. \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.
  182.  
  183. \bibitem{}
  184. Gambacorta R., Iannario M. (2013),
  185. \emph{Measuring Job Satisfaction with CUB Models},LABOUR, 27, p. 198–224.
  186.  
  187.  
  188. \bibitem{}
  189. Haisken-DeNew J., Sinning M. (2010),
  190. \emph{Social deprivation of immigrants in Germany}, Review of Income and Wealth 56. No. 4, p. 715–733.
  191.  
  192. \bibitem{}
  193. Hilleras P. K., Aguero-Torres H., \& Winblad, B. (2001a),
  194. \emph{ Factors influencing well-being in the elderly}, Current Opinion in Psychiatry, 14, 361–365.
  195.  
  196.  
  197.  
  198. \bibitem{}
  199. Layard R., Clark A. E., Cornaglia F., Powdthavee N., Vernoit J. (2014),
  200. \emph{What predicts a successful life? A life-course model of well being}, The Economic Journal, 124.
  201.  
  202. \bibitem{}
  203. McCullagh, P. (1980),
  204. \emph{ Regression models for ordinal data (with discussion)}, Journal of the Royal Statistical
  205. Society: Series B, 42, 109–142.
  206.  
  207. \bibitem{}
  208. McCullagh, P., Nelder, J. (1989),
  209. \emph{Generalized linear models (2nd ed.)}, London: Chapman and Hall/CRC
  210.  
  211. \bibitem{}
  212. Meraviglia C. (2004),
  213. \emph{Metodologia delle scienze sociali, Un'introduzione}, Carocci editore, Roma.
  214.  
  215. \bibitem{}
  216. Michalos, A. C. (1997),
  217. \emph{ Combining social, economic and environmental indicators to measure sustainable human well-being}, Social Indicators Research, 40, 221–258
  218.  
  219. \bibitem{}
  220. Pampalon R, Raymond G. (2000),
  221. \emph{ A deprivation index for health and welfare planning
  222. in Quebec}, Chronic Dis Can, 21, 104-13.
  223.  
  224. \bibitem{}
  225. Pampalon R., Hamel D., Gamache P., Philibert M. D.,
  226. Raymond G., Simpson A. (2012),
  227. \emph{An Area-based Material and Social Deprivation Index for Public
  228. Health in Québec and Canada}, CANADIAN JOURNAL OF PUBLIC HEALTH, Vol. 103.
  229.  
  230. \bibitem{}
  231. Piccolo, D. (2003),
  232. \emph{ On the moments of a mixture of uniform and shifted binomial random variables}, Quaderni di Statistica, 5, 85–104.
  233.  
  234.  
  235. \bibitem{}
  236. Rodriguez, A. (2010),
  237. \emph{ Leisure and relationship to quality-of-life satisfaction}, Social Indicators Research, 43, 23–39.
  238.  
  239. \bibitem{}
  240. Tourangeau R, Rips L. J., Rasinski K. (2000),
  241. \emph{The Psychology of Survey Response}, Cambridge University Press.
  242.  
  243.  
  244. \end{thebibliography}
  245.  
  246. \hbox{}
  247. \thispagestyle{empty}
  248. \newpage
  249. \chapter*{Ringraziamenti}
  250. \addcontentsline{toc}{chapter}{Ringraziamenti}
  251. \lhead{\emph{Ringraziamenti}}
  252. 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.\\
  253.  
  254.  
  255.  
  256. \end{document} % The End
  257. %% ----------------------------------------------------------------

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 155 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9229
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Nov 21, 2018 7:30 pm

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
Site admin


Return to “Text Formatting”

Who is online

Users browsing this forum: Baidu [Spider] and 7 guests