I wanted to make a horizontal separator in LaTeX
So i used this piece of code(as described here):
\noindent\mathmakebox[\linewidth]{\rule{\paperwidth}{0.4pt}}
The strange thing that it's properly displaying after compiling it to the PDF but in compile time it is arguing.
I am using Visual Studio Code and
MikTeX
\mathmakeboxis provided bymathtoolsand can only be used in math formulas, not in plain text. – egreg Nov 20 '22 at 15:20