My objective is to fit more words within one line.
In order to show what I mean, I will exaggerate the word spacing here:
Pretend this is a normal line in the document:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
Since I want to fit more words in the same line, I would like to change the word spacing to look like:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Add more words.
What command will allow me to shrink the word spacing in the entire line?
Best Answer
There are a number of factors involved in font spacing, including inter word spacing, inter character spacing, inter word stretch, etc. Stefan Kottwitz' blog on Full justification with typewriter font covers all these in an example based on the Computer Modern Typewriter font (
\ttfamily
,\texttt
, etc.).More specifically, the following dimensions may be set for a font:
\fontdimen1
\fontdimen2
\fontdimen3
\fontdimen4
\fontdimen7
\xspaceskip
\hyphenchar
In order to decrease the space between words, you can either change the inter word space/stretch. here are some examples that show the difference:
This is what it looks like: