[Tex/LaTex] How to add vertical space before a line in LaTeX

paragraphsspacing

I'm trying to define a new command similar to

\newcommand {\mainv} {\par\noindent\hspace*{0pt}\ignorespaces}

However, I want to have some negative preceding vertical space. I know that \vspace adds vertical space after the text. Is there a similar command that can add vertical space before the text?

The command that will provide the following output will be:

\main {This text is written using command main}
\mainv {This text is written using command mainv}

where \main is defined as

\newcommand {\main} {\par\noindent\hspace*{0pt}\ignorespaces}

The following image in MS Word shows what I'm looking for:

Best Answer

Something like this?

\documentclass{article}

\newcommand\main{\par\noindent\hspace*{0pt}\ignorespaces}
\newcommand\mainV{\vspace{-10pt}\main}

\begin{document}

\main Some text
\main Some text
\main Some text
\mainV some other, overlapping text
\end{document}

Output from the code above