diff options
author | Jovina | 2012-08-27 17:49:15 +0530 |
---|---|---|
committer | Jovina | 2012-08-27 17:49:15 +0530 |
commit | 0b3a72638f909ff58835e3435d4a5d33c4b8f54a (patch) | |
tree | 995bda0599ce129ab920451345cc938cd67a92ff /Latex/Latex3/latex_basics.tex | |
parent | 60359fe58c5584d66e27be1e0e435bb0a0c1e2ca (diff) | |
parent | 6f281af9bde99a7ff6260593fc5faeb97194ac58 (diff) | |
download | sdes-stscripts-0b3a72638f909ff58835e3435d4a5d33c4b8f54a.tar.gz sdes-stscripts-0b3a72638f909ff58835e3435d4a5d33c4b8f54a.tar.bz2 sdes-stscripts-0b3a72638f909ff58835e3435d4a5d33c4b8f54a.zip |
Merge branch 'master' of http://github.com/FOSSEE/sdes-stscripts
Diffstat (limited to 'Latex/Latex3/latex_basics.tex')
-rw-r--r-- | Latex/Latex3/latex_basics.tex | 209 |
1 files changed, 135 insertions, 74 deletions
diff --git a/Latex/Latex3/latex_basics.tex b/Latex/Latex3/latex_basics.tex index 4d66ddb..4f97004 100644 --- a/Latex/Latex3/latex_basics.tex +++ b/Latex/Latex3/latex_basics.tex @@ -154,28 +154,18 @@ \begin{frame}[fragile] \frametitle{\typ{Top Matter}} - Let's add the title, author's name and the date. - \begin{itemize} - \item Add title, author and date. - \item Compile. - \item Nothing changes. - \item use \lstinline$\date{}$, to insert todays date. + Adding Title, Author name \& Date to our document, + \begin{itemize} + \item \lstinline$\title{}$, to add title + \item \lstinline$\author{}$, to add author name + \item \lstinline$\date{}$, to insert todays date + \item Compile + \item Nothing changes \end{itemize} - {\tiny - \begin{verbatim} - \documentclass{article} - \title{A Glimpse at Scipy} - \author{FOSSEE} - \date{June 2010} - \begin{document} - SciPy is open-source software for mathematics, science, and engineering. - \end{document} - \end{verbatim} - } \end{frame} \begin{frame}[fragile] - \frametitle{\typ{Top Matter}\ \ldots} + \frametitle{\typ{Top Matter}..} Now we add \alert{maketitle} command, which inserts the top-matter {\tiny \begin{verbatim} @@ -185,7 +175,8 @@ \date{June 2010} \begin{document} \maketitle - SciPy is open-source software for mathematics, science, and engineering. + SciPy is open-source software for mathematics, science, + and engineering. \end{document} \end{verbatim} } @@ -194,10 +185,16 @@ \begin{frame}[fragile] \frametitle{\typ{abstract command}} \begin{itemize} - \item \typ{abstract} environment inserts abstract. - \item Place it at the location where you want your abstract. + \item \typ{abstract} environment inserts abstract + \item \lstinline$\begin{abstract}$ + \item \lstinline$\end{abstract}$ + \item Place it at the location where you want your abstract \end{itemize} - {\tiny +\end{frame} + +\begin{frame}[fragile] + \frametitle{\typ{abstract command}..} +{\tiny \begin{verbatim} \documentclass{article} \title{A Glimpse at Scipy} @@ -206,9 +203,10 @@ \begin{document} \maketitle \begin{abstract} - This document shows a glimpse of the features of Scipy that will be explored during this course. + This document shows a glimpse of the features of Scipy. \end{abstract} - SciPy is open-source software for mathematics, science, and engineering. + SciPy is open-source software for mathematics, science, + and engineering. \end{document} \end{verbatim} } @@ -222,9 +220,14 @@ \item Auto numbered sections! \item \typ{*} to prevent numbering of a section \end{itemize} +\end{frame} + +\begin{frame}[fragile] + \frametitle{\typ{Sectioning}..} {\tiny \begin{verbatim} \documentclass{article} + \title{Sectioning} \author{FOSSEE} \date{31-February-2012} \begin{document} @@ -243,6 +246,7 @@ } \end{frame} + \begin{frame}[fragile] \frametitle{\typ{Creating Chapters}} \begin{itemize} @@ -251,6 +255,10 @@ \item Chapter can be added using \lstinline{\chapter} command \item Books \alert{do not} have the abstract environment. \end{itemize} +\end{frame} + +\begin{frame}[fragile] + \frametitle{\typ{Creating Chapters}..} {\tiny \begin{verbatim} \documentclass{book} @@ -275,16 +283,6 @@ } \end{frame} -\begin{frame}[fragile] - \frametitle{\typ{Sectioning and numbering}} - \begin{itemize} - \item subsections do not get numbering - \item Change \lstinline{secnumdepth} - \end{itemize} - \begin{lstlisting} - \setcounter{secnumdepth}{3} - \end{lstlisting} -\end{frame} \begin{frame}[fragile] \frametitle{Appendices} @@ -299,60 +297,60 @@ \begin{frame}[fragile] \frametitle{\typ{Table of Contents [TOC]}} \begin{itemize} - \item Our document is short, but let's learn to add a TOC \item Add \lstinline{\tableofcontents} where you want TOC to appear \item Compile \item Only headings appear. No page numbers \item A \lstinline{.toc} file is generated \item Re-compile - \item Any numbered section/block automatically appears \end{itemize} \end{frame} \begin{frame}[fragile] - \frametitle{\typ{TOC}\ \ldots} + \frametitle{\typ{TOC}..} \begin{itemize} + \item Any numbered section/block automatically appears \item Un-numbered sections are added to TOC using \lstinline{\addcontentsline} - \item For instance, \lstinline+\addcontentsline{toc}{section}{Intro}+ + \item For instance, + \lstinline+\addcontentsline{toc}{section}+ + \lstinline+{intro}+ \end{itemize} \end{frame} \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. - 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. + Write a LaTeX script that creates a document of type book, + containing both a TOC at the beginning and an appendix at the end + of document. The book should contain two chapters with numbered \& + un-numbered sections \& these chapters should appear in the TOC. \end{center} \end{frame} \begin{frame}[fragile] \frametitle{\typ{Excercise 1: Solution}} - \begin{center} - Note - This File needs to be compiled twice - \end{center} {\tiny \begin{center} \begin{verbatim} - \documentclass{article} - \title{article with an appendix} - \begin{document} - \tableofcontents - \pagebreak - Main content - \section{Numbered Section1} - Section 1 Text - \subsection{Numbered Subsection1} - Numbered-Section 1’s Subsection Text. - \section{Numbered Section2} - Numbered-Section 2 Text - \section*{Un-numbered Section3} - \addcontentsline{toc}{section}{Numbered Subsection1} - First un-numbered Section Text.\\This appears in the table of content - \section*{Un-numbered Section4} - Second un-numbered Section Text - \appendix + \documentclass{book} + \title{My first book} + \begin{document} + \tableofcontents + \addcontentsline{toc}{section}{Chapter} + \chapter{My First Chapter} + Main + \section{Section1} + Section 1 Text + \subsubsection{My First Subsection} + Numbered-Section 1's Subsection Text + \section*{Section3} + First un-numbered Section Text + \chapter{So We say goodbye} + Thank you for reading dear reader + \section*{Section3} + First un-numbered Section Text + \appendix \section{Appendix - 1} \end{document} \end{verbatim} @@ -366,21 +364,32 @@ \label{sec-8} In this tutorial, we have, \begin{itemize} - \item Gained an understanding of the basic structure of a LaTeX document, its various document classes and loading packages that add new features to - \item the LaTeX system. + \item Understood the basic structure of a LaTeX document, + its various document classes and loading packages that add new features to + the LaTeX system \item Created a LaTeX document with a title and an abstract. - \item Created both numbered and non-numbered sections and subsections in a LaTeX document. - \item Created an appendix in a LaTeX document. - \item Created a table of content in a LaTeX document. \end{itemize} \end{frame} \begin{frame}[fragile] - \frametitle{\typ{Self assessment questions}} + \frametitle{\typ{Summary}..} + \begin{itemize} + \item Created both numbered and non-numbered sections and subsections in a + LaTeX document + \item Created an appendix in a LaTeX document + \item Created a table of content in a LaTeX document + \end{itemize} +\end{frame} + + +\begin{frame}[fragile] + \frametitle{\typ{Self assessment}} \label{sec-9} {\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. + \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 \begin{center} \begin{verbatim} @@ -400,23 +409,76 @@ \end{verbatim} \end{center} } - \item 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 ?? - \end{enumerate} + \end{enumerate} } \end{frame} \begin{frame}[fragile] -\frametitle{\typ{Solutions}} +\frametitle{\typ{Solution}} \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. +\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. \vspace{15pt} -\item No, the \textbackslash tableofcontents command normally shows only numbered section headings, and only down to the level defined by the tocdepth counter. \end{enumerate} \end{frame} \begin{frame} +\frametitle{SDES \& FOSSEE} +\begin{center} +\begin{itemize} +\item \small{SDES}\\ +\small{\color{LimeGreen}Software Development techniques for +Engineers and Scientists} \\ +\scriptsize An initiative by FOSSEE. \\ +\vspace{3pt} +\scriptsize For more information on SDES, please visit +{\color{blue}\url{http://fossee.in/sdes}}\\ +\vspace{12pt} +\item \small{FOSSEE}\\ +\small {\color{LimeGreen}Free and Open-source Software for \\ +Science and Engineering Education} \\ +\scriptsize Based at IIT Bombay, Funded by MHRD.\\ +\vspace{3pt} +\scriptsize Part of National Mission on Education through ICT (NME-ICT) \\ +\end{itemize} +\end{center} +\end{frame} +\begin{frame} +\frametitle{About the Spoken Tutorial Project} +\begin{itemize} +\item Watch the video available at {\color{blue}\url{http://spoken-tutorial.org + /What\_is\_a\_Spoken\_Tutorial}} +\item It summarises the Spoken Tutorial project +\item If you do not have good bandwidth, you can download and watch it +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{Spoken Tutorial Workshops}The Spoken Tutorial Project Team +\begin{itemize} +\item Conducts workshops using spoken tutorials +\item Gives certificates to those who pass an online test +\item For more details, please write to \\ \hspace {0.5cm} +{\color{blue}contact@spoken-tutorial.org} +\end{itemize} +\end{frame} + +\begin{frame} +\frametitle{Acknowledgements} +\begin{itemize} +\item Spoken Tutorial Project is a part of the Talk to a Teacher project +\item It is supported by the National Mission on Education through ICT, MHRD, +Government of India +\item More information on this Mission is available at: \\ +{\color{blue}\url{http://spoken-tutorial.org/NMEICT-Intro}} +\end{itemize} +\end{frame} + +\begin{frame} \begin{block}{} \begin{center} {\Large THANK YOU!} @@ -429,7 +491,6 @@ \end{center} \end{block} \end{frame} - \end{document} |