using \newcommand or \UseMacro

\\newcommand{\\tool}{\\textsc{CrawLabel}}
\\newcommand{\\StateVertex}[2][]{$\\mathcal{S}_{#2}^{#1}$}

\mbox{} make the content in the bracket not change to a new line

\\mbox{This is a texting piece of text. This is a texting piece of text.
This is a texting piece of text.}

⚠️ newcommand name cannot contain number

listlisting

Python

How to highlight Python syntax in LaTeX Listings \lstinputlistings command

Graph

two graph side by side

% is very important between two subfigure or minipage

LaTeX figures side by side