Page LayoutSet line spacing

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
stupidpanda
Posts: 1
Joined: Wed Apr 29, 2020 7:09 pm

Set line spacing

Post by stupidpanda »

Hi,

I am writing my thesis and are trying to set the line spacing. I have tried using both setspace, linespread and onehalfspacing commands, but it only seem to affect the first page of the report. I have also tried to delete the summary and preface, but still nothing happens. Can anyone help me, what am I doing wrong? :geek:

My main looks like this:

\documentclass[pdftex,14pt,a4paper,twoside]{extbook}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[english]{babel}
\usepackage{multirow}



\usepackage{graphicx}
\raggedbottom
\usepackage[backend=biber,style=authoryear, autocite=footnote]{biblatex}


\DeclareFieldFormat{title}{#1} %Endrer sktift i tittel bok
\DeclareFieldFormat{journaltitle}{#1} %Endrer skrift i tidskriftstittel
\DeclareFieldFormat[article]{title}{#1} %Endrer skrift i artikkeltittel
\DeclareFieldFormat{booktitle}{#1} % Endrer skrift i tittel til konferanse
\DeclareFieldFormat[inproceedings]{title}{#1} %Endrer skrift i artikkeltittel til konferanse
\renewbibmacro{in:}{} %Fjerner In foran tidssktiftstittel og konferansetittel


\addbibresource{references.bib}
\nocite{*}



\input{docsetup.tex}

\begin{document}
\begin{spacing}{1.2}

%% PART 1
\pagenumbering{Roman}
\input{summary.tex} %% Optional
\input{preface.tex} %% Optional
\input{list.tex} %% Generate TOC, list of tables, and list of figures automatically
\input{abbreviations.tex} %% Optional

%% PART 2 -- The Chapters
\pagenumbering{arabic}
\input{chapter1.tex}
\input{chapter2.tex}
\input{chapter3.tex}
\input{chapter4.tex}
\input{chapter5.tex}
\input{chapter6.tex}
\input{chapter7.tex}
\input{chapter8.tex}
\input{chapter9.tex}
\input{chapter99.tex}


%% PART 3
\input{references.tex}
\input{appendix.tex}
\end{spacing}
\end{document}

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
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Set line spacing

Post by Ijon Tichy »

The shown code is not a Infominimal working example. It is not working, because it depends on a lot of external files we do not have. So I cannot test it and cannot analyze it.

However, it is not recommended to put the whole document inside an environment. So you should replace the environment spacing by the command \setstretch. And option pdftex should never be needed (and could result in problems, if you use another engine), so you should remove it.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply