summaryrefslogtreecommitdiff
path: root/Latex
diff options
context:
space:
mode:
authorJovina2012-08-03 11:35:54 +0530
committerJovina2012-08-03 11:35:54 +0530
commita9c09136b785a5769d7b927c22f416f1964016fe (patch)
treea4d4b9b7b142bbe5051485d69640e17e2f32b16e /Latex
parent18d8394b05bc6cc52cd1a54a59a22163b5147c34 (diff)
parentf71e9c3a7f4407dcd1ade3858c9a3a07028ce716 (diff)
downloadsdes-stscripts-a9c09136b785a5769d7b927c22f416f1964016fe.tar.gz
sdes-stscripts-a9c09136b785a5769d7b927c22f416f1964016fe.tar.bz2
sdes-stscripts-a9c09136b785a5769d7b927c22f416f1964016fe.zip
Merge branch 'master' of http://github.com/FOSSEE/sdes-stscripts
Diffstat (limited to 'Latex')
-rw-r--r--Latex/Latex1/latex_install_script.rst51
-rw-r--r--Latex/Latex2/latex_intro.tex16
-rw-r--r--Latex/Latex2/latex_intro_script.rst182
-rw-r--r--Latex/Latex3/latex_basics.tex31
-rw-r--r--Latex/Latex3/latex_basics_and_structure_script.rst187
-rw-r--r--Latex/Latex4/Latex_Typesetting_Text.tex16
-rw-r--r--Latex/Latex5/Latex_FTF.tex20
-rw-r--r--Latex/Latex6/latex_math2beamer.tex18
-rw-r--r--Latex/Latex6/latex_math_biblo_beamer_script.rst117
9 files changed, 379 insertions, 259 deletions
diff --git a/Latex/Latex1/latex_install_script.rst b/Latex/Latex1/latex_install_script.rst
index 2013e40..bae8060 100644
--- a/Latex/Latex1/latex_install_script.rst
+++ b/Latex/Latex1/latex_install_script.rst
@@ -1,16 +1,29 @@
+.. Objectives
+.. ----------
+
+.. At the end of this tutorial, you will
+
+.. Install LaTeX on your computer.
+.. Learn how to install a plug-in for a TeX editor.
+.. Configure the TeX editor with the LaTeX plug-in.
+.. Useful information on some LaTeX packages.
+.. Compile a TeX file to pdf.
+
.. Prerequisites
.. -------------
-.. 1. You'll need a TeX distribution.
-... A good text editor and a DVI or PDF viewer.
-... Updated Linux distribution as Operating System.
-... Working internet connection (for installation over the network).
+.. You'll need a TeX distribution.
+.. A good text editor and a DVI or PDF viewer.
+.. Updated Linux distribution as Operating System.
+.. Working internet connection (for installation over the network).
-.. Author: Kiran Isukapatla < kiran [at] fossee [dot] in >
-.. Internal Reviewer:
-.. Check-list OK?: <put date stamp here, if OK>
---------
+.. Author : Kiran Isukapatla < kiran [at] fossee [dot] in >
+ Internal Reviewer : Kiran Isukapatla < kiran [at] fossee [dot] in >
+ External Reviewer :
+ Langauge Reviewer :
+ Checklist OK? : 25-Feb-2012
+
Script
--------
@@ -28,13 +41,13 @@ Hello friends, welcome to the tutorial on 'LaTeX Installation'.
.. R2
-At the end of this tutorial you will be able to:
+At the end of this tutorial you will be able to
-.. 1. Install LaTeX on your computer.
-.. #. Learn how to install a plug-in for a TeX editor.
-.. #. Configure the TeX editor with the LaTeX plug-in.
-.. #. Useful information on some LaTeX packages.
-.. #. Compile a TeX file to pdf.
+1. Install LaTeX on your computer.
+#. Learn how to install a plug-in for a TeX editor.
+#. Configure the TeX editor with the LaTeX plug-in.
+#. Useful information on some LaTeX packages.
+#. Compile a TeX file to pdf.
.. L3
@@ -111,11 +124,11 @@ This produces an output file, in the pdf format.
This brings us to the end of the tutorial. In this tutorial, we have
learnt to,
-.. 1. Install LaTeX on your computer.
-.. #. How to install a plug-in for a TeX editor.
-.. #. Configure the TeX editor with the LaTeX plug-in.
-.. #. Choose a LaTeX packages as per requirement.
-.. #. Compile a TeX file to pdf.
+1. Install LaTeX on your computer.
+#. How to install a plug-in for a TeX editor.
+#. Configure the TeX editor with the LaTeX plug-in.
+#. Choose a LaTeX packages as per requirement.
+#. Compile a TeX file to pdf.
.. L11
diff --git a/Latex/Latex2/latex_intro.tex b/Latex/Latex2/latex_intro.tex
index 2bb0314..eca5367 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.
diff --git a/Latex/Latex2/latex_intro_script.rst b/Latex/Latex2/latex_intro_script.rst
index 390f0eb..a5cdc57 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,15 +16,14 @@
.. 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 >
Internal Reviewer : Kiran Isukapatla < kiran [at] fossee [dot] in >
External Reviewer :
Langauge Reviewer :
- Checklist OK? : <put date stamp here, if OK>
+ Checklist OK? : 25-Feb-2012
Script
------
@@ -36,38 +35,39 @@ team along with the logo of MHRD }}}
.. R1
-Hello Friends and welcome to the tutorial on introduction to LaTeX.
+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?
-.. #. Know the advantages and disadvantages of typesetting documents
-.. using the LaTeX approach.
-.. #. Have a description, of a typical work flow; which uses LaTeX to typeset
-.. documents.
-.. #. Recognize and differentiate between LaTeX commands, LaTeX comments and
-.. special characters, spacing and actual document content.
-.. #. Be able to create and compile a very simple LaTeX document.
+1. Get acquainted to LaTeX.
+#. Know why we prefer LaTeX?
+#. Know the advantages and disadvantages of typesetting documents
+ using the LaTeX approach.
+#. Have a description of a typical work flow; which uses LaTeX to typeset
+ documents.
+#. Recognize and differentiate between LaTeX commands, LaTeX comments and
+ special characters, spacing and actual document content.
+#. Be able to create and compile a very simple LaTeX document.
.. L3
-{{{ Switch to the pre-requisite slide }}}
+{{{ Show the "Pre-requisite" slide }}}
.. R3
-Before beginning this tutorial, we would suggest having a working installation of
-LaTeX on your computer. You can do this by completing the tutorial titled
+Before beginning this tutorial, we would suggest having a working installation
+of LaTeX on your computer. You can do this by completing the tutorial on
"Installing LaTeX".
.. L4
+{{{ Show the "Introduction" slide }}}
.. R4
@@ -75,10 +75,10 @@ LaTeX began as TeX, a computer program originally created by
Donald E. Knuth. Its was designed mainly to aid typesetting
of text and mathematical formulae.
-LaTeX is a typesetting program that produces excellently typeset documents.
+It is a typesetting program that produces excellently typeset documents.
Typesetting is placing text onto a page with all the style formatting defined,
-so that content looks as intended. It is extensively used for producing high
-quality scientific and mathematical documents. It may also be used for
+so that the content looks as intended. It is extensively used for producing
+high quality scientific and mathematical documents. It may also be used for
producing other kinds of documents, ranging from simple one page articles to
complete books.
@@ -88,29 +88,37 @@ technology.
.. L5
+{{{ Show the "Why LaTeX?" slide }}}
.. R5
-Below are some of the reasons we prefer LaTeX
+Why we prefer LaTeX?
(a) LaTeX offers excellent visual quality.
-(b) It handles typesetting and lets you focus on content.
-(c) Its makes writing complex math equation extremely simple.
+(b) Handles typesetting and lets you focus on content.
+(c) 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
-Mark-up — a system of annotating text, adding extra information to
-specify structure and presentation of text
-Document based markup - you don’t have to worry about each
-element individually.
+Mark-up: a system of annotating text, adding extra information to specify
+structure and presentation of text.
+Document based markup: you don’t have to worry about each 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
+Some of the disadvantages of using LaTeX approach to typesetting are
(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,13 +162,14 @@ 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
+with a backslash. LaTeX environments have a begin and end marker. The begin and
end document commands, mark the beginning and the end of the content of the
LaTeX document. The text in between the begin and end commands is typeset in
the output document.Any content after \end{document} is ignored. The type of
@@ -170,20 +181,22 @@ command and ends with an end command.
So, as expected LaTeX ignores anything that is written after the \end{document}
command. Essentially, anything written after the \end{document} command turns
-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.
+out to be a comment.
-.. L10
+.. L11
+{{{ Show the "Commands,Comments&Special Characters ..." slide }}}
-.. R10
+.. R11
+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.
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
-LaTeX. The others are, ~ # $ ^ & _ { } \. All of them, except the \ itself, can
-be inserted by escaping it with a \. To insert a \ in our document, we use the
-command \textbackslash.
+LaTeX. The others are shown on the screen. All of them, except the \ itself,
+can be inserted by escaping it with a \. To insert a \ in our document, we use
+the command \textbackslash.
What would happen if we escape a \ with a \?
A double backslash is actually another command. It inserts a new line in the
@@ -191,26 +204,28 @@ typeset document. Normally LaTeX automatically spaces the given input optimally.
But, sometimes we have to insert manual line breaks. The \\ command or \newline
command is used to insert a newline in the output document. Line breaks in the
input document, do not translate into line breaks in the output document. A
-single line break in the input document, doesn't cause any change in the output.
+single line break in the input document, doesn't cause any change in the
+output document.
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
+Now, 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.
@@ -221,13 +236,13 @@ file temp.tex into a DVI file, we use the following command
latex temp.tex.
-The output file would be temp.dvi.On Gnu/Linux use a program like xdvi to view
-the output file.
+The output file would be temp.dvi.
-.. 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
@@ -235,35 +250,32 @@ file temp.tex into a PDF file, we use the following command
pdflatex temp.tex
-The output file would be temp.pdf.On Gnu/Linux use a program like evince to
-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
-.. 1. About LaTeX.
-.. #. why we prefer LaTeX.
-.. #. About the advantages and disadvantages of typesetting documents
-.. using the LaTeX approach.
-.. #. A description, of a typical work flow; which uses LaTeX to typeset
-.. documents.
-.. #. The ability to recognize and differentiate between LaTeX commands, LaTeX
-.. comments and special characters, spacing and actual document content.
-.. #. Created and compiled a very simple LaTeX document.
+1. About LaTeX.
+#. why we prefer LaTeX.
+#. About the advantages and disadvantages of typesetting documents
+ using the LaTeX approach.
+#. A description, of a typical work flow; which uses LaTeX to typeset
+ documents.
+#. The ability to recognize and differentiate between LaTeX commands, LaTeX
+ 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,25 +286,23 @@ 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 "Solutions" slide }}}
-.. R16
+.. R17
And the answers,
-1. We can use the following command to convert temp.dvi to temp_1.ps
-dvips -o temp_1.ps temp.dvi
+1. 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
+2. 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..d09aa92 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},
@@ -267,6 +279,16 @@
\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}
\item Our document is short, but let's learn to add a TOC
@@ -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
diff --git a/Latex/Latex3/latex_basics_and_structure_script.rst b/Latex/Latex3/latex_basics_and_structure_script.rst
index 09e8d2a..d1db08b 100644
--- a/Latex/Latex3/latex_basics_and_structure_script.rst
+++ b/Latex/Latex3/latex_basics_and_structure_script.rst
@@ -1,73 +1,74 @@
.. 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.
.. #. 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
.. -------------
-.. 1. latex_intro
+.. 1. Introduction to LaTeX
.. 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? : <put date stamp here, if 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
-{{{ 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.
-.. #. 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
-{{{ Switch to the pre-requisite slide }}}
+{{{ Show the "Pre-requisite" slide }}}
.. 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
+{{{ Show the "A Very Basic LaTeX document" slide }}}
.. 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
@@ -86,33 +87,38 @@ The first line reads
.. L5
+{{{ Show the "documentclass command" slide }}}
.. R5
-which more generally can be written as
+documentclass article, which more generally can be written as
.. L6
+{{{ Show the "documentclass command ..." slide }}}
.. 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
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
+{{{ Show the "documentclass command: A Closer look" slide }}}
.. R7
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
@@ -121,59 +127,66 @@ with a square in the margin
.. L8
+{{{ Show the "usepackage command" slide }}}
.. 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
-::
+{{{ Show the "Top Matter" slide }}}
.. R9
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
+{{{ Show the "Top Matter ..." slide }}}
.. 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
+{{{ Show the "abstract command" slide }}}
.. 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
-
+{{{ Show the "Sectioning" slide }}}
.. R12
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
+{{{ Show the "Creating Chapters" slide }}}
+
.. R13
Longer documents can use report or book class. We can add a new chapter using
@@ -182,42 +195,42 @@ file shown in the slide we notice that subsections are not numbered.
.. L14
+{{{ Show the "Sectioning and numbering" slide }}}
.. 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
+{{{ Show the "Appendix" 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
+{{{ Show the "Table of Contents [TOC]" slide }}}
.. 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
@@ -225,22 +238,23 @@ Preface or a Foreword section to appear in the Table of Contents.
.. L17
+{{{ Show the "TOC ..." slide }}}
.. 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
-{{{ Show slide with exercise 1 }}}
+{{{ Show the "Exercise 1" slide }}}
.. 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
@@ -252,7 +266,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,24 +274,24 @@ This slide on screen shows a possible valid solution to the given exercise.
.. L20
-{{{ Show summary slide }}}
+{{{ Show the "Summary" slide }}}
.. R20
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
-{{{Show self assessment questions slide}}}
+{{{ Show the "Self assessment questions" slide }}}
.. R21
@@ -287,28 +301,29 @@ 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
-{{{Show self assessment questions slide}}}
+{{{ Show the "Solutions" slide }}}
.. R22
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.
.. L23
-{{{ Show the thankyou slide }}}
+{{{ Show the "Thank you" slide }}}
.. R23
diff --git a/Latex/Latex4/Latex_Typesetting_Text.tex b/Latex/Latex4/Latex_Typesetting_Text.tex
index ef9ad49..5576521 100644
--- a/Latex/Latex4/Latex_Typesetting_Text.tex
+++ b/Latex/Latex4/Latex_Typesetting_Text.tex
@@ -178,18 +178,24 @@
\begin{frame}[fragile]
\frametitle{Evaluation}
\begin{enumerate}
-\item
-\item
-\item
+\item Which environment is used including a block of code?
+\item What are the basic lists that make environments?
+\item Joe has numerous used labels inside his Latex document. But all the references to label names come up as question marks. What might be the problem?
\end{enumerate}
\end{frame}
\begin{frame}
\frametitle{Solutions}
\begin{enumerate}
-\item
+\item lstlistings
\vspace{15pt}
-\item
+\item
+\begin{enumerate}
+\item itemize(for unorderd lists)
+\item enumerate(for ordered lists)
+\item description(lists where you want to specify your own label)
+\end{enumerate}
+\item While using labels, the latex document should be compiled twice for the references to show up.
\end{enumerate}
\end{frame}
\begin{frame}
diff --git a/Latex/Latex5/Latex_FTF.tex b/Latex/Latex5/Latex_FTF.tex
index 0ef52ca..c7c50ae 100644
--- a/Latex/Latex5/Latex_FTF.tex
+++ b/Latex/Latex5/Latex_FTF.tex
@@ -214,20 +214,30 @@
\begin{frame}[fragile]
\frametitle{Evaluation}
\begin{enumerate}
-\item
-\item
-\item
+\item Why the figures and tables are called as floats?
+\item What are the input parameters the figure environment take to make it float?
+\item What is the mandatory arguement in tabular environment specification?
\end{enumerate}
\end{frame}
\begin{frame}
\frametitle{Solutions}
\begin{enumerate}
-\item
\vspace{15pt}
-\item
+\item Figures and tables are called as floats because they float to the nearest location.
+\item The following can be used as parameters to a figure environment to make it float.
+\begin{itemize}
+\item t - Top of the page.
+\item b - Bottom of the page.
+\item p - Separate pages for float
+\item h - Here(the place where command appears)
+\item !- To override Latex internal parameters for good position
+\end{itemize}
+
+\item Alignment of each column
\end{enumerate}
\end{frame}
+
\begin{frame}
\begin{block}{}
diff --git a/Latex/Latex6/latex_math2beamer.tex b/Latex/Latex6/latex_math2beamer.tex
index d8ba927..4b981ee 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}
diff --git a/Latex/Latex6/latex_math_biblo_beamer_script.rst b/Latex/Latex6/latex_math_biblo_beamer_script.rst
index b98a750..a1de297 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
@@ -41,12 +40,12 @@ formulae, bibliography and presentations, using LaTeX.
.. R2
-.. At the end of this tutorial, you will be able to
+At the end of this tutorial, you will be able to
-.. 1. Write simple mathematical formulae in LaTeX.
-.. #. Typeset simple mathematical formulae in LaTeX.
-.. #. Write bibliography for a LaTeX document.
-.. #. Make presentations in LaTeX, using beamer.
+1. Write simple mathematical formulae in LaTeX.
+#. Typeset simple mathematical formulae in LaTeX.
+#. Write bibliography for a LaTeX document.
+#. Make presentations in LaTeX, using beamer.
.. L3
@@ -55,39 +54,44 @@ 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
in LaTeX. AMS-LaTeX is a collection of packages and classes for mathematical
typesetting.
-We can load amsmath by issuing the \usepackage{amsmath} in the preamble.It must
+We can load amsmath by issuing the \usepackage{amsmath} in the preamble.It must
be noted that amsmath is included in the base distribution of LaTex, in atleast
the most recent versions.
-Math formulae can be embedded in two ways,
- “inline” or “text style ” method, which is done by enclosing the
- required command and text within two dollar signs or between an backslash
- opening bracket and backslash closing bracket.
+Math formulae can be embedded in one of two ways. The first is, “inline” or
+“text style ” method, which is done by enclosing the required commands and
+text within two dollar signs or between an backslash opening bracket and
+backslash closing bracket.
- By enclosing them in a dedicated environment respectively/displayed style.
+The second method is by enclosing them in a dedicated environment respectively,
+this is also called displayed style.
The most common LaTeX environment used to typeset mathematical formulae is
-from equation family.
+from the equation family.
.. L5
+{{{ Show the "Matrices" slide }}}
.. R5
An environment like bmatrix for example, is used to render a matrix. The syntax
-for specifying a matrix is similar to that used in the tabular environment. The
-& symbol is used for demarcating columns and \\ is used to demarcate rows.
+for specifying a matrix is similar to that used for the tabular environment.
+The & symbol is used for demarcating columns and \\ is used to demarcate rows.
There are 5 other matrix environments and each have different/no type of
delimiters. A table showing the data is being shown on the screen. The matrix
@@ -95,10 +99,11 @@ and its allied environments are defined by the amsmath package.
.. L6
+{{{ Show the "Matrices ..." slide }}}
.. R6
-The screen shows the an example, that renders different types of matrices using
+The screen shows the example, that renders different types of matrices using
LaTeX.
It also shows the two ways in which mathmatical formulae can be embedded into
@@ -109,42 +114,46 @@ Please pause the tutorial and go through the example shown on the screen.
.. L7
{{{continue from paused state}}}
+{{{ Show the "Superscripts & Subscripts" slide }}}
.. R7
To typeset superscripts in LaTeX, the carat character is used. The carat
-operator just acts on the next character.
+operator just acts on the immediate next character.
To typeset subscripts in LaTeX, the underscore character is used. The carat
-operator just acts on the next character.
-Multiple characters and ambiguity is resolved by grouping them using opening
-and closing curly brackets.
+operator just acts on the immediate next character.
+Multi character grouping and ambiguity is resolved by grouping them using
+opening and closing curly brackets.
.. L8
+{{{ Show the "Summation & integration" slide }}}
.. R8
-To typeset the summation symbol, use the sum command. Similarly, the integral
-symbol is obtained using the int command. The upper and lower limits, for both
-the sum and int command are specified using the carat and underscore characters
-, respectively.
+To typeset the summation symbol, we use the sum command. Similarly, the
+integral symbol is obtained using the int command.
+The upper and lower limits, for both the sum and int command are specified
+using the carat and underscore characters, respectively.
.. L9
+{{{ Show the "displayed math" slide }}}
.. R9
-We now move onto using the equation environment to render mathematical formulae,
-which are numbered. Another environment called equation star environment renders
+We now move onto using the equation environment to render mathematical formulae
+which are numbered. Another allied environment called equation star renders
unnumbered equations.
-Backslash and opening square bracket and its counterpart the backslash
-closing square bracket is a short hand for equation star environment.
+Backslash opening square bracket and its counterpart the backslash closing
+square bracket is a short hand for equation star environment.
There is no similar shorthand for equation environment (i.e, the numbered
equation environment).
.. L10
+{{{ Show the "Groups of equations" slide }}}
.. R10
@@ -162,18 +171,22 @@ ampersand symbol.
.. L11
+{{{ Show the "Fractions & Surds" slide }}}
.. R11
-To typeset fractions use the frac command. To typeset surds, we use the sqrt
-command with the optional paramter of [n].
+To typeset fractions we use the frac command and to typeset surds, we use the
+sqrt command with the optional paramter of [n]. The optional parameter for the
+sqrt command is used to render roots not equal to 2.
-Please note that there is a special command dfrac, that can be used to render
-fractions as if its placed in display mode and is meant to be used even in
+Please note that there is a special command dfrac that can be used to render
+fractions, as if its placed in display mode and is meant to be used even in
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 +200,8 @@ to specify the spacing required.
.. L13
+{{{ Show the "Bibliography" slide }}}
+
.. R13
Writing bibliographies in LaTeX using the thebibliography environment is pretty
@@ -197,24 +212,25 @@ Each entry of the bibliography begins with the command bibitem. It takes an
optional parameter called label and a name for the entry.The label option
replaces the numbers from the auto enumeration with the labels given.
-The to cite the bibliography item within the document, we use the cite command,
+Then to cite the bibliography item within the document we use the cite command,
containing name as a parameter.
We start the bibliography environment with a numerical parameter. This defines
how much space is to be reserved for all the labels.
If for example, we have less than 10 items in the Bibliography we would begin
-the bibliography environment with an parameter, whose value is 9.
+the bibliography environment with a parameter, whose value is 9.
.. L14
{{{continue from paused state}}}
+{{{ Show the "Beamer" slide }}}
.. R14
It is highly recommended to use beamer to create presentations, especially when
-you are using LaTeX typesetting your report. This is mainly because, it would be
-really easy to reuse the LaTeX that you have used for the report/document for
-the presentation as well.
+you are using LaTeX typesetting your report. This is mainly because it would be
+really easy to reuse the LaTeX content that you have already used for the
+report/document for, the presentation as well.
We begin a beamer document with the documentclass being set to beamer.
@@ -223,6 +239,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
@@ -237,7 +255,8 @@ We must also note that the title page of the presentation can be set like any
other LaTeX document.
If we have to use fragile environemts like verbatim or lstlisting inside a
-slide, then we have to pass an additional parameter to begin frame, fragile.
+slide, then we have to pass an additional parameter to begin frame, namely
+fragile.
Overlays and simple animation can be achieved using the pause command.
@@ -246,6 +265,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,20 +278,20 @@ example shown on the screen.
.. L17
{{{continue from paused state}}}
-{{{ Show summary slide }}}
+{{{ Show the "Summary" slide }}}
.. R17
This brings us to the end of this tutorial. In this tutorial, we have,
-.. 1. Written simple mathematical formulae in LaTeX.
-.. #. Typeset simple mathematical formulae in LaTeX.
-.. #. Written bibliography for a LaTeX document.
-.. #. Made a sample presentations in LaTeX, using beamer.
+1. Written simple mathematical formulae in LaTeX.
+#. Typeset simple mathematical formulae in LaTeX.
+#. Written bibliography for a LaTeX document.
+#. Made a sample presentations in LaTeX, using beamer.
.. L18
-{{{Show self assessment questions slide}}}
+{{{ Show the "Self assessment questions" slide }}}
.. R18
@@ -284,7 +305,7 @@ remove the line.
.. L19
-{{{Show self assessment questions slide}}}
+{{{ Show the "Solutions" slide }}}
.. R19
@@ -300,7 +321,7 @@ package.
.. L20
-{{{ Show the thankyou slide }}}
+{{{ Show the "Thank you" slide }}}
.. R20