In math mode, something like
$if f x > 3 then 42 else y$ typesets to this:
Obviously, spacing is wrong here, and I need to correct manually:
$if \: f \: x > 3 \: then \: 42 \: else \: y$ typesets to
- Which is the correct amount of space to insert?
- Is there a way to automate this process, i.e. automatically insert a space between "words" separates by spaces in the source?