Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] shorcuts

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] shorcuts


Chronological Thread 
  • From: Vincent Douce Mathoscope <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] shorcuts
  • Date: Wed, 25 Oct 2017 19:19:35 +0200

thank you Darcy
wonderful !
i can now creat my own shortcuts for [keyboard]->latex instruction
could i ask you one more thing ?
could you give me an example [keyboard]->menu item
for example, menu "file", "export...", "html"
i had a look on http://www.texmacs.org/tmweb/manual/webman-scheme.en.html as Marc advised me but could not figure me out how to catch a menu item..
i tried this :
––––––––––––––––––––––––––
;; doesn't work thought A-q neither A-Q neither A-f does not seem to exist in https://github.com/texmacs/texmacs/blob/master/src/TeXmacs/progs/generic/generic-kbd.scm
(kbd-map  
  ("A-q" (make 'dfrac));;does not work
  ("A-Q" (make 'dfrac));;does not work
  ("C-u" (make 'dfrac))
  ("C-i" (make 'dfrac))
  ("A-f" (make 'dfrac)));;does not work
(kbd-map
  (:profile macos)
("macos S-l" (Export Html...)))
–––––––––––––––––––––––––––––
Vincent

Le 25 oct. 2017 à 17:46, Darcy Shen <address@hidden> a écrit :

Sorry, I just tried and found it not working.

(kbd-map  ("C-f" (make 'dfrac)))

since Ctrl-F is a pre-defined shortcut in TeXmacs, for some reason(a bug?), it cannot be overrided.

Just try:

(kbd-map  ("C-u" (make 'dfrac)))

it works at least on my Debian Unstable.

And to edit the `~/.TeXmacs/progs/my-init-texmacs.scm` (just for *nix)

You may open and edit it in TeXmacs via:

1. enable the Developer menu: Tool -> Developer
2. use Developer -> Open my-init-texmacs.scm



---- On Tue, 24 Oct 2017 19:29:53 +0800 Vincent Douce Mathoscope <address@hidden> wrote ----
ok thank you Darcy
just to be sure :
if i dont have installed the sources, can i juste craeate a my-init-texmacs.scm file in   ~/.TeXmacs and put there your code ?
because i just tried this without success
i remember installing the sources was very long, i made it once with the help of Miguel..
i am sincerely not sure i can reach it alone
but i will try these days
Vincent

Le 24 oct. 2017 à 12:40, Darcy Shen <address@hidden> a écrit :

for \dfrac  

(kbd-map  ("C-f" (make 'dfrac)))

and you need to put the code snippet into `~/.TeXmacs/progs/my-init-texmacs.scm`.



---- On Tue, 24 Oct 2017 05:58:52 +0800 Vincent Douce Mathoscope <address@hidden> wrote ----
hi everyone
is it possible to create shortcuts (and how can i do ?) so that :
- ctfl F creates an \dfrac instead of a \frac
- ctfl shift L or any other shortcut save a html version of the opened document at the same location with "replace yes" if necessary
- ctfl shift X or any other shortcut save a latex version of the opened document at the same location with "replace yes" if necessary
- ctfl shift P or any other shortcut save a pdf version of the opened document at the same location with "replace yes" if necessary
it would make me gain so much time.........
thanks
––––––––––––––––––––––––––
Vincent Douce
06=°13=°11=°07=°26
Bagnères de Bigorre 65200




––––––––––––––––––––––––––
Vincent Douce
Mathoscope, éveilleur de mathématiques
http://mathoscope.xyz
06=°13=°11=°07=°26
Bagnères de Bigorre 65200




––––––––––––––––––––––––––
Vincent Douce
Mathoscope, éveilleur de mathématiques
http://mathoscope.xyz
06=°13=°11=°07=°26
Bagnères de Bigorre 65200




Archive powered by MHonArc 2.6.19.

Top of Page