Composing LATEX documents - A Simple and

0 downloads 0 Views 1MB Size Report
Oct 27, 2014 - B.12 A single Tikz figure, Example-1 . ..... The [1] can be used as a handy reference manual. .... TexLaTexMan.pdf: is a manual for reference.
Composing LATEX documents - A Simple and Structured Approach Author: Satya Sudhakar Y

1

Monday 27th October, 2014

1

c of Satya Sudhakar Yedlapalli, e-mail::[email protected],

https://www.researchgate.net/profile/Satya_Yedlapalli/

2 Version:PATH-TWO,Monday 27th October, 2014

3:05pm:

Copyright 2013. Personal use of this material is permitted. However, permission to use this material for any other purposes must be obtained from the author by sending a request to [email protected]

Contents

1 The Process of LATEX 1.1 Introduction . . Description-1.1 . . . . . 1.2 Overview . . . . . Description-1.2 . . . . . Description-1.3 . . . . . 1.3 Illustrations . . . Example-1.1 . . . . . . . Example-1.2 . . . . . . .

documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . .

13 13 13 13 13 14 14 14 15

. . . . . . . . . . . . . . . . . .

16 16 16 16 17 17 17 17 18 19 19 20 20 20 20 23 23 23 23

3 The Structure of a LATEX document 3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Organization of the .tex files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description-3.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25 25 25 25

2 Configuring the LATEX system 2.1 Introduction . . . . . . . . . . . 2.2 Types of LATEX documents . . Description-2.1 . . . . . . . . . . . . . . 2.3 The Directory Structure . . . . Description-2.2 . . . . . . . . . . . . . . 2.4 The Directory LaTex-Base . . Description-2.3 . . . . . . . . . . . . . . Description-2.4 . . . . . . . . . . . . . . 2.5 The LATEX documents . . . . . Description-2.5 . . . . . . . . . . . . . . 2.6 The Installation Process . . . . Procedure-2.1 . . . . . . . . . . . . . . . 2.7 Linking the Sagar-LaTex-LibA Procedure-2.2 . . . . . . . . . . . . . . . 2.8 Compiling a LATEX document Procedure-2.3 . . . . . . . . . . . . . . . 2.9 The Flags . . . . . . . . . . . . . Description-2.6 . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

. . . . . . . .

. . . . . . . . . . . . . . . . . .

4

CONTENTS

Example-3.1 . . Description-3.2 Example-3.2 . . Description-3.3 Example-3.3 . . Description-3.4 Example-3.4 . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

4 The LATEX document class report 4.1 Introduction . . . . . . . . . . . . . . 4.2 The Directory Structure of TexRpt Description-4.1 . . . . . . . . . . . . . . . . . Description-4.2 . . . . . . . . . . . . . . . . . Description-4.3 . . . . . . . . . . . . . . . . . 4.3 The Chapter-1 in Rpt.pdf . . . . . . Description-4.4 . . . . . . . . . . . . . . . . . Description-4.5 . . . . . . . . . . . . . . . . . 4.4 The Appendix-A in Rpt.pdf . . . . Description-4.6 . . . . . . . . . . . . . . . . . Description-4.7 . . . . . . . . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

. . . . . . . . . . .

. . . . . . .

25 26 26 26 27 27 27

. . . . . . . . . . .

29 29 29 29 30 31 31 31 31 33 33 33

5 Some Selected Examples 35 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 5.2 Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Description-5.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 6 The LATEX document class article 6.1 Introduction . . . . . . . . . . . . . . 6.2 The Directory Structure of TexArt Description-6.1 . . . . . . . . . . . . . . . . . Description-6.2 . . . . . . . . . . . . . . . . . Description-6.3 . . . . . . . . . . . . . . . . . 6.3 Other Variants . . . . . . . . . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

. . . . . .

38 38 38 38 39 39 40

7 The LATEX document class beamer 7.1 Introduction . . . . . . . . . . . . . . . . . . 7.2 The Directory Structure of TexBmrPT-A Description-7.1 . . . . . . . . . . . . . . . . . . . . . Description-7.2 . . . . . . . . . . . . . . . . . . . . . Description-7.3 . . . . . . . . . . . . . . . . . . . . . Description-7.4 . . . . . . . . . . . . . . . . . . . . . Description-7.5 . . . . . . . . . . . . . . . . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

41 41 41 41 42 42 42 43

Appendix A The Commands in A.1 Organization of Macros Description-A.1 . . . . . . . . . . Description-A.2 . . . . . . . . . . A.2 Macro Type ’tagref ’ . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

44 44 44 44 45

Sagar-LaTex-LibA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

CONTENTS

Description-A.3 . . . . . . . . . . . . . Description-A.4 . . . . . . . . . . . . . Algorithm-4 . . . . . . . . . . . . . . . Definition-6 . . . . . . . . . . . . . . . Example-12 . . . . . . . . . . . . . . . Simulation-13 . . . . . . . . . . . . . . Proof-15 . . . . . . . . . . . . . . . . . Answer-16 . . . . . . . . . . . . . . . . Question-17 . . . . . . . . . . . . . . . Exercise-18 . . . . . . . . . . . . . . . Procedure-21 . . . . . . . . . . . . . . Property-24 . . . . . . . . . . . . . . . Remark-26 . . . . . . . . . . . . . . . . Theorem-31 . . . . . . . . . . . . . . . Problem-35 . . . . . . . . . . . . . . . Solution-37 . . . . . . . . . . . . . . . Summary-42 . . . . . . . . . . . . . . . Description-43 . . . . . . . . . . . . . . Guideline-44 . . . . . . . . . . . . . . . Description-A.5 . . . . . . . . . . . . . Description-A.6 . . . . . . . . . . . . . A.3 Macro Type ’cannot-run’ . . Description-A.7 . . . . . . . . . . . . . Description-A.8 . . . . . . . . . . . . . Description-A.9 . . . . . . . . . . . . . Description-A.10 . . . . . . . . . . . . Description-A.11 . . . . . . . . . . . . Description-A.12 . . . . . . . . . . . . Description-A.13 . . . . . . . . . . . . Description-A.15 . . . . . . . . . . . . Description-A.15 . . . . . . . . . . . . A.4 Macro Type ’text’ . . . . . . . Description-A.16 . . . . . . . . . . . . Description-A.17 . . . . . . . . . . . . Description-A.18 . . . . . . . . . . . . Description-A.19 . . . . . . . . . . . . A.5 Rest . . . . . . . . . . . . . . . . Description-A.20 . . . . . . . . . . . . A.6 Beamer Macros . . . . . . . . Description-A.21 . . . . . . . . . . . . Description-A.22 . . . . . . . . . . . . A.7 Guidelines for Macro Usage . Guideline-A.1 . . . . . . . . . . . . . . A.8 Macro Type ’math’ . . . . . . Description-A.23 . . . . . . . . . . . . Description-A.24 . . . . . . . . . . . . Description-A.25 . . . . . . . . . . . . Description-A.26 . . . . . . . . . . . .

5

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

45 45 45 45 45 45 45 45 45 45 45 46 46 46 46 46 46 46 46 46 46 47 47 47 47 47 48 48 49 49 49 49 49 50 50 51 51 51 51 51 52 52 52 52 52 53 53 54

6

CONTENTS

Description-A.27 Description-A.28 Description-A.29 Description-A.30 Description-A.31 Description-A.32 Description-A.33 Description-A.34 Description-A.35

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

54 55 56 56 56 57 57 58 59

Appendix B The Environments in Sagar-LaTex-LibA B.1 Summary . . . . . . . . . . . . . . . . . . . . . . Description-B.1 . . . . . . . . . . . . . . . . . . . . . . . Description-B.2 . . . . . . . . . . . . . . . . . . . . . . . Description-B.3 . . . . . . . . . . . . . . . . . . . . . . . Description-B.4 . . . . . . . . . . . . . . . . . . . . . . . Description-B.5 . . . . . . . . . . . . . . . . . . . . . . . Description-B.6 . . . . . . . . . . . . . . . . . . . . . . . Description-B.7 . . . . . . . . . . . . . . . . . . . . . . . Description-B.8 . . . . . . . . . . . . . . . . . . . . . . . Description-B.9 . . . . . . . . . . . . . . . . . . . . . . . Description-B.10 . . . . . . . . . . . . . . . . . . . . . . Description-B.11 . . . . . . . . . . . . . . . . . . . . . . Description-B.12 . . . . . . . . . . . . . . . . . . . . . . Description-B.13 . . . . . . . . . . . . . . . . . . . . . . Description-B.14 . . . . . . . . . . . . . . . . . . . . . . Description-B.15 . . . . . . . . . . . . . . . . . . . . . . Description-B.16 . . . . . . . . . . . . . . . . . . . . . . Description-B.17 . . . . . . . . . . . . . . . . . . . . . . Description-B.18 . . . . . . . . . . . . . . . . . . . . . . Description-B.19 . . . . . . . . . . . . . . . . . . . . . . B.2 The Environments based on theorem . . . . . Theorem-B.1 . . . . . . . . . . . . . . . . . . . . . . . . Description-B.20 . . . . . . . . . . . . . . . . . . . . . . Algorithm-B.1 . . . . . . . . . . . . . . . . . . . . . . . . B.3 The Environment TbTb . . . . . . . . . . . . . Description-B.21 . . . . . . . . . . . . . . . . . . . . . . B.4 The Environment TbAr . . . . . . . . . . . . . Description-B.22 . . . . . . . . . . . . . . . . . . . . . . B.5 The Environment TbA . . . . . . . . . . . . . . Description-B.23 . . . . . . . . . . . . . . . . . . . . . . B.6 The Environment EqA . . . . . . . . . . . . . . Description-B.24 . . . . . . . . . . . . . . . . . . . . . . B.7 The Environment EqAT . . . . . . . . . . . . . Description-B.25 . . . . . . . . . . . . . . . . . . . . . . B.8 The Environment EqATs . . . . . . . . . . . . Description-B.26 . . . . . . . . . . . . . . . . . . . . . . B.9 The Environment of a Set of Equations . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

60 60 60 60 60 61 61 61 61 62 62 62 62 63 63 63 64 64 64 64 65 65 65 65 66 67 68 68 68 69 71 71 71 72 72 72 72 73

CONTENTS

Description-B.27 . . . . . . . . . . . . . . . B.10 The Macro InFigImg . . . . . . . . Description-B.28 . . . . . . . . . . . . . . . B.11 The Environment ImgMacroOne Description-B.29 . . . . . . . . . . . . . . . B.12 A single Tikz figure, Example-1 . Description-B.30 . . . . . . . . . . . . . . . B.13 The Environment FgA . . . . . . . Description-B.31 . . . . . . . . . . . . . . .

7

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

. . . . . . . . .

74 75 75 76 76 77 79 79 83

List of Tables

2.1 2.2

LATEX documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 The Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

B.1 The Environments of type Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 B.2 Four Sub-tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

List of Figures

5.1 5.2

Geometrical interpretation of the LSFs of the basic factor with model parameters µMP = 0, λMP = 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 The Characteristics of H04 (z2 ) in B-2 . . . . . . . . . . . . . . . . . . . . . . . . . . 37

B.1 B.2 B.3 B.4

The Lord Varasiddhi Vinayaka . . Sri Kanipaka Varasiddhi Vinayaka The DIT Fly Computation . . . . Basic Operations in an FFT . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

75 77 79 83

Listings

1.1 2.1 2.2 2.3 2.4 2.5 4.1 4.2 4.3 4.4 4.5 4.6 4.7 B.1 B.2 B.3 B.4 B.5 B.6 B.7 B.8 B.9 B.10 B.11 B.12 B.13 B.14 B.15 B.16 B.17 B.18 B.19 B.20 B.21

