LyXA keyboard shortcut?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
porton
Posts: 7
Joined: Wed Mar 04, 2015 12:24 am

A keyboard shortcut?

Post by porton »

I need to type \mathfrak{A} often. How to reduce typing when typing it?

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

A keyboard shortcut?

Post by Stefan Kottwitz »

To save typing you could define a macro in your document preamble:

Code: Select all

\newcommand*{\ma}{\mathfrak{A}}
The you just need to type \ma. And you could change the definition at any time, valid for the whole document.

Perhaps there are programmable LyX shortcuts, I just don't have it here right now.

Stefan
LaTeX.org admin
porton
Posts: 7
Joined: Wed Mar 04, 2015 12:24 am

Re: A keyboard shortcut?

Post by porton »

This way I would see "\ma" not the symbol in the formula in the LyX editor. This is certainly not what I want.
StarValkyrie
Posts: 89
Joined: Fri Jan 24, 2014 12:42 am

A keyboard shortcut?

Post by StarValkyrie »

You can program your own shortcut in LyX by going to Tools>Preferences>Editing>Shortcuts and clicking the New button. This page will help you with the syntax.
scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

A keyboard shortcut?

Post by scottkosty »

porton wrote:This way I would see "\ma" not the symbol in the formula in the LyX editor. This is certainly not what I want.
You can also use math macros in LyX. Insert > Math > Macro. Here you can control both the LaTeX and the LyX output.
Post Reply