Quickstart

Writing a LATEX Document with Kile for Beginners
Users of Kile have two choices when starting a new document: they can use the Wizard to begin a new document, select the type of document they would like to create and options such as font size, paper size, and so on; otherwise, they can write the code by hand.

\documentclass[12pt]{article}
\begin{document}
	Here is a bunch of text coded in \LaTeX.
\end{document}

Every document in LATEX begins with the command \documentclass[optional argument]{class}, where class specifies the document type.
Typing in the code example above from the text box gives you the following output:
Compiled text in output
Compiled text in output
Compiled text in output
The brackets that come after the command \documentclass contain the options for the command. The option [12pt] sets the size of the font for your article; if you do not set the font size in the beginning, you can set it later in the text.
Once you have typed in the code example from the box above, you will need to compile your LATEX source code. The easiest way for you to compile LATEX is to use the Build menu, or using the Quickbuild button.
2 is the keyboard shortcut to compile your source code.
You have to save your source code before you can compile; Kile will do this automatically for you.
If your document did not compile, check the log for errors. When using the Quickbuild key, the viewer should be launched automatically; if it does not, look at the log.

Environments
An environment is a segment of text that is managed differently from the rest of the document. For example, you create a report with font size 12, but you need to change your font size for a few sentences. The commands \begin{environment}, \huge and \end{environment} will let you temporarily alter the text inside the environment commands to be size huge.
Changes are only effective from \begin{environment} to \end{environment}. There are no limits as to how many changes you can make inside an environment.
There are many features you can add to your document that will make it more readable and user-friendly. You can add features such as specific fonts, bold, italics, underline to your document, and these commands will end with either an \end command, or at the end of your environment.
\begin{emph}: this command makes text italicized, and is valid until the code comes across a \end{emph}, or another environment. To italicize one word in a sentence, you can use the syntax: this is \emph{my} sentence.
\textbf{I am making this text inside the brackets bold}: this command makes your text bold.
\quote: to create a quote inside your document; begin your quote with \begin{quote} and end it with \end{quote}.
\center: centers the text.
\verse: creates offset text for poems.
\itemize: makes an itemized list.

Using Kile
Now that we have given you some background about how to write code using the LATEX markup language, we will show you how to create a document using Kile step-by-step.
Start Kile.
Select Wizard Quick Start, then choose a format, and set your preferences in the wizard.
Once the wizard has entered text, do some customization to make the document more readable, add a minimum of one quote, some bold text, italics, and a verse to see the difference between the commands.
Save your file, and give it the name intro.tex.
Build your document using 2, or the button labeled LaTeX.
Select ViewDVI.
Check out all your new text.
When you are done viewing your document, click the Editor View button or press E to return to the editor if you are using the embedded viewer, or close the viewer window if you are using a separate viewer.
That's it! You have just created your first LATEX document!
Once you have created your , you will be able to print your document, or change it into a or PDF file if you want. Experiment and have fun!

Files
stands for DeVice Independent file. These files are produced by TEX or LATEX to be read by a driver of some sort on your computer. There are many different types of output that a .dvi can be sent to, such as a printer, or PDF file converter, or your computer screen.

Viewing a
You have already seen how to view a file on the screen by using the ViewDVI button in the toolbar.

Printing a
To print a , you can use the same process that you used to create your document earlier (see Using Kile). At step 7, after clicking ViewDVI, select File Print in the viewer, and if you have your printer properly configured, you will be able to print the .

Converting files
The toolbar gives the options of Converting a to other formats. Once you have created a from your LATEX source code, you will be able to export it to a format of your choice using the toolbar buttons.

Forward Search between Kile and
The forward search functions allow you to jump from your editor directly to the associated position of the or PDF file.
Kile offers a configuration with this option for all LATEX binaries. Go to Settings Configure Kile... Tools Build and always choose the Modern configuration.
To execute a forward search, position the cursor on a line of source code, and click Forward Search to jump to the associated position in the or PDF viewer window.

Inverse Search between Kile and
Inverse search is a very useful feature when you are writing a LATEX document yourself. If everything is set up properly, you can click into 's window with the left mouse button while pressing . After that Kile loads the LATEX source file and jumps to the proper paragraph. To use inverse search, you have to compile your LATEX file with the Modern configuration.
Inverse search cannot work unless:
The source file has been compiled successfully.
knows which editor you would like to use.
With this feature of , a left mouse click while pressing in the or PDF document will result in Kile opening the corresponding LATEX document and attempt to go to the corresponding line. Remember to tell to use Kile as a text editor, in 's menu item Settings Configure Okular... (on the page Editor).
Configuring
Configuring
Configuring

Resolving Errors
If you are trying to use quickbuild, and the viewer does not open, chances are you have an error. If you have an error, it will be visible in the log file / message area, and the summary of the error will be given.
The log file will explain the source of the error in your code. In the editor, you can use the buttons in the toolbar labeled Previous LaTeX Error and Next LaTeX Error to jump to and from errors. The log file always states in which line the error occurred. To view the line where an error occurred, click on the error in the log window, and Kile will take you to the error's line.