How to add icons for frequently used menu items such as Edit -> Paste from -> BibTeX
into the mode icon bar (I hide main toolbar to save space)? I looked into https://www.texmacs.org/tmweb/manual/webman-scheme.en.html but find no clear solutions.
Add custom icons for menu items?
From edit-menu.scm
I find
(-> "Paste from"
(link clipboard-paste-import-menu)
and
(tm-define (clipboard-paste-import-menu)
(clipboard-extern-menu converters-to-special clipboard-paste-import))
But there is no further definition of the 3 actions there.
For LaTeX, I managed to create a keyboard shortcut as follows.
("M-A-v" (clipboard-paste-import "latex" "primary"))
However, replacing latex
by bibtex
does not work for BibTeX in the internal bibliography database, as the pasted result is a bib-entry
rather than db-entry
. Something else is unknown here.
You can get the list of converters that appear in the Paste from
menu by issuing
(converters-to-special "texmacs-snippet" "-snippet" #t)
There we find that the bibtex format is called tmbib
.
The below seems to work in the internal bibliography database:
(clipboard-paste-import "tmbib" "primary")