Gedit Goes LaTeX (3) – Customize Autocompletion

Today I’m going to tell you, how you can customize the autocompletion feature of the Gedit LaTeXPlugin (LP).
If you use the command \usepackage{XY}, the LP will look for a file with the name XY in the following directory:

.gnome2/gedit/plugins/LaTeXPlugin/completion/

So if you want autocompletion for the package XY, you have to tell the LP the commands that the package XY contains of.
An example:
Assume you use the package “latexsym” and you know that it contains the commands “\Join” and “\sqsupset” (which draw special symbols), then you would do the following:
1) go to the directory:

cd .gnome2/gedit/plugins/LaTeXPlugin/completion

2) make a new file with the name “latexsym” using gedit:

gedit latexsym

3) enter the following lines in gedit:

Join
sqsupset

(Note that you must not enter the “” before the commands)
4) Save the file and exit gedit.

If you include the package “latexsym” in your latex file by inserting

\usepackage{latexsym}

in the preamble of your latex file, the autocompletion of “\Join” and “\sqsupset” should now work.

Have a nice day,
Simon



2 Responses to “Gedit Goes LaTeX (3) – Customize Autocompletion”

  1.   jack Says:

    thanks..

  2.   schlasim Says:

    you are welcome.

Leave a Reply