The EqA environment . . . . . . . . . . . . . . . . . The File:A-DIR/Cfg/switch-path.tex . . . . . . . . The File:A-DIR/Cfg/LibPath-PC.tex . . . . . . . . The File:A-DIR/Cfg/Cfg-PATH-Settings.tex . . . . The File:A-DIR/Cfg/LibA-Path-PC.tex . . . . . . . The File:A-DIR/Cfg/Flags.tex . . . . . . . . . . . . The File TexRpt\Rpt.tex . . . . . . . . . . . . . . . The File TexRpt\One\SetA1.tex . . . . . . . . . . . The File TexRpt\One\SetA1\c1.tex . . . . . . . . . The File TexRpt\One\SetA1\c1\p1.tex . . . . . . . The File TexRpt\One\SetA1\apx.tex . . . . . . . . The File TexRpt\One\SetA1\apx\c1.tex . . . . . . The File TexRpt\One\SetA1\apx\c1\p1.tex . . . . The Environment Thm . . . . . . . . . . . . . . . . The Environment Alg . . . . . . . . . . . . . . . . . The File:One/SetA1/apx/c2/p1/Thm/Lst/La3.tex The Environment TbTb . . . . . . . . . . . . . . . . The Environment TbAr . . . . . . . . . . . . . . . . The Environment TbA . . . . . . . . . . . . . . . . The File:One/SetA1/apx/c2/p1/Tab/Ta1-b1.tex . The File:One/SetA1/apx/c2/p1/Tab/Ta1-b2.tex . The File:One/SetA1/apx/c2/p1/Tab/Ta1-b3.tex . The File:One/SetA1/apx/c2/p1/Tab/Ta1-b4.tex . The Environment EqA . . . . . . . . . . . . . . . . The Environment EqAT . . . . . . . . . . . . . . . . The Environment EqA . . . . . . . . . . . . . . . . The File:One/SetA1/apx/c2/p1/Eqn/Ea4.tex . . . The File:One/SetA1/apx/c2/p1/Eqn/Ea4-b1.tex . The File:One/SetA1/apx/c2/p1/Eqn/Ea4-b2.tex . The File:One/SetA1/apx/c2/p1/Eqn/Ea4-b3.tex . The File:One/SetA1/apx/c2/p1/Eqn/Ea4-b4.tex . The Macro InFigImg . . . . . . . . . . . . . . . . . Figure with the Macro ImgMacroOne . . . . . . . File with the Macro ImgMacroOne . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15 21 21 21 21 23 30 31 32 33 34 34 34 65 67 67 67 68 69 69 70 70 70 71 72 72 73 73 73 74 74 75 76 76

LISTINGS

B.22 B.23 B.24 B.25 B.26 B.27 B.28

The The The The The The The

11

Environment FgA, Example-1 . . . . . . . . File:One/SetA1/apx/c2/p1/Fig/Fa3-b1.tex Environment TbA . . . . . . . . . . . . . . . File:One/SetA1/apx/c2/p1/Fig/Fa4-b1.tex File:One/SetA1/apx/c2/p1/Fig/Fa4-b2.tex File:One/SetA1/apx/c2/p1/Fig/Fa4-b3.tex File:One/SetA1/apx/c2/p1/Fig/Fa4-b4.tex

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

77 77 79 80 81 81 82

Preface

Any research and/or development(R & D) work in pure science or engineering relies on a document which describes the underlying process. All laboratory work typically requires data plots generated out of experimental data. Apart from the real world experimental work, the initial phase of an R & D work also involves many complex simulation models which help in the evolution of the physical experiments. These simulation models are typically based on mathematical models which approximate a real world physical process. The LATEX package is renowned for its flexibility and robustness in handling all the documentation requirements related with mathematical and graphical expressions. This package helps many academic and industry R & D programs, for all technical and scientific documentation. More precisely, it is an indispensable tool in creating assignments, theses, reports, books and presentations in a Printable Document Format(PDF). These PDF’s are widely used because of their robustness for both storage and information exchange over the internet. With the concept of e-Learning, e-Books, e-Journals and e-Presentations, this documentation is even more inevitable. While there are many alternate ways in which a specific type of LATEX document can be created, a quick and disciplined way of its composition always helps in saving precious time which is unconsciously wasted in fixing some mundane LATEX errors. In this book, we give a simple and structured approach of composing a document in LATEX package. For each type of document, we give some guidelines to architect the document and also illustrate with several examples. The book also provides a rich set of tested and useful LATEX macros and environments as a library package. We hope that these guidelines help both the naive and adept LATEX users alike. While a text editor is a vital tool in the LATEX documentation, for the convenience of LATEX users, we recommend the WinEdt editor(www.winedt.com). However the concepts and guidelines presented do not assume any aspect of this specific editor and hence users can always use any editor of their own preference. We appreciate all your suggestions and comments and hence request you to communicate these with appropriate use cases and illustrations. Your valuable inputs will help us revise the material for better utility.

e-mail:

Satya Sudhakar Y, Bangalore, India [email protected]

Chapter 1

The Process of LATEX documentation

1.1

Introduction

This chapter describes the process of creating a LATEX document. IKey References: • For a short overview [3]. • The [1] can be used as a handy reference manual. • For creating pictures and block diagrams refer [2] and [4]. Description- 1.1 (Outline) : 1.1.1 Basics 1.1.2 The Chapter-3 describes the process of setting up all the softwares required to create a LATEX document. 1.1.3 A text editor is mandatory for LATEX . The WinEdt is one good text editor which makes the LATEX documentation easy. Alternately, one can also use gvim, notepad++. 1.1.4 The Chapter-4 focuses on the report class of LATEX document. 1.1.5 The Chapter-5 details the article class of LATEX document. 1.1.6 The Chapter-5 focuses on the beamer class of LATEX document.

1.2

Overview

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)

14

The Process of LATEX documentation 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.

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.

1.3

Illustrations

Example- 1.1 (LATEX commands) :

1. $\PRODMin{a}{b}{c}{d}$ for

c−1 Y

d

6. $\SUMMin{a}{b}{c}{d}$ for

2. $\PRODP{a}{b}{c}$ for

1

c

7. $\SUMPnorm{a}{b}{c}{d}{e}$ for

a

3. $\PROD{a}{b}{c}{d}$ for

4. $\SUMInf{a}{b}$ for

c Y

d

8. $\SUMP{a}{b}{c}$ for

b X

X

b

|ca |d

b

c

a

9. $\SUMpm{a}{b}{c}$ for

+b X

c

a=−b

a=−∞

5. $\SUML{a}{b}$ for

b X a=1

a=b +∞ X

d

a=b

a=b b Y

c−1 X

10. $\SUM{a}{b}{c}{d}$ for

a

c X

d

a=b

ax2 + bx + c = 0

(1.1)

d

e

1.3 Illustrations

15

Listing 1.1: The EqA environment %----------------------\ begin { EqA } 3 { tag - One / SetA1 / c1 / p1 / Eqn / Ea1 } {c} %----------------------------------6 ax ^2 + bx + c = 0 %----------------------------------\ end { EqA } 9 %-----------------------------------

Example- 1.2 (LATEX environments) : The Listing-1.1 is the LATEX code for the (1.1).

Chapter 2

Configuring the LATEX system

2.1

Introduction

This chapter describes the basic software packages that are required for creating a LATEX document [1]. • For a short overview [3]. • The [1] can be used as a handy reference manual. • For creating pictures and block diagrams refer [2] and [4].

2.2

Types of LATEX documents

The LATEX documents can be broadly classified into the following types [1]. Description- 2.1 (Types of LATEX documents) :

report: article:

this is for generating reports. This is similar to the document classes book and thesis. this is for generating articles with each page having a single column(art-1col) or double columns(art-2col). Articles are published in a journal/conference in either of these two formats. The art-1col/art-2col of IEEE publisher are referred as follows. ieee-1col: this is defined by the IEEE style file IEEETran.sty. This single column version is specifically designed for IEEE journal manuscripts. ieee-2col: this is double column version is also defined by IEEETran.sty. ieee-conf: this is for IEEE conferences and is based on IEEETran.sty with conference option.

beamer: this refers to the beamer document class which is used for presentations.

2.3 The Directory Structure

2.3

17

The Directory Structure

The principle of the assumed directory structure is summarized as follows. Description- 2.2 (Predefined Directories) : The following list is assumed as the default directory structure. One can always set them to different drives as required. 2.2.1 SW-DIR1=F:\software\MikTex , this directory contains the MikTex package which is downloaded from the URL of MikTeX www.miktex.org 2.2.2 SW-DIR2=C:\Program Files\MikTex 2.9 , this directory contains the installed MikTex package. 2.2.3 SW-DIR3=F:\software\LaTex-Tools , this directory contains some auxiliary tools which are required along with LATEX . For convenience we use a default set of tools which are easily available from the  web. There may be other alternate useful tools from the web. Some of these tools are npp.6.1.8.Installerexe, dopdf.exe, gs905w32.exe, gsv50w32.exe, winedt70.exe 2.2.4 B-DIR=F:\users\satya\wrk Here satya is assumed as a default user. This directory is a base directory which is used by an user to develop LATEX documents. For another user ashrith, this B-DIR can be defined as; B-DIR=F:\users\ashrith\wrk 2.2.5 R-DIR=B-DIR\LaTex-Base i.e R-DIR=F:\users\satya\wrk\LaTex-Base. This directory contains all the LATEX macros and other associated files. 2.2.6 W-DIR=B-DIR\texdocs i.e W-DIR=F:\users\satya\wrk\texdocs 2.2.7 S-DIRn All the sub-directories of W-DIR are denoted as S-DIRn. Each S-DIRn is dedicated for one LATEX document. 2.2.8 S-DIR1 This is a directory for a specific tex document. For example, if A1.pdf is required, then all its LATEX code is given by a dir S-DIR1= W-DIR\TexA1.

2.4

The Directory LaTex-Base

The content of the directory R-DIR in Description-2.2.5 is explained below. Description- 2.3 (The directory LaTex-Base) :  The content of a directory is grouped in terms of its sub-directories dir: and file extensions as follows.   Bib, Cfg, .pdf: TexLaTexMan Sagar-Latex-LibA, dir: tex-essential-manuals, texdocs • TexLaTexMan.pdf: is a manual for reference. • readme.txt: is a simple file which outlines.

18

Configuring the LATEX system • Sagar-Latex-LibA: this directory contains all LATEX macros used. • texdocs: this directory contains all the LATEX documents. • Bib: this directory serves as a master bibliography directory, which contains many bib files. • Cfg: this directory serves as a reference copy of the configuration. • Each dir in Description-2.6.2 has an in-file which when compiled by LATEX batch file bat-file generates the corresponding out-file as in Table-2.1. Each type of LATEX document is explained in detail later.

Table 2.1: LATEX documents For convenience each entry is referred by a tex-id tex-id tex-1 tex-2 tex-3 tex-4 tex-5 tex-6 tex-7 tex-8 tex-9 tex-10 tex-11

LATEX report article ieee-1col article ieee-2col ieee-conf ieee-conf beamer beamer beamer article

C-DIR

in-file

out-file

TexRpt Rpt.tex Rpt.pdf TexArt Art-1col.tex Art-1col.pdf TexJSTSP2010 jstsp2010-1col.tex jstsp2010-1col.pdf TexArt Art-2col.tex Art-2col.pdf TexJSTSP2010 jstsp2010-2col.tex jstsp2010-2col.pdf Texncc2010 ncc2010-2col.tex ncc2010-2col.pdf spcom2010-2col spcom2010-2col.tex spcom2010-2col.pdf TexBmr BmrPT.tex BmrPT.pdf Texncc2010 BmrPT-ncc2010.tex BmrPT-ncc2010.pdf Texspcom2010 BmrPT-spcom2010.tex BmrPT-spcom2010.pdf TexHandout Handout.tex Handout.pdf

bat-file a.bat a1.bat a1.bat a2.bat a2.bat a.bat a.bat a.bat z.bat z.bat a.bat

Description- 2.4 (The directory Sagar-Latex-LibA) :  The content of a directory is grouped in terms of its sub-directories dir: and file extensions as follows. The Appendix-A and Appendix-B summarize most of the macros and environments defined in Sagar-Latex-LibA. Each file in Sagar-Latex-LibA\cmd: contains the newcommand\ definitions. Each file in Sagar-Latex-LibA\env: contains the newenvironment\ definitions. Each file in Sagar-Latex-LibA\std: contains some settings which are required across all types of LATEX documents.

