LaTeX Menu Manager (LaTeX_Menu_Manager.bsh v1.2 by Jakub Holy)
Submitted by Monday, 31 January, 2005 - 12:12
on
When in tex mode create a top-level menu for LaTeX Tools
This macro simplifes the work of people using (La)TeX with jEdit because it makes
the menu of LaTeX Tools available in 1 click instead of 2 - 3.
When a user switches into another buffer it's checked whether it is in the (la)tex mode
and if so LaTeX Tool Plugin's menu is copied to the menu bar next to "Help"
(i.e. a top-most menu is created for it). When the buffer is left the menu is
removed.
The macro could be easily modified for another mode,plugin combination (change the
fields PLUGIN_CLASS and MODES) and with a bit more work it could handle multiple
pairs of modes and plugins.
The macro shall be placed in jEdit startup directory (e.g. /home/me/.jedit/startup/; find it from jEdit: Utilities->Settings Directory->More->startup) to load it automaticaly. If you want to load it manually: 1. Open the macro and in beanshell execute 'eval( textArea.getText() );' or 'source("path/to/macro")' to make the class available 2. In beanshell again execute 'new ModeMenuManager( view );' which will create an instance listening for edit mode changes & setting the menu.
CHANGELOG:
1.1 - show the menu also for the 1st active buffer if it's TeX; so far you need to switch into a non-tex buffer and back
- check that the plugin is available 1.2 - work not only for tex but also for latex mode LIMITATIONS: Only one view is supported so far. If there're more requests I'll work out multiple-view support but otherwise I'll leave it as it is.
If you set edit mode of a buffer manually (in buffer options) the macro won't reflect it until you switch into another buffer and back
LINKS:
Donwload the LaTeX Tools plugin: http://plugins.jedit.org/plugins/?LaTeXTools You should also try a pretty useful latex macro from http://jfmagni.free.fr/doc/help.html or http://community.jedit.org/?q=filestore/download/1830 (Files>Macros)
WARNING:
LaTeX Tools v. 0.5.1 only function with the mode 'tex'. If the buffer mode is 'latex' the plugin believes it's not a TeX file and so e.g. the Structure Browser doesn't work. i sumitted a bug for it. You may correct it yourself - see the plugin bug 1396913 (http://sourceforge.net/tracker/index.php?func=detail&aid=1396913&group_id=588&atid=565475).
CHANGELOG:
1.1 - show the menu also for the 1st active buffer if it's TeX; so far you need to switch into a non-tex buffer and back
- check that the plugin is available 1.2 - work not only for tex but also for latex mode LIMITATIONS: Only one view is supported so far. If there're more requests I'll work out multiple-view support but otherwise I'll leave it as it is.
If you set edit mode of a buffer manually (in buffer options) the macro won't reflect it until you switch into another buffer and back
LINKS:
Donwload the LaTeX Tools plugin: http://plugins.jedit.org/plugins/?LaTeXTools You should also try a pretty useful latex macro from http://jfmagni.free.fr/doc/help.html or http://community.jedit.org/?q=filestore/download/1830 (Files>Macros)
WARNING:
LaTeX Tools v. 0.5.1 only function with the mode 'tex'. If the buffer mode is 'latex' the plugin believes it's not a TeX file and so e.g. the Structure Browser doesn't work. i sumitted a bug for it. You may correct it yourself - see the plugin bug 1396913 (http://sourceforge.net/tracker/index.php?func=detail&aid=1396913&group_id=588&atid=565475).
Updated on 01/04/2006 - 16:47
Downloads: 2197