Tuesday, September 21, 2010

Using kile On School/Faculty Unix Machines

A Simple Latex File

Tex is a computer program that can typeset text and mathematical formulae. Latex is a markup language that uses tex as its typesetting engine. Basically this allows the user to embed commands within a text file that can be interpreted by latex to produce a high quality typeset documents. Kile is a latex integrated development environment (IDE), that means that you can both edit text files and produce typeset documents all in one program, it is available for free as part of any linux distribution. As it is written in Qt it is also available on windows. The interface is similar to that found on windows based IDEs, so learning latex on unix should be the same as learning it on windows.

Open up the program 'kile' from the menu bar. If you cannot find it open a terminal and type 'kile' followed by a return carriage. Once the program has opened, go the file menu and select new. At first select empty document, you can try using the wizard or standard templates at a later date.

Latex commands are always preceded by a backslash, there are predefined commands and the user may also specify their own. There is also a certain structure that must be adhered to. Two of the most common commands are \begin{} and \end{}, that signify the start and end of an environment. Like a good story all latex files need a start and an end, and the document environment signifies the start and end of a document, so all files require \begin{document} and \end{document}. The other requirement is some information about the structure of the document that you are creating. This information must be presented in the preamble (before \begin{document}) with the \documentclass{} command. There are certain default options that can be used, article is a popular choice. For the most simple of latex files enter the following text:

\documentclass{article}

\begin{document}
Some text...
\end{document}
and then save the file in a new directory. Call the file something like "test.tex", with the file ending ".tex".

Once the "tex" has been written, it must be compiled in order to generate a file that can be printed or viewed on screen. A standard file type to convert to is pdf. There are at least 2 ways to generate a pdf, one is to go directly from the latex file to a pdf (using the latexpdf command) or and another is by converting from tex->dvi->ps->pdf. Obviously the second method sounds more cumbersome but if you want to use packages such as pstricks or psfrag to make your document look nice you must use the second method. Luckily kile has a "QuickBuild" option that can run multiple latex commands in one go. Go to Settings->Configure kile and select Tools->Build->QuickBuild, then select Latex->DVItoPS->PStoPDF->ViewPDF from the configuration options. You may need to change the configuration of ViewPDF to acroread.

Now press quick build to preview your latex document...

26 comments:

  1. There are lots of information about latest technology and how to get trained in them, like Shell Scripting Training in Chennai have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get trained in future technologies(Shell Scripting Training). By the way you are running a great blog. Thanks for sharing this.

    Shell Scripting Training in Chennai | Shell Scripting Training

    ReplyDelete
  2. Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    UNIX Training in Chennai

    ReplyDelete
  3. Big data training in bangalore

    I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

    ReplyDelete
  4. Thank you for benefiting from time to focus on this kind of, I feel firmly about it and also really like comprehending far more with this particular subject matter. In case doable, when you get know-how, is it possible to thoughts modernizing your site together with far more details? It’s extremely useful to me
    java training in chennai | java training in bangalore

    java online training | java training in pune

    java training in chennai | java training in bangalore

    ReplyDelete
  5. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    Data Science training in marathahalli
    Data Science training in btm
    Data Science training in rajaji nagar
    Data Science training in chennai
    Data Science training in kalyan nagar
    Data Science training in electronic city
    Data Science training in USA

    ReplyDelete
  6. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.

    rpa training in Chennai | rpa training in pune

    rpa training in tambaram | rpa training in sholinganallur

    rpa training in Chennai | rpa training in velachery

    rpa online training | rpa training in bangalore

    ReplyDelete
  7. Nice post. By reading your blog, i get inspired and this provides some useful information. Thank you for posting this exclusive post for our vision. 
    Python training in marathahalli
    Python training in pune
    AWS Training in chennai

    ReplyDelete
  8. I likable the posts and offbeat format you've got here! I’d wish many thanks for sharing your expertise and also the time it took to post!!
    python training in tambaram
    python training in annanagar
    python training in Bangalore

    ReplyDelete
  9. Very good brief and this post helped me alot. Say thank you I searching for your facts. Thanks for sharing with us!
    DevOps online Training

    ReplyDelete
  10. I really love the theme/design of your website. Do you ever run into any browser compatibility problems? A small number of my blog audience have complained about my site not working correctly in Explorer but looks great in Safari. Do you have any ideas to help fix this problem?
    python Course in Pune
    python Course institute in Chennai
    python Training institute in Bangalore

    ReplyDelete
  11. Awesome..You have clearly explained …Its very useful for me to know about new things..Keep on blogging..
    AWS Training in Bangalore

    AWS Training in pune

    ReplyDelete
  12. Such a great information for blogger i am a professional blogger thanks…

    Learn Best Microsoft Training in Bangalore from Experts. Softgen Infotech offers the Best Microsoft Training Course.100% Placement Assistance, Live Classroom Sessions, Only Technical Profiles, 24x7 Lab Infrastructure Support.

    ReplyDelete
  13. It was a very good experience,Faculty members are very knowledgeable and cooperative. Specially My trainer teaching more as he focused upon practical rather than theory. All together it was an enlightening and informative course.

    microsoft training and placement support in bangalore

    microsoft training free demo class

    microsoft placement bangalore

    microsoft online training

    microsoft classroom training

    microsoft training with lab facilities

    microsoft training with certified and experienced trainers

    ReplyDelete
  14. Internship training is one of the best opportunities to gain practical knowledge. An internship in chennai for cse is the best place to learn a lot of information related to practical more than the theoretical.

    ReplyDelete
  15. Thanks for sharing this valuable information to our vision. You have posted a worthy blog keep sharing.

    After seeing your article I want to say that the presentation is very good and also a well-written article with some very good information

    Java training in Chennai

    Java training in Bangalore

    Java training in Hyderabad

    Java Training in Coimbatore

    Java Online Training

    ReplyDelete
  16. Thanks for sharing this valuable information to our vision. You have posted a worthy blog keep sharing.

    After seeing your article I want to say that the presentation is very good and also a well-written article with some very good information

    Java training in Chennai

    Java training in Bangalore

    Java training in Hyderabad

    Java Training in Coimbatore

    Java Online Training

    ReplyDelete
  17. Very Informative blog thank you for sharing. Keep sharing.

    Best software training institute in Chennai. Make your career development the best by learning software courses.

    devops training in chennai
    msbi training in chennai
    php training in chennai

    ReplyDelete
  18. This post is so interactive and informative.keep update more information...
    SEO Training in Tambarama
    SEO Training in Chennai

    ReplyDelete