2.5 The LATEX documents 1. Sagar-LaTex-LibA\:  • dir cmd, env, std 2. Sagar-LaTex-LibA\cmd\:  cannot-run-1, cannot-run-2, cannot-run-3, cannot-run-4, cannot-run-5, cannot-run-6, cannot-run-7, cannot-run-bmr-1, cannot-run-bmr-2, cannot-run-envcmd-1, cannot-run-non-bmr-1, cannot-run-obs-1, math-1, • .tex math-2, math-3, math-4, math-5, math-6, math-7, math-8, math-9, math-10, math-11, math-12, math-matrix-1, math-matrix-2, tagref-1, tagref-non-bmr-1, tagref-non-bmr-2, tagref-non-bmr-3, text-1, text-2, text-3, text-4

2.5

19

3. Sagar-LaTex-LibA\env\:  env-1, env-2, env-3, env-4, env-5, env-bmr-1, env-bmr-2, • .tex env-bmr-3, env-bmr-4, env-bmr-5, env-bmr-6 4. Sagar-LaTex-LibA\std\:  bmr-settings, non-bmr-settings, • .tex thm-name-settings, tikz-notes-preamble

The LATEX documents

Description- 2.5 (The LATEX documents) : The following list is assumed as the default directory structure. One can always set them to different paths as required. 2.5.1 report: The document tex-1, is an example of the LATEX report. In the in-file, the command documentclass type can also be changed from report to book or thesis. The tex-11 is another example of LATEX report which deals with some examples based on the tikz package. The documents 2.5.2 one-column article: tex-2, tex-3 , are examples of the single column LATEX article. These

two flavors differ in the style files [1]. 2.5.3 two-column article: The documents tex-4, tex-5, tex-6, tex-7 , are examples of the double column LATEX article.  tex-8, 2.5.4 beamer: The documents tex-9, tex-10 , are examples of the LATEX beamer. The tex-9(/tex-10) gives the conference presentation slides based on the conference article tex-6(tex-7).

20

2.6

Configuring the LATEX system

The Installation Process

Procedure- 2.1 (Installation-1) : Assuming the directory structure as in Description-2.2, the following tools are required to be installed, preferably in the same order. 2.1.1 SW-DIR1\setup-2.9.4503.exe which installs the MikTeX package at SW-DIR2. 2.1.2 Install GhostView packages SW-DIR3\gs905w32.exe, SW-DIR3\gsv50w32.exe. 2.1.3 Install a PDF reader SW-DIR3\AdobeRdr1011_en_US.exe 2.1.4 Install LATEX editor SW-DIR3\WinEdt70.exe, 2.1.5 Install a general purpose text editor SW-DIR3\npp.6.2.Installer.exe. 2.1.6 Create the sub-directory R-DIR= W-DIR\LaTex-Base. This contains all the library files which can be used my multiple LATEX documents. 2.1.7 Create the sub-directories S-DIRn as required.

2.7

Linking the Sagar-LaTex-LibA

For illustration purpose, we defined three configuration files, which allow users to choose among three paths as in Table-2.2. For other paths, one can use the same principle and customize these files. Table 2.2: The Configuration Files For convenience each entry is referred by a config-id B-DIR is the parent directory of LaTex-Base config-id config-1 config-2 config-3

B-DIR

file

F:\ users\ satya\wrk Cfg-PATH-ONE.tex D:\ users\ satya\wrk Cfg-PATH-TWO.tex E:\ users\ satya\wrk Cfg-PATH-THREE.tex

Procedure- 2.2 (Setting up config-1) : Assuming the directory structure as in Description-2.2; 2.2.1 Set the current dir as A-DIR= B-DIR\C-DIR as defined for tex-id(for example tex-1). 2.2.2 Open the file A-DIR\ Cfg\switch-path.tex which is as shown in Listing-2.1. This essentially  defines three boolean flags PATH-ONE, PATH-TWO, PATH-THREE which are set to B-DIR:∈  F:/users/satya/wrk, D:/users/satya/wrk, R:/users/satya/wrk . These path flags internally define the base path \BPath. The file A-DIR\ Cfg\LibPath-PC.tex (Listing-2.2) uses the \BPath to link up the local LaTex-Base.

2.7 Linking the Sagar-LaTex-LibA

21

2.2.3 Open the file A-DIR\ Cfg\Cfg-PATH-Settings.tex In this file uncomment the first line and comment the remaining lines as shown in Listing-2.3.

Listing 2.1: The File:A-DIR/Cfg/switch-path.tex 3 6 9 12 15 18

%--------------------------------\ ifthenelse {\ boolean { PATH - ONE }}{ \ def \ BPath { F :/ users / satya / wrk }} {} %--------------------------------%--------------------------------\ ifthenelse {\ boolean { PATH - TWO }}{ \ def \ BPath { D :/ users / satya / wrk }} {} %--------------------------------%--------------------------------\ ifthenelse {\ boolean { PATH - THREE }}{ \ def \ BPath { R :/ users / satya / wrk }} {} %---------------------------------

Listing 2.2: The File:A-DIR/Cfg/LibPath-PC.tex %----------------------------------\ input { Cfg / LibA - Path - PC . tex } 3 %-----------------------------------

Listing 2.3: The File:A-DIR/Cfg/Cfg-PATH-Settings.tex %----------------------------------\ input { Cfg / Cfg - PATH - ONE . tex } 3 %\ input { Cfg / Cfg - PATH - TWO . tex } %\ input { Cfg / Cfg - PATH - THREE . tex } %-----------------------------------

Listing 2.4: The File:A-DIR/Cfg/LibA-Path-PC.tex 3 6 9 12 15 18

%-------------------------------------------------------------------% The path of Sagar - Latex - Lib should be a % valid path for current compilation . %-------------------------------------------------------------------% The gva - macros - satya . tex is specific to Satya Sudhakar Y %-------------------------------------------------------------------\ def \ ZPathA {\ BPath / LaTex - Base / Sagar - Latex - LibA } %-------------------------------------------------------------------%-------------------------------------------------------------------% Settings ..... %--------------------------------\ input {\ ZPathA / std / thm - name - settings . tex } %---------------------------------\ ifthenelse {\ boolean { FlagTexBmr }}{ \ input {\ ZPathA / std / bmr - settings . tex }} { \ input {\ ZPathA / std / non - bmr - settings . tex }} %---------------------------------

22

% Special Macros for BMR and Non - BMR 21 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ ifthenelse {\ boolean { FlagTexBmr }}{ 24 \ input {\ ZPathA / cmd / cannot - run - bmr -1. tex } \ input {\ ZPathA / cmd / cannot - run - bmr -2. tex } %--------------------------------27 \ input {\ ZPathA / env / env - bmr -1. tex } \ input {\ ZPathA / env / env - bmr -2. tex } \ input {\ ZPathA / env / env - bmr -3. tex } 30 \ input {\ ZPathA / env / env - bmr -4. tex } \ input {\ ZPathA / env / env - bmr -5. tex } %--------------------------------33 }{ \ input {\ ZPathA / cmd / tagref - non - bmr -1. tex } \ input {\ ZPathA / cmd / tagref - non - bmr -2. tex } 36 \ input {\ ZPathA / cmd / tagref - non - bmr -3. tex } \ input {\ ZPathA / cmd / cannot - run - non - bmr -1. tex } \ input {\ ZPathA / env / env -2. tex } 39 \ input {\ ZPathA / env / env -3. tex } \ input {\ ZPathA / env / env -4. tex } \ input {\ ZPathA / env / env -5. tex } 42 } %--------------------------------% Common Macros for BMR and Non - BMR 45 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ input {\ ZPathA / std / tikz - notes - preamble . tex } %--------------------------------48 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ input {\ ZPathA / cmd / text -1. tex } \ input {\ ZPathA / cmd / text -2. tex } 51 \ input {\ ZPathA / cmd / text -3. tex } \ input {\ ZPathA / cmd / text -4. tex } %--------------------------------54 \ input {\ ZPathA / cmd / math -1. tex } \ input {\ ZPathA / cmd / math -2. tex } \ input {\ ZPathA / cmd / math -3. tex } 57 \ input {\ ZPathA / cmd / math -4. tex } \ input {\ ZPathA / cmd / math -5. tex } \ input {\ ZPathA / cmd / math -6. tex } 60 \ input {\ ZPathA / cmd / math -7. tex } \ input {\ ZPathA / cmd / math -8. tex } \ input {\ ZPathA / cmd / math -9. tex } 63 \ input {\ ZPathA / cmd / math -10. tex } \ input {\ ZPathA / cmd / math -11. tex } \ input {\ ZPathA / cmd / math -12. tex } 66 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ input {\ ZPathA / cmd / tagref -1. tex } %--------------------------------69 \ input {\ ZPathA / cmd / cannot - run - envcmd -1. tex } %--------------------------------\ input {\ ZPathA / cmd / cannot - run -1. tex } 72 \ input {\ ZPathA / cmd / cannot - run -2. tex } \ input {\ ZPathA / cmd / cannot - run -3. tex } \ input {\ ZPathA / cmd / cannot - run -4. tex } 75 \ input {\ ZPathA / cmd / cannot - run -5. tex } \ input {\ ZPathA / cmd / cannot - run -6. tex } \ input {\ ZPathA / cmd / cannot - run -7. tex } 78 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Configuring the LATEX system

2.8 Compiling a LATEX document

23

\ input {\ ZPathA / env / env -1. tex } %--------------------------------81 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - %\ input {\ ZPathA / cmd / pm1 - macros . tex } %---------------------------------------------------

The Procedure-2.3 helps in linking all the LATEX files in Sagar-Latex-LibA directory for the config-1 case defined in Table-2.2. This process enables the LATEX documents to use all the macros(Appendix-A) and environments(Appendix-B) that are defined in Sagar-Latex-LibA. These three paths can be modified as required by the user and if more paths are required, the same principle can be extended in defining the config-4. As each config-id helps in quickly reconfiguring the paths, one can have a LATEX document (say TexA1) which can compile on three different paths(/computers), each defined by a separate config-id. This helps users to continue the work on the same document across three computers, one at a time though, without any hassles of reconfiguration. This same flexibility can be extended across many users, by defining config-id’s accordingly.

2.8

Compiling a LATEX document

For convenience we assume the directory structure as inDescription-2.2. The followingProcedure2.3 summarizes the process of generating the PDF of each LATEX document in Table-2.2. Procedure- 2.3 (Test-1) : Assuming the directory structure as in Description-2.2, consider any one tex-id of Table-2.2. 2.3.1 Follow Procedure-2.2 for setting up the desired config-id. 2.3.2 Open a command window in A-DIR either using Windows Explorer or indirectly within the WinEdt editor. 2.3.3 Execute the bat-file in this command window. This creates the desired out-file.

The Procedure-2.3 effectively ensures that the path settings are correct.

2.9

The Flags Listing 2.5: The File:A-DIR/Cfg/Flags.tex

%-----------------------------\ newboolean { FlagTexIEEE } 3 \ newboolean { FlagTexBmr } \ newboolean { FlagBmrPause } \ newboolean { FlagTexArt } 6 \ newboolean { FlagTwoColumn } \ newboolean { FlagDem } \ newboolean { FlagTikzGrid } 9 \ newboolean { FlagTexColor } %------------------------------

Description- 2.6 (The Flags) : The settings of the Flags are as follows.

24

Configuring the LATEX system 2.6.1 Flag FlagTexBmr set to TRUE, for a beamer document.

2.6.7 Flag FlagTwoColumn set to TRUE, for a two column document.

2.6.2 Flag FlagTexBmr set to FALSE, for a non-beamer document.

2.6.8 Flag FlagTwoColumn set to FALSE, for a one column document.

2.6.3 Flag FlagBmrPause set to TRUE, to enable the pause functions in a beamer document.

2.6.9 Flag FlagDem set to TRUE, for enabling the demos.

