For quite some time I have had a very strange problem in TeXShop under Snow Leopard.
It seems like if I press the spacebar to lightly after the end of inserting math using simple $ the space will show in the source file but not in the output file. For example if i write "$f(x)=x^2$ is a nice function." it will typeset as "f(x)=x^2is a nice function." However if I press spacebar really violently TeXShop will typeset the space correctly.
It is a pain going through every document looking for missing spaces. Does anyone know how to solve this?
Text Formatting ⇒ Spaces after in-line Math Expressions not typeset
NEW: TikZ book now 40% off at Amazon.com for a short time.

Spaces after in-line Math Expressions not typeset
Are you seriously suggesting that it has to do with how hard you press the space bar? Computers don't work like that, trust me. There should be a space there, unless somehow a different character is being inserted for some reason. Can you provide a minimal working example showing the problem?
Spaces after in-line Math Expressions not typeset
Here a minimal example
I attached the output.
I think your right in that the some other different character is inserted. When I open a document in a new ecoding (Mac OS Roman instead of Western (ISO Latin 1)) all the spaces that does not show are replaced by the symbol you get when typsetting "\dag". When I typeset in the new encoding the output is unchanged however.
Also the same thing (space in source but not in output) seem to happen if I press alt+space. Since I hold down Alt to get the $ perhaps I'm to slow at releasing Alt before pressing spacebar.
Can I tell the computer to understand Alt+space as just space?
Code: Select all
\documentclass{amsart}
\begin{document}
A small example with the formula $F=ma$ printed
\end{document}
I think your right in that the some other different character is inserted. When I open a document in a new ecoding (Mac OS Roman instead of Western (ISO Latin 1)) all the spaces that does not show are replaced by the symbol you get when typsetting "\dag". When I typeset in the new encoding the output is unchanged however.
Also the same thing (space in source but not in output) seem to happen if I press alt+space. Since I hold down Alt to get the $ perhaps I'm to slow at releasing Alt before pressing spacebar.

Can I tell the computer to understand Alt+space as just space?
- Attachments
-
- Example.pdf
- (28.67 KiB) Downloaded 206 times