Den 23. aug. 2016 09:06, skrev Wolfgang Engelmann:

LyX Document

Is there a way of getting the ~ in lyx except by using ERT such as
\raisebox{-0.9ex}{\~{ }}50 cm
If I insert ~ directly in the text, it is placed in the pdf output not in the middle, but too high.
Wolfgang

First way - use math mode
type ctrl+m
type ~50
type space to get out of math mode, then " cm"

The math solution works well, but may look wrong if you're using a math font where the numbers look different from numbers in text. Doing that is a bit unusual, but you can end math mode immediately after the "~"


Second way, "Insert->Special character->Symbols..." Pick "Mathematical Operators" and select a "~" from that page. A bit more cumbersome, but math mode is not needed. If you need this symbol often, copy/paste instead of using the menu every time.

Helge Hafting
  • ~ Wolfgang Engelmann

Reply via email to