Effective Ways to Add Horizontal Spacing in Latex Text for Pseudo-code Writing

  • Context: LaTeX 
  • Thread starter Thread starter Amok
  • Start date Start date
  • Tags Tags
    Horizontal Latex
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
Amok
Messages
254
Reaction score
1
Hello guys, I'm trying to get some horizontal spacing into my text. I want to do this because I basically want to write a pseudo-code in my text, so I need every loop to start a bit further away from the beginning of the page than the previous one. I've tried \hspace, but it does not seem to work. And in case you're wondering, I don't to use the algorithm environment (it does not suit my purpose).

Thanks in advance.
 
Physics news on Phys.org
Only one that worked was \mbox{quad} or \mbox{qquad}. Thank you very much sir.