This is a read-only archive. Find the latest Linux articles, documentation, and answers at the new Linux.com!

Linux.com

Feature: Desktop Software

Kile rationalizes LaTeX

By Bruce Byfield on November 15, 2007 (9:00:00 AM)

Share    Print    Comments   

You can think of Kile as an IDE for the LaTeX document layout system. Instead of requiring you to learn a considerable amount of markup language, as LaTeX itself does, or providing you with a graphical interface that hides you from the complexity, as Lyx does, Kile automates the process of working with LaTeX while keeping the markup visible. This arrangement makes Kile an ideal way for beginners to learn LaTeX, as well as a convenient and efficient way for more advanced users to work with LaTeX.

Designed for KDE, Kile is available directly from many major distributions' repositories. However, you should also install viewers for DVI, PostScript and PDF, such as KDVI, KGhostview, and KPDF, so that you can view Kile's most common and useful output file formats.

The interface

The basics of Kile are mostly obvious as soon as the program opens. On the left is a multipurpose pane. Its 10 views are available from buttons to its right, with the button for the current view expanded and displaying text. The default view is a file manager, from which you can click on a .tex file to open it in the main editing window. However, you can use the same pane to show a tree view of the document structure or insert a variety of symbols, including special characters, arrows, relationships, delimiters, and Greek characters, as well as advanced LaTeX commands.

To the right of the multipurpose pane is the main editing pane, with a tab for each open document. The main editing pane displays markup and content, with a tree structure for collapsing or expanding different parts of the document. Additional markup is available from the toolbar, which sports many buttons reminiscent of those in a word processor, such as those for font weights and lists, and others for basic formulas and for searching for errors after an unsuccessful effort to compile output.

Below the editing pane is a third pane with tabs for log messages about the document you are building and compile errors for output, as well as a tab for a console.

Work flow

Starting a document in Kile is similar to starting one in KWord. When you select File - > New, you can choose from a number of basic document templates, ranging from an article or book to a letter or a presentation constructed using Latex-Beamer. Alternatively, you can open an empty document, either defining its basic characteristics through the Quick Start dialog or beginning with a genuinely blank document by pressing the Cancel button in the dialog -- a choice that only those comfortable with LaTeX should try, since even basic document structure is not provided with this choice.

Once the document is defined, adding content is much the same as in a word processor. You can check spelling by selecting Tools -> Spelling, or get a word count from File -> Statistics, in which your content is carefully delineated separately from LaTeX commands and environment definitions. You can create a master document to make working on a long piece of work easier by subdividing it into a number of smaller files.

The main difference is the visibility of markup, and the lack of any direct WYSIWYG display. If you want to see what your document will look like at any point, you need to compile it (see below), then select Build -> View -> ViewDVI or press Alt-3 to open it in a DVI viewer. However, what may surprise new users is how quickly they stop worrying about the exact look of the document -- the longer they use Kile, the truer the LaTeX user's credo that the system helps them to focus on content seems to become.

Another difference is that major structural elements ranging from paragraphs and sections through to tables of contents and bibliographical elements are built with structures entered from the LaTeX menu or the toolbar buttons. This arrangement helps new users to see how a LaTeX document is constructed, and, for more experienced users, has the advantage of being less error-prone than manual typing of markup.

When you are finished entering content or wish to see what the document looks like so far, you must save the document, then compile it from the Build -> Compile submenu. Kile outputs to a number of formats, ranging from TeX and LaTeX to DocBook, HTML, and PDF (the format use to display a LaTeX-Beamer presentation). Alternatively, you can select File -> Print to save the document to PostScript, or to print to paper.

You can see the results of your compile in the bottom pane. If the document contains any errors or warnings, you can use the items in the bottom of the Build menu or the buttons on the toolbar to skip directly to each error so that you can correct them. However, before you do, you might want to enable View -> Show Line Numbers to keep yourself oriented. After you have corrected any errors, compile again, repeating the process until Kile reports no errors.

Especially when you are first starting out, you should consider compiling often, particularly when you are trying new formats. That way, you learn what you are doing and avoid having to correct countless errors of the same type.

Limitations and advantages

If you are a new user, the advantage of Kile is that it can quickly help you gain a basic competence in LaTeX. Instead of having to remember or look up commands, you can enter them from a menu. Similarly, instead of worrying about whether you have created a basic document correctly, you can see from the template exactly what the basic structure should be, as well as the various options available to you.

