0

I want to remove the spaces in the titlemark, such as "H O W", I want it show like "HOW", but I do not know how to do this?

2 Answers2

2

You can set the value to the \spaceskip primitive register:

H O W                         % default spaces between letters H,O,W

{\spaceskip=1em\relax H O W} % bigger spaces between letters H,O,W

{\spaceskip=1sp\relax H O W} % no spaces between H,O,W, kerning disabled

{\catcode`\ =9\relax H O W} % no spaces between H,O,W, kerning enabled

Note, that value 1sp is "almost zero" but it isn't exactly zero because zero value means: use default space, no \spaceskip value. But this solution doesn't allow kerning.

If you want to have kerning activated then use the example from the last line. The spaces are completely ignored here.

wipet
  • 74,238
0

I have found out a very simple way to solve this problem by writing one command

\def\newdelespace{\let\yourspaceChar\relax},

here command \yourspaceChar is defined as follows

\def\yourspaceChar{\hskip \f@size \p@}

Then use the command \newdelespace anywhere you want to remove all its space! it works, for example:

\makeatletter
\def\yourspaceChar{\hskip \f@size \p@}
\def\newdelespace{\let\yourspaceChar\relax}
\makeatother

\begin{document} H\yourspaceChar O \yourspaceChar W

{\newdelespace H\yourspaceChar O\yourspaceChar W} \end{document}

enter image description here

Zarko
  • 296,517