Skip to content
A bracket completion plugin for the gedit text editor.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

LaTeX Brackets is a plugin for the gedit text editor that completes common LaTeX brackets by automatically inserting the appropriate closing bracket whenever a supported opening bracket is typed. It takes its inspiration from the bracket completion plugin that is provided by the gedit-plugins package.

To install the plugin in GNOME 2, move latex-brackets.gedit-plugin and to the ~/.gnome2/gedit/plugins directory. To install it in GNOME 3, move latex-brackets.plugin and to the ~/.local/share/gedit/plugins directory. The plugin can then be enabled in gedit's Preferences.

The supported opening brackets are

  • {,
  • `,
  • $,
  • \(,
  • \[

and all sizes (\bigl, \Bigl, \biggl, \Biggl and \left) of

  • (
  • [,
  • \{,
  • \langle,
  • \lbrace,
  • \lceil,
  • \lfloor,
  • \lgroup,
  • \lmoustache,
  • \lvert,
  • \lVert.

Some of these brackets require the amsmath package.

LaTeX Brackets also provides some convenient keyboard features. If the cursor is between a pair of opening and closing brackets then the backspace key removes the whole pair. If the cursor is directly before a closing bracket then the delete key removes the bracket and the tab key moves the cursor past the bracket.

Something went wrong with that request. Please try again.