However, what Kile (or to be fair, any program) cannot do is reduce the overall complexity of LaTeX. Even when commands are available from the left pane or a menu, LaTex remains a complicated program that takes time to master. In fact, the available options can be overwhelming, even in Kile. But what Kile does do is give you a context in which you can easily expand your knowledge of LaTeX, free of any worry about syntax errors or the unfocused feeling that many users get when confronted with such complexity.

In effect, Kile does for LaTeX what LaTeX does for word processing: It allows you to concentrate on your immediate concerns, ignoring the looming complexity until you have need of it. It's a rationalization of LaTeX that preserves much of the intent of LaTeX while making the system more accessible to everyone.

Bruce Byfield is a computer journalist who writes regularly for Linux.com.

Share    Print    Comments   

Comments

on Kile rationalizes LaTeX

Note: Comments are owned by the poster. We are not responsible for their content.

Kile rationalizes LaTeX

Posted by: Anonymous [ip: 220.227.207.11] on November 15, 2007 09:53 AM
Why not TeXmaker?

#

Kile rationalizes LaTeX

Posted by: Anonymous [ip: 193.166.94.185] on November 15, 2007 11:51 AM
Nice article. However, I think LyX is a better option for absolute beginners because it hides the complexity of LaTeX even better than Kile. The disadvantage of LyX is that it hides LaTeX *too* well and you don't really learn LaTeX by writing documents with LyX. But LyX can help beginners to convince themselves that LaTeX really makes your documents look much more beautiful and more professional than normal wordprocessors.

Once you're convinced, you might want to learn LaTeX. And then Kile (or Texmaker, which is very similar to Kile) becomes the tool you need. But to learn LaTeX, even if you use Kile to make the learning curve more gently sloping, you need to read quite a lot of LaTeX-related documentation. The difference between Kile and LyX is that you can start writing documents with LyX without knowing anything of LaTeX.

#

Kile rationalizes LaTeX

Posted by: Anonymous [ip: 134.2.129.104] on November 15, 2007 12:41 PM
I like the features of Kile, but it often crashes and uses 99% CPU power .... ;.(

#

A good alternative!

Posted by: Anonymous [ip: 124.43.224.220] on November 15, 2007 02:53 PM
gedit + <a href="http://live.gnome.org/Gedit/LaTeXPlugin">LaTeX Plugin</a>

Much simpler and light weight.

And uses GTK+. :)

#

Since when was using gtk a good thing?

Posted by: Anonymous [ip: 137.222.245.36] on November 15, 2007 10:59 PM
Why would gtk+ be a good thing?

remember that not everyone uses the gnome desktop and that kde users resent the ugliness of the gtk apps they have to use....

As far as I am concerned, kile using kde is a good thing :)

#

vim + LaTeX

Posted by: Anonymous [ip: 169.233.25.105] on November 15, 2007 06:18 PM
I already extensively used vim and picked up LaTeX (insofar as math and physics concern me) in two days.

Kile = bloat.

#

emacs + auctex + preview + reftex

Posted by: Anonymous [ip: 87.68.170.237] on November 15, 2007 10:17 PM
Kile is nice - I recommend it to LaTeX newbies. But the one true editor - emacs - is still unmatched, when used with auctex, preview mode, and reftex.

#

Re: emacs + auctex + preview + reftex

Posted by: Anonymous [ip: 169.233.25.105] on November 21, 2007 04:03 AM
s/editor/bloated wannabe operating system/

#

Kile rationalizes LaTeX

Posted by: Anonymous [ip: 24.5.198.30] on November 16, 2007 05:49 AM
Unbelievable; a LaTeX flame war, dragging in all sorts of things. I've been using TeX/LaTex for over 10 years and consider myself a very advanced user. My primary editing platform is Emacs. I never took a liking to any of the other LaTeX "IDEs", especially LyX. LyX allows very little in the way of the fine-tuning that allows you to produce polished, professional LaTeX documents, and it hides everything, forcing you to learn nothing. I discovered Kile about two years ago, and I now use it more than I use Emacs (for LaTeX editing). It's an excellent program, and very nicely integrated into the KDE desktop (the gnome desktop comment above made _no_ sense). It is far from being bloat-ware; LaTeX is complex and feature-rich and Kile reflects this. I also have never experienced frequent crashes with Kile; check your installation, because that's most likely where your problem lies.

#

This story has been archived. Comments can no longer be posted.



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya