Why the space between dot and next sentence of paragraph is sometimes like semispace and sometimes space? I want to arrange all as semi space. How can I do it?
Another thing, when I am using \section{Introduction}, it gives me as 1 Introduction but the space between 1 and introduction is bigger than what I need
is there anyway to change it?
- 4,899
- 11
1 Answers
Use
\frenchspacing(somewhere in your preamble/before\begin{document}); it sets thespacefactor after punctuation to be the same. From the LaTeX kernel:\def\frenchspacing{\sfcode`\.\@m \sfcode`\?\@m \sfcode`\!\@m \sfcode`\:\@m \sfcode`\;\@m \sfcode`\,\@m}In the above code,
\@mis defined to be1000. As comparison, here's the definition of\nonfrenchspacing:\def\nonfrenchspacing{\sfcode`\.3000\sfcode`\?3000\sfcode`\!3000% \sfcode`\:2000\sfcode`\;1500\sfcode`\,1250 }Note how there exists different (larger) spacing after
.,?and!than for:,;and,.Sectional units set their headings in two parts: (1)
<number><space>(2)<title>. The first part is set using\@seccntformatwhich is a macro thatformats a genericsectionalcounter. Here's the definition:\def\@seccntformat#1{\csname the#1\endcsname\quad}For any counter
<seccounter>, it calls\the<seccounter>which prints the actual counter and then inserts a\quad.\quadis defined to be\hspace{1em}, which is font-dependent. If you want to change this space to something more suitable for you, you can add\makeatletter \def\@seccntformat#1{\csname the#1\endcsname\hspace{<space>}} \makeatotherto your preamble for some suitable
<space>. If you just want a regular, inter-word space, you\spaceinstead of\hspace{<space>}.
- 603,163
\frenchspacingmacro. (Just write it somewhere in the preamble.) For fine-tuning the formatting of section titles, have a look at thetitlesecpackage. – Michael Palmer Dec 13 '16 at 18:13