[Tex/LaTex] Is `\hspace*` equivalent to `\strut\hspace`

spacingstarred-version

Is using \hspace* essentially the same as \strut\hspace?

The description at \hspace vs. \hspace* seems to suggest that this may be the case, but I was wondering the cases where they might differ.

Best Answer

\hspace* is also valid at the beginning of a line:

\documentclass{article}
\usepackage[a6paper]{geometry}
\parindent=0pt

\begin{document}
\hrulefill\sloppy

This is a sentence which makes no sense. 
\hspace{3cm} And so on \ldots

This is a sentence which makes no sense. 
\hspace*{3cm} And so on \ldots

This is a sentence which makes no sense. 
\strut\hspace{3cm} And so on \ldots

\end{document}

enter image description here

\strut is only a box with height and depth from ( and no width! The behaviour of \hspace* is similiar to \vspace* for the vertical shift.