An Introduction To Gowtham Advanced IT Research Support, IT User Services 2011.06.23

advertisement
An Introduction To
Gowtham
Advanced IT Research Support, IT User Services
sgowtham@mtu.edu | it-help@mtu.edu
2011.06.23
1
Outline
What is it & Why use it?
Where to get it from?
How to use it?
Getting started
A very simple document
with floats
with a mathematical expression
with a citation/reference
A simple 2-column document
Writing [MTU] dissertation in LaTeX
LaTeX expressions in graphical format
Is that all it can do?
How/Where to get more help?
2
What Is It?
Originally started out as TeX
(TEK)
in late 1970s
Don Knuth’s The Art of Computer Programming v2
Completed after a decade with help from many
Leslie Lamport created a set of commands which ride on
top of TeX
LaTeX (LAY-TEK or LAH-TEK)
LaTeX is a document preparation system for
high-quality typesetting. It is most often
used for medium-to-large technical or
scientific documents but it can be used for
almost any form of publishing.
It is not a WYSIWYG thing
3
Why Use It?
Produces crisp, clear documents
Especially when they contain technical expressions
Platform Independent
Apple
Linux/UNIX
Windows
Ability to do just about anything
Easily customizable to meet specific requirements
4
Why Use It?
Create your own styles/templates
Supports world-wide languages/scripts
Arabic, Armenian, Bangla, Assamese, Basque, Bengali, Burmese, Casyl, Cherokee,
Chinese, Coptic, Croatian, English, Coptic, Croatian, Czech, Devanagari (Sanskrit/
Hindi), Epi-Olmec, Ethiopian, French, German, Greek, Hebrew, Hungarian, Icelandic,
Inuktitut, Italian, Japanese, Kannada, Korean, Latin, Malayalam, Mongolian, Polish,
Portuguese, Romanian, Russian, Sinhala, Slovene, Somali, Spanish, Swedish, Tamil,
Telugu, Tibetan, Turkish, Ukrainian, Vietnamese and many more
Innumerable sources of help - online and offline
Like all good things in life, it is absolutely
FREE!
5
Installation - Windows
6
Installation - Windows
Download MiKTeX, the base package (stable release)
http://miktex.org/
Download editor (stable release)
WinEdt - http://winedt.com/ (shareware*)
WinShell - http://www.winshell.de/
TeXMaker - http://www.xm1math.net/texmaker/
7
Installation - Windows
8
Installation - Windows
9
Installation - Windows
10
Installation - Windows
11
Installation - Windows
12
Installation - Windows
13
Installation - Windows
14
Installation - Windows
15
Installation - Windows
16
Installation - Windows
17
Installation - Windows
18
Installation - Windows
19
Installation - Windows
20
Installation - Windows
21
Installation - Windows
22
Installation - Windows
23
Installation - Windows
24
Installation - Windows
25
Installation - Windows
26
Installation - Windows
27
Installation - Windows
28
Installation - Windows
29
Installation - Windows
30
Installation - Windows
31
Installation - Windows
32
Installation - Windows
33
Installation - Windows
34
Installation - Windows
35
Installation - Windows
36
Installation - Windows
37
Installation - Windows
38
Installation - Windows
39
Installation - Windows
40
Installation - Windows
41
Installation - Windows
42
Installation - Apple
43
Installation - Apple
Download MacTeX, the base package (stable release)
http://www.tug.org/mactex/
TeXLive
TeXShop, editor
TeXWorks, editor
BibDesk, bibliography/reference management tool
Excalibur, spell checker
LaTeXIt, equation editor
Download other editors (stable release; freeware)
TeXMaker - http://xm1math.net/texmaker/
iTEXMac - http://itexmac.sourceforge.net/
44
Installation - Apple
45
Installation - Apple
46
Installation - Apple
47
Installation - Apple
48
Installation - Apple
49
Installation - Apple
50
Installation - Apple
51
Installation - Apple
Applications
TeX
52
Installation - Linux
53
Installation - Linux
Do a FULL installation of linux, including all packages
LaTeX
vi(m), emacs, gedit and other text editors
Download TeXLive, the base package (stable release)
http://www.tug.org/texlive/acquire.html
Choose a convenient method
Follow installation instructions
Download other editors (stable release; freeware)
TeXMaker - http://www.xm1math.net/texmaker/
Kile - http://kile.sourceforge.net/
54
What You See Is What You Get!
Word Processing
55
Document Processing
56
Document Structure
\documentclass[options]{type-of-document}
Preamble
GLOBAL COMMANDS, SPECIFICATIONS, PACKAGES, etc.
\begin{document}
BODY OF THE DOCUMENT
(TEXT, GRAPHICS, TABLES,
EQUATIONS, REFERENCES, ...)
Body
\end{document}
Type of Document: article, report, book, letter
Yikes, it looks like a programming language!
57
A Very Simple Document
\documentclass[12pt,letterpaper]{article}
\setlength{\oddsidemargin}{0.00in}
\setlength{\topmargin}{0.00in}
\setlength{\textwidth}{6.50in}
\setlength{\textheight}{9.00in}
\setlength{\parindent}{0.00in}
\setlength{\parskip}{0.20in}
\pagestyle{plain}
Preamble
\begin{document}
Hello World!
This is my first \LaTeX\ document
% This is a comment line - will not appear in the output
Body
\end{document}
58
With A Figure
\documentclass[12pt,letterpaper]{article}
\usepackage[dvips]{graphicx}
\usepackage[square]{natbib}
\setlength...
Run LaTeX
Twice!!
Preamble
\pagestyle{plain}
\begin{document}
Hello World! This is my first \LaTeX\ document with a figure in it!
\begin{figure}[htb]
\begin{center}
\includegraphics[width=2.00in, height=2.00in, angle=45] {figure1.eps}
\caption{This is the caption: It goes wherever the figure goes!}
\label{figure1}
\end{center}
\end{figure}
Body
How do you like my Figure \ref{figure1}
\end{document}
59
With A Figure
60
With A Table
\documentclass[12pt,letterpaper]{article}
\usepackage...
\setlength...
Preamble
\begin{document}
Hello World! This is my first \LaTeX\ document with a table in it!
\begin{table}[htb]
\begin{tabular}{lcr}
hline
\textbf{Scientist} & \textbf{Nobel Year} & \textbf{Nobel Work}\\
\hline
A. Einstein
& 1921 & Law of Photoelectric Effect\\
W. Heisenberg & 1931 & Uncertainty Principle\\
W. Pauli
& 1945 & Exclusion Principle\\
\hline
\end{tabular}
\caption{This is the caption: It goes wherever the table goes!}
\label{table1}
\end{table}
Body
Run LaTeX
Twice!!
How do you like my Table \ref{table1} ?
\end{document}
61
With A Table
62
With An Equation
\documentclass[12pt,letterpaper]{article}
\usepackage[dvips]{graphicx}
\usepackage{amsmath,amssymb}
\usepackage[square]{natbib}
\setlength...
Preamble
\begin{document}
Hello World! This is my first \LaTeX\ document with an equation in it!
\begin{equation}
E = m c^{2}
\label{equation1}
\end{equation}
Hard to believe Einstein didn’t get another Nobel prize for this
Eqn. \eqref{equation1} !!
\end{document}
Body
Run LaTeX
Twice!!
63
With An Equation
64
With A Citation
\documentclass[12pt,letterpaper]{article}
\usepackage[dvips]{graphicx}
\usepackage{amsmath,amssymb}
\usepackage[square]{natbib}
\setlength...
Preamble
\begin{document}
Hello World! This is my first \LaTeX\ document with a citation in it!
In quantum mechanics, the EPR paradox \cite{reference1}
is a thought experiment which challenged long-held ideas
about the relation between the observed values of physical
quantities and the values that can be accounted for by a
physical theory.
Body
Run LaTeX
Twice!!
\begin{thebibliography}{99}
\bibitem{reference1}
A. Einstein, B. Podolsky and N. Rosen, \textsl{Phys. Rev.} \textbf{B},
\textbf{47}, 777 (1935)
\end{thebibliography}
\end{document}
65
With A Citation
66
Two Columns
\documentclass[12pt,letterpaper,twocolumn]{article}
\usepackage...
\usepackage{setspace}
\setlength...
\setlength{\columnsep}{0.25in}
...
\begin{document}
\title{A Brief History of Time}
\author{Stephen W. Hawking}
\date{}
\maketitle
Preamble
Body
A Brief History of Time attempts to explain a range \cite{reference1} of
subjects in cosmology, including the Big Bang, black holes, light cones and
superstring theory, to the nonspecialist reader. Its main goal is to give an
overview \cite{reference2} of the subject but, unusual for a popular science
book, it also attempts to explain some complex mathematics. The author
notes that an editor warned him that for every equation in the book the
readership would be halved, hence it includes only a single equation:
ADD MORE STUFF...
\end{document}
67
Two Columns
68
Michigan Tech Dissertation
\documentclass[12pt,letterpaper]{article}
% \usepackage{MTUMSThesis}
\usepackage{MTUPhDThesis}
\thesistitle{Beginning, Evolution, Sustenance And Future
Of Our Very Own Sweet Little Universe}
\thesisauthor{Mary A. Doe}
\dept{Physics}
\deptchair{Dr. Dept Chair}
\padvisor{Dr. My Advisor}
\cadvisor{}
\acommone{Dr. Adv Comm One}
\acommtwo{Dr. Adv Comm Two}
\acommthree{Dr. Adv Comm Three}
\acommfour{}
\univ{MICHIGAN TECHNOLOGICAL UNIVERSITY}
\year{2007}
Preamble
\begin{document}
...
Body
69
Michigan Tech Dissertation
...
\include{Acknowledgments}
\include{Dedication}
...
\include{Abstract}
...
\include{Chapter1}
\include{Chapter2}
\include{Chapter3}
\include{Appendix}
\include{Bibliography}
\include{Index}
Individual LaTeX
files, viz.
Chapter1.tex
Chapter2.tex
....
Appendix.tex
and so on....
\end{document}
What are the advantages of using this template??
70
Michigan Tech Dissertation
It sets up
the title page
the approval/signature page
table of contents, figures, tables
line spacing, margins
chapters, sections, subsections
JUST LIKE MICHIGAN TECH
GRADUATE SCHOOL
REQUIRES IT!!
STOP worrying about layout
concentrate more on contents
Save some time (and some pain)
Works with Makefile & revision control systems
Impress advisor(s), committee and the grad school!
So, where can one get this thing?
71
Michigan Tech Dissertation
Open a browser
Point the URL to http://sgowtham.net/mtu-latex/
Browser will re-direct to the appropriate page
Read the article
Download the relevant ZIP file
Ignore the Makefile if you are not familiar with it
Start using it!
What if one finds bugs or needs enhancements?
Post them as comments and I (or other users) will try our best to help you out!
72
Expressions As Graphics
Open a browser
Point the URL to http://sgowtham.net/tools/tex-eqn/
Type the LaTeX expression in the Text Box
Select background/text color combination
Click on LaTeX
Graphics
Download the displayed image
Use it however you want!
What if one finds bugs or needs enhancements?
Post them as comments and I (or other users) will try our best to help you out!
73
Is That All LaTeX Can Do??
There exist several hundred packages to
create simple to complicated diagrams
add fancy headers and footers
generate graphs from data files on the fly
write musical notes
publish books
create Powerpoint-isque presentations
convert material to HTML, PDF, PS, SQL, XML, ...
create hyperlinks in PDF between chapters, sections,
references, ...
.... and the list can go on!
Presentation Tips : Use PDFScreen or Beamer packages
74
Acknowledgments
Dr. Michael Larsen
Dr. Debra Charlesworth
Department of Physics & Astronomy
Graduate School
College of Charleston
Michigan Technological University
Dr. Charles Wallace
Friends Of The Internet
Department of Computer Science
Discussion forum, mailing lists, etc.
Michigan Technological University
75
Download