## LaTeX forum ⇒ Text Formatting ⇒ Defining the space between subsection number and subsection title

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
jjmm
Posts: 12
Joined: Tue Jul 12, 2016 5:23 am

### Defining the space between subsection number and subsection title

Hi,

I know how to define the space between section number and section title:

https://tex.stackexchange.com/questions ... tion-title

\makeatletter % access to internal commands\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname\ }\makeatother

How do we define the space between"subsection" number and "subsection" title?
Thanks!!

Johannes_B
Site Moderator
Posts: 3930
Joined: Thu Nov 01, 2012 4:08 pm
The code you have shown defines the space for all sectional levels.

Please provide a minimal working example, so we have something to test possible solutions.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

jjmm
Posts: 12
Joined: Tue Jul 12, 2016 5:23 am
Thanks. This is the code where I modify the space between the section number and the section title.

\documentclass{article} \makeatletter \renewcommand{\@seccntformat}[1]{\csname the#1\endcsname\ } % space   \makeatother\begin{document} \section{Introduction}This article \subsection{My subsection}However \end{document}

Stefan Kottwitz
Posts: 9232
Joined: Mon Mar 10, 2008 9:44 pm
Well the spacing of the subsection number is modified too in that way. So you already achieve it. Or should it be different?

4ex just to see it better here:

\renewcommand{\@seccntformat}[1]{\csname the#1\endcsname\hspace{4ex}} % space

section.png (9.45 KiB) Viewed 394 times

Stefan

### Who is online

Users browsing this forum: No registered users and 7 guests