2.6.4 Flag FlagBmrPause set to FALSE, to 2.6.10 Flag FlagDem set to FALSE, for disdisable the pause functions in a beamer abling the demos. document. 2.6.5 Flag FlagTexArt set to TRUE, for an 2.6.11 Flag FlagTikzGrid set to TRUE, for enabling the TikZ grid. article. 2.6.6 Flag FlagTexArt set to FALSE, for a 2.6.12 Flag FlagTikzGrid set to FALSE, for non-article. disabling the TikZ grid.

Chapter 3

The Structure of a LATEX document

3.1

Introduction

This chapter summarizes the structure of a LATEX document.

3.2

Organization of the .tex files

For convenience, we focus on the structure of a LATEX report which contains two chapters and two appendices. As this is a single column document the entire content is saved in a dir One\. Description- 3.1 (The dir One\) : 3.1.1 The One\SetA1.tex is the main file which includes each chapter as a single line. The One\SetA1.tex is the main  file which includes a chapter as a single line. This includes the files c1.tex, c2.tex, apx.tex The directory One\SetA1\ contains all the LATEX data necessary for the entire document. 3.1.2 The One\SetA1\c1.tex is the main file for the first chapter. For convenience this chapter is simply referred as c1\. This directory c1\ contains all the LATEX data necessary for the entire chapter. 3.1.3 The One\SetA1\apx.tex is the main file for all the appendices. This directory One\SetA1\ apx\ contains all the LATEX data necessary for all the appendices. 3.1.4 The One\SetA1\apx\c1.tex is the main file for the first chapter in the appendix. For convenience this chapter is simply referred as apx\c1\.

Example- 3.1 : The following list summarizes the content of a LATEX Rpt with three chapters and two appendices. IAll Chapters and Appendices:  SetA1 , files: SetA1.tex   2. The dir One\SetA1 contains; dirs: c1, c2, apx , files: c1.tex, c2.tex, c3.tex, apx.tex   3. The dir One\SetA1\apx contains; dirs: c1, c2 , files: c1.tex, c2.tex

1. The dir One\, contains; dirs:



26

The Structure of a LATEX document

Description- 3.2 (A Chapter) : 3.2.1 The One\SetA1\c1.tex is the main file for a single chapter with all the LATEX code in One\ SetA1\c1\.  3.2.2 Each chapter can be grouped into a sets of potions p1, p2, · · · . Each scope of each portion is based on its content and it is defined by the author. This could be a set of sections and/or subsections grouped by the author. The One\SetA1\c1\p1.tex is the main file associated with a portion of the chapter completely contained in One\SetA1\c1\p1\. 3.2.3 The One\SetA1\c1\p1\a1.tex is a single file with the content of a section. 3.2.4 The One\SetA1\c1\p1\b1.tex is a single file with the content of a sub-section.

Example- 3.2 : The following list further elaborates the content of each chapter of Example-3.1. IChapter-c1:   p1, p2 , files: p1.tex, p2.tex   2. The dir One\SetA1\c1\p1\ contains; dirs: Lst, Eqn, Tab , files: a1.tex, b1.tex, a2.tex   3. The dir One\SetA1\c1\p2\ contains; dirs: Thm, Fig, SrcLst , files: a1.tex, a2.tex

1. The dir One\SetA1\c1 contains; dirs:

IChapter-c2:   1. The dir One\SetA1\c2 contains; dirs: p1, p2 , files: p1.tex, p2.tex   2. One\SetA1\c2\p1\ contains; dirs: Lst, Eqn, Tab , files: a1.tex, b1.tex, a2.tex   3. One\SetA1\c2\p2\ contains; dirs: Thm, Fig, SrcLst , files: a1.tex, a2.tex

Description- 3.3 (The Appendices) : 3.3.1 The One\apx.tex is the main file for a single chapter with all the LATEX code in One\SetA1\ apx\c1\.  3.3.2 Each chapter can be grouped into a sets of potions p1, p2, · · · . Each scope of each portion is based on its content and it is defined by the author. This could be a set of sections and/or subsections grouped by the author. The One\SetA1\apx\c1\p1.tex is the main file associated with a portion of the chapter completely contained in One\SetA1\apx\c1\p1\. 3.3.3 The One\SetA1\apx\c1\p1\a1.tex is a single file with the content of a section. 3.3.4 The One\SetA1\apx\c1\p1\b1.tex is a single file with the content of a sub-section.

3.2 Organization of the .tex files

27

Example- 3.3 : The following list further elaborates the content of each appendix of Example-3.1. IAppendix-1:   p1, p2 , files: p1.tex, p2.tex   2. The dir One\ SetA1\ apx\ c1\ p1\ contains; dirs: Lst, Eqn, Tab , files: a1.tex, b1.tex, a2.tex   3. The dir One\SetA1\apx\c1\p2\ contains; dirs: Thm, Fig, SrcLst , files: a1.tex, a2.tex 1. The dir One\SetA1\apxc1 contains; dirs:

IAppendix-2:   p1, p2 , files: p1.tex, p2.tex   2. The dir One\ SetA1\ apx\ c2\ p1\ contains; dirs: Lst, Eqn, Tab , files: a1.tex, b1.tex, a2.tex   3. The dir One\SetA1\apx\c2\p2\ contains; dirs: Thm, Fig, SrcLst , files: a1.tex, a2.tex 1. The dir One\SetA1\apx\c2 contains; dirs:

Description- 3.4 (A portion in a Chapter) : 3.4.1 The One\SetA1.PartAmain\tex is the main file which includes each chapter as a single line. 3.4.2 The One\SetA1\c1.c1main\tex is the main file for a single chapter. 3.4.3 The One\SetA1\c1\p1.p1main\tex is the main file associated with a portion of the chapter. This could be a set of sections and/or subsections. 3.4.4 The One\SetA1\c1\p1.a1\tex is a file for all the content of a section. 3.4.5 The One\SetA1\c1\p1.b1\tex is a file for all the content of a subsection.

Example- 3.4 : The following list summarizes the content of a LATEX Rpt with three chapters and two appendices. IAll Chapters and Appendices:  c1, c2, c3, apx , files: SetA1.tex   One\SetA1\c1 contains; dirs: p1, p2 , files: c1.tex   One\SetA1\c2 contains; dirs: p1 , files: c2.tex   One\SetA1\c3 contains; dirs: p1 , files: c3.tex   One\SetA1\apx contains; dirs: c1, c2 , files: apx.tex

1. One\SetA contains; dirs: 2. 3. 4. 5.



28

The Structure of a LATEX document

IChapter-c1: a1, b1, a2 ,  2. One\SetA1\c1\p2\ contains; dirs: a1, b1, a2 ,

1. One\SetA1\c1\p1\ contains; dirs:



 p1.tex  files: p2.tex files:

IChapter-c2: 1. One\SetA1\c2\p1\ contains; dirs:

 a1 ,

files:



p1.tex



IAppendix-c1: 1. One\SetA1\apx\c1\ contains; dirs:



p1 ,

files:

 c1.tex



p1 ,

files:

 c1.tex

IAppendix-c2: 1. One\SetA1\apx\c2\ contains; dirs:

Chapter 4

The LATEX document class report

4.1

Introduction

This chapter details the structure of the LATEX report tex-1 in Table-2.2. The content of each  directory is summarized  in terms sub-directories dir: and files with common extensions like .tex, .pdf, .bat, .bib: . The hierarchical structure of these directories is primarily dictated by the in-file Rpt.tex. For convenience of illustration, the out-file Rpt.pdf contains (i) Preface, (ii) two chapters followed by (iii) two appendices. This principle of composing each chapter or an appendix can be extended easily for additional chapters and appendices.

4.2

The Directory Structure of TexRpt

Description- 4.1 (The Directory TexRpt) :

1. TexRpt\:  Bib, One • dir  • .bat a, ba  • .ddf Rpt  • .pdf Rpt, Rpt-0  • .tex Rpt, tmpmain 2. TexRpt\Bib\:  • .bib Bib-One, Bib-Satya

 • dir SetA1  • .tex SetA1 4. T-DIR\= TexRpt\One\SetA1\:  • dir apx, c1, c2  • .tex apx, c1, c2, preface1 5. T-DIR\apx\:  • dir c1, c2  • .tex c1, c2

3. TexRpt\One\:

The Description-4.1.1 contains the bibliography directory Bib and the main directory One whos content is further given by the Description-4.1.2 to Description-4.1.5 . The SetA1.tex is the main  file for Rpt.tex. The directories c1, c2 contain the tex files associated  with the two chapters. The apxmain.tex is the main file for all the appendices. The directories apx\c1, apx\c2 contain the tex files associated with the two appendices.

30

The LATEX document class report

The batch file a.bat compiles the Rpt.tex to generate the file Rpt.pdf. For convenience of quick and short compilation of smaller tex files we use a temporary file Rpt-Tmp.tex. The internal single main file within Rpt.tex(or Rpt-Tmp.tex) is One/SetA1/SetA1.tex(or tmpmain.tex). The Rpt-0.pdf is a backup of a previous version of Rpt.pdf. As the content of One/SetA1/SetA1.tex changes, the Rpt.pdf changes. In this way, the content of Rpt.tex remains unchanged. Fore each new compilation, the file Rpt-0.pdf can be used as a reference to note the incremental changes in the revised Rpt.pdf. If required, the batch file ba.bat can be used to copy the latest Rpt.pdf to Rpt-0.pdf. The batch file a1.bat compiles Rpt-Tmp.tex to Rpt-Tmp.pdf and ba1.bat copies this file to Rpt-Tmp-0.pdf. We now look into the design of Rpt.tex given by the Description-4.2. Description- 4.2 (The File TexRpt\Rpt.tex) : Refer Listing-4.1 Line-2: This declares the document class as report. Lines:4-9: These define some boolean flags required for all types of documents as in Table-2.2. Lines:11-22: defines the document environment. Line-13: uses the macro \CSatya with title as A Sample Report. The author is internally defined by this macro. This macro can be reused across all the LATEX documents composed by the same author. 4.2.5 Lines:15-18: are related to the title, version creation and table of contents. 4.2.6 Line-19: this includes the main file SetA1.tex.

4.2.1 4.2.2 4.2.3 4.2.4

Listing 4.1: The File TexRpt\Rpt.tex 3 6 9 12 15 18 21 24 27

%----------------------------------\ 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 } %--------------------------------% CopyRight ..... %--------------------------------\ vspace {20 ex } \ fbox {\ parbox {0.9\ columnwidth }{ Copyright 2013. Personal use of this material is permitted . However , permission to use this material for any other purpose must be obtained from the author by sending a request to a sh r i th 9 s at y a @ gm a i l . com }} %----------------------------------\ ToCTFL %-----------------------------------

4.3 The Chapter-1 in Rpt.pdf

31

30 \ newpage %----------------------------------%\ input { tmpmain . tex } 33 \ input { One / SetA1 . tex } %----------------------------------\ end { document } 36 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Description- 4.3 (File TexRpt\One\SetA1\SetA1.tex) : 4.3.1 4.3.2 4.3.3 4.3.4

Line-2: This declares the document class as report. Lines:4-9: These define some boolean flags required for all types of documents as in Table-2.2. Lines:11-22: defines the document environment. Line-13: uses the macro \CSatya with title as A Sample Report. The author is internally defined by this macro. This macro can be reused across all the LATEX documents composed by the same author. 4.3.5 Lines:15-18: are related to the title, version creation and table of contents. 4.3.6 Line-19: this includes the main file SetAmain.tex.

Listing 4.2: The File TexRpt\One\SetA1.tex 3 6 9 12

%----------------------------------\ begin { bibunit }[ unsrt ] %----------------------------------\ 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 } %-----------------------------------

4.3

The Chapter-1 in Rpt.pdf

Description- 4.4 (The Directory T-DIR= TexRpt\One\SetA1\c1) :

4.4.1 T-DIR\:  • dir p1  p1 • .tex

4.4.2 T-DIR\p1\: • .tex



a1, a2, a3

Description- 4.5 (The Directory T-DIR= TexRpt\One\SetA1\c2) :



32

The LATEX document class report 4.5.1 T-DIR\:  • dir p1  • .tex p1

4.5.11 T-DIR\p1\Fig\: • dir



Img, Tab





