Edit -> Preferences -> Plugins -> select latex plugin -> Configure Plugin
Select Tools tab -> click 'New' to make a new profile.
xelatex "$filename"
gnome-open "$filename.pdf"
از اینترنت پیدا کردم و الان دسترسی به ubuntu ندارم که دستوراتش را در بیارم.
http://live.gnome.org/Gedit/LaTeXPlugin/FAQ (http://live.gnome.org/Gedit/LaTeXPlugin/FAQ)
gedit LaTeX Plugin
What do I need to run the plugin?
*
First of all, you need gedit 2.15.2 running (the plugin API in 2.15.1 was different, see http://ftp.acc.umu.se/pub/GNOME/sources/gedit/2.15/gedit-2.15.2.changes)
* The plugin is written in Python 2.5 and relies on PyGTK 2.12.
*
Ensure that you have rubber installed. It is used for automated document compiling.
*
For the LaTeX spell checking to work you need the Enchant bindings for Python (http://pyenchant.sourceforge.net/). The according package is often called python-enchant or similar.