General ⇒ Space between "chapter #" and "title chapter"
Space between "chapter #" and "title chapter"
For example, the default is:
Chapter #
Title Chapter
...
and what I want is:
Chapter #
Title Chapter
...
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Space between "chapter #" and "title chapter"
welcome to the board!
You could use the titlesec package, specifically its command
\titlespacing
. Have a look at the 
Stefan
Space between "chapter #" and "title chapter"
Thank you for your help.
I'm new in LaTeX, so there are a lot of things I do not know

I did try with google and do as you said, however the result did not change.
The document class that I used here is book, and
\titlespacing
does not affect \chapter
.I will show my code:
Code: Select all
\documentclass[a4paper,oneside,hidelinks,12pt]{book}
\usepackage{setspace,titlesec}
\begin{document}
\frontmatter
\pagestyle{frontmatter}
\chapter{ACKNOWLEDGEMENTS}
\mainmatter % Begin normal, numeric (1,2,3...) page numbering
\pagestyle{mainmatter}
\titlespacing{\chapter}{0pt}{*4}{*1.5}
\chapter{Introduction}
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Space between "chapter #" and "title chapter"
\titleformat
. Insert this line and modify the value of 20pt
to a different value as desired:Code: Select all
\titleformat{\chapter}[display]
{\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
Re: Space between "chapter #" and "title chapter"
This works with my example. Unfortunately, in my whole code, I can not compile when adding that code. Anyway, once again, thank you!
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Space between "chapter #" and "title chapter"
Stefan
Space between "chapter #" and "title chapter"
Code: Select all
CHAPTER 1.
! Argument of \vspace has an extra }.
<inserted text>
\par
l.84 \chapter{Introduction}
Code: Select all
\documentclass[a4paper,oneside,hidelinks,12pt]{book}
\usepackage[utf8]{vietnam}
\usepackage[english]{babel}
\usepackage{titlesec} % defsc is created to define new commands
%\usepackage{epsfig}
\usepackage{graphicx,tocloft,setspace,hyperref}
\usepackage{IEEEtrantools}
\usepackage[textstyle,squaren]{SIunits}
%\usepackage{showframe} %-- to check the border of text
% *** MATH PACKAGES ***
\usepackage[cmex10]{amsmath}
\interdisplaylinepenalty=2500
\usepackage{amsfonts}