texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] copy LaTeX to clipboard Re: suggestions on how to add


From: Stephen Crowley
Subject: Re: [Texmacs-dev] copy LaTeX to clipboard Re: suggestions on how to add a feature
Date: Mon, 20 Jul 2015 19:57:14 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

Hi François, thanks for the helpful advice, TeXmacs didn't like the syntax

/usr/share/TeXmacs/progs/kernel/gui/kbd-define.scm:226:7: In procedure 
kbd-map-pre-one in expression (texmacs-error "kbd-map-pre-one" "Bad keymap in: 
~S" ...):
/usr/share/TeXmacs/progs/kernel/gui/kbd-define.scm:226:7: Bad keymap in: "C-l"

so I looked in the source and changed it to what I thought was correct

(kbd-map
  ("C-L" (clipboard-copy-export "latex" "primary")))

and now texmacs starts but still it does not do a LaTeX copy when I press Ctrl-L

I am using Revision: 9749 if it matters

any ideas?

much appreciative,
Stephen


p.s. the footer should be gone.  ;-)

On 07/20/2015 03:09 AM, François Poulain wrote:
> Hi,
> 
> Le Sun, 19 Jul 2015 12:27:45 -0500,
> Stephen Crowley <address@hidden> a écrit :
> 
>> any hints where to look? scheme is not my forte ... I am trying to
>> bind a key to the "Copy to LaTeX" function...
> 
> I guess you should call something like (clipboard-copy-export "latex"
> "primary"). So, in order to define a shortcut you have to call 
> 
> (kbd-map
>   "C-L"
>   (clipboard-copy-export "latex" "primary"))
> 
> at any time in your TeXmacs session (with "C-L" meaning "Ctrl + L").
> Probably you will want to add it to the
> ~/.TeXmacs/progs/my-init-texmacs.scm file.
> 
> I don't have a TeXmacs under the hand, so I did not tested it.
> 
> Adding an entry to the contextual menu is a bit more difficult.
> 
> Good luck
> François
> 
> PS: your body's footer is harmful.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]