TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In LyX, if I go to the insert delimiters menu, I can insert a norm. Is there way to attach a shortcut to this?

By norm, I am referring to the double bar on each side.

share|improve this question
up vote 5 down vote accepted
  1. Go to Preferences > Editing > Shortcuts.
  2. Click on "New".
  3. Under "Function", enter "math-delim Vert Vert" (note the capital V's).
  4. Click on the blank rectangle and then use the key combination that you want for a shortcut.
  5. Click OK.
  6. Click Apply.

In general, to find the function that you need to enter, use LyX with debug mode. If you are using Ubuntu, one way to do this is to run "lyx -dbg action" instead of "lyx". Now, all of the functions will be printed to the terminal. So when you go to the insert delimiters menu and click on the norm delimiters, the terminal will give you the function that is being run.

share|improve this answer
The expression "math-delim | |" also works. Actually it has already been assigned the shortcut Alt-M | in my LyX version. – e-birk Jan 31 '13 at 16:58
@e-birk That is useful as well. I think both notations are common for the norm. I was under the impression that the user wanted double bars on each side. – scottkosty Jan 31 '13 at 19:57
True, the number of bars was not specified and I was only thinking of one bar. "math-delim Vert Vert" gives double bars while "math-delim | |" gives single bars. – e-birk Feb 2 '13 at 10:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.