Subject: mailing-list for TeXmacs Users
List archive
From : "chowdhary, kenny" <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular
- Date: Tue, 10 Jul 2012 10:43:20 -0700
Cool! thanks. So if I edit the keyboard shortcuts in the generic-kbd.scm file, will it be incorporated into texmacs upon the next startup?
On Tue, Jul 10, 2012 at 1:14 AM, Miguel de Benito Delgado <address@hidden> wrote:
Hi,I meant you have examples inside the application bundle TeXmacs.app. Right click->show bundle contents, then go to Contents->Resources->share->TeXmacs->progs->genericThere you'll find many examples inside generic-kbd.scm. It's mostly stuff like:(kbd-map("M-A-x" (do-something)))Each item in the list of arguments to kbd-map is an assignment, each assignment consists of one list of keystrokes (with modifiers and keys being joined by dashes) and a scheme command to be executed. You can insert a tag into the document using (make 'name-of-tag). If you want to insert an equation array, because the name of the tag is "eqnarray" you can do the following:(kbd-map("M-C-7" (make 'eqnarray)))Keystrokes can be overloaded: just redefine them by preceding the definition in the (kbd-map) block with (:mode somecheckhere). I like to define this (in my-init-texmacs.scm):(kbd-map(:mode in-math?)("$" (make 'text)))But if you want to redefine keys you'll want to be sure that the original definitions are loaded first (or they might overwrite yours when they are). This is done with stuff like(use-modules (math math-kbd))Best,________________
Miguel de Benito.
On Tue, Jul 10, 2012 at 1:48 AM, chowdhary, kenny <address@hidden> wrote:Hi,
I grep'd the source directories and all I found was the file
.TeXmacs/system/cache/doc_cache
with kbd-map and I couldn't really make out what the code meant. I am not very knowledgeable about how to create a kbd-map assignment, but this is what I want to do:
I would like Control + Command + 7 to give me an equation array. How would I go about doing this, from the bottom up. Just one simple example and I'll be good.
Thanks,
KOn Mon, Jul 9, 2012 at 4:21 PM, Miguel de Benito Delgado <address@hidden> wrote:Hi,
the best way is to copy some examples from TeXmacs' own source. You can find the relevant files inside the application folder (I understand you are running MacOS X) after some grepping for kbd-map.
One nice thing to keep in mind: anything appearing in a menu or button is a scheme (set of) command(s). Copy those literally in a kbd-map assignment and you'll see the shortcut in the menu.
Sorry for the imprecise help, I'm not on my computer.
Best,
___________________
Miguel de Benito.Am 09.07.2012 22:22 schrieb "chowdhary, kenny" <address@hidden>:Hello Users,
I just started using texmacs for Mac OSX (formerly a user of texmacs on linux) and I was wondering if there was a keyboard shortcut for the \tabular function in the Mac setting. In widows, it is Esc+T->N->t. Does anyone have an example of how to customize the keyboard shortcuts? There is only minimal instructions in the help section.
Thanks,
K
--
Kenny Chowdhary
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, arshpreet singh, 07/09/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, chowdhary, kenny, 07/09/2012
- <Possible follow-up(s)>
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, Miguel de Benito Delgado, 07/10/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, chowdhary, kenny, 07/10/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, Miguel de Benito Delgado, 07/10/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, chowdhary, kenny, 07/10/2012
- Message not available
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, chowdhary, kenny, 07/10/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, Miguel de Benito Delgado, 07/25/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, Adrian S., 07/25/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, chowdhary, kenny, 07/10/2012
- Message not available
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, chowdhary, kenny, 07/10/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, Miguel de Benito Delgado, 07/10/2012
- Re: [TeXmacs] Keyboard shortcuts on Mac OSX for tabular, chowdhary, kenny, 07/10/2012
Archive powered by MHonArc 2.6.19.