Fa1, Fa2, Fa3, Fa4, Fa5, 4.5.2 T-DIR\p1\: • .tex Fa1-a1, Fa1-b2, Fa2-a1, Fa3-a1  Eqn, Exm, Fig, SrcLst, Lst, 4.5.12 T-DIR\p1\Fig\Img\: • dir Tab, Thm   a1, a2, a3, a4, a5, a6, a7, SriNivasRam, Y-1, Y-2, Y-3, • .tex • .JPG a8, a9, b1 Y-4, Z-1, Z-2

4.5.3 T-DIR\p1\Eqn\: 4.5.13 T-DIR\p1\Fig\Tab\:  Ea1, Ea2, Ea3, Ea4, Ea5,  • .tex • .tex Ta1, Ta2 Ea5-1, Ea5-2, Ea5-3, Ea5-4 4.5.14 T-DIR\p1\SrcLst\: 4.5.4 T-DIR\p1\Exm\:   • dir Fig, Lst, Sim-Lsf • .m Gen f axis, tmp-Gen f axis   • .tex Exma1, Exma2, Exma3 • .tex FLa1, FLa2 4.5.5 T-DIR\p1\Exm\Fig\: 4.5.15 T-DIR\p1\Lst\:   • .tex Fa1 • .tex La1, La2, La3 4.5.6 T-DIR\p1\Exm\Lst\: 4.5.16 T-DIR\p1\Tab\:  • .tex La1, La2  Ta1, Ta2, Ta1-a1, Ta1-b2, 4.5.7 T-DIR\p1\Exm\Sim-Lsf\: • .tex Ta1-dat, Ta2-a1, Ta2-b2,  Ta2-b3 • dir Dem1 4.5.8 T-DIR\p1\Exm\Sim-Lsf\Dem1\:  • dir A3-1, A4-1 4.5.9 T-DIR\p1\Exm\Sim-Lsf\Dem1\A3-1\:  Fg-A3-1-a, Fg-A3-1-a-Lgd, • .tex dTA3 1 1, dTA3 1 2, dTA3 1 3

4.5.17 T-DIR\p1\Thm\: • dir



Lst





Defa1, Desa1, Gida1, Prfa1, • .tex Proca1, Prpa1, Qesa1, Rema1, Smya1, Thma1

4.5.10 T-DIR\p1\Exm\Sim-Lsf\Dem1\A4-1\: 4.5.18 T-DIR\p1\Thm\Lst\:   • .tex La1, La2, La3, La4, La5 Fg-A4-1-a, Fg-A4-1-a-Lgd, • .tex dTA4 1 1, dTA4 1 2

Listing 4.3: The File TexRpt\One\SetA1\c1.tex %------------------------------\ CChap { Introduction } 3 { tag - One / SetA1 / c1 } %----------------------------------\ input { One / SetA1 / c1 / p1 . tex } 6 %-----------------------------------

4.4 The Appendix-A in Rpt.pdf

33

Listing 4.4: The File TexRpt\One\SetA1\c1\p1.tex 3 6 9 12 15

%---------------------------------In many signal processing systems , one can easily identify two basic types of operations ( i ) time domain synthesis of a sequence ( ii ) spectral analysis / estimation of a sequence . %----------------------------------In this thesis , an alternate representation framework of any \ textsl { causal finite length complex sequence } called \ textsl { LSF - Model } is presented . The impact of this novel representation framework is addressed in both time and frequency domains . %----------------------------------\ input { One / SetA1 / c1 / p1 / a1 . tex } %----------------------------------\ input { One / SetA1 / c1 / p1 / a2 . tex } %----------------------------------\ input { One / SetA1 / c1 / p1 / a3 . tex } %-----------------------------------

4.4

The Appendix-A in Rpt.pdf

Description- 4.6 (The Directory T-DIR= TexRpt\One\SetA1\apx\c1) :

4.6.1 T-DIR\:  • dir p1  • .tex p1 4.6.2 T-DIR\p1\:  • dir Eqn, Exm  • .tex a1, a2, b1

4.6.3 T-DIR\p1\Eqn\: • .tex



Ea1



4.6.4 T-DIR\p1\Exm\: • .tex



Exma1



Description- 4.7 (The Directory T-DIR= TexRpt\One\SetA1\apx\c2) :

4.7.1 T-DIR\:  • dir p1  • .tex p1 4.7.2 T-DIR\p1\:  • dir Fig, Thm 4.7.3 T-DIR\p1\Fig\:  • dir Img  • .tex Fa1

4.7.4 T-DIR\p1\Fig\Img\:  • .jpg E-1 4.7.5 T-DIR\p1\Thm\:  • dir Lst  • .tex Da1, Pa1 4.7.6 T-DIR\p1\Thm\Lst\:  • .tex La1

34

The LATEX document class report Listing 4.5: The File TexRpt\One\SetA1\apx.tex

%------------------------------\ begin { RptAppendix } 3 %----------------------------------\ input { One / SetA1 / apx / c1 . tex } \ input { One / SetA1 / apx / c2 . tex } 6 %----------------------------------\ end { RptAppendix } %-----------------------------------

Listing 4.6: The File TexRpt\One\SetA1\apx\c1.tex %-----------------------------\ CChap { The Normalized Phase } 3 { tag - One / SetA1 / apx / c1 } %----------------------------------The Normalized phase resolves the phase ambiguity . 6 %----------------------------------\ input { One / SetA1 / apx / c1 / p1 . tex } %-----------------------------------

Listing 4.7: The File TexRpt\One\SetA1\apx\c1\p1.tex %------------------------------------\ input { One / SetA1 / apx / c1 / p1 / a1 . tex } 3 %----------------------------------\ input { One / SetA1 / apx / c1 / p1 / a2 . tex } %-----------------------------------

Chapter 5

Some Selected Examples

5.1

Introduction

This chapter illustrates some selected examples.

5.2

Figures

Description- 5.1 (The Directory TexRpt) : 5.1.1 Report.tex, the main LATEX file. 5.1.2 Rpt.pdf, the desired LATEX document corresponding to Report.tex. 5.1.3 Cfg, the directory which serves as a configuration directory. This contains files which select the required LATEX packages and other macros from LaTex-Base. 5.1.4 Bib, the directory containing the Bibliography files. Typically a single file Bib One.bib is recommended. If required other .bib files can also be copied here. For convenience the LaTex−Base\Master−Bib directory is used as an archive for all the bibliographies which can be used across LATEX documents and by many users. 5.1.5 One, the sub-directory which contains all the user defined LATEX files which are specific for the current document. 5.1.6 Rpt-tmp.tex, the temporary LATEX main file which is used for testing parts of the desired document. 5.1.7 Rpt-tmp.pdf, the LATEX PDF file corresponding to the main file Rpt-tmp.tex. 5.1.8 a.bat, a batch file which is frequently used at command prompt for compiling Report.tex. 5.1.9 a1.bat, a batch file which is frequently used at command prompt for compiling Report-tmp.tex.

IMatlab Figure:

36

Some Selected Examples

Imaginary ρ = ρR +jρI , |ρ| < 1 ρR = OB = |ρ| cos(2π^ρ) = cos(2πβ+ [1]) ρI = BP = |ρ| sin(2π^ρ) = sin(2πβ− [0])

G

E O

1

C

P

D

|ρ|

For 0 ≤ ^ρ < B

OP = |ρ|, ∠F OP = 2π^ρ OC = 1, ∠F OC = 2πβ+ [1] OD = 1, ∠F OD = 2πβ− [0]

F

  1 4

, β− [0] < ^ρ < β+ [1]

Real

   Principle:(Property-??) The numbers |ρ|, ρR , ρI are denoted by OP, OB, OE . The points B, E  are the projections by extending  of P on the real and Imaginary axes. The points C, D are obtained the lines BP, EP to intersect the unit-radius arc G-C-D-F at the points C, D . Hence the by OP in three alternate formats (i)  complex number ρ can be uniquely represented  |ρ|, ^ρ (length, angle), (ii) ρR , ρI (length, length) and (iii) β+ [1], β− [0] (angle, angle).   In (iii), OP is defined by two phasors OC, OD as the intersection ofBC and ED. The points C, D which are on the arc definetwo pairs of similar right angled triangles OBP, OBC and OEP, OED with their common base as OB = ρR , OE = ρI . This LSF-Format  (iii) of complex number ρ is obtained by constructing a two-point MP-sequence with values as 1, −ρ , which in polynomial form can be recognized as the basic MP-factor (Table-??).  Example: For ρ = 0.7^ 0.2 = 0.2163+j0.6657; the LSF β+ [1] = 0.215298 and the LSF β− [0] = 0.11594

Figure 5.1: Geometrical interpretation of the LSFs of the basic factor with model parameters µMP = 0, λMP = 1

5.2 Figures

37

0.1384

−5.0455 Xexp=(−3)

−0.5

−1 −40 −1.5

−2

[dB]

[dB]

−60

−2.5

−80

−3

−3.5 −100 −4

−4.6157 0

0.1

0.2

0.3672

−120.412 0.0469

(a) |H04 (f1 )| of B-1 in Band-1

0.1469

0.2469

0.3469

0.5

(b) |H04 (f1 )| of B-1 in Band-2

−5.4123

−22.514

−8 −26

−10

−28

−30

[dB]

[dB]

−12

−14

−32

−34 −16 −36

−18 −38

−20 −40

−22.0602 0

0.1

0.2

(c) |H02 (f2 )| of B-2 in Band-1

0.3799

−42.0089 0.3809

0.4404

(d) |H02 (f2 )| of B-2 in Band-2

Figure 5.2: The Characteristics of H04 (z2 ) in B-2

0.5

Chapter 6

The LATEX document class article

6.1

Introduction

This chapter details the structure of the LATEX article  tex-2 in Table-2.2. The content of each directory is summarized in terms sub-directories dir: and files with common extensions like  .tex, .pdf, .bat, .bib: . The hierarchical structure of these directories is primarily dictated by the in-file Art-1col.tex. For convenience of illustration, the out-file Art-1col.pdf by using the content Chapter-2 of Rpt.pdf.

6.2

The Directory Structure of TexArt

We now analyze the structure of Art-1col.pdf. Description- 6.1 (The Directory TexArt\) :

6.1.1 TexArt\:  • dir Bib, One, Two  • .bat a1, a2, ba1, ba2 6.1.4  Art-1col, Art-1col-0, • .pdf Art-2col, Art-2col-0  Art-1col, Art-2col, tmpmain • .tex 6.1.2 TexArt\Bib\:  • .bib Bib-One, Bib-Satya 6.1.3 TexArt\One\:

 • dir SetA1  • .tex SetA1 T-DIR\= TexArt\One\SetA1\:  • dir apx, p1  • .tex apx, p1

6.1.5 T-DIR\apx\:  • dir p1  • .tex p1

6.2 The Directory Structure of TexArt

39

Description- 6.2 (The Directory T-DIR\= TexArt\One\SetA1\p1\) : The LATEX code for part-1 6.2.1 T-DIR\: 6.2.6  Eqn, Fig, SrcLst, Lst, Tab, • dir Thm  a1, a2, a3, a4, a5, a6, a7, • .tex a8, b1 6.2.7

T-DIR\SrcLst\: • .m



Gen f axis, tmp-Gen f axis  • .tex FLa1, FLa2



