Erik Butz <erik.b...@googlemail.com> writes:

> Hi all,
>
> I have a somewhat stupid problem, but didn't find a solution in the
> manual or the list archive.
> I want to use the \nbsp macro to generate a '~' symbol for Latex, but
> I don't seem to get it to work correctly in my case.
> I want to write 200~m²
>
> If I do: 200\nbspm^2
> it gets exported as: 200\nbspm$^2$,  so the symbol is not recognized.
>
> If I do: 200\nbsp m^2
> it gets exported as 198~ m$^2$, so in addition to the nbsp there is
> another space at which a linebreak can occur
>
> trying: 200\nbsp{}m^2 in analogy to other commands
> I get: 200~\{\}m$^2$, so the parentheses are not recognized as
> belonging to the command.
>
> I am using the latest org version (just did a git pull and checked
> that the behavior is still there) with emacs 23.1.1
>
> Any hints appreciated.

Hi Erik,

This seems to work for me:

,----[ sample org file ]
| * nbsp
| If I do: one two three four five six seven eight nine ten eleven twelve 
200\nbsp m^2 it gets exported
`----

this exports as 

,----[ latex output ]
| ...
| \label{sec-1}
| 
| If I do: one two three four five six seven eight nine ten eleven twelve 200~ 
m\^{}2 it gets exported
| \end{document}
`----

and when I look at that as a PDF it doesn't break between the 200 and
m^2.  I tried adding x and xx before the 200 and it pushes the entire
thing to the next line.  I can't make it break on a line so 200 is at
the end of one line and m^2 is on the following line.

Does this work for you?

-Bernt

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to