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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10397
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