T-DIR\Lst\:

 6.2.2 T-DIR\Eqn\: • .tex La1, La2, La3  Ea1, Ea2, Ea3, Ea4, Ea5, 6.2.8 T-DIR\Tab\: • .tex Ea5-1, Ea5-2, Ea5-3, Ea5-4  Ta1, Ta2, Ta1-a1, Ta1-b2, 6.2.3 T-DIR\Fig\: • .tex Ta1-dat, Ta2-a1, Ta2-b2, Ta2-b3  • dir Img, Tab  Fa1, Fa2, Fa3, Fa4, Fa5, 6.2.9 T-DIR\Thm\: • .tex Fa1-a1, Fa1-b2, Fa2-a1, Fa3-a1  • dir Lst  6.2.4 T-DIR\Fig\Img\: Da1, Desa1, Gida1, Pa1,  Rema1, Smya1, Thma1 • .tex Proca1, SriNivasRam, Y-1, Y-2, Y-3, • .JPG Y-4, Z-1, Z-2 6.2.10 T-DIR\Thm\Lst\: 6.2.5 T-DIR\Fig\Tab\:   • .tex La1, La2, La3, La4, La5 • .tex Ta1, Ta2 Description- 6.3 (The Directory T-DIR\= TexArt\One\SetA1\apx\) : The LATEX code for Chapter-2 is as follows;  6.3.1 T-DIR\p1\: • .tex Fa1  • dir Eqn, Exm, Fig, Thm 6.3.5 T-DIR\p1\Fig\Img\:  • .tex a1, a2, a3, b1  • .jpg E-1 6.3.2 T-DIR\p1\Eqn\:  6.3.6 T-DIR\p1\Thm\: • .tex Ea1  • dir Lst 6.3.3 T-DIR\p1\Exm\:  • .tex Da1, Pa1  • .tex Exma1 6.3.7 T-DIR\p1\Thm\Lst\: 6.3.4 T-DIR\p1\Fig\:   • .tex La1 • dir Img

40

6.3

The LATEX document class article

Other Variants

ITwo Column version: The structure is identical to the one-column version except for changes which can be observed from the Art-2col.pdf. IIEEE Articles: The main file of TexIEEE\ieee-1col.tex and is identical to TexArt\Art-1col.tex except for the changes in configuring the style file. The same is true for the two column version also.

Chapter 7

The LATEX document class beamer

7.1

Introduction

This chapter details the structure of the LATEX beamer tex-7 in Table-2.2.

7.2

The Directory Structure of TexBmrPT-A

We now analyze the structure of BmrPT-A.pdf. Description- 7.1 (The Directory TexBmrPT-A\) :

7.1.1 TexBmrPT-A\:  • dir Bib, BmrPT  • .bat bz, z  • .pdf BmrPT-A, BmrPT-A-0  • .tex BmrPT-A

7.1.4 TexBmrPT-A\BmrPT\Data\:  • dir Img

7.1.2 TexBmrPT-A\Bib\:  • .bib Bib-One, Bib-Satya

7.1.6 T-DIR\= TexBmrPT-A\BmrPT\SetA1\:  • dir InBib, p1, p2, p3, q1  • .tex InBib, p1, p2, p3, q1

7.1.5 TexBmrPT-A\BmrPT\Data\Img\:  • .pdf raman1

7.1.3 TexBmrPT-A\BmrPT\:  7.1.7 T-DIR\InBib\: • dir Data, SetA1   Ack-Ramanujan, SetA1, WelCom • .tex • .tex biba1, biba2, biba3

42

The LATEX document class beamer

Description- 7.2 (The Directory T-DIR\= TexBmrPT-A\BmrPT\SetA1\ ) : The LATEX code for part-1  • .tex Ta1 7.2.1 T-DIR\p1\:  • dir Eqn, Fig, SrcLst, Lst, Thm 7.2.6 T-DIR\p1\SrcLst\:   s1, s2, s3, s4, s5, s6, s7, • .tex • .m Gen f axis, tmp-Gen f axis s8  • .tex FLa1, FLa2 7.2.2 T-DIR\p1\Eqn\: 7.2.7 T-DIR\p1\Lst\:  • .tex Ea1, Ea2, Ea3, Ea4  • .tex La1, La2 7.2.3 T-DIR\p1\Fig\: 7.2.8 T-DIR\p1\Thm\:  • dir Img, Tab   Lst • dir Fa1, Fa2, Fa1-a1, Fa1-b2 • .tex  Da1, Desa1, Pa1, Rema1, 7.2.4 T-DIR\p1\Fig\Img\: • .tex SPba1, Thma1  Y-1, Y-2, Y-3, Y-4, Z-1, Z-2 7.2.9 T-DIR\p1\Thm\Lst\: • .JPG 7.2.5 T-DIR\p1\Fig\Tab\:

• .tex



La1, La2, La3



Description- 7.3 (The Directory T-DIR\= TexBmrPT-A\BmrPT\SetA1\ ) : The LATEX code for part-2 7.3.1 T-DIR\p2\:  • dir Eqn, Fig, Tab, Thm  • .tex s1, s2, s3, s4, s5

7.3.4 T-DIR\p2\Tab\:  Ta1, Ta1-a1, Ta1-b2, Ta1-b3, • .tex Ta1-b4

7.3.2 T-DIR\p2\Eqn\:  Ea1, Ea2, Ea2-1, Ea2-2, • .tex Ea2-3, Ea2-4

7.3.5 T-DIR\p2\Thm\:  • dir Lst  • .tex Proca1, Rema1

7.3.3 T-DIR\p2\Fig\:  • .tex Fa1, Fa1a1

7.3.6 T-DIR\p2\Thm\Lst\:  • .tex La1, La2

Description- 7.4 (The Directory T-DIR\= TexBmrPT-A\BmrPT\SetA1\ ) : The LATEX code for part-3 7.3.1 T-DIR\p3\:  • dir Lst  • .tex a1, a2

7.3.2 T-DIR\p3\Lst\: • .tex



La1, La2



7.2 The Directory Structure of TexBmrPT-A

43

Description- 7.5 (The Directory T-DIR\= TexBmrPT-A\BmrPT\SetA1\ ) : The LATEX code for Bibliography. 7.3.1 T-DIR\q1\:  • dir Lst  • .tex a1, a2

7.3.2 T-DIR\q1\Lst\: • .tex



La1



Appendix A

The Commands in Sagar-LaTex-LibA

A.1

Organization of Macros

The macros are classified as follows. Description- A.1 (Types of macros) :

A.1.1 text:

A.1.5 cannot-run:

A.1.9 nouse:

A.1.2 math:

A.1.6 sequence:

A.1.3 matrix:

A.1.7 signal:

A.1.4 tagref:

A.1.8 todo-persatya:

A.1.10 obs math:

The Description-A.2 summarizes the files which contain the above types of macros. Description-A.3 to Description-A.22 summarize each of these macros.

The

Description- A.2 (cmd-summary.tex) :

1. cannot-run-1.tex

13

2. cannot-run-2.tex

23

10. cannot-run-envcmd-1.tex 2

3. cannot-run-3.tex

11

11. cannot-run-non-bmr1.tex 7

4. cannot-run-4.tex

26

12. cannot-run-obs-1.tex

5. cannot-run-5.tex

29

13. math-1.tex

6. cannot-run-6.tex

10

7. cannot-run-7.tex

19. math-7.tex

18

20. math-8.tex

24

21. math-9.tex

8

22. math-10.tex

4

32

23. math-11.tex

51

14. math-2.tex

14

24. math-12.tex

19

22

15. math-3.tex

12

25. math-13.tex

21

8. cannot-run-bmr-1.tex 34

16. math-4.tex

31

26. math-matrix-1.tex

14

17. math-5.tex

30

27. math-matrix-2.tex

13

18. math-6.tex

29

28. tagref-1.tex

9. cannot-run-bmr-2.tex 10

4

22

A.2 Macro Type ’tagref ’

29. tagref-non-bmr-1.tex 44 30. tagref-non-bmr-2.tex 18

A.2

45

31. tagref-non-bmr-3.tex

7

34. text-3.tex

18 18

32. text-1.tex

28

35. text-4.tex

33. text-2.tex

18

36. total number

684

Macro Type ’tagref ’

Description- A.3 (tagref-1.tex) :

1. \Xref{a}{b} fora/[?]

8. \sTBtag{a} for

16. \Fref{a} for Figure-17

2. \TBXref{a}{b} forTablea/[?]

9. \Eqref{a} for (10)

17. \Ftag{a} for

10. \Eqtag{a} for

18. \BbcitT{a}{b} for [?, a]

3. \TBref{a} for Table-4

11. \FXref{a}{b} fora/[?]

4. \TBtag{a} for

12. \Figs{a} for a

5. \sFref{a} for Figure-6

13. \FigsM{a} for a

6. \sFtag{a} for

14. \Figt{a} for

7. \sTBref{a} for Table-8

15. \FigtM{a} for

19. \Bbcit{a} for [?] 20. \Aaref{a} for Appendix-21 21. \Aatag{a} for

a

a

22. \Aref{a} for Appendix-38

Description- A.4 (tagref-non-bmr-1.tex) :

1. \Ansref{a} forAnswer-16

11. \Simref{a} forSimulation-13

2. \Qesref{a} forQuestion-17

12. \Exmtag{a} for:

3. \Algref{a} forAlgorithm-4

13. \Simtag{a} for:

4. \Algtag{a} for: 5. \Defref{a} forDefinition-6

14. \ Prfref {a} forProof-15 15. \Prftag{a} for: 16. \Anstag{a} for:

6. \Deftag{a} for: 7. \ExErref{a} forExercise-18

17. \Qestag{a} for: 18. \ExErtag{a} for:

8. \ExmXref{a}{b} forExample-a/[?]

19. \ProcXref{a}{b} forProcedure-a/[?]

9. \Exmref{a} forExample-12

20. \Procref{a} forProcedure-21

10. \SimXref{a}{b} forSimulation-a/[?]

21. \Proctag{a} for:

46

The Commands in Sagar-LaTex-LibA

22. \PrpXref{a}{b} forProperty-a/[?]

34. \SPbref{a} for Problem-35

23. \Prpref{a} forProperty-24

35. \SPbtag{a} for:

24. \Prptag{a} for:

36. \ Solref {a} forSolution-37

25. \Remref{a} forRemark-26

37. \Soltag{a} for:

26. \Remtag{a} for:

38. \Atag{a} for

27. \SXref{a}{b} for Section-a/[?] 39. \ ssref {a} for Section-40 28. \Sref{a} for Section-7 29. \ThmXref{a}{b} forTheorem-a/[?]

40. \sstag{a} for 41. \Smyref{a} forSummary-42

30. \Thmref{a} forTheorem-31 31. \Thmtag{a} for:

42. \Smytag{a} for:

32. \Objref{a} for Question-33

43. \Destag{a} for:

33. \Objtag{a} for:

44. \Gidtag{a} for:

Description- A.5 (tagref-non-bmr-2.tex) :

1. \AlgItemref{a}{b} forAlgorithm-4.b

10. \Gidref{a} forGuideline-44

2. \AnsItemref{a}{b} forAnswer-16.b

11. \PrfItemref{a}{b} forProof-15.b

3. \DefItemref{a}{b} forDefinition-6.b

12. \ProcItemref{a}{b} forProcedure-21.b

4. \DesItemref{a}{b} forDescription-43.b

13. \PrpItemref{a}{b} forProperty-24.b

5. \Desref{a} forDescription-43

14. \RemItemref{a}{b} forRemark-26.b

6. \ExErItemref{a}{b} forExercise-18.b

15. \SPbItemref{a}{b} for Problem-35.b

7. \ExmItemref{a}{b} forExample-12.b

16. \SolItemref{a}{b} forSolution-37.b

8. \SimItemref{a}{b} forSimulation-13.b

17. \ThmItemref{a}{b} for 31.b

9. \GidItemref{a}{b} forGuideline-44.b

18. \SmyItemref{a}{b} forSummary-42.b

Description- A.6 (tagref-non-bmr-3.tex) :

1. \ChapAref{a} for Appendix-3 4. \Lsref{a} for Listing-5 2. \Cref{a} for Chapter-3

5. \Lstag{a} for

3. \Ctag{a} for

6. \ScXref{a}{b} forSection-

a/[?]

7. \Stag{a} for

A.3 Macro Type ’cannot-run’

A.3

47

Macro Type ’cannot-run’

Description- A.7 (cannot-run-1.tex) :

1. \LstSep{a}{b}

6. \CapBr{a}

2. \Tcmathsf{a}{b}

7. \CapBl{a}

3. \TctxtBrsf{a}{b}

8. \CapBrM{a}

4. \FigRule

9. \CapBlM{a}

5. \ImgMacroOne{a}{b}

10. \PButs{a}{b}

11. \PBMuts{a}{b}

12. \PBRuts{a}{b}

13. \PBBruts{a}{b}

