Sample latex test file


















You can view this postscript file using Ghostview in the following way:. You can also view the file having an extension dvi by using xdvi shown below:. For preparing slides for the presentation, one can use and modify the sample template file Download. During compilation of this template Latex file, it is required to have these files also fig1. The final postscript file look like this one Download.

Compilation method is same as that described in previous section. For generating colour slides in postscript format, a sample template file Download is given. One can study this and change it according to one's need.

The files needed during compilation of this colour template file are iitlogo1. You can compile the template file with the files needed and then view the postscript file using GhostView. You are also suggested to do some experiments with the template file to understand the usage of commands. For writing an article in one column format, one can use and modify the sample template file Download. It requires Multidecomp. The title page of the article is also given Download. The postscripts of the article Download and title page Download are also given.

One can study the template file of the article and know about how to prepare an article in one column format. For writing an article in two column format, one can use and modify the sample template file Download. The postscripts of the article Download is also given. One can study the template file of the article and know about how to prepare an article in two column format. It may be asked when writing an article in two column format that the two columns on the last page should be of equal length.

How to do this? One can do this by modifying the last Latex file fed to the main Latex file or the last section in an article. Here in this template file, the last section used is References. Thus, I made changes in the section References. I used Bibtex to generate bibliography. Thus, I did changes in file name having an extension bbl. An environment is simply an area of your document where certain typesetting rules apply.

It is possible and usually necessary to have multiple environments in a document, but it is imperative the document environment is the topmost environment. The following code shows how environments can be used:. There are numerous choices for environments and you will most likely need them as soon as you introduce large parts of mathematics or figures to your document. While it is possible to define your own environments, it is very likely that the environment you desire already exists.

LaTeX already comes with a few predefined environments and even more come in so called packages, which are subject to another lesson later on. The area before our main document is called preamble. This command will automagically create a titlepage for us. If we now compile again, we will see a nicely formatted title page, but we can spot a page number at the bottom of our title page.

We can remove it, by telling LaTeX to hide the page number for our first page. The following lessons will cover how to structure your document and we will then proceed to make use of many features of LaTeX.

Next Lesson: 02 Sections. The basic file layout explained.



0コメント

  • 1000 / 1000