80 likes | 219 Views
Usage of Tex. Hyun Hee Shim Department of Physics Kangwon National University. Introduction. Tex is a computer language designed for use in typesetting. It is very suitable for.
E N D
Usage of Tex Hyun Hee Shim Department of Physics Kangwon National University
Introduction • Tex is a computer language designed for use in typesetting. • It is very suitable for : Producing scientific and mathematical documents. • Advantage : Even complex structures can be generated easily. :The typesetting of mathematical formulae is easy. :Professionally crafted layouts are available.
Compiling the input file 1. Edit/create your LaTex input file. Input file filename.tex 2. Your file save (filename.tex) Save 3. After file save, you run your input file. (latex filename.tex) latex filename.tex DVI file 4. You can obtain the DVI file. Xdvi filename.dvi View 5. You may view the DVI file.
Input files structure When LaTex processes an input file, it expects it to follow a certain structure. Thus every input file must build such as following structure. Structure : This specifies what sort of document you intend to write. \documentclass{…….} \usepackage{……..} \begin{document} \end{document} : This specifies the style of the whole document. : This command represent the starting the body of the text. :This command represent the ending the body of the text.
Type of document When we process the input file,we need information for type of document. \documentclass[options]{class} : Here class specifies the type of document to be create. : The options parameter customizes the behavior of the document class. (Example) \documentclass[11pt, twoside, a4paper]{article} The document as article with a base font size of 11 points and to produce a layout suitable for double sided printing on A4 paper.
{class} - article : for articles in scientific journals, presentations, …. - report : for longer report containing several chapters, small book, …. - book : for real book - slides : for slides [option]The option have to be separated by commas. - 10pt(default), 11pt, 12pt : Size of main font. - a4paper, letterpaper,.. : Size of paper. - titlepage, nontitlepage : Specifies whether a new page should be started after the document title or not. - oneside(default), twoside : Whether double or single sided output shoud be generated.
Package \usepackage[option]{package} {package} parameter is a name of the package. - dos : Allows the documentation of LaTeX programs. - hangul : Allows to use of the ‘The Korean alphabet’. - exscale : Provides scaled versions of the math extension font. - fontenc : Specifies which font encoding LaTeX should use. - latexsym : To access the LaTeX symbol font.
Summary 1. Tex is a computer language designed for use in typesetting. 2. It is very suitable for producing scientific and mathematical documents.