Composing documents with the LATEX package Satya Sudhakar Y
[email protected] http://www.researchgate.net/profile/Satya Yedlapalli/publications/ Bangalore
Satya (yss)
LATEX
[1/51]
References for LATEX For a short overview [OPHS95]. The [Lam89] can be used as a handy reference manual. L. Lamport. Latex: a document preparation system. Addison-Wesley Longman Publishing Co., Inc. Boston, MA, USA, 1989. Tobias Oetiker, Hubert Partl, Irene Hyna, and Elisabeth Schlegl. The not so short introduction to latex2ε. Electronic document available at http://www. tex. ac. uk/tex-archive/info/lshort, 1995.
Satya (yss)
LATEX
[2/51]
References for Graphics
For creating block diagrams refer [MS07] and [Tan07]. Andrew Mertz and William Slough. Graphics with tikz. The PracTEX Journal, (1), 2007. T Tantau. Tikz and pgf: Manual for version 2.00, 2007.
Satya (yss)
LATEX
[3/51]
Outline
Part-1 Overview Part-2 Configuring the LATEX system Part-3 The LATEX modules Part-4 The LATEX report Part-5 The LATEX article Part-6 The LATEX presentation.
Satya (yss)
LATEX
[4/51]
Part-1:Overview
1
Basics
Satya (yss)
[Part-1::Overview]
[5/51]
1.1 Basics
Part-1.[1/3]
LaTexRef.pdf
Description-1.1: Outline 1 2
3 4 5
The Chapter-1 gives an overview. The Chapter-2 describes the process of setting up all the softwares required to create a LATEX document. The Chapter-3 focuses on the report class of LATEX document. The Chapter-4 details the article class of LATEX document. The Chapter-5 focuses on the beamer class of LATEX document.
Satya (yss)
[Part-1::Overview]
[6/51]
1.1 Basics
Part-1.[2/3]
Description-1.2: Documents 1
Has chapters, with each chapter containing (i) sections and (ii) subsections.
2
Each section may contain (1) paragraphs (2) equations (3) lists (4) tables (5) figures (6) source code(listings)
3
all the above entities may require cross-referencing with the same report or another report which is already published.
4
As the author’s thought process is volatile, the document content also changes drastically. This motivates the need for a structure of a report which accommodates these time varying requirements.
5
Article: is a one/two column technical document which is published by journals.
6
Presentation: This acts like a preview of a topic.
Satya (yss)
[Part-1::Overview]
[7/51]
1.1 Basics
Part-1.[3/3]
Description-1.3: LATEX components 1
classes of documents (1) report/book/thesis (2) article(1-column/2-column) (3) Presentation Slides(PTS)
2
has two modes (1) text (2) math.
3
being a typesetting system uses two types of programmable functions (1) \newcommand and \newenvironment. Some of these are pre-defined priori by the package and any author can also define new entities or redefine the existing ones.
Satya (yss)
[Part-1::Overview]
[8/51]
Part-2:Configuring the LATEX System
2
Package
3
Structure and Tools
Satya (yss)
[Part-2::System]
[9/51]
2.2 Package
Part-2.[1/5]
Web Downloadable Stuff
IURL: www.researchgate.net/profile/Satya Yedlapalli/publications/
Description-2.1: My LATEX package File-1 LaTexRef.pdf which is a short manual. The version of this entire package is printed in this file. File-2 LaTex-Base-Satya.rar which is the complete package. File-3 BmrPT-LaTexRef.pdf which is the presentation based on LaTexRef.pdf. Kindly follow the copyright notice.
Satya (yss)
[Part-2::System]
[10/51]
2.2 Package
Auxiliary
Part-2.[2/5]
LAT
EX package
Description-2.2: LaTex-Base-Satya\
Bib, Cfg, Sagar-Latex-LibA, tex-essential-manuals, texdocs .pdf LaTexRef .txt readme dir
Description-2.3: LaTex-Base-Satya\texdocs\ dir
TexArt, TexBmrPT-A, TexIEEE, TexRpt
Satya (yss)
[Part-2::System]
[11/51]
2.3 Structure and Tools
Classification of
Part-2.[3/5]
LAT
EX documents
Table 2.1 : Types of LATEX documents
For convenience each entry is referred by a tex-id tex-id
LATEX
C-DIR
tex-1 report TexRpt tex-2 article TexArt tex-3 ieee-1col TexIEEE tex-4 article TexArt tex-5 ieee-2col TexIEEE tex-6 ieee-conf TexIEEE tex-7 beamer TexBmrPT-A
Satya (yss)
in-file
out-file
Rpt.tex Art-1col.tex ieee-1col.tex Art-2col.tex ieee-2col.tex ieee-conf.tex BmrPT-A.tex
Rpt.pdf Art-1col.pdf ieee-1col.pdf Art-2col.pdf ieee-2col.pdf ieee-conf.pdf BmrPT-A.pdf
[Part-2::System]
[12/51]
2.3 Structure and Tools
Part-2.[4/5]
Dir Structure Description-2.4: Predefined Directories 1
SW-DIR1=F:\software\MikTex
2
SW-DIR3=F:\software\LaTex-Tools
3
B-DIR=F:\users\satya\wrk Here satya is assumed as a default user.
4
R-DIR=B-DIR\LaTex-Base-Satya
5
W-DIR=B-DIR\texdocs i.e W-DIR=F:\users\satya\wrk\texdocs
6
S-DIRn All the sub-directories of W-DIR are denoted as S-DIRn. Each S-DIRn is dedicated for one LATEX document.
7
S-DIR1 This is a directory for a specific tex document.
8
Example:, if A1.pdf is required, then all its LATEX code is given by a dir S-DIR1= W-DIR\TexA1. Satya (yss)
[Part-2::System]
[13/51]
2.3 Structure and Tools
Part-2.[5/5]
Auxiliary Tools
Description-2.5: Tools 1
A text editor is mandatory for LATEX . The WinEdt is one good text editor which makes the LATEX documentation easy on Windows.
2
Other editors gvim, notepad++.
3
PDF viewer like Adobe.
4
PS file viewer like Ghostview.
Satya (yss)
[Part-2::System]
[14/51]
Part-3:The LATEX Modules 4
Basic Components
5
Lists
6
Equations
7
Figures
8
Tikz
9
Listings
10
Theorem like environments
Satya (yss)
[Part-3::Modules]
[15/51]
3.4 Basic Components
Part-3.[1/23]
Functions Description-3.1: The LATEX command and environment 1
The LATEX command refers to a command name X with two \X{a}{b} input arguments a, b .
2
The LATEX environment defined as \begin{X}... \end{X} refers to an environment name X. Both commands and environment can accept optional arguments.
3
For convenience an environment \begin{X}... \end{X} is simply denoted as \begin{X} .
4
Most of the commands/environments are builtin by the LATEX code base.
5
The \newcommand can be used to define customized commands.
6
The \newenvironment can be used to define customized environments.
7
Users can also modify the functionality of some builtin commands. Satya (yss)
[Part-3::Modules]
[16/51]
3.4 Basic Components
Part-3.[2/23]
Commands Description-3.2: Types of LATEX Code 1
Paragraphs: I I
2
3
\section, \subsection \chapter, \appendix, \appendices,
Special Characters: I
\{A\} for {A}
I
x \& y for x & y
I
x\ y for x y
Basic Math: I
$xˆy$ for x y
I
$x y$ for xy
I
$\frac{a}{b}$ for
Satya (yss)
a b
[Part-3::Modules]
[17/51]
3.4 Basic Components
Part-3.[3/23]
Environments Description-3.3: Types of LATEX Code 1
Lists: I I I I
2
I
Theorem like Environments: I I I I
3
\begin{enumerate} \begin{itemize} \begin{description} \begin{eqlist} 4
Floats:
\begin{Property} \begin{Proof} \begin{Theorem} \begin{Description} \begin{tabular} This defines a matrix of data. Each entity of the matrix can be either a text element(para
Satya (yss)
I
I
Tabular, Array: I
mode) or a math element(math mode). \begin{array} This only defines a matrix of data in math mode.
[Part-3::Modules]
\begin{table} This generates the numbered environment Table. This internally uses a \tabular or an \array. \begin{figure} This generates the numbered environment Figure. This includes a picture/graphics object. [18/51]
3.5 Lists
Part-3.[4/23]
List-1 1
The Beamer is a very good LATEX package for presentations.
2
The content of LATEX articles/Reports can be easily re-used for their presentations using Beamer.
3
The Beamer uses appropriate font sizes which helps easy reading within a seminar hall. Listing-3.1::The \begin{enumerate}
%--------------------\ begin { enumerate }\ LstSep { -2 ex }{2 ex } %----------------------------------\ item The Beamer is a very good \ MyTeX package for presentations . %----------------------------------\ item The content of \ MyTeX articles / Reports can be easily re - used for their presentations using Beamer . %----------------------------------\ item The Beamer uses appropriate font sizes which helps easy reading within a seminar hall . %----------------------------------\ end { enumerate } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[19/51]
3.5 Lists
Part-3.[5/23]
List-2 It always helps to have an article version of a Presentation material. The size of a frame/slide in Beamer dictates the number of slides. For Tikz graphics, Ref. [MS07] and [Tan07] Ref. [OPHS95] for basic reading. Listing-3.2::The \begin{itemize} %---------------------------------\ begin { itemize }\ LstSep { -2 ex }{2 ex } %----------------------------------\ item It always helps to have an article version of a Presentation material . %----------------------------------\ item The size of a frame / slide in Beamer dictates the number of slides . %----------------------------------\ item For Tikz graphics , Ref . \ Bbcit { mer tz20 07g rap hic s } and \ Bbcit { tantau2007tikz } %----------------------------------\ item Ref . \ Bbcit { oetiker1995not } for basic reading . %----------------------------------\ end { itemize } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[20/51]
3.5 Lists
Part-3.[6/23]
List-3 Matlab:
To write a simulation model and generate plots and tables.
LATEX :
For explaining what the simulation and interpret the plots.
Problem: An appropriate problem or to begin with atleast a pseudo problem. Listing-3.3::The \begin{eqlist} %-----------------------------------\ begin { eqlist }\ LstSep { -1.5 ex }{2 ex } %----------------------------------\ item [\ uts { Matlab }] To write a simulation model and generate plots and tables . %----------------------------------\ item [\ uts {\ MyTeX }] For explaining what the simulation and interpret the plots . %----------------------------------\ item [\ uts { Problem }] An appropriate problem or to begin with atleast a pseudo problem . %----------------------------------\ end { eqlist } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[21/51]
3.6 Equations
Part-3.[7/23]
Equation-1
X (z) = x[0] + x[1]z −1 + · · · + x[LX ]z −LX
(3.1)
Listing-3.4::The Equation %-----------------------------------\ begin { EqA }{ tag - BmrPT / SetA1 / p3 / Eqn / Ea2 }{ rcl } %----------------------------------X ( z ) & = & x [0] + x [1] z ^{ -1} + \ cdots + x [ L_X ] z ^{ - L_X } %----------------------------------\ end { EqA } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[22/51]
3.6 Equations
Part-3.[8/23]
Equation-2
a11 a21 A = . ..
a12 a22 .. .
... ... .. .
a1n a2n .. .
(3.2)
am1 am2 . . . amn Listing-3.5::The Equation %------------------\ begin { EqA }{ tag - BmrPT / SetA1 / p3 / Eqn / Ea3 }{ rcl } %----------------------------------A & = & %----------------------------------\ begin { bmatrix } a_ {11} & a_ {12} & \ ldots & a_ {1 n } \\ a_ {21} & a_ {22} & \ ldots & a_ {2 n } \\ \ vdots & \ vdots & \ ddots & \ vdots \\ a_ { m1 } & a_ { m2 } & \ ldots & a_ { mn } %----------------------------------\ end { bmatrix } %----------------------------------\ end { EqA } %----------------------------------Satya (yss)
[Part-3::Modules]
[23/51]
3.6 Equations
Part-3.[9/23]
Equation-3 −x if x < 0, 0 if x = 0, |x| = x if x > 0.
(3.3)
Listing-3.6::The Equation %----------------------------------\ begin { EqA } { tag - BmrPT / SetA1 / p3 / Eqn / Ea4 } { rcl } %----------------------------------| x | & = & \ left \{ %----------------------------------\ begin { array }{ rl } -x & \ text { if } x < 0 ,\\ 0 & \ text { if } x = 0 ,\\ x & \ text { if } x > 0. %----------------------------------\ end { array } \ right . %----------------------------------\ end { EqA } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[24/51]
3.6 Equations
Part-3.[10/23]
Equation-4
a = b, c = d p =q
(3.4)
Listing-3.7::The Equation %----------------------------------\ begin { EqA } { tag - BmrPT / SetA1 / p3 / Eqn / Ea5 } { ll } a \ Eq b , & c \ Eq d \\ \ MCol {2}{ c }{ p \ Eq q } %----------------------------------\ end { EqA }
Satya (yss)
[Part-3::Modules]
[25/51]
3.6 Equations
Part-3.[11/23]
Equation-5 (τ+1)
k=
X 2[i−1] · ki = 2τ k(τ+1) +2(τ−1) kτ +· · ·+21 k2 +k1
(3.5a)
i=1
0 ≤ n(τ+1) < Nτ , 0 ≤ k(τ+1) < Nτ
(3.5b)
1 ≤ i ≤ τ, 0 ≤ ki ≤ 1, 0 ≤ ni ≤ 1
(3.5c)
Listing-3.8::The Equation %-----\ SeS %----------------------------------\ input { BmrPT / SetA1 / p3 / Eqn / Ea6 -1. tex } %----------------------------------\ input { BmrPT / SetA1 / p3 / Eqn / Ea6 -2. tex } %----------------------------------\ input { BmrPT / SetA1 / p3 / Eqn / Ea6 -3. tex } %----------------------------------\ SeE %-----------------------------------
Satya (yss)
[Part-3::Modules]
[26/51]
3.7 Figures
Part-3.[12/23]
Single Image in a Figure
Figure 3.1 : Sir Srinivasa Ramanujan Listing-3.9::The Equation %------------------------------\ begin { figure }[ htbp ] \ def \ subfigcapskip { -2 ex } %----------------------------------\ begin { center } \ in cl u de gr ap h ics [ scale =0.5]{ BmrPT / SetA1 / p3 / Fig / Img / SriNivasRam . JPG } %----------------------------------\ end { center } \ vspace { -2 ex } \ caption {\ Brownsf { Sir Srinivasa Ramanujan }} %----------------------------------\ Ftag { tag - BmrPT / SetA1 / p3 / Fig / Fa1 } %----------------------------------\ end { figure } %----------------------------------Satya (yss) [Part-3::Modules]
[27/51]
3.7 Figures
Part-3.[13/23]
Multiple Images in One Figure
(a) A CTFS Spectrum
(b) A CTFT Spectrum
(c) A DTFS Spectrum
(d) A DTFT Spectrum
Figure 3.2 : The Four Flavors of Fourier Spectra Satya (yss)
[Part-3::Modules]
[28/51]
3.7 Figures
Part-3.[14/23] Listing-3.10::The LATEX Code
%------------------------------\ begin { figure }[ htbp ] %----------------------------------\ def \ CapA { A CTFS Spectrum }\ def \ CapB { A CTFT Spectrum } \ def \ CapC { A DTFS Spectrum }\ def \ CapD { A DTFT Spectrum } \ def \ subfigcapskip {0.5 ex } %----------------------------------\ begin { center } %----------------------------------\ begin { tabular }{ cc } \ StSzFig {\ textsc {\ CapA }}{ \ in cl u de gr ap h ics [ scale =0.7]{ BmrPT / SetA1 / p3 / Fig / Img /Y -1. JPG } }{ subtag - BmrPT / SetA1 / p3 / Fig / Fa2 - a1 } %----------------------------------& %----------------------------------\ StSzFig {\ textsc {\ CapB }}{ \ in cl u de gr ap h ics [ scale =0.7]{ BmrPT / SetA1 / p3 / Fig / Img /Y -2. JPG } }{ subtag - BmrPT / SetA1 / p3 / Fig / Fa2 - a8 } %----------------------------------\\ %----------------------------------\ StSzFig {\ textsc {\ CapC }}{ \ in cl u de gr ap h ics [ scale =0.7]{ BmrPT / SetA1 / p3 / Fig / Img /Y -3. JPG } }{ subtag - BmrPT / SetA1 / p3 / Fig / Fa2 - a3 } %----------------------------------& %----------------------------------\ StSzFig {\ textsc {\ CapD }}{ \ in cl u de gr ap h ics [ scale =0.7]{ BmrPT / SetA1 / p3 / Fig / Img /Y -4. JPG } }{ subtag - BmrPT / SetA1 / p3 / Fig / Fa2 - a4 } %----------------------------------\ end { tabular } %----------------------------------\ end { center }\ vspace { -1 ex } \ caption Brownsf { The Four Flavors of Fourier Spectra }} Satya{\(yss) [Part-3::Modules]
[29/51]
3.8 Tikz
Part-3.[15/23]
Tikz Figure
Imaginary G
ρ = ρR + jρI
E
1
C
P
D
|ρ|
Real O B F Figure 3.3 : Geometrical interpretation of the LSFs
Satya (yss)
[Part-3::Modules]
[30/51]
3.8 Tikz
Part-3.[16/23]
Listing-3.11::LATEX Code %-------------------------\ begin { FgA }{ htbp }{1.2}{0.5 pt }{0.5 pt } %----------------------------------\ FigRule %----------------------------------\ centering %----------------------------------\ def \ subfigcapskip {0.5 ex } \ def \ subfigtopskip {0 ex } %----------------------------------\ begin { tabular }{ c } %----------------------------------\ hspace { -6 ex } \ input { BmrPT / SetA1 / p3 / Fig / Fa3 - a1 . tex } %----------------------------------\ end { tabular } %----------------------------------\ FigRule \ vspace { -3 ex } \ caption {\ Brownsf { Geometrical interpretation of the LSFs }} %----------------------------------\ Ftag { tag - BmrPT / SetA1 / p3 / Fig / Fa3 } %----------------------------------\ end { FgA } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[31/51]
3.8 Tikz
Part-3.[17/23]
Listing-3.12::LATEX Code %---------------------------\ tikzstyle { input } = [ coordinate ] \ tikzstyle { bubble1 } = [ draw , circle , fill = black , inner sep =0.2 ex ] \ tikzstyle { bubble2 } = [ draw , circle , inner sep =0.2 ex ] \ tikzstyle { bubble3 } = [ draw , circle , inner sep =0.2 ex ] \ tikzstyle { bubble4 } = [ draw , circle , fill = white , inner sep =0.2 ex ] %----------------------------------\ begin { tikzpicture }[ scale =1.0] \ def \ La {1.0} \ def \ Lb {0.2} \ def \ Lc {0.6} \ def \ Ld {2.0} \ def \ Lek {3.0} %---------------------------\ node ( a0 ) [ bubble4 ] {}; \ path ( a0 )+( -0.2 ,0) node {\ small $O$ }; \ path ( a0 )+(3.5*\ La , 0) node [ input ] ( a1 ) {}; \ path ( a1 )+(\ Lc , 0.1) node ( b2 ) {\ small \ textsl { Real }}; \ draw [ - >] ( a0 ) -- ( a1 ); \ path ( a0 )+(0 , 3.5*\ La ) node [ input ] ( a2 ) {}; \ path ( a2 )+(0.6 , 0.2) node ( g0 ) {\ small \ textsl { Imaginary }}; \ draw [ - >] ( a0 ) -- ( a2 ); \ draw (3*\ La , 0) arc (0:90:3*\ La ); \ path ( a0 )+(2*\ La , 0) node [ bubble4 ] ( a2 ) {}; \ path ( a2 )+( -45:0.25) node {\ small $B$ }; \ path ( a0 )+(3*\ La , 0) node [ bubble4 ] ( a15 ) {}; \ path ( a15 )+( -45:0.25) node {\ small $F$ }; \ path ( a0 )+(0 ,3*\ La ) node [ bubble4 ] ( a16 ) {}; \ path ( a16 )+( -0.2 ,0) node {\ small $G$ }; %----------------------------------Satya (yss)
[Part-3::Modules]
[32/51]
3.8 Tikz
Part-3.[18/23]
Listing-3.13::LATEX Code %----------------------------------\ path ( a2 )+(0 , 2.26*\ La ) node [ bubble2 ] ( a5 ) {}; \ path ( a5 )+(45:0.2) node {\ small $C$ }; \ draw [ dashed ] ( a2 ) -- ( a5 ); %\ draw [ - , red ] ( a0 ) -- ( a5 ); \ draw [ -] ( a0 ) -- ( a5 ); \ path ( a2 )+(0 , \ La ) node [ bubble1 ] ( a6 ) {}; \ path ( a6 )+(45:0.2) node {\ small $P$ }; \ draw [ dashed ] ( a2 ) -- ( a6 ); \ draw [ -] ( a0 ) -- ( a6 ); \ path ( a6 )+(0.82*\ La ,0) node [ bubble3 ] ( a7 ) {}; \ path ( a7 )+(45:0.2) node {\ small $D$ }; % for ieee .... monochrome ............. \ draw [ -] ( a0 ) -- ( a7 ); \ path ( a0 )+(0 , \ La ) node [ bubble4 ] ( a8 ) {}; \ path ( a8 )+( -0.2 ,0) node {\ small $E$ }; \ draw [ dashed ] ( a8 ) -- ( a7 ); \ path [ -] ( a0 ) edge node [ midway , sloped , above = -0.5 ex ] {\ small $ \ mathbf {1} $ } ( a5 ); \ path [ -] ( a0 ) edge node [ midway , sloped , above = -0.5 ex ] {\ small $ \ mathbf {\ Abs {\ rho }} $ } ( a6 ); \ draw [ - > , thick ] (10 mm , 0 mm ) arc (0:26.6:10 mm ); \ draw [ - > , thick , densely dashed , red ] (5 mm , 0 mm ) arc (0:55:5 mm ); \ draw [ - > , very thin , double , blue ] (16 mm , 0 mm ) arc (0:19:16 mm ); \ path ( g0 )+(6.0 , -1.0) node ( e0 ) {\ small \ input { BmrPT / SetA1 / p4 / Fig / Tab / Ta1 . tex } }; %----------------------------------\ end { tikzpicture } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[33/51]
3.9 Listings
Part-3.[19/23]
Matlab Code Listing-3.14::The Matlab function Gen f axis % Generating a Normalized freq axis .. with resoultion 2^ - m ... function [ f_axis , z_axis ] = Gen_f_axis (m , Full_Range ) N = 2^ m ; if Full_Range f_start = -0.5; else f_start = 0; end ; f_axis = [ f_start :1/ N :0.5] ’; z_axis = exp ( j *2* pi * f_axis ); return ;
Satya (yss)
[Part-3::Modules]
[34/51]
3.10 Theorem like environments
Part-3.[20/23]
Listing Code
Listing-3.15::The Matlab function Gen f axis %------------------------------\ SetLst {\ Brownsf { The Matlab function Gen \ _f \ _axis }} { tag - BmrPT / SetA3 / p3 / FileLst / FLa14 }{} { BmrPT / SetA1 / p3 / FileLst / Gen_f_axis . m } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[35/51]
3.10 Theorem like environments
Part-3.[21/23]
Definition
Definition-3.1: Conjugate Reciprocal Polynomial e (z) = z −L X ∗ (z −∗ ) Let X Listing-3.16::LATEX Code %-----------------------\ begin { DefNmR }{\ utp { Conjugate Reciprocal Polynomial }} { tag - BmrPT / SetA1 / p3 / Thm / Da1 } %----------------------------------Let $ \ widetilde { X }( z ) = z ^{ - L } X ^{*}( z ^{ -*}) $ %----------------------------------\ vspace {0.5 ex } %----------------------------------\ end { DefNmR } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[36/51]
3.10 Theorem like environments
Part-3.[22/23]
Description Description-3.4: Pythagoras Theorem For a right angled triangle; For c denoting the length of the hypotenuse; a and b as lengths of the other two sides; c 2 = a2 + b 2 Listing-3.17::LATEX Code %-----------------------\ begin { DesNmR }{\ utp { Pythagoras Theorem }} { tag - BmrPT / SetA1 / p3 / Thm / Desa4 } %----------------------------------For a right angled triangle ; %----------------------------------\ input { BmrPT / SetA1 / p3 / Thm / Lst / La1 . tex } %----------------------------------\ vspace { -1.0 ex } %----------------------------------\ end { DesNmR } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[37/51]
3.10 Theorem like environments
Part-3.[23/23]
Theorem Theorem-3.1: Pythagoras Theorem For a right angled triangle; For c denoting the length of the hypotenuse; a and b as lengths of the other two sides; c 2 = a2 + b 2 Listing-3.18::LATEX Code %-----------------------\ begin { ThmNmR }{\ utp { Pythagoras Theorem }} { tag - BmrPT / SetA1 / p3 / Thm / Thma1 } %----------------------------------For a right angled triangle ; %----------------------------------\ input { BmrPT / SetA1 / p3 / Thm / Lst / La2 . tex } %----------------------------------\ vspace { -1.0 ex } %----------------------------------\ end { ThmNmR } %-----------------------------------
Satya (yss)
[Part-3::Modules]
[38/51]
Part-4:The LATEX report
11
Structure
Satya (yss)
[Part-4::Rpt]
[39/51]
4.11 Structure
Part-4.[1/4]
Structure of a report
Description-4.1: The LATEX report 1
Contains Chapters and Appendices
2
Each chapter/appendix contains sections and subsections.
3
Cross-referencing is w.r.t chapter.
4
Table of Contents, List of Figures/Tables/Listings etc.
Satya (yss)
[Part-4::Rpt]
[40/51]
4.11 Structure
Part-4.[2/4]
Main File Listing-4.1::The File TexRpt\Rpt.tex %----------------------------------\ documentclass [11 pt , twoside , onecolumn ]{ report } %----------------------------------\ input { Cfg / PATH - Flags . tex } \ input { Cfg / Flags . tex } \ input { Cfg / Cfg - PATH - Settings . tex } \ input { Cfg / Cfg - Settings - rpt . tex } \ input { Cfg / Cfg - Main . tex } \ usepackage [ margin =1 in ]{ geometry } %----------------------------------\ begin { document } %----------------------------------\ CSatya {\ Brownsf { A Report }} %----------------------------------\ maketitle %----------------------------------\ input { Cfg / switch - ver . tex } %----------------------------------\ ToCTFL %----------------------------------\ newpage %----------------------------------%\ input { tmpmain . tex } \ input { One / SetA1 . tex } %\ input { One / SetA2 . tex } %----------------------------------\ end { document } %-----------------------------------
Satya (yss)
[Part-4::Rpt]
[41/51]
4.11 Structure
Part-4.[3/4]
Body
Listing-4.2::The File TexRpt\One\SetA1\SetA1.tex %----------------------------------\ begin { bibunit }[ plain ] %----------------------------------\ input { One / SetA1 / preface1 . tex } \ input { One / SetA1 / c1 . tex } \ input { One / SetA1 / c2 . tex } %----------------------------------\ input { One / SetA1 / apx . tex } %----------------------------------\ putbib [ Bib / Bib - One , Bib / Bib - Satya ] %----------------------------------\ end { bibunit } %-----------------------------------
Satya (yss)
[Part-4::Rpt]
[42/51]
4.11 Structure
Part-4.[4/4]
Structure of TexRpt\
Description-4.2: The TexRpt\ Bib, Cfg, One .bat a, ba .pdf Rpt, Rpt-0 .tex Rpt, tmpmain dir
Satya (yss)
[Part-4::Rpt]
[43/51]
Part-5:The LATEX article
12
Structure
Satya (yss)
[Part-5::Rpt]
[44/51]
5.12 Structure
Part-5.[1/2]
Structure of an article
Description-5.1: The LATEX article 1
Can be either single column or double column.
2
Contains sections and subsections and appendices.
3
Cross-referencing is w.r.t a section.
4
Has Abstract, keywords, conclusion.
Satya (yss)
[Part-5::Rpt]
[45/51]
5.12 Structure
Part-5.[2/2]
Structure of TexArt\
Description-5.2: The TexArt\ Bib, Cfg, One, Two .bat a1, a2, ba1, ba2 Art-1col, Art-1col-0, Art-2col, .pdf Art-2col-0 .tex Art-1col, Art-2col, tmpmain
dir
Satya (yss)
[Part-5::Rpt]
[46/51]
Part-6:The LATEX beamer
13
Structure
Satya (yss)
[Part-6::Rpt]
[47/51]
6.13 Structure
Part-6.[1/3]
Structure of a presentation
Description-6.1: The LATEX presentation 1
Large font sizes are used.
2
Contains parts, sections and subsections.
3
Cross-referencing is w.r.t a part.
4
This is based on a frame/slide.
Satya (yss)
[Part-6::Rpt]
[48/51]
6.13 Structure
Part-6.[2/3]
Listing Code
Listing-6.1::A Bmr Frame %-------------------------------\ begin { BmrFrm }{ Structure of a presentation } %----------------------------------\ input { BmrPT / SetA1 / p6 / Thm / Desa1 . tex } %----------------------------------\ end { BmrFrm } %-----------------------------------
Satya (yss)
[Part-6::Rpt]
[49/51]
6.13 Structure
Part-6.[3/3]
Structure of TexBmrPT-A\
Description-6.2: The TexBmrPT-A\ Bib, BmrPT, Cfg .bat bz, z .pdf BmrPT-A, BmrPT-A-0 .tex BmrPT-A, BmrPT-tmpmain dir
Satya (yss)
[Part-6::Rpt]
[50/51]
Thank You
Satya (yss)
LATEX
[51/51]