I've searched many sites but I couldn't get any answer. Here is this mystical question:
How can i reduce the spacing after headings?
Here is my code.
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[turkish]{babel}
\usepackage[left=3.50cm, right=2.50cm, top=3.00cm, bottom=3.00cm,nohead,nofoot]{geometry}
\usepackage[overload]{textcase}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{pslatex}
\usepackage[explicit]{titlesec}
\linespread{1.5}
\usepackage{setspace}
\setlength{\parindent}{0pt}
\setlength{\parskip}{\baselineskip}
\addto\extrasturkish{\uccode`i=\string"9D \lccode`I=\string"19 }
\addto\noextrasturkish{\uccode`i=`I \lccode`I=`i }
\titleformat{\section}
{\normalfont\normalsize\bfseries}{\thesection}{1em}{\MakeTextUppercase{#1}}
\titleformat{\subsection}
{\normalfont\normalsize\bfseries}{\thesubsection}{1em}{#1}
\titleformat{\subsubsection}
{\normalfont\normalsize\bfseries\itshape}{\thesubsubsection}{1em}{#1}
\usepackage{chngcntr}
My actual purpose is to set line spacing 1.5 lines. This is a MS Word template that I must use for my project report. When I use \setlength{\parskip}{\baselineskip}
with \linespread{1.5}
the gap between section headings and paragraphs are huge, so huge it is funny. If I don't use \linespread{1.5}
the lines are not spreading as expected. If I don't use \setlength{\parskip}{\baselineskip}
this time there is no spacing between paragraphs.
Best Answer
You've loaded the
titlesec
package- it provides the command\titlespacing
which has the formatFrom the
titlesec
packageA complete MWE follows