[Tex/LaTex] LaTeX equivalent of     in HTML

horizontal alignmentspacing

In HTML, to get extra horizontal spacing all I would have to do is:

This is textual phrase A   This is textual phrase B

to get the following output:

This is textual phrase A...This is textual Phrase B

. = 1 invisible space character

Question#1: How do you force insert space characters?

Question#2: What is the proper way to fine control horizontal spacing instead of force adding space characters?

Best Answer

In answer to your first question: There are many ways of adding specific spaces to text. Some examples include forcing an actual "inter word space" to specifying a regular space length to specifying a length based on an object (text or otherwise). In that order you can use the following:

This is textual phrase A\ \ \ This is textual phrase B% 3 inter word spaces
This is textual phrase A\hspace{5em}This is textual phrase B% space of length 5em
This is textual phrase A\hphantom{spaces}This is textual phrase B% space equivalent to length of word 'spaces'
This is textual phrase A\hfill{}This is textual phrase B% infinitely stretchable space

This is the equivalent output:

Different spaces

Perhaps some of these methods answer your second question. However, in its general context, the answers are probably too many to list here.

Related Question