From 0379823269621490ebd9d736eb0b8683882c83bb Mon Sep 17 00:00:00 2001 From: Harish Badrinath Date: Mon, 6 Feb 2012 20:11:02 +0530 Subject: For directories Latex2,Latex3 and Latex6 added slide info to respective scripts and pre-requisites slidesto respective slides. Also added appendix slide to Latex3. --- Latex/Latex2/latex_intro.tex | 18 ++++- Latex/Latex2/latex_intro_script.rst | 84 +++++++++++++--------- Latex/Latex3/latex_basics.tex | 33 +++++++-- Latex/Latex3/latex_basics_and_structure_script.rst | 40 +++++++---- Latex/Latex6/latex_math2beamer.tex | 20 ++++-- Latex/Latex6/latex_math_biblo_beamer_script.rst | 32 +++++++-- 6 files changed, 158 insertions(+), 69 deletions(-) diff --git a/Latex/Latex2/latex_intro.tex b/Latex/Latex2/latex_intro.tex index 2bb0314..1879685 100644 --- a/Latex/Latex2/latex_intro.tex +++ b/Latex/Latex2/latex_intro.tex @@ -77,7 +77,19 @@ At the end of this tutorial, you will be able to, \end{itemize} \end{frame} +\begin{frame} +\frametitle{Pre-requisite} +\label{sec-3} + + Spoken tutorial on - + +\begin{itemize} +\item Installing {\LaTeX}. +\end{itemize} +\end{frame} + \begin{frame}[fragile] + \frametitle{Introduction} \begin{block}{{\LaTeX} - Introduction} \begin{itemize} \item Typesetting program @@ -92,7 +104,7 @@ At the end of this tutorial, you will be able to, \end{frame} \begin{frame}[fragile] - \frametitle{Why \LaTeX?} + \frametitle{Why {\LaTeX}?} \begin{itemize} \item Excellent visual quality! \item Handles the typesetting; Lets you focus on content @@ -216,7 +228,7 @@ At the end of this tutorial, you will be able to, \begin{frame}[fragile] -\frametitle{Evaluation} +\frametitle{Self assessment questions} \label{sec-9} \begin{enumerate} \item Convert the temp.dvi created during the course of this tutorial to temp\_1.ps using the dvips command. Verify that the two files indeed look the same. @@ -226,7 +238,7 @@ At the end of this tutorial, you will be able to, \end{frame} \begin{frame} -\frametitle{Solutions} +\frametitle{Self assessment questions: Solutions} \label{sec-10} \begin{enumerate} \item We can use the following command to convert temp.dvi to temp\_1.ps\\ diff --git a/Latex/Latex2/latex_intro_script.rst b/Latex/Latex2/latex_intro_script.rst index 390f0eb..b8433a3 100644 --- a/Latex/Latex2/latex_intro_script.rst +++ b/Latex/Latex2/latex_intro_script.rst @@ -1,7 +1,7 @@ .. Objectives .. ---------- -.. By the end of this tutorial, you will +.. At the end of this tutorial, you will .. 1. Get acquainted to LaTeX. .. #. Know why we prefer LaTeX? @@ -16,8 +16,7 @@ .. Prerequisites .. ------------- -.. 1. Should have already installed LaTeX and its supported packages on the host machine. -.. #. Should be comfortable using a text editor of your choice. +.. 1. Installing LaTeX .. Author : Harish Badrinath < harish [at] fossee [dot] in > @@ -40,11 +39,11 @@ Hello Friends and welcome to the tutorial on introduction to LaTeX. .. L2 -{{{ Show the objectives slide }}} +{{{ Show the "Objectives" slide }}} .. R2 -.. By the end of this tutorial, you will +.. At the end of this tutorial, you will .. 1. Get acquainted to LaTeX. .. #. Know why we prefer LaTeX? @@ -58,7 +57,7 @@ Hello Friends and welcome to the tutorial on introduction to LaTeX. .. L3 -{{{ Switch to the pre-requisite slide }}} +{{{ Show the "Pre-requisite" slide }}} .. R3 @@ -68,6 +67,7 @@ LaTeX on your computer. You can do this by completing the tutorial titled .. L4 +{{{ Show the "Introduction" slide }}} .. R4 @@ -88,6 +88,7 @@ technology. .. L5 +{{{ Show the "Why LaTeX?" slide }}} .. R5 @@ -97,6 +98,12 @@ Below are some of the reasons we prefer LaTeX (c) Its makes writing complex math equation extremely simple. (d) It is also a standard used widely, especially by the scientific community. +.. L6 + +{{{ Show the "Why LaTeX? ..." slide }}} + +.. R6 + We can define LaTex as a document based markup language. This sentence is deceptively simple, as it reveals a lot about LaTex. We now break this sentence up as follows @@ -107,10 +114,11 @@ element individually. This is essentially a fancy way of saying,LaTeX handles typesetting and lets you focus on content. -.. L6 +.. L7 +{{{ Show the "Advantages of using LaTeX" slide }}} -.. R6 +.. R7 Some of the advantages of using LaTeX approach to typesetting are (1) Easy availability of professionally crafted layouts. @@ -122,20 +130,22 @@ of the document. (4) Presence of lots of add-on packages. (5) It encourages creation of well structured texts. -.. L7 +.. L8 +{{{ Show the "Disadvantages of using LaTeX" slide }}} -.. R7 +.. R8 Some of the disadvantages of using LaTeX approach to typesetting is (1) Designing a whole new layout is difficult. (2) LaTeX is not a word processor, that is the document author is not expected to worry about presentation details like the size of font, for example. -.. L8 +.. L9 +{{{ Show the "LaTeX input file format" slide }}} -.. R8 +.. R9 LaTeX input files are simple ASCII text files that are processed by a TeX processing engine. @@ -152,10 +162,11 @@ The command pdflatex is used to convert LaTeX input files directly to pdf files. The resultant PDF files can be viewed using standard tools on most platforms (Eg: evince on Gnu/Linux). PDF file are also widely supported. -.. L9 +.. L10 +{{{ Show the "Commands,Comments&Special Characters" slide }}} -.. R9 +.. R10 LaTeX, like most utilities in Linux, LaTeX is case sensitive. Commands begin with a backslash.LaTeX environments have a begin and end marker. The begin and @@ -174,10 +185,11 @@ out to be a comment. But, how do we write comments with in the document. % is the character to indicate comments. Anything written after a % symbol in a line, is ignored. -.. L10 +.. L11 +{{{ Show the "Commands,Comments&Special Characters ..." slide }}} -.. R10 +.. R11 But what if we wanted to insert the % symbol in the document? We can do so by escaping it with a \ (backslash). % is one of the many special characters in @@ -197,20 +209,21 @@ A single empty line causes a change in paragraphs in the output. (Multiple empty lines are equivalent to a single empty line.) Similarly, multiple spaces are treated as a single space. -.. L11 +.. L12 -{{{ Show slide with exercise 1 }}} +{{{ Show the "Typesetting a minimal document" slide }}} -.. R11 +.. R12 Now, we try to create a simple LaTeX document. Pause the tutorial and type the content shown on the screen in a text editor. Save the file as temp.tex -.. L12 +.. L13 {{{continue from paused state}}} +{{{ Show the "Compiling to DVI" slide }}} -.. R12 +.. R13 Now we compile the commands in the LaTeX input file that is, temp.tex into a typeset file. @@ -224,10 +237,11 @@ latex temp.tex. The output file would be temp.dvi.On Gnu/Linux use a program like xdvi to view the output file. -.. L13 +.. L14 +{{{ Show the "Compiling to PDF" slide }}} -.. R13 +.. R14 The other alternative is to create PDF files from LaTeX input files. We use the pdflatex command for this purpose. For compiling the LaTeX input @@ -241,11 +255,11 @@ view the output file. Please note that, throughout this course we shall be using pdflatex to compile our documents. -.. L14 +.. L15 -{{{ Show summary slide }}} +{{{ Show the "Summary" slide }}} -.. R14 +.. R15 This brings us to the end of this tutorial. In this tutorial, we have learnt @@ -259,11 +273,11 @@ This brings us to the end of this tutorial. In this tutorial, we have learnt .. comments and special characters, spacing and actual document content. .. #. Created and compiled a very simple LaTeX document. -.. L15 +.. L16 -{{{Show self assessment questions slide}}} +{{{ Show the "Self assessment questions" slide }}} -.. R15 +.. R16 Here are some self assessment questions for you to solve @@ -274,11 +288,11 @@ using the dvips command. Verify that the two files indeed look the same. temp_1.pdf using the dvipdfm command. Verify that the two files indeed look the same. -.. L16 +.. L17 -{{{Show self assessment questions slide}}} +{{{ Show the "Self assessment questions: Solutions" slide }}} -.. R16 +.. R17 And the answers, @@ -288,11 +302,11 @@ dvips -o temp_1.ps temp.dvi 2. We can use the following command to convert temp.dvi to temp_1.pdf dvipdfm -o temp_1.pdf temp.dvi -.. L17 +.. L18 -{{{ Show the thank you slide }}} +{{{ Show the "Thank you" slide }}} -.. R17 +.. R18 Hope you have enjoyed this tutorial and found it useful. Thank you! diff --git a/Latex/Latex3/latex_basics.tex b/Latex/Latex3/latex_basics.tex index 27142bf..3ddaa7f 100644 --- a/Latex/Latex3/latex_basics.tex +++ b/Latex/Latex3/latex_basics.tex @@ -74,6 +74,18 @@ \end{itemize} \end{frame} +\begin{frame} +\frametitle{Pre-requisite} +\label{sec-3} + + Spoken tutorial on - + +\begin{itemize} +\item Introduction to {\LaTeX}. +\end{itemize} +\end{frame} + + \begin{frame}[fragile] \frametitle{A Very Basic {\LaTeX} document} {\tiny @@ -105,7 +117,7 @@ \end{frame} \begin{frame}[fragile] - \frametitle{\typ{documentclass command}\ \ldots} + \frametitle{\typ{documentclass command: A Closer look}} \begin{itemize} \item Used to select the \emph{class} of our document \item Some available classes - \typ{article}, \typ{proc}, @@ -266,6 +278,16 @@ \end{lstlisting} \end{frame} +\begin{frame}[fragile] + \frametitle{Appendices} + \begin{itemize} + \item \lstinline{\appendix} command indicates the beginning of appendices. + \item Any content after \lstinline{\appendix}, will be added to the appendix. + \item Use sectioning commands to add sections. + \end{itemize} +\end{frame} + + \begin{frame}[fragile] \frametitle{\typ{Table of Contents [TOC]}} \begin{itemize} @@ -292,8 +314,7 @@ \begin{frame}[fragile] \frametitle{\typ{Exercise 1}} \begin{center} - Write a LaTeX script that creates a document of type article, which contains both a table of content and an appendix. The table of content should be at the -beginning of the document and the appendix at the end. + Write a LaTeX script that creates a document of type article, which contains both a table of content and an appendix. The table of content should be at the beginning of the document and the appendix at the end. The book should contain two chapters, with the first chapter containing two numbered and two un-numbered sections. The first un-numbered section should be present in the table of content. \end{center} \end{frame} @@ -347,9 +368,9 @@ beginning of the document and the appendix at the end. \end{frame} \begin{frame}[fragile] - \frametitle{\typ{Evaluation}} + \frametitle{\typ{Self assessment questions}} \label{sec-9} - {\small + {\footnotesize \begin{enumerate} \item Is the LaTeX code given below a valid input file (File compiles successfully and produces the intended result, that is to produce a book with two chapters and an appendix. {\tiny @@ -377,7 +398,7 @@ beginning of the document and the appendix at the end. \end{frame} \begin{frame}[fragile] -\frametitle{\typ{Solutions}} +\frametitle{\typ{Self assessment questions: Solutions}} \label{sec-10} \begin{enumerate} \item Although the given file looks syntactically valid, the output file is not what we expected. This is mainly because we are trying to use the section command to create sections in the appendix, for a document whose type is given as a book. diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst index 09e8d2a..fb2d068 100644 --- a/Latex/Latex3/latex_basics_and_structure_script.rst +++ b/Latex/Latex3/latex_basics_and_structure_script.rst @@ -1,7 +1,7 @@ .. Objectives .. ---------- -.. By the end of this tutorial, you will be able to +.. At the end of this tutorial, you will be able to .. 1. Understand basic structure of a LaTeX document, its various document .. classes and loading packages that add new features to the LaTeX system. @@ -14,7 +14,7 @@ .. Prerequisites .. ------------- -.. 1. latex_intro +.. 1. Introduction to LaTeX .. Author : Harish Badrinath < harish [at] fossee [dot] in > @@ -38,11 +38,11 @@ document structure". .. L2 -{{{ Show the objectives slide }}} +{{{ Show the "Objectives" slide }}} .. R2 -.. By the end of this tutorial, you will be able to +.. At the end of this tutorial, you will be able to .. 1. Understand basic structure of a LaTeX document, its various document .. classes and loading packages that add new features to the LaTeX system. @@ -54,7 +54,7 @@ document structure". .. L3 -{{{ Switch to the pre-requisite slide }}} +{{{ Show the "Pre-requisite" slide }}} .. R3 @@ -63,6 +63,7 @@ LaTeX and suggest you to complete the tutorial titled "Introduction to LaTeX". .. L4 +{{{ Show the "A Very Basic LaTeX document" slide }}} .. R4 @@ -86,6 +87,7 @@ The first line reads .. L5 +{{{ Show the "documentclass command" slide }}} .. R5 @@ -93,6 +95,7 @@ which more generally can be written as .. L6 +{{{ Show the "documentclass command ..." slide }}} .. R6 @@ -106,6 +109,7 @@ The supported classes have a few differences, in how the content of the document .. L7 +{{{ Show the "documentclass command: A Closer look" slide }}} .. R7 @@ -121,6 +125,7 @@ with a square in the margin .. L8 +{{{ Show the "usepackage command" slide }}} .. R8 @@ -130,8 +135,8 @@ included by default with LaTeX2 base distribution. You can use the texdoc command for accessing package documentation. .. L9 -:: +{{{ Show the "Top Matter" slide }}} .. R9 @@ -141,6 +146,7 @@ appear in the document, but they donot. .. L10 +{{{ Show the "Top Matter ..." slide }}} .. R10 @@ -150,6 +156,7 @@ date is used else today's date is used. .. L11 +{{{ Show the "abstract command" slide }}} .. R11 @@ -160,7 +167,7 @@ not book .. L12 - +{{{ Show the "Sectioning" slide }}} .. R12 @@ -171,9 +178,10 @@ behavior is to use numbered sections. We can use un-numbered sections appending * to section command. If you want to split your document without influencing the section or chapter numbering use the part command. - .. L13 +{{{ Show the "Creating Chapters" slide }}} + .. R13 Longer documents can use report or book class. We can add a new chapter using @@ -182,6 +190,7 @@ file shown in the slide we notice that subsections are not numbered. .. L14 +{{{ Show the "Sectioning and numbering" slide }}} .. R14 @@ -190,6 +199,7 @@ in the slide. .. L15 +{{{ Show the "Appendix" slide }}} .. R15 @@ -202,6 +212,7 @@ that sections are to be numbered as appendices. .. L16 +{{{ Show the "Table of Contents [TOC]" slide }}} .. R16 @@ -225,6 +236,7 @@ Preface or a Foreword section to appear in the Table of Contents. .. L17 +{{{ Show the "TOC ..." slide }}} .. R17 @@ -235,7 +247,7 @@ where "Intro" is the text that you want to appear in the Table of contents. .. L18 -{{{ Show slide with exercise 1 }}} +{{{ Show the "Exercise 1" slide }}} .. R18 @@ -252,7 +264,7 @@ Please pause the tutorial and check back for a possible solution .. L19 {{{continue from paused state}}} -{{{ Show slide with solution to exercise 1 }}} +{{{ Show the "Excercise 1: Solution" slide }}} .. R19 @@ -260,7 +272,7 @@ This slide on screen shows a possible valid solution to the given exercise. .. L20 -{{{ Show summary slide }}} +{{{ Show the "Summary" slide }}} .. R20 @@ -277,7 +289,7 @@ This brings us to the end of this tutorial. In this tutorial, we have, .. L21 -{{{Show self assessment questions slide}}} +{{{ Show the "Self assessment questions" slide }}} .. R21 @@ -293,7 +305,7 @@ do they automatically appear in the table of content ?? .. L22 -{{{Show self assessment questions slide}}} +{{{ Show the "Self assessment questions: Solutions" slide }}} .. R22 @@ -308,7 +320,7 @@ headings, and only down to the level defined by the tocdepth counter. .. L23 -{{{ Show the thankyou slide }}} +{{{ Show the "Thank you" slide }}} .. R23 diff --git a/Latex/Latex6/latex_math2beamer.tex b/Latex/Latex6/latex_math2beamer.tex index d8ba927..3671c68 100644 --- a/Latex/Latex6/latex_math2beamer.tex +++ b/Latex/Latex6/latex_math2beamer.tex @@ -76,6 +76,18 @@ \end{itemize} \end{frame} +\begin{frame} + \frametitle{Pre-requisite} + \label{sec-3} + + Spoken tutorial on - + + \begin{itemize} + \item Basics of LaTeX and its document structure. + \item Typesetting LaTeX text. + \end{itemize} +\end{frame} + \begin{frame}[fragile] \frametitle{\LaTeX\ \&\ Mathematics : An Introduction} \begin{itemize} @@ -262,7 +274,7 @@ \end{frame} \begin{frame}[fragile] - \frametitle{Greek characters \& Spacing} + \frametitle{Greek characters \& Spacing in math environments} \begin{itemize} \item Typesetting Greek characters is simple \item \lstinline+\alpha+, \lstinline+\beta+, \lstinline+\gamma+, @@ -364,7 +376,7 @@ \end{frame} \begin{frame}[fragile] - \frametitle{Beamer \ldots} + \frametitle{Beamer: An Example presentation} \tiny{ \begin{verbatim} \documentclass{beamer} @@ -407,7 +419,7 @@ \end{frame} \begin{frame}[fragile] - \frametitle{\typ{Evaluation}} + \frametitle{\typ{Self assessment questions}} \label{sec-9} {\small \begin{enumerate} @@ -420,7 +432,7 @@ remove the line. \end{frame} \begin{frame}[fragile] -\frametitle{\typ{Solutions}} +\frametitle{\typ{Self assessment questions: Solutions}} \label{sec-10} \begin{enumerate} \item The outertheme command in beamer is used to customize the amount of diff --git a/Latex/Latex6/latex_math_biblo_beamer_script.rst b/Latex/Latex6/latex_math_biblo_beamer_script.rst index b98a750..637ee2b 100644 --- a/Latex/Latex6/latex_math_biblo_beamer_script.rst +++ b/Latex/Latex6/latex_math_biblo_beamer_script.rst @@ -11,8 +11,7 @@ .. Prerequisites .. ------------- -.. 1. Introduction to LaTeX. -.. #. Basics of LaTeX and its document structure. +.. 1. Basics of LaTeX and its document structure. .. #. Typesetting LaTeX text. .. 1. latex_intro @@ -55,10 +54,13 @@ formulae, bibliography and presentations, using LaTeX. .. R3 Before beginning this tutorial, it is recommended to complete the tutorials -given in the prerequisite. +titled "Basics of LaTeX and its document structure" and "Typesetting LaTeX +text". .. L4 +{{{ Show the "LaTeX & Mathematics : An Introduction" slide }}} + .. R4 In general, it is advisable to use the AMS-LaTeX bundle to typeset mathematics @@ -82,6 +84,7 @@ from equation family. .. L5 +{{{ Show the "Matrices" slide }}} .. R5 @@ -95,6 +98,7 @@ and its allied environments are defined by the amsmath package. .. L6 +{{{ Show the "Matrices ..." slide }}} .. R6 @@ -109,6 +113,7 @@ Please pause the tutorial and go through the example shown on the screen. .. L7 {{{continue from paused state}}} +{{{ Show the "Superscripts & Subscripts" slide }}} .. R7 @@ -121,6 +126,7 @@ and closing curly brackets. .. L8 +{{{ Show the "Summation & integration" slide }}} .. R8 @@ -131,6 +137,7 @@ the sum and int command are specified using the carat and underscore characters .. L9 +{{{ Show the "displayed math" slide }}} .. R9 @@ -145,6 +152,7 @@ equation environment). .. L10 +{{{ Show the "Groups of equations" slide }}} .. R10 @@ -162,6 +170,7 @@ ampersand symbol. .. L11 +{{{ Show the "Fractions & Surds" slide }}} .. R11 @@ -174,6 +183,8 @@ inline mode. .. L12 +{{{ Show the "Greek characters & Spacing in math environments" slide }}} + .. R12 Inserting Greek letters into LaTeX is simple. we use commands named alpha, beta, @@ -187,6 +198,8 @@ to specify the spacing required. .. L13 +{{{ Show the "Bibliography" slide }}} + .. R13 Writing bibliographies in LaTeX using the thebibliography environment is pretty @@ -208,6 +221,7 @@ the bibliography environment with an parameter, whose value is 9. .. L14 {{{continue from paused state}}} +{{{ Show the "Beamer" slide }}} .. R14 @@ -223,6 +237,8 @@ that content is divided into slides. .. L15 +{{{ Show the "Beamer ..." slide }}} + .. R15 The usetheme command is used to specify the theme to be used for the current @@ -246,6 +262,8 @@ this marvelous utility. .. L16 +{{{ Show the "Beamer: An Example presentation" slide }}} + .. R16 This screen shows a very basic LaTeX presentation done using beamer. We use the @@ -257,7 +275,7 @@ example shown on the screen. .. L17 {{{continue from paused state}}} -{{{ Show summary slide }}} +{{{ Show the "Summary" slide }}} .. R17 @@ -270,7 +288,7 @@ This brings us to the end of this tutorial. In this tutorial, we have, .. L18 -{{{Show self assessment questions slide}}} +{{{ Show the "Self assessment questions" slide }}} .. R18 @@ -284,7 +302,7 @@ remove the line. .. L19 -{{{Show self assessment questions slide}}} +{{{ Show the "Self assessment questions: Solutions" slide }}} .. R19 @@ -300,7 +318,7 @@ package. .. L20 -{{{ Show the thankyou slide }}} +{{{ Show the "Thank you" slide }}} .. R20 -- cgit