LATEX Commands

When you type some letters, you can activate this completion mode for LATEX commands and normal words with EditComplete(La)TeX Command or the keyboard shortcut Ctrl+Shift+Space. Kile first reads the letters from the current cursor position to the left and stops at the first non-letter character or a backslash. If this pattern begins with a backslash, Kile will enter completion mode for TEX or LATEX commands. Otherwise it enters normal dictionary mode, where you will not find any LATEX commands. Depending on the chosen mode, a completion box will be opened. You will see all commands or words whose beginning matches the current pattern. You can navigate with the cursor keys through this list and select one entry with Enter or a double click with the mouse.


Completing a LaTeX Command

When you push the Backspace key, the last letter of your pattern will be deleted, and the completion list may grow. On the other hand, if you type another letter it will expand the pattern and the visible word list may shrink.

If you decide not to select any of the suggestions, you can leave this dialog with Esc.

You will see that all commands are written with a short description of their parameters. These descriptions are of course stripped when you select a command. Optionally you can let Kile insert bullets at these places, so that you can easily jump to these positions with EditBulletsNext Bullet and insert the parameter you want.


Completing a LaTeX Command

Go to SettingsConfigure Kile...Kile+Complete to configure one or more of these lists. You can choose different word lists for TEX and LATEX commands and dictionary mode for normal words.

If you choose the option Show Latex commands, the entries of all chosen compressed word list (cwl) files for LATEX command completion are shown in a separate view of Kile's sidebar. You will see which commands are available and what parameters and options must or can be given for a completion. You can also simply select one entry with a mouse click and it will be inserted into the document, with all named parameters and options stripped.


LaTeX commands in the sidebar

As each chosen word list will be shown in a separate view of its own, there could be too many views, so that Kile's main window may be larger than a small screen allows. As this looks very ugly, Kile works with a maximum number of allowed views, which by default is set to 10. If this value is too big for your screen, you should reduce it.