Skip to Content.
Sympa Menu

texmacs-users - Re: [TeXmacs] How do I map a keyboard shortcut for export?

Subject: mailing-list for TeXmacs Users

List archive

Re: [TeXmacs] How do I map a keyboard shortcut for export?


Chronological Thread 
  • From: Joris van der Hoeven <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] How do I map a keyboard shortcut for export?
  • Date: Wed, 27 Jul 2005 11:05:25 +0200

On Tue, Jul 26, 2005 at 12:59:37PM -0400, Nachiketa Sahoo wrote:
> How do I map a keyboard shortcut for export to pdf? To the default
> file name is fine.

As a general rule, I would suggest to first read the documentation about
keyboard mappings:

Help -> Manual -> Customizing TeXmacs
Help -> Scheme extensions -> Overview of the scheme extension language

Then, just search for the place in the scheme files where the menu with
the Pdf export is defined :

==============================
(menu-bind save-menu
("Save buffer" (save-buffer))
("Save buffer as" (choose-file save-buffer "Save TeXmacs file" "texmacs"))
---
(promise (export-menu-promise #t))
---
("Export as#Pdf" (choose-file print-to-file "Save pdf file" "pdf"))
("Export as#PostScript"
(choose-file print-to-file "Save postscript file" "postscript")))
==============================

There, you can see the command which you should use:

(choose-file print-to-file "Save pdf file" "pdf")

So, you should put a command like

(kbd-map
("xxx" (choose-file print-to-file "Save pdf file" "pdf")))

somewhere in your Scheme initialization file.

Best wishes, Joris



Archive powered by MHonArc 2.6.19.

Top of Page