research tools: latex a high quality document preparation system by karthikeyan umapathy

22
Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Upload: charlene-lewis

Post on 26-Dec-2015

222 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Research Tools:

LaTex A high quality document preparation

systemby

Karthikeyan Umapathy

Page 2: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Tex (Greek texnologia)

– computer program created by

Dr. Donald E. Knuth (Stanford University) – 1982

LaTex – a macro package based on Tex with predefined layouts

Dr. Leslie Lamport (Microsoft Research) - 1980s

Page 3: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

InputText/commands

LaTex DVI(device independent)

pdfLaTex

pdf

Postscript

printer

LaTex Production Chain

Page 4: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

WYSIWYG vs. LaTex

• Focus on content then the appearance• Best for writing lot of Math• References - Bibliography• Manage large documents• Professional output quality• Predefined layouts• Portable – any OS – hardware etc• Creative • FREE

WYSIWIG – “What you see is what you get “ or “What is see is ALL what you get”

Page 5: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

WYSIWYG vs. LaTex

• Learning curve• Short documents• Custom layouts

WYSIWIG – “What you see is what you get “ or “What is see is ALL what you get”

Page 6: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

LaTex Classes

Article Report Book Letter

Ordinary documents -paper

Large organizedDocuments

-Thesis

Books Letter

Many new class files can be created modifying the above4 base class files

(Ex: IEEEtran.cls – derived from article.cls)

Page 7: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% Comments

\documentclass [options] {style}

\begin {document} . . .

\end {document}

Example.tex

Writing a document in Latex

Predefined classes like article,report, letter or book

Comments or notes

The document begins here

The document ends here

Options within a class such asPaper size, font size etc

Body of the document

Page 8: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% This is an example.tex

\documentclass {article}

\begin {document}

This is a test

\end {document}

Example.tex

Writing a document in Latex

(1) latex Example.tex Example.dvi (2) dvips Example.dvi Example.ps (3) ps2pdf Example.ps Example.pdf

Page 9: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% This is an example.tex

\documentclass [12pt]{article}

\begin {document}

\title {This is an example}\author {James Bond}\maketitle

\end {document}

Example.tex

Writing a document in Latex

(1) latex Example.tex Example.dvi (2) dvips Example.dvi Example.ps (3) ps2pdf Example.ps Example.pdf

Title, author

Page 10: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% This is an example.tex

\documentclass [12pt]{article}

\begin {document}\noindentThis is a test \\\small {This is a test}\\\Large {This is a test}\\\Huge {This is a test}\\

\end {document}

Example.tex

Writing a document in Latex

(1) latex Example.tex Example.dvi (2) dvips Example.dvi Example.ps (3) ps2pdf Example.ps Example.pdf

Font size \tiny to \Huge

Page 11: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Example.tex

Writing a document in Latex

(1) latex Example.tex Example.dvi (2) dvips Example.dvi Example.ps (3) ps2pdf Example.ps Example.pdf

Section and Subsection

% This is an example.tex

\documentclass [12pt]{article}\begin {document}\title {This is an example}\author {James Bond}\maketitle

\section {Introduction}\subsection {Experiment}

\end {document}

Page 12: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Example.tex

Writing a document in Latex Equations

\documentclass [12pt]{article}\begin {document}\title {This is an example}\author {James Bond}\maketitle\section {Introduction}\begin {equation}g_{ \gamma_{n}}(t) =\frac{1}{ \sqrt{s_{n}}}\;g(\frac{t-p_{n}}{s_{n}})\,\exp\left\{j(2\pi f_{n}t+\phi_{n})\right\},\label {eq1}\end {equation}\end {document}

Page 13: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Example.tex

Writing a document in Latex Equations

\documentclass [12pt]{article}\begin {document}\title {This is an example}\author {James Bond}\maketitle\section {Introduction}\begin {equation}g_{ \gamma_{n}}(t) =\frac{1}{ \sqrt{s_{n}}}\;g(\frac{t-p_{n}}{s_{n}})\,\exp\left\{j(2\pi f_{n}t+\phi_{n})\right\},\label {eq1}\end {equation}\end {document}

S_n - subscriptS^n - superscript

Math commands

Page 14: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% This is an example.tex

\documentclass [12pt]{article}\usepackage {epsfig, graphicx}\begin {document}

\begin {figure}\epsfxsize =4.5in\centerline {\epsffile{platypus.eps}}\caption {Sample Figure.}\label {fig1}\end {figure}

\end {document}

Example.tex

Writing a document in Latex

(1) latex Example.tex Example.dvi (2) dvips Example.dvi Example.ps (3) ps2pdf Example.ps Example.pdf

Figures

Page 15: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% This is an example.tex

\documentclass [12pt]{article}\usepackage {epsfig, graphicx}\begin {documen}

\begin {table}\centering

\begin {tabular}{|c|c|c|c|c|} \hline Method &Groups & Normal & Abnormal & Total \\ \hline LR & Normal & 40 & 11 & 51\\ & Abnormal & 17 & 22 & 39 \\\hline \% & Normal & \bf{78.4} & 21.6 & 100 \\ & Abnormal & 43.6 & \bf {56.4} & 100 \\\hline \end {tabular}

\caption {Sample Table}\label {tab1}

\end {table}\end {document}

Example.texWriting a document in Latex

Table

Page 16: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% This is an example.tex\documentclass [12pt]{article}

\begin {document}\section {Introduction}\label {intro}

This is section on Introduction.

\subsection {experiment}\label {exp}

This is an example subsection.Please refer Section.\ref {intro} for introduction. Refer Section \ref {exp}

\end {document}

Example.tex

Writing a document in Latex

Very easy to manage all the references in long documents

References within a document

Page 17: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

% This is an example.tex\documentclass [12pt]{article}\bibliographystyle {IEEEtran}\begin {document}\section {Introduction}\label {intro}

This is section on Introduction.

\subsection {experiment}\label {exp}

This is an example subsection. Thiswork is based on the MP algorithm \cite {mallat2}

\bibliography {bibfile}\end {document}

Example.tex

Writing a document in Latex

Order and numbering of the references are automatic. Insertinga new citation reorders the references ( a cool feature !)

Citing other works

Page 18: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Writing a document in Latex Let us put

everything together

- \title-\author-\section

-\subsection- \section

- \subsection- figure-Table- \ref- \cite

- \documentclass -\begin- \end

- \maketitle

Page 19: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Class, Style files in Latex \usepackage{conf.sty} & \documentclass{journ.cls}

Double columnand IEEE trans.standard

Page 20: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Getting the TOOLS !

On Unix Platforms

- Latex Preinstalled (dept. ) - Xfig – a very good drawing program to create figures

On Windows platform

-MikTex – Tex for windows (Latex) - Xfig not native in windows (cygwin) - Openoffice (draw) can create *.eps figures- Dia

www.rnet.ryerson.ca/sar useful links (tools, tutorials)

Page 21: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

LYXWhat you see is what you mean !?

WYSIWYG WYSIWYM LaTex

www.lyx.org

Page 22: Research Tools: LaTex A high quality document preparation system by Karthikeyan Umapathy

Happy (Latex) ing !

Questions !

Thank you !