Skip to Content.
Sympa Menu

texmacs-users - Re: shortcut for tables..

Subject: mailing-list for TeXmacs Users

List archive

Re: shortcut for tables..


Chronological Thread 
  • From: TeXmacs <address@hidden>
  • To: address@hidden
  • Subject: Re: shortcut for tables..
  • Date: Wed, 9 Dec 2020 13:19:19 +0100

Hi Vincent,

Note that the upcoming version contains a simplified interface
for user-defined keyboard shortcuts. When you are inside
a wide block, you can now do 'Focus -> Preferences -> Create shortcut'
in order to associate a keyboard shortcut to this macro.
This shortcut should be visible automatically in the menus
(there was a small problem with wide-block, but that will be corrected).

The above mechanism works for the insertion of macro applications
using the TeXmacs-Scheme primitive 'make'. More generally,
you can associate whatever Scheme command you like to keyboard shortcuts,
assuming that you are willing to do a bit of programming, of course.

Best wishes, --Joris


On Wed, Dec 09, 2020 at 09:52:40AM +0100, Massimiliano Gubinelli wrote:
> Dear Vincent,
>  indeed these shortcuts are quite complex and I never use them. I've gave
> a look and they are defined as:
>   ("table N t" (make 'tabular))
>   ("table N T" (make 'tabular*))
>   ("table N w" (make-wrapped 'wide-tabular))
>   ("table N b" (make 'block))
>   ("table N B" (make 'block*))
>   ("table N W" (make-wrapped 'wide-block))
> in TeXmacs/progs/generic/generic-kbd.scm.
> "table" means Cltr+Cmd+T, then you have to type an *uppercase* N, so
> Shift+N, and then uppercase or lowercase letters according to what you
> want to obtain.
> The representation in the menu is not faithful (this is indeed a bug),
> since it does not make difference between uppercase and lowecase.
> If you want some help you can define
> (kbd-map
>   ("table N" "" "New table (t: tabular, b: block)"))
> So that when you type "table N" you get an hint on the status bar on what
> are the options. It would be really nice to develop this hint system
> further. Seems snappier than reaching the mouse to use the menus...
> Max
>  
>
> On 9. Dec 2020, at 09:34, Vincent Douce Mathoscope
> <[1]address@hidden> wrote:
> hello
> i use very often "blocs" and wanted to try the shortcut but not managed
> to use it
> is it  control-apple-T, then n and b ? no it just writes "nb"
> is it control-apple pressed and while pressed, type T then N then B ?
> doesn't work 
> any idea ?
> thanks
> Vincent
> PS : is there somewhere on the texmacs's vidéos an explanation about
> how
> to customize all the shortcuts ?
> <tnb.png>
>
> ----
> [2]https://lemathoscope.com/
> cours de maths postbac par visio
>
> References
>
> Visible links
> 1. mailto:address@hidden
> 2. https://lemathoscope.com/
> /usr/bin/xdg-open: line 402: htmlview: command not found
> /usr/bin/xdg-open: line 402: firefox: command not found
> /usr/bin/xdg-open: line 402: mozilla: command not found
> /usr/bin/xdg-open: line 402: netscape: command not found



Archive powered by MHonArc 2.6.19.

Top of Page