Is there a way to set a default value for the horizontal spacing in LaTeX math mode? I'm constantly writing

$foo \; bar \; baz$

Where the \; macro sets the space that I am happy with. Is there a command I can add to my preamble so that

$foo bar baz$

displays as if those words were interspersed with \;?

closed as unclear what you're asking by Andrew Swann, Joseph Wright Dec 28 '14 at 17:08

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    space is ignored in math mode but if your real constructs are defined with appropriate math classes, then you shouldn't have to add space often. \mathrm{foo} \mathbin{\mathrm{bar}} \mathrm{baz} for example. Perhaps you should provide a complete document showing a real small example – David Carlisle May 12 '14 at 21:20
  • If you always use 3 arguments, you could define a macro: \newcommand{\myseq}[3]{#1\; #2\; #3} or \newcommand{\myseq}[3]{$#1\; #2\; #3$} and then call it as $\myseq{foo}{bar}{baz}$ or \myseq{foo}{bar}{baz}. Of course, some editors can help you with autocompletion. – Sigur May 12 '14 at 22:37
  • This definitely qualifies as XY-Problem! – Henri Menke May 13 '14 at 8:31

Browse other questions tagged or ask your own question.