How to fix Gedit LaTex Plugin error while saving BibTex

By | November 6, 2013

Gedit (3.4.1) gives the error below while saving a BibTex file (Ubuntu 12.04). The saving works fine, apart from the error popping up.


  Traceback (most recent call last):
  File "/usr/lib/gedit/plugins/latex/", line 116, in decorated_function
  return function(*args, **kw)
  File "/usr/lib/gedit/plugins/latex/bibtex/", line 141, in __parse
  File "/usr/lib/gedit/plugins/latex/", line 493, in remove_markers
  type_record = self._marker_types[marker_type]
  KeyError: 'bibtex-error'

How to fix it?

  1. open /usr/lib/gedit/plugins/latex/bibtex/
  2. change the line - to +
# add grouping controls to toolbar
- self._item_none = Gtk.RadioMenuItem.new_with_label(None, _("No Grouping"))
+ self._item_none = Gtk.RadioMenuItem.new_with_label([], _("No Grouping"))
  self._item_type = Gtk.RadioMenuItem.new_with_label((self._item_none,), 
                    _("Group by Type"))
  self._item_author = Gtk.RadioMenuItem.new_with_label((self._item_none,), 
                    _("Group by Author"))
  self._item_year = Gtk.RadioMenuItem.new_with_label((self._item_none,), 
                    _("Group by Year"))

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.