As I’ve been pasting from LaTeX quite often recently, I wonder if there a way to avoid the tedious
Edit –> Paste from –> LaTeX cycle by using a keyboard shortcut, say
⌘-F7 on macOS).
Following @pireddag’s advice given in http://forum.texmacs.cn/t/inserting-footnotes-via-keyboard-shortcuts/1025/2, I ran
ack "Paste from" on
.../TeXmacs/progs/* to find it mentioned in three different files:
texmacs/keyboard/prefix-kbd.scm 335: ("pastefrom" "" "Paste from (1, 2, 3, *:other)") texmacs/menus/edit-menu.scm 90: (-> "Paste from" utils/edit/selections.scm 29: (:argument from "Paste from")
Having had a look at these files, I found no code that could give me a clue how
Paste from –> LaTeX is actually called. Running
ack "clipboard-paste-import-menu", which is mentioned in ll. 32 and 91 of
texmacs/menus/edit-menu.scm 32:(tm-define (clipboard-paste-import-menu) 91: (link clipboard-paste-import-menu)
and brought me back to where I began.
So, does anyone have an idea where how
Paste from –> LaTeX is actually called. Any help appreciated.