Sunteți pe pagina 1din 11

1/11

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More

Design it Yourself
PsiPhiETC psiphietc@gmail.com

January 11, 2011

2/11

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More

1 2 5

Shri NAME , Sc H

\begin{document} \MyLogo \\ 8 \nd{NAME}{H} 9 \end{document}

6 7

newcommand, renewcommand

3/11

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More

Circle: Locus of points with equal distance from a dened point.

\newenvironment{Def}[1] {\begin{quote} \textbf{#1:}} 3 {\end{quote}} 4 \begin{document} 5 \begin{Def}{Circle} 6 Locus of points with equal distance from a defined point. 7 \end{Def} 8 \end{document}
1 2

newenvironment, quote, renewenvironment

4/11

Lengths

Design it Yourself

New Com New Env

1 2

Units: in, cm, mm, pt, em, ex \parindent , \textwidth, \textheight \newlength, \setlength, \addtolength \hspace, \hspace*, \vspace, \medskip, \dotll, \hrulell
a \hspace{1cm}b \hspace{1em} c \ hspace{\parindent}d \\ 2 \the\textwidth \\ 3 \the\textheight \\ 4 \the\parindent\\ 5 \addtolength\parindent{10pt} 6 \the\parindent
1

Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More

3 4

Good Practice: Do not play with these unless absolutely necessary.

5/11

Boxes I

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More 1

ab cd ef ab cde f gh ij This is parakl mn opq graph box

\framebox{a b} \framebox[2cm]{c d} 3 \framebox[0.5in][r]{e f} \\ 4 \parbox{2cm}{ab cde f gh ij kl mn opq} 5 \parbox[t]{2cm}{This is paragraph box} \\ 6 \rule{2mm}{5mm} 7 \rule[2.5mm]{2mm}{5mm}
2

framebox, fbox, makebox, mbox, parbox, rule

6/11

Boxes II

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More 2 1

item 1 a bcde item 2

\begin{minipage}[t]{0.4\ textwidth} 2 \begin{enumerate} 3 \item item 1 a b c d e 4 \item item 2 5 \end{enumerate} 6 \end{minipage} 7 \marginpar[left text]{ right text}
1

minipage, marginpar

7/11

Splitting Your Input in Multiple Files

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More 3 4 1 2

For big documents, split sections in multiple tex les. Use \input{lename} (extension not required) in the body. lecontents environment listles

8/11

Bibliography I: Manual Creation

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More 1 2 3 4

The book Lam94

A Laslie Lamport, LTEX A Document Preparation System, Pearson Education, 1994

The book\cite{Lam94}

\begin{thebibliography}{99999} \bibitem[Lam94]{Lam94} Laslie Lamport, \emph{\LaTeX\: A Document Preparation System }, Pearson Education, 1994 5 \end{thebibliography}

9/11

Bibliography II: Using BibTeX

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More

@BOOK{key, AUTHOR={A and B}, TITLE={title}, PUBLISHER={publisher}, YEAR={1994} } \cite{key} \bibliographystyle{alpha} b.bib, cite, bibliographystyle, bbl

10/11

Makeindex : Making Index

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More 1

Circle is locus of points with a xed distance from a dened point. index, makeindex, idx

Circle \index{Circle} is locus of points with a fixed distance from a defined point.

11/11

Beyond the Scope of this Workshop. . .

Design it Yourself

New Com New Env Lengths and Spaces Boxes I Boxes II Input Biblio I Biblio II Makeindex More 6 3 4 5 1 2

We have barely scratched the surface Initial learning seems difcult but the payoffs are immense Beamer: Creating presentations pstricks: Graphics
A latex2html: Creating html pages from your LTEX document