Description- A.8 (cannot-run-2.tex) :

1. \CAChap{a}{b}

9. \RestRule

17. \ToCF

2. \CBmrSec{a}{b}

10. \RotBsf{a}

18. \ToCT

3. \CChap{a}{b}

11. \ ScriptSf {a}

4. \CSec{a}{b}

12. \ScriptSze{a}

5. \ItemEql{a}

13. \SeE

6. \MyRule

14. \SeS

7. \NewRule

15. \TexDirSep

22. \hashchar

8. \Nline

16. \ToC

23. \ampchar

19. \ToCTF 20. \ToCTFL 21. \centchar

Description- A.9 (cannot-run-3.tex) :

1. \SFig{a}{b}

5. \VSPDb

2. \SfSz{a}{b}{c}{d}

6. \VSPFa

3. \SfSzRot{a}{b}{c}{d}{e}

7. \VSPFb

4. \VSPDa

8. \VSPUDa

9. \VSPUDb 10. \VSPUa

Description- A.10 (cannot-run-4.tex) :

11. \VSPUb

48

The Commands in Sagar-LaTex-LibA

1. \APart{a}{b}

10. \LclRcl{a}{b}

19. \RLh{a}

2. \ArS{a}

11. \LclRop{a}{b}

20. \Rh{a}

3. \BLh{a}

12. \Lh{a}

4. \BrLh{a}

13. \LopRcl{a}{b}

5. \BrwnItem{a}

14. \LopRop{a}{b}

6. \Ch{a}

15. \MLh{a}

7. \InTB{a}{b}{c}{d}{e}{f}{g}16. \Midx{a}

21. \SemInTab{a}{b}{c}{d} 22. \TBSet{a}{b}{c} 23. \Ub{a} 24. \Utr{a}

8. \InTabC{a}{b}{c}{d}

17. \Mrk{a}

25. \Vsp{a}

9. \InTabNull{a}{b}{c}{d}

18. \OrLh{a}

26. \omat{a}

Description- A.11 (cannot-run-5.tex) :

1. \CASec{a}{b}

16. \SfSzNscTag{a}{b}{c}

2. \CASubSec{a}{b}

17. \StSzFig{a}{b}{c}

3. \CBmrSubSec{a}{b}

18. \StSzFigBr{a}{b}{c}

4. \CSubSec{a}{b}

19. \StSzFigBrM{a}{b}{c}

5. \InArr{a}{b}{c}{d} 6. \InFigCol{a}{b}{c}{d}{e}{f} 7. \InSideTab{a}{b}{c}{d}

20. \StSzFigBl{a}{b}{c} 21. \StSzFigBlM{a}{b}{c} 22. \StSzTab{a}{b}{c}

8. \InTabAlg{a}{b}{c} 9. \MCol{a}{b}{c} 10. \RdLh{a} 11. \SemCASec{a}{b}

23. \StSzTabBr{a}{b}{c} 24. \StSzTabBrM{a}{b}{c} 25. \StSzTabBl{a}{b}{c}

12. \SemCASubSec{a}{b}

26. \StSzTabBlM{a}{b}{c}

13. \SemCSec{a}{b}

27. \TikzLbl{a}{b}

14. \SemCSubSec{a}{b}

28. \newnotation{a}{b}{c}

15. \SfSzNsc{a}{b}

29. \newvarsym{a}{b}{c}

Description- A.12 (cannot-run-6.tex) :

A.4 Macro Type ’text’

49

1. \Aiete{a}

5. \BitsSatyaB{a}

2. \BSatya{a}

6. \CSatya{a}

3. \BSatyaM{a}

7. \BmrCSatya{a}{b}{c}

4. \BitsSatyaA{a}

8. \CSubbuSatyaAur{a}

9. \DSatya{a} 10. \VSatyaM{a}{b}{c}

Description- A.13 (cannot-run-7.tex) :

1. \AXref{a}{b}

9. \Mszu{a}{b}{c}

17. \RzSgn{a}{b}{c}

2. \Blz{a}

10. \MyHandPrintLand{a}

3. \CNfvSgn{a}{b}{c}

11. \MyHandPrintPort{a}

4. \CXref{a}{b}

12. \PBTxtLst{a}{b}

19. \TT{a}

5. \ChapAXref{a}{b}

13. \PBTxtLstsf{a}{b}

20. \Tctxtsf{a}{b}

18. \SetLstOne{a}{b}

6. \MATaa{a}{b}{c}{d}{e}{f} 14. \PBTxtLsttt{a}{b} 7. \MAToa{a}{b}{c}{d}

15. \PTday

8. \MAa{a}{b}

16. \PTdaySatya

21. \TxtLstsf{a} 22. \TxtLsttt{a}

Description- A.14 (cannot-run-obs-1.tex) :

1. \InFigEpsA{a}{b}{c}{d}{e}{f}{g}

3. \InFigEpsC{a}{b}{c}{d}

2. \InFigEpsB{a}{b}{c}{d}

4. \InFigeps{a}{b}{c}{d}{e}{f}{g}{h}

Description- A.15 (cannot-run-envcmd-1.tex) :

1. \InFigImg{a}{b}{c}{d}{e}

A.4

Macro Type ’text’

Description- A.16 (text-1.tex) :

2. \InTab{a}{b}{c}{d}

50

The Commands in Sagar-LaTex-LibA

21. \Plump{a} for a

1. \Bdsf{a} for a

11. \Grnsl{a} for a

2. \Blusc{a} for a

12. \Magp{a} for a

3. \Brownp{a} for a

13. \Magsc{a} for a

4. \Brownsc{a} for a

14. \Magsf{a} for a

5. \Brownsf{a} for a

15. \MyTeX for LATEX

24. \Redp{a} for a

6. \Brownsl{a} for a

16. \Orp{a} for a

25. \Redsc{a} for a

7. \Browntt{a} for a

17. \Orsc{a} for a

8. \Grnp{a} for a

18. \Orsf{a} for a

9. \Grnsc{a} for a

19. \Orsl{a} for a

10. \Grnsf{a} for a

20. \Plumit{a} for a

22. \Plumsc{a} for a 23. \Plumsf{a} for a

26. \Redsf{a} for a 27. \Redsl{a} for a 28. \Ysf{a} for a

Description- A.17 (text-2.tex) :

1. \Bluit{a} for a

7. \Mutp{a} for a

13. \ blutt {a} for a

2. \Blup{a} fora

8. \Txtit{a} for a

14. \utp{a} for a

3. \Blusf{a} for a

9. \Txtsc{a} for a

15. \uts{a} for a:

4. \Blusl{a} for a

10. \Txtsf{a} for a

16. \Muts{a} for a:

5. \Blutt{a} for a

11. \Txtsl{a} for a

17. \Ruts{a} for a:

6. \Brutp{a} for a

12. \ blusf {a} for a

18. \Bruts{a} for a:

Description- A.18 (text-3.tex) :

1. \Bsh{a} for a\

8. \EnvNam{a} for \begin{a}... \end{a}

2. \FilDot{a}{b} for a.b 3. 4. 5. 6.

9. \EnvNamS{a} for \begin{a} \MyURL{a}{b}{c} for a.b.c  10. \TxtLst{a} for a \FilNam{a}{b} for a.b 11. \VRBT{a} for a  \FunNamD{a} for a · 12. \VRB{a} for a  \FunNam{a} for a 13. \VRBBlue{a} for a

7. \CmdNam{a} for \a

14. \VRBBrown{a} for a

15. \VRBRed{a} for a 16. \TLt{a} for a 17. \TCt{a} for a 18. \TRt{a} for a

A.5 Rest

51

15. \eastlabBr{a} for

16. \eastlabM{a} for

a

8. \westlabBl{a} for

14. \eastlabBl{a} for

a

2. \genlabBl{a} for a

7. \westlab{a} for

a

a

a

1. \genlab{a} for

a

Description- A.19 (text-4.tex) :

a

9. \westlabBr{a} for

11. \westlabBlM{a} for

a

10. \westlabM{a} for 4. \genlabM{a} for a

a

3. \genlabBr{a} for a

A.5

a

13. \eastlab{a} for

18. \eastlabBrM{a} for

a

6. \genlabBrM{a} for a

a

12. \westlabBrM{a} for

a

17. \eastlabBlM{a} for 5. \genlabBlM{a} for a

Rest

Description- A.20 (cannot-run-non-bmr-1.tex) :

1. \ChapASec{a}{b}

4. \SetLst{a}{b}{c}{d}

2. \ChapBLh{a}{b}

5. \SetLstNoNum{a}{b}{c}{d}

3. \ChapSec{a}{b}

6. \LstCodeNum{a}{b}{c}{d}

A.6

7. \LstCodeNoNum{a}{b}{c}{d}

Beamer Macros

Description- A.21 (cannot-run-bmr-1.tex) :

1. \BmrRstCntrs

9. \Thmtag{a}

17. \MyPause

2. \SetLst{a}{b}{c}{d}

10. \Deftag{a}

18. \BmrPrntDef{a}

3. \BmrCap{a}

11. \Destag{a}

19. \BmrPrntAlg{a}

4. \Prftag{a}

12. \Remtag{a}

20. \BmrPrntDes{a}

5. \Algtag{a}

13. \Exmtag{a}

21. \BmrPrntExm{a}

6. \Gidtag{a}

14. \Simtag{a}

22. \BmrPrntSim{a}

7. \Prptag{a}

15. \PsItem

23. \BmrPrntPrf{a}

8. \Smytag{a}

16. \PsItemEql{a}

24. \BmrPrntProc{a}

52

The Commands in Sagar-LaTex-LibA

25. \BmrPrntPrp{a}

29. \BmrPrntSmy{a}

33. \BmrPrntRem{a}

26. \BmrPrntSPb{a}

30. \BmrPrntGid{a}

34. \BmrPrntThm{a}

27. \BmrPrntAns{a}

31. \BmrPrntExEr{a}

28. \BmrPrntSol{a}

32. \BmrPrntQes{a}

Description- A.22 (cannot-run-bmr-2.tex) :

1. \BmrNonTitleFrmATech

5. \BmrNonTitleFrmYesPart

2. \BmrNonTitleFrmNoHead

6. \BmrOutline{a}

3. \BmrNonTitleFrmNoPart

7. \BmrOutlineNoPart{a}

4. \BmrNonTitleFrmYesHead

8. \BmrOutlineNoPartOld

A.7

9. \BmrPart{a}{b}{c} 10. \BmrTitleFrmATech

Guidelines for Macro Usage

Guideline- A.1 (Guidelines) : A.1.1 All tag names should have the prefix as tag-. A.1.2 For \StSzTab and \StSzFig, the tag name prefix should be tagsub-.

A.8

Macro Type ’math’

Description- A.23 (math-1.tex) :

1. $\AEQ$ for ≈

8. $\Dt$ for·

2. $\Xh{a}$ for b a

9. $\Eq$ for=

3. $\Ad$ for+

10. $\Ge$ for≥

4. $\Cj{a}$ for a∗

11. $\Gt$ for>

5. $\DTS$ for· · ·

12. $\In$ for∈

. 6. $\VDTS$ for ..

13. $\Le$ for≤

7. $\DTSAd$ for+· · ·+

14. $\LeLe{a}{b}{c}$ for a ≤ b ≤ c

A.8 Macro Type ’math’

53 ∗

15. $\LeLt{a}{b}{c}$ for a ≤ b < c

24. $\PbSimCj{a}$ for a

16. $\Lt$ for
] ( c1_1 ) -- ( O2 ); \ path ( O2 ) + (0:0.5) node {\ small $ \ BMbf { z_4 } $ }; \ draw [ - >] ( a0_1 ) - - ( b0_1 ); 48 \ draw [ - >] ( a1_1 ) - - ( b1_1 ); \ draw [ - >] ( b0_1 ) - -( c0_1 ); \ draw [ - >] ( b1_1 ) - -( c1_1 ); 51 \ draw [ - >] ( b0_1 ) - -( c1_1 ); \ draw [ - >] ( b1_1 ) - -( c0_1 ); %----------------------------------54 \ path ( c0_1 )+(5.5 , -\ dimb /2) node {\ small \ input { One / SetA1 / apx / c2 / p1 / Fig / Tab / Ta1 . tex } }; 57 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ path ( b0_1 )+(\ dimc /2 , 0.5) node {\ small %----------------------------------60 $ \ MFcal { z_3 , z_4 }{ PMA }{ z_1 , \ PbSim {\ Rzm {\ alpha }{\ beta }} z_2 } $ %----------------------------------}; 63 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ end { tikzpicture } %-----------------------------------

