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/Latex3/latex_basics.tex | 33 ++++++++++++++---- Latex/Latex3/latex_basics_and_structure_script.rst | 40 ++++++++++++++-------- 2 files changed, 53 insertions(+), 20 deletions(-) (limited to 'Latex/Latex3') 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 -- cgit From 99c06907e283dd532528d6beb34b139c237ed481 Mon Sep 17 00:00:00 2001 From: Harish Badrinath Date: Thu, 9 Feb 2012 19:36:45 +0530 Subject: Fixed some slide naming mistakes along with formatting mistakes --- Latex/Latex3/latex_basics.tex | 2 +- Latex/Latex3/latex_basics_and_structure_script.rst | 34 +++++++++++----------- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'Latex/Latex3') diff --git a/Latex/Latex3/latex_basics.tex b/Latex/Latex3/latex_basics.tex index 3ddaa7f..d09aa92 100644 --- a/Latex/Latex3/latex_basics.tex +++ b/Latex/Latex3/latex_basics.tex @@ -398,7 +398,7 @@ \end{frame} \begin{frame}[fragile] -\frametitle{\typ{Self assessment questions: Solutions}} +\frametitle{\typ{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 fb2d068..24a618e 100644 --- a/Latex/Latex3/latex_basics_and_structure_script.rst +++ b/Latex/Latex3/latex_basics_and_structure_script.rst @@ -42,15 +42,15 @@ document structure". .. R2 -.. At 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. -.. #. Create a LaTeX document with a title and an abstract. -.. #. Create numbered and non-numbered sections and subsections in a LaTeX -.. document. -.. #. Create an appendix in a LaTeX document. -.. #. Create a table of content in a LaTeX document. +1. Understand basic structure of a LaTeX document, its various document + classes and loading packages that add new features to the LaTeX system. +#. Create a LaTeX document with a title and an abstract. +#. Create numbered and non-numbered sections and subsections in a LaTeX + document. +#. Create an appendix in a LaTeX document. +#. Create a table of content in a LaTeX document. .. L3 @@ -278,14 +278,14 @@ This slide on screen shows a possible valid solution to the given exercise. This brings us to the end of this tutorial. In this tutorial, we have, -.. 1. Gained an understanding of the basic structure of a LaTeX document, its -.. various document classes and loading packages that add new features to -.. the LaTeX system. -.. #. Created a LaTeX document with a title and an abstract. -.. #. Created both numbered and non-numbered sections and subsections in a -.. LaTeX document. -.. #. Created an appendix in a LaTeX document. -.. #. Created a table of content in a LaTeX document. +1. Gained an understanding of the basic structure of a LaTeX document, its + various document classes and loading packages that add new features to + the LaTeX system. +#. Created a LaTeX document with a title and an abstract. +#. Created both numbered and non-numbered sections and subsections in a + LaTeX document. +#. Created an appendix in a LaTeX document. +#. Created a table of content in a LaTeX document. .. L21 @@ -305,7 +305,7 @@ do they automatically appear in the table of content ?? .. L22 -{{{ Show the "Self assessment questions: Solutions" slide }}} +{{{ Show the "Solutions" slide }}} .. R22 -- cgit From 67b3e605ff0cf8cf0f83881d69891d83b27048c9 Mon Sep 17 00:00:00 2001 From: ikkiran Date: Sun, 26 Feb 2012 16:39:11 +0530 Subject: Minor changes done. --- Latex/Latex3/latex_basics_and_structure_script.rst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Latex/Latex3') diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst index 24a618e..3e2fa80 100644 --- a/Latex/Latex3/latex_basics_and_structure_script.rst +++ b/Latex/Latex3/latex_basics_and_structure_script.rst @@ -6,10 +6,10 @@ .. 1. Understand basic structure of a LaTeX document, its various document .. classes and loading packages that add new features to the LaTeX system. .. #. Create a LaTeX document with a title and an abstract. -.. #. Create numbered and non-numbered sections and subsections in a LaTeX +.. #. Create numbered and non-numbered sections and sub-sections in a LaTeX .. document. .. #. Create an appendix in a LaTeX document. -.. #. Create a table of content in a LaTeX document. +.. #. Create a 'table of contents' in a LaTeX document. .. Prerequisites .. ------------- @@ -18,22 +18,22 @@ .. Author : Harish Badrinath < harish [at] fossee [dot] in > - Internal Reviewer : + Internal Reviewer : Kiran Isukapatla < kiran [at] fossee [dot] in > External Reviewer : Langauge Reviewer : - Checklist OK? : + Checklist OK? : 26-Feb-2012 Script ------ .. L1 -{{{ Show the first slide containing title, name of the production +{{{ Show the first slide containing the title, name of the production team along with the logo of MHRD }}} .. R1 -Hello friends and welcome to the tutorial titled "Basics of LaTeX and its +Hello friends and welcome to the tutorial on "Basics of LaTeX and its document structure". .. L2 @@ -49,7 +49,7 @@ At the end of this tutorial, you will be able to #. Create a LaTeX document with a title and an abstract. #. Create numbered and non-numbered sections and subsections in a LaTeX document. -#. Create an appendix in a LaTeX document. +#. Create an 'appendix' in a LaTeX document. #. Create a table of content in a LaTeX document. .. L3 @@ -58,8 +58,8 @@ At the end of this tutorial, you will be able to .. R3 -Before beginning this tutorial,we would suggest having a working installation of -LaTeX and suggest you to complete the tutorial titled "Introduction to LaTeX". +Before beginning this tutorial, we would suggest having a working installation of +LaTeX and also complete the tutorial "Introduction to LaTeX". .. L4 @@ -68,7 +68,7 @@ LaTeX and suggest you to complete the tutorial titled "Introduction to LaTeX". .. R4 We begin this tutorial with an example introduced in the previous tutorial. -The text in the document is illustrative and can be replaced replaced by a +The text in the document is illustrative and can be replaced by a single alpha-numeric character, for example. When done so, the resulting document could be described as the shortest possible LaTeX input document, that creates an output file. It consists of 3 LaTeX commands and one line/character -- cgit From 9aa3dead6022749ef41f97bfb0d4cec2dd6ab9f5 Mon Sep 17 00:00:00 2001 From: Harish Badrinath Date: Mon, 27 Feb 2012 12:27:10 +0530 Subject: Made script more verbose for "one line slides", as per feedback given by kiran. --- Latex/Latex3/latex_basics_and_structure_script.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'Latex/Latex3') diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst index 3e2fa80..9d8f6c6 100644 --- a/Latex/Latex3/latex_basics_and_structure_script.rst +++ b/Latex/Latex3/latex_basics_and_structure_script.rst @@ -91,7 +91,7 @@ The first line reads .. R5 -which more generally can be written as +documentclass article, which more generally can be written as .. L6 @@ -99,6 +99,7 @@ which more generally can be written as .. R6 +documentclass parameters DocumentClass. Where documentclass is a LaTeX command. Parameters specify if you want to use a non default font size, for example. More specifically the parameters can be used to alter things like font size of @@ -129,10 +130,11 @@ with a square in the margin .. R8 -This statement can be used optionally and is used to include packages, which are -used to extend the LaTeX's capabilities. There are a number of packages that are -included by default with LaTeX2 base distribution. You can use the texdoc -command for accessing package documentation. +The usepackage command is called with package name argument, prepended with +optional parameters. It is included optionally in a LaTeX document, to include +packages, which further extend the LaTeX's capabilities. There are a number of +packages that are included by default with LaTeX2 base distribution. You can use +the texdoc command for accessing package documentation. .. L9 -- cgit From 0f73a1ddad07d654cb9b0f068ea2b4c2a109b79f Mon Sep 17 00:00:00 2001 From: Harish Badrinath Date: Tue, 6 Mar 2012 12:04:01 +0530 Subject: Fixed various errors in the Latex2,Latex3 and Latex6 scripts. --- Latex/Latex3/latex_basics_and_structure_script.rst | 67 +++++++++++----------- 1 file changed, 33 insertions(+), 34 deletions(-) (limited to 'Latex/Latex3') diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst index 9d8f6c6..90067c7 100644 --- a/Latex/Latex3/latex_basics_and_structure_script.rst +++ b/Latex/Latex3/latex_basics_and_structure_script.rst @@ -117,7 +117,7 @@ The supported classes have a few differences, in how the content of the document We now look at a hypothetical documentclass command. The command being shown on the screen, instructs LaTeX to Create a new document of class report. The available classes are article, proc, -report, book, slides, letter. +report, book, slides and letter. 12 pt: sets the font size of main font. Other are relatively adjusted. 10pt is the default. a4paper: specifies the paper size @@ -144,7 +144,7 @@ the texdoc command for accessing package documentation. We add the title, the author and the date to the document before the \begin{document} directive. We compile the document to see if the details -appear in the document, but they donot. +appear in the document, but they do not. .. L10 @@ -153,8 +153,10 @@ appear in the document, but they donot. .. R10 The command \maketitle adds title, authors name and date to the output file. -Of these only the date is optional. If date command is specified, then the given -date is used else today's date is used. +Of these only the date is optional. The date command can be called with an +optional parameter. If the optional parameter is not provided, the date of +compilation of the LaTeX document is used. The parameter, if specified is used +to override this value. .. L11 @@ -162,10 +164,10 @@ date is used else today's date is used. .. R11 -The abstract command is used to insert abstract of a document, into the output -file.Place it in the location, where you want your abstract to present in -the document. It is available for the document classes article and report, but -not book +The abstract command is used to insert the abstract of a document, into the +output file.Place it in the location, where you want your abstract to present +in the document. It is available for the document classes article and report, +but not for the book class. .. L12 @@ -176,9 +178,9 @@ not book Titles chapters and sections are used to help the user find his or her way through your work. The following commands are available in the article class: section, subsection, subsubsection, paragraph and sub paragraph. The default -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. +behavior is to use numbered sections. We can use un-numbered sections by +appending * to section command. If you want to split your document without +influencing the section or chapter numbering, use the part command. .. L13 @@ -196,8 +198,8 @@ file shown in the slide we notice that subsections are not numbered. .. R14 -We can change this behavior with the command setcounter , calling it as shown -in the slide. +We can change this behavior with the setcounter command, calling it with +parameters shown on the slide. .. L15 @@ -205,12 +207,13 @@ in the slide. .. R15 -Appendix can be added to the document using \appendix command. any content after -\appendix will be added to the appendix. In the report or book class, we have to -use \chapter to indicate that the chapters are to be numbered as appendices. +Appendix can be added to the document using \appendix command. Any content +after the \appendix command will be added to the appendix. In the report or +book class, we have to use \chapter command to indicate that the chapters are +to be numbered as appendices. -similarly for the article class we have to use the section command to indicate -that sections are to be numbered as appendices. +Similarly for the article class, we have to use the \section command to indicate +the sections that are to be numbered as appendices. .. L16 @@ -218,19 +221,15 @@ that sections are to be numbered as appendices. .. R16 -Lets add a Table of content to the document. The LaTeX command to add a TOC to a -document is using \tableofcontents command and is placed at the point at which -the table of content is to be placed. - -Now, compile the document and look at the output document. It does not have the table of contents! - -We compile our LaTeX file as usual. On the first compilation only the "Contents" -heading appears in the document, but the actual table does not appear. You will -need to compile your document once more, for the actual table to appear in your -document. On the first run, LaTeX has gone through your document and generated -a temporary file (.toc), with the entries that should go into the table of -contents. These entries are made, when you compile your document for the second -time. +We use the \tableofcontents command to add a TOC to a document is and is placed +at the point at which the table of content is to be placed. It must be noted +that \tableofcontents command requires the LaTeX input file to be compiled +twice. On the first compilation only the "Contents" heading appears in the +document, but the actual table does not appear. LaTeX has now gone through +the input document and generated a temporary file (.toc), with the entries that +should go into the table of contents. When the input document is compiled for +the second time, these entries are made and the actual table will appear in +your output document. Note that any section/block that has been numbered automatically appears in the table of contents. It is possible to get un-numbered sections, for instance a @@ -243,9 +242,9 @@ Preface or a Foreword section to appear in the Table of Contents. .. R17 Un-numbered sections are added to TOC using \addcontentsline command. -For example we use the command -\addcontentsline{toc}{section}{Intro} -where "Intro" is the text that you want to appear in the Table of contents. +For example we use the addcontentsline command called with the parameters +"{toc}{section}{Intro}", for the text "Intro" to appear in the Table of +contents. .. L18 -- cgit From 186de388ed3f7637799a8056b93bbd2711feec41 Mon Sep 17 00:00:00 2001 From: Harish Badrinath Date: Tue, 6 Mar 2012 13:20:48 +0530 Subject: Formatting fix for two_column.py (Latex3) --- Latex/Latex3/latex_basics_and_structure_script.rst | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'Latex/Latex3') diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst index 90067c7..d1db08b 100644 --- a/Latex/Latex3/latex_basics_and_structure_script.rst +++ b/Latex/Latex3/latex_basics_and_structure_script.rst @@ -58,8 +58,8 @@ At the end of this tutorial, you will be able to .. R3 -Before beginning this tutorial, we would suggest having a working installation of -LaTeX and also complete the tutorial "Introduction to LaTeX". +Before beginning this tutorial, we would suggest having a working installation +of LaTeX and also complete the tutorial "Introduction to LaTeX". .. L4 @@ -106,7 +106,8 @@ More specifically the parameters can be used to alter things like font size of the document, paper size, two sided or single sided printing, etc, for each class, that is supported by LaTeX. -The supported classes have a few differences, in how the content of the document is typeset. +The supported classes have a few differences, in how the content of the document +is typeset. .. L7 @@ -252,8 +253,8 @@ contents. .. R18 -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 +Write a LaTeX script that creates a document of type article, which contains +an appendix and a table of contents. 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 @@ -300,9 +301,9 @@ Here are some self assessment questions for you to solve and produces the intended result, that is to produce a book with two chapters and an appendix. - 2. subsection command can be placed at any arbitrary level. If they get numbered -by default using the appropriate setcounter command and secnumdepth parameter, -do they automatically appear in the table of content ?? + 2. subsection command can be placed at any arbitrary level. If they get +numbered by default using the appropriate setcounter command and secnumdepth +parameter, do they automatically appear in the table of content ?? .. L22 @@ -312,9 +313,10 @@ do they automatically appear in the table of content ?? And the answers, -1. 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. +1. 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. 2. No, the \tableofcontents command normally shows only numbered section headings, and only down to the level defined by the tocdepth counter. -- cgit