summaryrefslogtreecommitdiff
path: root/Latex/Latex3/latex_basics.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Latex/Latex3/latex_basics.tex')
-rw-r--r--Latex/Latex3/latex_basics.tex192
1 files changed, 101 insertions, 91 deletions
diff --git a/Latex/Latex3/latex_basics.tex b/Latex/Latex3/latex_basics.tex
index d09aa92..4d66ddb 100644
--- a/Latex/Latex3/latex_basics.tex
+++ b/Latex/Latex3/latex_basics.tex
@@ -1,64 +1,74 @@
-\documentclass{beamer}
-\usepackage[T1]{fontenc}
-\usepackage{fixltx2e}
-\usepackage{graphicx}
-\usepackage{longtable}
-\usepackage{float}
-\usepackage{wrapfig}
-\usepackage{soul}
-\usepackage{textcomp}
-\usepackage{marvosym}
-\usepackage{wasysym}
-\usepackage{latexsym}
-\usepackage{amssymb}
-\usepackage{hyperref}
-\tolerance=1000
-\usepackage[english]{babel} \usepackage{ae,aecompl}
-\usepackage{mathpazo,courier,euler} \usepackage[scaled=.95]{helvet}
-\usepackage{listings}
-\lstset{
- language=TeX,
- basicstyle=\ttfamily\bfseries,
- commentstyle=\ttfamily\color{blue},
- stringstyle=\ttfamily\color{orange},
- showstringspaces=false,
- breaklines=true,
- postbreak = \space\dots
-}
-
-
+\documentclass[17pt,compress]{beamer}
+\usepackage{beamerthemesplit}
\mode<presentation>
{
\usetheme{Warsaw}
\useoutertheme{infolines}
\setbeamercovered{transparent}
+ \setbeamertemplate{navigation symbols}{}
}
+% Taken from Fernando's slides.
+\usepackage{ae,aecompl}
+\usepackage[scaled=.95]{helvet}
-\newcommand{\inctime}[1]{\addtocounter{time}{#1}{\tiny \thetime\ m}}
+\usepackage[english]{babel}
+%\usepackage[latin1]{inputenc}
+\usepackage[T1]{fontenc}
+% change the alerted colour to LimeGreen
+\definecolor{LimeGreen}{RGB}{50,205,50}
+\setbeamercolor{structure}{fg=LimeGreen}
+\author[FOSSEE]{}
+\institute[IIT Bombay]{}
+\date[]{}
+% \setbeamercovered{transparent}
+
+% theme split
+
+\newenvironment{colorverbatim}[1][]%
+{%
+\color{blue}
+\verbatim
+}%
+{%
+\endverbatim
+}%
+\usepackage{verbatim}
+\usepackage{mathpazo,courier,euler}
+\usepackage{listings}
+\lstset{language=sh,
+ basicstyle=\ttfamily\bfseries,
+ showstringspaces=false,
+ keywordstyle=\color{black}\bfseries}
\newcommand{\typ}[1]{\lstinline{#1}}
-
-\newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}} }
-\title {{\LaTeX} basics and structure}
-\author {FOSSEE}
+%\newcommand{\kwrd}[1]{ \texttt{\textbf{\color{blue}{#1}}} }
+% logo
+\logo{\includegraphics[height=1.30 cm]{../images/3t-logo.pdf}}
+\logo{\includegraphics[height=1.30 cm]{../images/fossee-logo.pdf}
+
+\hspace{7.5cm}
+\includegraphics[scale=0.99]{../images/fossee-logo.pdf}\\
+\hspace{281pt}
+\includegraphics[scale=0.80]{../images/3t-logo.pdf}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DOCUMENT STARTS
\begin{document}
+
+\sffamily \bfseries
+\title
+[{\LaTeX}: Basics and Structure]
+{{\LaTeX}: Basics and Structure}
+\author
+[FOSSEE]
+{\small Talk to a Teacher\\{\color{blue}\url{http://spoken-tutorial.org}}
+\\\vspace{0.25cm}National Mission on Education
+ through ICT\\{\color{blue}\url{ http://sakshat.ac.in}} \\ [1.65cm]
+ Contributed by FOSSEE Team \\IIT Bombay \\[0.3cm]
+}
+
+% slide 1
\begin{frame}
- \begin{center}
- \vspace{12pt}
- \textcolor{blue}{\huge {\LaTeX} basics and structure}
- \end{center}
- \vspace{18pt}
- \begin{center}
- \vspace{10pt}
- \includegraphics[scale=0.95]{../images/fossee-logo.png}\\
- \vspace{5pt}
- \scriptsize Developed by FOSSEE Team, IIT-Bombay. \\
- \scriptsize Funded by National Mission on Education through ICT\\
- \scriptsize MHRD,Govt. of India\\
- \includegraphics[scale=0.30]{../images/iitb-logo.png}\\
- \end{center}
+ \titlepage
\end{frame}
\begin{frame}
@@ -66,22 +76,31 @@
\label{sec-2}
At the end of this tutorial, you will be able to,
\begin{itemize}
- \item Understand basic structure of a LaTeX document, its various document classes and loading packages that add new features to the LaTeX system.
- \item Create a LaTeX document with a title and an abstract.
- \item Create numbered and non-numbered sections and subsections in a LaTeX document.
- \item Create an appendix in a LaTeX document.
- \item Create a table of content in a LaTeX document.
+ \item Understand basic structure of a LaTeX document,
+ its various document classes and loading packages
+ \item Create a LaTeX document with a title and an abstract
\end{itemize}
\end{frame}
\begin{frame}
+ \frametitle{Objectives..}
+ \begin{itemize}
+ \item Create numbered and non-numbered sections and subsections
+ in a LaTeX document
+ \item Create an appendix in a LaTeX document
+ \item Create a table of content in a LaTeX document
+ \end{itemize}
+\end{frame}
+
+
+\begin{frame}
\frametitle{Pre-requisite}
\label{sec-3}
- Spoken tutorial on -
+ Spoken tutorial on,
\begin{itemize}
-\item Introduction to {\LaTeX}.
+\item {\LaTeX} Introduction
\end{itemize}
\end{frame}
@@ -92,55 +111,44 @@
\begin{verbatim}
\documentclass{article}
\begin{document}
- SciPy is open-source software for mathematics, science, and engineering.
+ SciPy is open-source software for mathematics,
+ science, and engineering.
\end{document}
\end{verbatim}
}
\end{frame}
-\begin{frame}[fragile]
- \frametitle{\typ{documentclass command}}
- \begin{center}
- \begin{verbatim}
- \documentclass{article}
- \end{verbatim}
- \end{center}
-\end{frame}
\begin{frame}[fragile]
- \frametitle{\typ{documentclass command}\ \ldots}
- \begin{center}
- \begin{verbatim}
- \documentclass [parameters] {DocumentClass}
- \end{verbatim}
- \end{center}
-\end{frame}
-
-\begin{frame}[fragile]
- \frametitle{\typ{documentclass command: A Closer look}}
+ \frametitle{\typ{documentclass command}}
\begin{itemize}
\item Used to select the \emph{class} of our document
\item Some available classes - \typ{article}, \typ{proc},
- \typ{report}, \typ{book}, \typ{slides}, \typ{letter}.
- \item For example:
- \typ{\\documentclass\[12pt,a4paper,draft\]\{report\}}\\
- The parameters within \typ{\[ \]} are optional.
+ \typ{report}, \typ{book}, \typ{slides}, \typ{letter}
+ \end{itemize}
+\end{frame}
+
+\begin{frame}[fragile]
+ \frametitle{\typ{documentclass command}..}
+ \begin{itemize}
+ \item Example:
+ \typ{\\documentclass}
+ \typ{\[12pt,a4paper,draft\]\{report\}}\\
+ \tiny The parameters within \typ{\[ \]} are optional.
\begin{itemize}
- \item \typ{12pt} -- sets the font size of main font and others are
- relatively, adjusted. \typ{10pt} is the default.
+ \item \typ{12pt} -- sets the font size of main font
\item \typ{a4paper} -- specify paper size
- \item \typ{draft} -- marks hyphenation and justification problems in
- typesetting with a square in the margin
+ \item \typ{draft} -- makes LaTeX indicate hyphenation and justification
+ problems
\end{itemize}
\end{itemize}
\end{frame}
+
\begin{frame}[fragile]
\frametitle{\typ{usepackage command}}
\begin{center}
- \begin{verbatim}
- \usepackage[options]{...}
- \end{verbatim}
+ \lstinline{\usepackage[options]}\{...\}
\end{center}
\end{frame}
@@ -408,19 +416,21 @@
\end{frame}
\begin{frame}
+
\begin{block}{}
\begin{center}
- \textcolor{blue}{\Large THANK YOU!}
+ {\Large THANK YOU!}
\end{center}
\end{block}
- \begin{block}{}
- \begin{center}
- For more Information, visit our website\\
- \url{http://fossee.in/}
- \end{center}
+\begin{block}{}
+ \begin{center}
+ For more Information, visit our website\\
+ {\color{blue}\url{http://fossee.in/}}
+ \end{center}
\end{block}
\end{frame}
\end{document}
+