Text FormattingMissing Spaces between Words after Superscript

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Jamwa
Posts: 10
Joined: Mon May 07, 2012 2:56 pm

Missing Spaces between Words after Superscript

Post by Jamwa »

This script produces a line with no spacing in between words. What am I doing wrong please?

Code: Select all

\documentclass[a4paper,10pt]{report}
\usepackage[]{fullpage}
\usepackage{graphics}

% Title Page
\title{
}


\begin{document}
\maketitle
\tableofcontents


\addcontentsline{toc}{chapter}{Mwanzo}\chapter*{Mwanzo}
\addcontentsline{toc}{section}{1}\section*{1}^{1}Hapo mwanzo Mungu aliziumba mbingu na nchi.

\end{document}
Last edited by localghost on Mon May 07, 2012 6:10 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Missing Spaces between Words after Superscript

Post by Stefan Kottwitz »

Hi Jamwa,

welcome to the board!

You used a ^ within the text. This is for superscripts in math mode. So your compiler switched to math mode, that's why the following text is written like math symbols, and the spacing in math mode is different. Just write $^{1}$ instead, to see that. What is the reason? Should it be a footnote symbol, instead?

Stefan
LaTeX.org admin
Jamwa
Posts: 10
Joined: Mon May 07, 2012 2:56 pm

Missing Spaces between Words after Superscript

Post by Jamwa »

Oh, thank you very much. I want the {1} as a superscript. This now works OK:

Code: Select all

\documentclass[a4paper,10pt]{report}
\usepackage[]{fullpage}

% Title Page
\title{
\author{}
}


\begin{document}
\maketitle
\tableofcontents

\addcontentsline{toc}{chapter}{Mwanzo}\chapter*{Mwanzo}
\addcontentsline{toc}{section}{1}\section*{1}$^{1}$Hapo mwanzo Mungu aliziumba mbingu na nchi.  $^{2}$Nayo nchi ilikuwa ukiwa, tena utupu, na giza lilikuwa juu ya uso wa vilindi vya maji; Roho ya Mungu ikatulia juu ya uso wa maji. 
\end{document}
Last edited by localghost on Mon May 07, 2012 6:11 pm, edited 2 times in total.
Post Reply