Skip to content

Instantly share code, notes, and snippets.

@yuw
Last active October 9, 2015 07:24
Show Gist options
  • Save yuw/7478e93688108e4258d8 to your computer and use it in GitHub Desktop.
Save yuw/7478e93688108e4258d8 to your computer and use it in GitHub Desktop.
control \spaceskip
\def\addtospaceskip{\@testopt{\@addtospaceskip}{}}
\def\@addtospaceskip[#1]#2{%
\spaceskip\fontdimen2\font plus \fontdimen3\font minus \fontdimen4\font\relax
\advance\spaceskip#2\relax
\def\@tmp@xspaceskip{#1}%
\xspaceskip\fontdimen7\font\relax
\ifx\@tmp@xspaceskip\@empty
\advance\xspaceskip#2\relax
\else
\advance\xspaceskip\@tmp@xspaceskip\relax
\fi}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment