TransWikia.com

Swallow space before command

TeX - LaTeX Asked on October 3, 2021

Is there a way to swallow one space (or more spaces) before a command?
E.g.:

xxx mycommand{}yyy

which results in

xxxyyy

One Answer

I think you're looking for unskip.

LaTeX version:

documentclass{article}
begin{document}    
xxx unskip{}yyy
end{document}

Plain-TeX version:

xxx unskip{}yyy
bye

The output of both documents is "xxxyyy".

Correct answer by Mico on October 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP