Ubuntu – Gedit’s LaTeX plugin opens a dialog called “Choose Master Document” each time a .tex file is opened

geditlatex

I use gedit-latex-plugin to edit my LaTeX documents. However, each time I open a .tex or .sty file, an annoying dialog labeled "Choose Master Document" pops up, and unless I select the same file again, gedit doesn't enter "LaTeX mode".

Is there a way to disable this dialog or simply always load "LaTeX mode" when a .tex file is opened?

Best Answer

The LaTeX plugin creates a hidden file .NAME.properties.xml (where NAME ist replaced by your .tex file's name) in the same folder as your .tex file. This file contains the settings for the master document, and if it's found the plugin doesn't ask for a master document.

A sample file looks like this:

<?xml version="1.0" ?><properties><property key="MasterFilename" value="my_master_document.tex"/></properties>

There doesn't seem to be a way to switch of this behaviour.

Related Question