I use \uuline
command from ulem
package to make double-underlined text. I would like to know if it is possible to control space length between lines? I drew below what I mean. If not, how to make custom double-underline with space length controlled?
[Tex/LaTex] How to control space length between lines of double-underline
spacingulem
Best Answer
The space between the double lines is hard-coded: 1.2pt, see the definition of
\uuline
in packageulem
.The following example changes the definition in two ways:
The hard-coded space is replaced by dimen register
\uulinesep
.Also the top line is aligned, not the bottom line. This avoids that the top line overprints the descenders or even moves above the base line, when
\uulinesep
is increased too much.The depth of the whole double line can be changed by setting
\ULdepth
as shown in the second and third line of the example. The default is\maxdimen
. Then packageulem
uses the depth ofj()
.Full example: