Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
32 views3 pages

Explanation

The document provides sample LaTeX files for writing reports, slides, and articles in one-column and two-column formats. Instructions are given for compiling the files and generating PDF and PostScript outputs. Modifying existing template files is suggested for beginners to learn document preparation in LaTeX.

Uploaded by

Doc Tor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views3 pages

Explanation

The document provides sample LaTeX files for writing reports, slides, and articles in one-column and two-column formats. Instructions are given for compiling the files and generating PDF and PostScript outputs. Modifying existing template files is suggested for beginners to learn document preparation in LaTeX.

Uploaded by

Doc Tor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Explanation

I am distributing sample Latex files for the Report, Slides and Paper in one column and two column
format. It will help you in your documentation in Latex.

Latex files for Report writing:

For writing reports, we can make a latex file can be considered as main file which takes
input from other files. The format of this Latex file is given here (Download). It takes inputs from
various files like for an Abstract, it will take input from file abstract.tex. For chapters it will take input
from different Latex files meant for that chapter only. For an example, the command
\input{Algorithm.tex} will take input from file Algorithm.tex. For taking input from files, there is a
command included in main Latex file. This command may be either \input{File_Name.tex} or
\include{File_Name}. For an examplem, my Latex main file takes abstract.tex, Introduction.tex,
Parallel.tex, Implementation_Details.tex, Performance.tex, Algorithm.tex, FutureWork.tex,
acknow.tex and ref.tex. These Latex files need some other files like figures (fig1.ps, fig2.ps, fig3.ps,
fig4.ps, fig5.ps, fig6.ps, fig7.ps, arch.ps, lgrain.ps and iitlogo1.ps) and other files (iitblogo.mf and
iitblogo.tfm). The main Latex file (here in this case is Report.tex) can be compiled by giving following
command:

latex Main_file_name.tex

and it generates a file named as Main_file_name.dvi. By using this, we can produce postscript file by
giving the following command on the command prompt:

dvips -o Main_file_name.ps Main_file_name.dvi

For my files, I issued the command latex Report.tex. It generated a file named as Report.dvi. Using
this file, a postscript file Report.ps was produced by using following command:

dvips -o Report.ps Report.dvi

Thus, I generated the postscript file of my report using the above given procedure. For an example
purpose, I am giving postscript file of my report (Download).
NOTE: Please compile latex file two times so that the list of figures, list of tables and table of content
can be appeared in main postscript file.

For beginners: Copy all the Latex files (having an extension tex) and files having extensions tfm and
mf in a directory. Now, change the text of the Latex files at all the places you want. Now compile it
using the above defined procedure and generate postscript file. You can view this postscript file
using Ghostview in the following way:

gv File_Name.ps

e.g. gv Report.ps

You can also view the file having an extension dvi by using xdvi shown below:

xdvi File_Name.dvi

e.g. xdvi Report.dvi

Latex file for Slides Preparation

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.ps, fig2.ps, fig3.ps, fig4.ps, fig5.ps, fig6.ps, fig7.ps, arch.ps, lgrain.ps and iitlogo1.ps). 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.ps, Multidec.ps, original.ps, part.ps,
part1.ps and part2.ps. 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.

Latex file for writing article in one column format


For writing an article in one column format, one can use and modify the sample template
file (Download). It requires Multidecomp.ps and fig6.ps during compilation. 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.

Latex file for writing article in two column format

For writing an article in two column format, one can use and modify the sample template
file (Download). It requires Multidecomp.ps and fig6.ps during compilation. 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. Here it is hpcPaper2Col.bbl. The modified file is hpcPaper2ColMod.bbl. The changes
introduced to the hpcPaper2Col.bbl file is putting \vspace*{6.5in} and \pagebreak at the appropriate
place. Here it is noted that the size field (6.5in) in \vspace*{6.5in} command can be changed
according to the need. You can adjust size field parameter in the way you want. If there is only one
Latex file having all the documentation then these commands can be put in between the text of the
last section at an appropriate place.

In two column format, page wide figures and page wide tables can also be incorporated
using the \begin{figure*} and \begin{table*} invironment. A detailed help is given in the section
Online Help.

You might also like