1 / 28

Introduction to…

Introduction to…. About Tex & LaTeX. What is TeX?. What is LaTeX?. Advantages - Disadvantages. Text in LaTeX. latex special characters ( % $ # & _ { } textbackslash ) latex commands: “” + begin {command} “” + end {command} or

melissan
Download Presentation

Introduction to…

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to…

  2. About Tex & LaTeX • What is TeX? • What is LaTeX? • Advantages - Disadvantages

  3. Text in LaTeX • latex special characters ( % $ # & _ { } \ \textbackslash) • latex commands: “\” + begin {command} “\” + end {command} or “\” + command { applied text } (one space before (optional) and after command) • comments :%comments

  4. Starting a document: Preamble: Define Document Class : \documentclass[options]{type} Options: 11pt, 12pt… Type :article, report, book, letter, slides (The declaration of the user packages takes place between the preamble and the body of the .tex source file)

  5. Body:(document environment) \begin{document} . . . \end{document} All that follows here is ignored.

  6. Plain Text Empty spaces are ignored and are taken as one space.

  7. Paragraph • (empty line) starts new paragraph • \newlineor\\or\linebreak(justifies old line) • \newpageor\pagebreak(justifies last line) • \bigskip • \medskip • \smallskip • \noindent \indent • \centerline{Text-line centered}

  8. \begin{x} . . . \end{x} x : center, flushleft, flushright default: justified • Put the “~” symbol or “\nolinebreak” between words that you don’t want them to be separated..

  9. \textbf{BoldFace text} • \textit{Italic text} • \underline{Underlined text} • \textsc{SmallCapitals text} • \texttt{Typewriter text} • One can go into the other, e.g. BoldItalic \textbf{\textit{text in BoldItalic}} etc.

  10. \tiny \small \large \Large \LARGE \huge \Huge \ldots \dots \dotfill \hrulefill Spacing and Dots Text Size

  11. FrameBox • Lists (enumerate – itemize) • Greek: you have to include user package. In order to include English text within the greek, you have to write: \textlatin{English text}.

  12. Mathematical expressions $ math mode $ (also for simple alphabet letters that you want to use as math symbols.) • Symbols

  13. Other : • superscript : $a^n$ or for more, $a^{2+6}$ • subscript: $a_b$ or for more $a_{2+6}$ • $\overline{x} $ • $\frac{numerator}{denominator} $ • $\sqrt{x} $ • $\overbrace{ x + y bla bla y } $ • $\underbrace{ x + y bla bla y } $

  14. \begin{tabular}{ | c r | l | } \hline row1 cell1 & row1 cell2 & row1 cell3 \\ \hline row2 cell1 & row2 cell2 & row2 cell3 \\ \hline row3 cell1 & row3 cell2 & row3 cell3 \\ row4 cell1 & row4 cell2 & row4 cell3 \\ \hline row5 cell1 & row5 cell2 & row5 cell3 \\ \end{tabular} Making Tables

  15. Matrix \[ \left[ \begin{array}{rrrrrrrrrrrrrr} 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \\ \end{array} \right] \]

  16. Result :

  17. ParBox \parbox[t]{4in}{Text} \begin{tabular}{ | c r | l | } \hline row1 cell1 & row1 cell2 & \parbox[t]{4in}{\begin{center} row1 cell3 \end{center}}\\ \hline row2 cell1 & row2 cell2 & row2 cell3 \\ \hline row3 cell1 & row3 cell2 & row3 cell3 \\ row4 cell1 & row4 cell2 & row4 cell3 \\ \hline row5 cell1 & row5 cell2 & row5 cell3 \\ \end{tabular}The third column’s width is now 4 inches.

  18. Result :

  19. Tabbing …lets you set your own column Tabs : Commands : • \= : to define a Tab setting • \> : to move to a Tab setting • \\ : ends each Row

  20. example : \begin{tabbing} \= \hspace*{.1in} \= \hspace*{.3in} \= \kill \> a) \> \> Find the powersets and the cardinal numbers of the following Sets :\\ \> \> \> A = \O , \\ \> \> \> B = \{0,1\} ,\\ \> \> \> C = \{1,\{2\}\}, \\ \> \> \> D = \{$x | x = \{ y | y > 0 \wedge y < 4 \} \wedge |x| = 1 \wedge y \in N$\}, \\ \> \> \> E = $C \cap D$ \\ \end{tabbing}

  21. Result :

  22. Sometimes we do not want to have the longest portion of text first, yet it is needed to define the tab. The above figure illustrates how this is solved with the \kill command. In the first tabbing, the lines are in the order we want,but the tab is set by the shorter string ‘1-3’, making ‘4-6-8’ extend past the tab. The second tabbing puts the longer field first, in order to set the tab correctly, then specifies \kill instead of \\ to suppress (or “kill”) the printing of the line.

  23. Insert Pictures \usepackage{graphicx} In text: \includegraphics{ picture.eps } Only .eps format!!! We think that the best EPS produces is Corel. Thank you Nenad 

  24. Table of Contents Manually! :P

  25. Cover Page \title{ Aunt Marika’s Autobiography } \author{ Marika Eleftheraki } \date{ 1968 } %optional \maketitle

  26. Bibliography / References The command “~cite{name}” is put at the point where the user wants to refer to a source. \begin{thebibliography}{99} %At most 99 reference items. \bibitem{name} surname ~name: \emph{text appearing in italic}, TitleOfBook % not italic \end{thebibliography}

  27. Ps Tricks Download Package from:ftp://ftp.tex.ac.uk/tex-archive At the preamble :\usepackage{pst-all} In text : \psframebox{text in framebox} \psframebox[framearc=.x]{ text in rounded framebox}(x = radius of corners)  \psshadow{ text in shadowed framebox } \psdblframebox{ text in doubled framebox } \pscirclebox[linewidth=xpt]{text in circle} ( % x = line width ) \psovalbox[linestyle=dotted]  \rotateX{text rotated} ( % X = left, right, down.) \scalebox{x y} ( % x = width , y = height )

  28. Thank you for lis ning TeX Have fun using LaTeX \begin { feelings }  \end { feelings } Andreas Protopapas & Phani Nikolopoulou

More Related