I am struggling with the spaces and font.
Firstly, how can I set the spaces like below? (All paragraphs will be have 1.5 line spacing too)
Secondly, how can I set all fonts as Times New Roman and 12pt?
1. CHAPTER
(1.5 line spacing)
1.1. Section
(1.5 line spacing)
Paragraph
(2 line spacing)
1.2. Section
(1.5 line spacing)
Paragraph
(2 line spacing)
1.2.1. Subsection
(1.5 line spacing)
Paragraph
(2 line spacing)
1.2.1.1. Subsubsection
(1.5 line spacing)
Paragraph
(2 line spacing)
Thank you.
\documentclass[12pt]{report}
\usepackage[hidelinks]{hyperref}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[turkish,english,shorthands=:!]{babel}
\usepackage{apacite}
\usepackage[a4paper,left=30mm,top=30mm,right=25mm,bottom=25mm]{geometry}
\usepackage{epigraph}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mathptmx}
\usepackage[titletoc,title]{appendix}
\usepackage{afterpage}
\usepackage[doublespacing]{setspace}
\usepackage{tocloft}
\usepackage{url}
\usepackage{indentfirst}
\usepackage{tikz}
\usetikzlibrary{positioning}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{lipsum}
\usepackage[nottoc,numbib]{tocbibind}
%****************************************
% CHAPTERS
% Chapter titles
\usepackage{titlesec}
% Remove (Chapter X).
\titleformat{\chapter}[display]
{\normalfont\bfseries}{}{0pt}{\Large}
% Spaces
\titlespacing*{\chapter}{1cm}{0cm}{0cm}
\titleformat{\chapter}[block]{\bfseries\fontsize{12pt}{12pt}}{\thechapter.}{1em}{\normalsize}
\titlespacing*{\section}{1cm}{0cm}{0cm}
\titleformat{\section}[hang]{\bfseries\fontsize{12pt}{12pt}}{\thesection.}{1em}{\normalsize}
\titlespacing*{\subsection}{1cm}{0cm}{0cm}
\titleformat{\subsection}[hang]{\bfseries\fontsize{12pt}{12pt}}{\thesubsection.}{1em}{\normalsize}
\titlespacing*{\subsubsection}{1cm}{0cm}{0cm}
\titleformat{\subsubsection}[hang]{\bfseries\fontsize{12pt}{12pt}}{\thesubsubsection.}{1em}{\normalsize}
% BEGIN
\begin{document}
\pagenumbering{gobble}
\pagenumbering{arabic}
\setlength{\parindent}{1cm} %Paragraph intend
% Chapter 1
\chapter{CHAPTER}
\lipsum[3-4]
\section{Section}
\lipsum[3-4]
\section{Section}
\lipsum[1-2]
\subsection{Subsection}
\lipsum[1-2]
%........................................
\end{document}
Best Answer
Part 1: 1.5 line spacing
Depending on what exactly you mean by
1.5 line spacing
, there are different solutions. Don’t use\usepackage[doublespacing]{setspace}
.If you want
12pt
text on a1.5*12 = 18pt
leading, then you can useor even better
If you want the line spacing to be
1.5
times that of the single line spacing, then you can useIf you want your line-spacing calculation to be based on that of Microsoft Word, then you should know that in MS Word “single line spacing” depends on the typeface/font.
For Times New Roman, the single line spacing is
2048
units of text on2355
units of leading. In TeX, a12pt
report has12pt
text on14.5pt
leading.So, in order to achieve
1.5 line spacing as MS Word
, you need a stretch value of(1.5*2355/2048)/(14.5/12) = 1.427465
:Part 2: Times New Roman typeface
Use TeX Gyre Termes, a Times New Roman clone:
If you do so, then don’t use
\usepackage{mathptmx}
.Added: Let me know if you know which one is TeX Gyre Termes and which one is Times New Roman.
Again, if your goal is to mimic MS Word, then you need to slightly scale up the typeface as well as the line spacing stretch by a factor of
72.27/72 = 1.00375
. This is because TeX’s1pt
is1/72.27
inches, while MS Word’s1pt
is1/72
inches.Additional notes: You generally want your
\usepackage[hidelinks]{hyperref}
to be the last package loading in your preamble. And sincehyperref
is loaded, you don’t need\usepackage{url}
any more.Part 3: Modify the vertical spaces and put them together
Added: Please at least read Section 9.2 of the
titlesec
manual. Your code is not suitable for your desired format.To modify the vertical space around headings in a consistent way, I propose to create
a macrotwo macros\myvspace
\myonehalfvspace
and\mytwovspace
. Depending on what exactly you mean by1.5 line spacing
, the value you put in\newcommand*{\myonehalfvspace}{...}
can be any one of18pt
,21.75pt
,20.698242pt
or20.775861pt
. Same goes for\mytwovspace
.Output
Do you really want your headings to be at the same size? Note where
4cm
and1cm
appear in the code.