Document ClassesDOUBLE SPACE BETWEEN WORDS

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
lesc
Posts: 2
Joined: Thu Jul 17, 2008 1:10 pm

DOUBLE SPACE BETWEEN WORDS

Post by lesc »

I have been asked for the following requirement in the submission of a paper: they want double space between words. I have been tried several things but I didn't get it. Apart of writting every space by hand, does anyone has a suggestion? (probably changing some command lines in the style file would do, but I don't know how to do it).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: DOUBLE SPACE BETWEEN WORDS

Post by josephwright »

Do you relly mean this? Double line spacing is common (use the setspace package). For interword spacing, you have to alter a fontdimen. For example, this doubles the interword space

\documentclass{article}
\begin{document}
Some word not space out

\fontdimen2\font=2\fontdimen2\font

Some words spaced out
\end{document}

Here, \fontdimen2 is the dimension which stores the interword space. This is done on a font-by-font basis, hence needing \font.

Joseph Wright
Joseph Wright
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: DOUBLE SPACE BETWEEN WORDS

Post by josephwright »

Using some clues from TeX by Topic, a cleaner version of the same would be

\documentclass{article}
\begin{document}
Some word \spaceskip=2\fontdimen2\font plus 2\fontdimen3\font
minus 2\fontdimen4\font

Some more words
\end{document}

This does not mess with the contents of \fontdimen2.

Joseph Wright
Joseph Wright
lesc
Posts: 2
Joined: Thu Jul 17, 2008 1:10 pm

Re: DOUBLE SPACE BETWEEN WORDS

Post by lesc »

Thank you very much, it has worked smoothly. It sounds strange, but the journal has asked me precisely for that.
Post Reply