- From: Nachiketa Sahoo <address@hidden>
- To: Joris van der Hoeven <address@hidden>
- Cc: address@hidden
- Subject: Re: [TeXmacs] How do I map a keyboard shortcut for export?
- Date: Wed, 27 Jul 2005 11:06:25 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jiQrtHA/pd2oysFiLynjFGEhYcKiCjlF9M4boPrav2GvVGUqz9R6c1rH6GDG5jrW1/sVnjxYOEBGVSvTXg1coOf8ajPTpQkK+WJrsdyvgQ0bE+t82ciar0oTQnlpJ6jjRp2QZBaBgqlnyUKWj1cQIQANToG0AdKguS5NI4Yyerk=
Thanks, that was instructive.
Nachi
On 7/27/05, Joris van der Hoeven <address@hidden> wrote:
>
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.