Text FormattingSpaces after in-line Math Expressions not typeset

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Kickfoot
Posts: 2
Joined: Sat Jul 23, 2011 9:16 pm

Spaces after in-line Math Expressions not typeset

Post by Kickfoot »

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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Spaces after in-line Math Expressions not typeset

Post by frabjous »

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?
Kickfoot
Posts: 2
Joined: Sat Jul 23, 2011 9:16 pm

Spaces after in-line Math Expressions not typeset

Post by Kickfoot »

Here a minimal example

Code: Select all

\documentclass{amsart}
\begin{document}
A small example with the formula $F=ma$ printed 
\end{document}
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. :oops:

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