# Is it possible to define the word stretch? [duplicate]

Possible Duplicate:
How to change the interword spacing?

i would like to know if is possible to set the space between the words like i can do with the lines with \baselinestretch?

## migrated from stackoverflow.comJul 28 '12 at 20:27

This question came from our site for professional and enthusiast programmers.

You can insert additional interword space using \spaceskip, e.g.

\spaceskip 6pt plus 1pt minus 1pt

The first value is the normal width of the resulting extra space, the second and third are the amounts by which it is allowed to grow and shrink, respectively. For comparison, you can enquire about the default interword spacing using \the.

\documentclass{article}
\begin{document}
Default:
\the\fontdimen2\font\
plus
\the\fontdimen3\font\
minus
\the\fontdimen4\font

The quick brown fox jumps over the lazy dog.

\spaceskip 6pt plus 1pt minus 1pt
The quick brown fox jumps over the lazy dog.
\end{document}


Horizontal stretch of a specific length:

Here\hspace{.5in}is a 0.5 inch space

Stretch to fill whole line:

Here is a \hfill stretched space

Examples taken from Lamport's Manual.

• I think Winter wants to adjust the limits used by the filling algorithm rather than wanting to install some space in any particular spot. – dmckee May 11 '11 at 19:20
• u are rigth dmckee :) – Winter May 11 '11 at 19:44

Maybe you are looking for:

\setlength{\spaceskip}{Xpt plus Yfil}


(choose X and Y as you like)

• I don't think putting a fil in spaceskip is a good idea. – Ian Thompson Jul 28 '12 at 20:50