# What is the plain TeX equivalent of \rule in LaTeX?

For various reasons, I have to use TeX rather than LaTeX for a short document. I need to be able to insert a short blank underline within a paragraph. In LaTeX, this would be done easily with \rule{length}{thickness}. What is the plain TeX equivalent?

• \def\rule#1#2{\leavevmode\vrule width #1 height #2 depth 0pt\relax} Jan 24, 2020 at 16:39
• That almost works, but it seems to be ignoring the height argument. Jan 24, 2020 at 16:40
• I forgot to set depth. Jan 24, 2020 at 16:45
• I ended up using a slight modification with just one argument: \def\rule#1{\leavevmode\vrule width #1 height 0.45pt depth 0pt\relax} Jan 24, 2020 at 17:04