6

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?

marked as duplicate by lockstep, Marco Daniel, Martin Schröder, percusse, clemens Aug 20 '12 at 13:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Jul 28 '12 at 20:27

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

6

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}
0

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.

  • 2
    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
0

Maybe you are looking for:

\setlength{\spaceskip}{Xpt plus Yfil}

(choose X and Y as you like)

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