B.13 The Environment FgA

  z1 , a+jb , z2 , c+jd  z3 , A+jB , z4 , C+jD  z5 , e+jf = α−jβ z2 z3 =  z1 +z5 , z4 = z1 −z5  e= αc+βd i  ,  h f= i αd−βc   A, C =PMA a, e , B, D =PMA b, f     A = a+e , C = a−e , B = b+f , D = b−f

h

z1 z2

79

i    z3 , z4 =PMA z1 , α−jβ z2 + 1 3 z3  α−jβ − 2 4 z4 h

Figure B.3: The DIT Fly Computation Description- B.30 (The single Tikz figure) : This illustrates a figure with the basic figure generated with Tikz code. The figure can be flanked by any arbitrary blocks. In this case, some equations related to the computation are presented.  a : defines the tabular specification  b : defines the tag  c : defines the caption  a : this includes another file which is the body of the table.

B.13

The Environment FgA Listing B.24: The Environment TbA

3 6 9 12 15 18 21 24

%----------------\ begin { FgA }{! h }{1.0}{0 pt }{0 pt } %----------------------------------\ FigRule %----------------------------------\ begin { center } \ def \ subfigcapskip {2 ex } \ def \ subfigtopskip {0 ex } %----------------------------------\ begin { tabular }{ cc } %----------------------------------\ StSzFig {\ Brownsf { Addition }}{ \ hspace { -5 ex } \ input { One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b1 . tex }}{ tagsub - One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b1 } %----------------------------------& %----------------------------------\ StSzFig {\ Brownsf { Rotation }}{\ hspace { -5 ex } \ input { One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b2 . tex }}{ tagsub - One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b2 } %----------------------------------\\ %----------------------------------\ StSzFig {\ Brownsf { Scaling }}{ \ hspace { -5 ex } \ input { One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b3 . tex }}{ tagsub - One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b3 } %-----------------------------------

80

The Environments in Sagar-LaTex-LibA

27 & %----------------------------------\ StSzFig {\ Brownsf { Block Normalization }}{ 30 \ hspace { -5 ex } \ input { One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b4 . tex }}{ tagsub - One / SetA1 / apx / c2 / p1 / Fig / Fa4 - b4 } %----------------------------------33 \ end { tabular } %----------------------------------\ end { center } 36 \ vspace { -4 ex } %----------------------------------\ CapBr { Basic Operations in an FFT } 39 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ Ftag { tag - One / SetA1 / apx / c2 / p1 / Fig / Fa4 } \ FigRule 42 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ end { FgA } %-----------------------------------

Listing B.25: The File:One/SetA1/apx/c2/p1/Fig/Fa4-b1.tex 3 6 9 12 15 18 21 24 27 30 33 36 39

%----------------------------\ tikzstyle { input } = [ coordinate ] \ tikzstyle { block } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.8 cm , inner sep =0.1 ex ] \ tikzstyle { block1 } = [ draw , rectangle , minimum height =0.7 cm , minimum width =0.6 cm , inner sep =0.1 ex ] \ tikzstyle { block2 } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.0 cm , inner sep =0.1 ex ] \ tikzstyle { bubble } = [ draw , circle , inner sep =0.1 ex ] \ tikzstyle { bubble1 } = [ draw , circle , fill = black , inner sep =0.2 ex ] %----------------------------------\ ifthenelse {\ boolean { FlagTikzGrid }} %----------------------------------{ %----------------------------------\ begin { tikzpicture }[ scale =1.0 , show background grid , show background rectangle , tight background ] } %----------------------------------{ %----------------------------------\ begin { tikzpicture }[ scale =1.0 , tight background ] } %----------------------------------\ def \ La {1.2} \ def \ Lb {0.8} \ def \ Lc {0.7} \ def \ Ld {0.6} %----------------------------------\ node [ bubble ] ( a0 ) {\ small \ Blusf {0}}; %----------------------------------\ path ( a0 )+(\ La ,0) node [ block1 ] ( a1 ) {\ small \ BMbf {\ pm }}; %----------------------------------\ path ( a0 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma \ Eq 0.5}}; %----------------------------------\ draw [ - >] ( a0 ) -- ( a1 ); %----------------------------------\ path ( a1 )+(\ La ,0) node [ bubble ] ( a2 ) {\ small \ Blusf {1}};

B.13 The Environment FgA

81

%----------------------------------\ draw [ - >] ( a1 ) -- ( a2 ); 42 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ path ( a2 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma \ Eq 1.0}}; %----------------------------------45 \ end { tikzpicture } %-----------------------------------

Listing B.26: The File:One/SetA1/apx/c2/p1/Fig/Fa4-b2.tex 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45

%----------------------------\ tikzstyle { input } = [ coordinate ] \ tikzstyle { block } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.8 cm , inner sep =0.1 ex ] \ tikzstyle { block1 } = [ draw , rectangle , minimum height =0.7 cm , minimum width =0.6 cm , inner sep =0.1 ex ] \ tikzstyle { block2 } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.0 cm , inner sep =0.1 ex ] \ tikzstyle { bubble } = [ draw , circle , inner sep =0.1 ex ] \ tikzstyle { bubble1 } = [ draw , circle , fill = black , inner sep =0.2 ex ] %----------------------------------\ ifthenelse {\ boolean { FlagTikzGrid }} %----------------------------------{ %----------------------------------\ begin { tikzpicture }[ scale =1.0 , show background grid , show background rectangle , tight background ] } %----------------------------------{ %----------------------------------\ begin { tikzpicture }[ scale =1.0 , tight background ] } %----------------------------------\ def \ La {1.2} \ def \ Lb {0.8} \ def \ Lc {0.7} \ def \ Ld {0.6} %----------------------------------\ node [ bubble ] ( a0 ) {\ small \ Blusf {0}}; %----------------------------------\ path ( a0 )+(\ La ,0) node [ block1 ] ( a1 ) {\ small \ BMbf {\ Ef {\ theta }}}; %----------------------------------\ path ( a0 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma \ Eq 0.5}}; %----------------------------------\ draw [ - >] ( a0 ) -- ( a1 ); %----------------------------------\ path ( a1 )+(\ La ,0) node [ bubble ] ( a2 ) {\ small \ Blusf {1}}; %----------------------------------\ path ( a2 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma \ Eq C_ {45}\ TRQ \ frac {1}{\ sqrt {2}}}}; %----------------------------------\ draw [ - >] ( a1 ) -- ( a2 ); %----------------------------------\ end { tikzpicture } %-----------------------------------

Listing B.27: The File:One/SetA1/apx/c2/p1/Fig/Fa4-b3.tex %-----------------------------

82

The Environments in Sagar-LaTex-LibA

\ tikzstyle { input } = [ coordinate ] 3 \ tikzstyle { block } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.8 cm , inner sep =0.1 ex ] \ tikzstyle { block1 } = [ draw , rectangle , 6 minimum height =0.7 cm , minimum width =0.8 cm , inner sep =0.1 ex ] \ tikzstyle { block2 } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.0 cm , inner sep =0.1 ex ] 9 \ tikzstyle { bubble } = [ draw , circle , inner sep =0.1 ex ] \ tikzstyle { bubble1 } = [ draw , circle , fill = black , inner sep =0.2 ex ] %----------------------------------12 \ ifthenelse {\ boolean { FlagTikzGrid }} %----------------------------------{ 15 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ begin { tikzpicture }[ scale =1.0 , show background grid , show background rectangle , tight 18 background ] } %----------------------------------21 { %----------------------------------\ begin { tikzpicture }[ scale =1.0 , tight background ] 24 } %----------------------------------\ def \ La {1.2} 27 \ def \ Lb {0.8} \ def \ Lc {0.7} \ def \ Ld {0.6} 30 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ node [ bubble ] ( a0 ) {\ small \ Blusf {0}}; %----------------------------------33 \ path ( a0 )+(\ La ,0) node [ block1 ] ( a1 ) {\ small \ BMbf {\ Tm { e }}}; %----------------------------------\ path ( a0 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma \ Eq \ Tp { I }}}; 36 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ draw [ - >] ( a0 ) -- ( a1 ); %----------------------------------39 \ path ( a1 )+(\ La ,0) node [ bubble ] ( a2 ) {\ small \ Blusf {1}}; %----------------------------------\ draw [ - >] ( a1 ) -- ( a2 ); 42 % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ path ( a2 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma \ Eq \ Tp {( I - e )}}}; %----------------------------------45 \ end { tikzpicture } %-----------------------------------

Listing B.28: The File:One/SetA1/apx/c2/p1/Fig/Fa4-b4.tex 3 6 9 12

%----------------------------\ tikzstyle { input } = [ coordinate ] \ tikzstyle { block } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.8 cm , inner sep =0.1 ex ] \ tikzstyle { block1 } = [ draw , rectangle , minimum height =0.7 cm , minimum width =0.8 cm , inner sep =0.1 ex ] \ tikzstyle { block2 } = [ draw , rectangle , minimum height =0.7 cm , minimum width =1.0 cm , inner sep =0.1 ex ] \ tikzstyle { bubble } = [ draw , circle , inner sep =0.1 ex ] \ tikzstyle { bubble1 } = [ draw , circle , fill = black , inner sep =0.2 ex ] %----------------------------------\ ifthenelse {\ boolean { FlagTikzGrid }}

B.13 The Environment FgA

15 18 21 24 27 30 33 36 39 42 45

83

%----------------------------------{ %----------------------------------\ begin { tikzpicture }[ scale =1.0 , show background grid , show background rectangle , tight background ] } %----------------------------------{ %----------------------------------\ begin { tikzpicture }[ scale =1.0 , tight background ] } %----------------------------------\ def \ La {1.2} \ def \ Lb {0.8} \ def \ Lc {0.7} \ def \ Ld {0.6} %----------------------------------\ node [ bubble ] ( a0 ) {\ small \ Blusf {0}}; %----------------------------------\ path ( a0 )+(\ La ,0) node [ block1 ] ( a1 ) {\ small \ Blusf { BlkNorm }}; %----------------------------------\ path ( a0 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma \ Eq 1.0}}; %----------------------------------\ draw [ - >] ( a0 ) -- ( a1 ); %----------------------------------\ path ( a1 )+(\ La ,0) node [ bubble ] ( a2 ) {\ small \ Blusf {1}}; %----------------------------------\ draw [ - >] ( a1 ) -- ( a2 ); %----------------------------------\ path ( a2 )+( -90:\ Lb ) node {\ small \ BMbf {\ sigma }}; %----------------------------------\ end { tikzpicture } %-----------------------------------

The LATEX code in Listing-?? to Listing-B.22 gives the Table-??.

σ = 0.5

0

σ = 1.0

σ = 0.5

(a) Addition

2−e

0 σ = 2+I

e j2πθ

1

±

0

σ = C45 , √12

(b) Rotation

1

0

σ = 2+(I−e)

σ = 1.0

(c) Scaling

1

BlkNorm

1 σ

(d) Block Normalization

Figure B.4: Basic Operations in an FFT Description- B.31 (The Environment FgA) :  The four inputs a,b,c,d are as follows;  a : defines the tabular specification  b, c, d : defines the tag  e : this includes another file which is the body of the table.

84  f :

The Environments in Sagar-LaTex-LibA

this includes another file which is the body of the table.

Bibliography

[1] L. Lamport. Latex: a document preparation system. Addison-Wesley Longman Publishing Co., Inc. Boston, MA, USA, 1989. [2] Andrew Mertz and William Slough. Graphics with tikz. The PracTEX Journal, (1), 2007. [3] 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. [4] T Tantau. Tikz and pgf: Manual for version 2.00, 2007.