Removing Spaces before and after custom commands

I have a problem using Latex and custom commands. The custom command \refChap adds spaces before and after the inserted text every time when used. I would like a solution that suppresses said spaces. The following example should explain my problem in depth: \documentclass[11pt]{article} \usepackage[a4paper, left=2cm, right=2cm, top=2cm, bottom=2cm]{geometry} \setlength{\parskip}{6 pt} % paragraph 6 pt… Read More Removing Spaces before and after custom commands