LyXem dash representation in an edit tab

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
llama
Posts: 12
Joined: Mon Mar 22, 2010 9:40 pm

em dash representation in an edit tab

Post by llama »

Hi,

UserGuide 3.9.1 Hyphens says that em dash can be generated by inserting three dashes in a row: --- . While it looks fine in xdivk, it still looks quite ugly in the edit view: --- . Is there a way to make it look right? Without doing a lot of clicks, that is.

Recommended reading 2024:

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

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

llama
Posts: 12
Joined: Mon Mar 22, 2010 9:40 pm

em dash representation in an edit tab

Post by llama »

I've managed it via a shortcut. See also Help->LyX Functions.
~/.lyx/bind/MyShortcuts.bind:

Code: Select all

# include one of the basic flavours (cua or emacs)
\bind_file	"cua"
# add your own bindings (overwriting the included ones)
\bind "C-j"		"unicode-insert 0x2014"			# insert em dash
\bind "C-h"		"inset-insert vspace defskip"		# insert vertical space (default skip)
Curiously, a "C-;" alternative won't work. Why?
Post Reply