minor edits to LaTeX handout and session 4.
authorPuneeth Chaganti <puneeth@fossee.in>
Fri, 18 Sep 2009 15:45:03 +0530
changeset 61 cfae54ede139
parent 60 8a36825e21c5
child 62 780effcd7c5a
child 69 5e3ce06069cf
minor edits to LaTeX handout and session 4.
latex/handout.rst
latex/latex.rst
ult/session4.rst
--- a/latex/handout.rst	Fri Sep 18 15:39:01 2009 +0530
+++ b/latex/handout.rst	Fri Sep 18 15:45:03 2009 +0530
@@ -52,7 +52,7 @@
 Hello World
 ~~~~~~~~~~~
 
-Ok, let's get started with our first LaTeX document. Open up your favorite editor and type in the following code. 
+OK, let's get started with our first LaTeX document. Open up your favorite editor and type in the following code. 
 
 ::
 
@@ -275,7 +275,7 @@
 Emphasizing
 ~~~~~~~~~~~
 
-*Italic* font is generally used to emphasize text. The ``\emph`` command may be used to achive this effect in LaTeX.
+*Italic* font is generally used to emphasize text. The ``\emph`` command may be used to achieve this effect in LaTeX.
 ::
 
   This is the \emph{emphasized text}.
@@ -325,9 +325,9 @@
 
 Itemize, Enumerate, and Description
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-LaTeX has three different enivronments for producing lists. Itemize, Enumerate and Description allow you to produce lists of various types in LaTeX. 
+LaTeX has three different environments for producing lists. Itemize, Enumerate and Description allow you to produce lists of various types in LaTeX. 
 
-Itemize is used to produce unnumbered lists. The bullets of the list can be easily changed to use any character. Enumerate environment allows you to produce auto-numbered lists. The description environment, allows you to produce a list of definitons. These environments can be nested within each other, easily. 
+Itemize is used to produce unnumbered lists. The bullets of the list can be easily changed to use any character. Enumerate environment allows you to produce auto-numbered lists. The description environment, allows you to produce a list of definitions. These environments can be nested within each other, easily. 
 
 ::
 
@@ -400,10 +400,10 @@
   from numpy import *
   a = linspace(0, 5, 50, endpoint = False)
 
-To insert verbatim text inline, the ``\verb`` command can be used. 
+To insert verbatim text in-line, the ``\verb`` command can be used. 
 ::
   
- The verb command allows placing \verb|verbatim text| inline. 
+ The verb command allows placing \verb|verbatim text| in-line. 
 
 The | is just an example of a delimiter character. You can use any character except letters, * or space.
 
@@ -479,7 +479,7 @@
     This parameter can either be set to true or false. When set to true, the image is scaled according to both width and height, without changing the aspect ratio, so that it does not exceed both the width and the height dimensions. 
 
   ``scale=x``
-    Scale the image by a factor of ``x``. For eg. ``scale=2``, will double the image size. 
+    Scale the image by a factor of ``x``. For example, ``scale=2``, will double the image size. 
 
   ``angle=x``
     This option can be used to rotate the image by ``x`` degrees, counter-clockwise. 
@@ -604,7 +604,7 @@
 
 The type of reference is followed by a left curly brace, and immediately followed by the citation key. The citation key, ``Lamport94`` in the example above is used to cite this reference using the command ``\cite{Lamport94}``. 
 
-This is followed by the relevant fields and their values, listed one by one. Each entry must be followed by a comma to delemit one field from the other. 
+This is followed by the relevant fields and their values, listed one by one. Each entry must be followed by a comma to delimit one field from the other. 
 
 To get your LaTeX document to use the bibliography database, you just add the following lines to your LaTeX document. 
 ::
@@ -614,7 +614,7 @@
 
 Bibliography styles are files that tell BibTeX how to format the information stored in the ``.bib`` database file. The style file for this example is ``plain.bst``. Note that you do not need to add the ``.bst`` extension to the filename.  If you wish to achieve a particular style of listing the bibliography items and citing them, you should use an appropriate style file. 
 
-The ``bibliography`` command specifies the file that shoule be used as the database for references. The file used in this example is ``LaTeX.bib``
+The ``bibliography`` command specifies the file that should be used as the database for references. The file used in this example is ``LaTeX.bib``
 
 Compiling
 +++++++++
@@ -663,7 +663,7 @@
 
 The ``\sqrt`` command is used to typeset the square root symbol. LaTeX of the root sign is determined automatically. The nth root is generated with ``\sqrt[n]``. 
 
-To explicitly show a multiplication a dot may be shown. ``\cdot`` could be used, which typesets the dot to the centre. ``\cdots`` is three centered dots while ``\ldots`` sets the dots on the baseline. Besides that ``\vdots`` for vertical and ``\ddots`` can be used for diagonal dots.
+To explicitly show a multiplication a dot may be shown. ``\cdot`` could be used, which typesets the dot to the center. ``\cdots`` is three centered dots while ``\ldots`` sets the dots on the baseline. Besides that ``\vdots`` for vertical and ``\ddots`` can be used for diagonal dots.
 
 A fraction can be typeset with the command ``\frac{..}{..}``
 
@@ -690,7 +690,7 @@
 Arrays and Matrices
 ~~~~~~~~~~~~~~~~~~~
 
-To typset arrays, use the ``array`` environment. It works similar to the ``tabular`` environment. The ``\\`` command is used to break the lines. 
+To typeset arrays, use the ``array`` environment. It works similar to the ``tabular`` environment. The ``\\`` command is used to break the lines. 
 ::
 
   \begin{equation*}
@@ -786,7 +786,7 @@
 
 Including files
 ~~~~~~~~~~~~~~~
-When working on a large document, it is convinient sometimes, to split the large file into smaller input files and club them together at the time of compiling. 
+When working on a large document, it is convenient sometimes, to split the large file into smaller input files and club them together at the time of compiling. 
 
 The ``\input`` or ``\include`` commands may be used to embed one LaTeX file into another. The ``\input`` command is equivalent to a copy and paste of the document, just before the compilation. The ``\include`` command is exactly similar, except for the fact that it creates a new page every time it is issued.
 
@@ -799,19 +799,19 @@
 
 Never use filenames or directories that contain spaces. Make filenames as long or short as you would like, but strictly avoid spaces. Stick to upper or lower case letters (without accents), the digits, the hyphen and the full stop or period.
 
---------------------------------------------------------
+
 
-Acknowledgements, Attributions
-------------------------------
+Recommended Reading
+===================
 
 1. *LaTeX Wikibook*
 
 2. *The Not So Short Introduction to LaTeX2e* by Tobias Oetikar et al.. 
 
-3. http://www.ctan.org/tex-archive/info/l2tabu/english/
-..  LocalWords:  LaTeX WYSIWG WYSIWM pdf
 
 
 
 
 
+..  LocalWords:  LaTeX Lamport tex documentclass pdf pdflatex dvi topmatter ToC
+..  LocalWords:  FOSSEE tocdepth addcontentsline toc emph
--- a/latex/latex.rst	Fri Sep 18 15:39:01 2009 +0530
+++ b/latex/latex.rst	Fri Sep 18 15:45:03 2009 +0530
@@ -64,9 +64,6 @@
 | 7       | ``beamer``, ``listing``,        |  10 min |
 |         | Including files                 |         |
 +---------+---------------------------------+---------+
-| 8       | Excercises                      |  15 min |
+| 8       | Exercises                       |  15 min |
 +---------+---------------------------------+---------+
 
-
-
-
--- a/ult/session4.rst	Fri Sep 18 15:39:01 2009 +0530
+++ b/ult/session4.rst	Fri Sep 18 15:45:03 2009 +0530
@@ -245,7 +245,7 @@
 To save the file, use ``:w`` in the command mode. From here on, it is understood that we are in the command mode, whenever we are issuing any command to vim. 
 
 To save a file and continue editing, use ``:w FILENAME``
-The file name is optional. If you donot specify a filename, it is saved in the same file that you opened. If a file name different from the one you opened is specified, the text is saved with the new name, but you continue editing the file that you opened. The next time you save it without specifying a name, it gets saved with the name of the file that you initially opened. 
+The file name is optional. If you do not specify a filename, it is saved in the same file that you opened. If a file name different from the one you opened is specified, the text is saved with the new name, but you continue editing the file that you opened. The next time you save it without specifying a name, it gets saved with the name of the file that you initially opened. 
 
 To save file with a new name and continue editing the new file, use ``:saveas FILENAME``
 
@@ -375,7 +375,7 @@
 +----------------------------------------+---------+
 
 Note: You can prefix numbers to any of the commands, to repeat them.
-ppp
+
 Undo and Redo
 ~~~~~~~~~~~~~
 You can undo almost anything using ``u``. 
@@ -385,21 +385,21 @@
 Searching and Replacing
 ~~~~~~~~~~~~~~~~~~~~~~~
 
-+----------------------------------------+---------+
-| Finding                                          |
-+========================================+=========+
-| Next occurence of ``text``, forward    |``\text``|
-+----------------------------------------+---------+
-| Next occurence of ``text``, backward   |``?text``|
-+----------------------------------------+---------+
-| Search again in the same direction     | ``n``   |
-+----------------------------------------+---------+
-| Search again in the opposite direction | ``N``   |
-+----------------------------------------+---------+
-| Next occurence of ``x`` in the line    | ``fx``  |
-+----------------------------------------+---------+
-| Previous occurence of ``x`` in the line| ``Fx``  |
-+----------------------------------------+---------+
++-----------------------------------------+---------+
+| Finding                                           |
++=========================================+=========+
+| Next occurrence of ``text``, forward    |``\text``|
++-----------------------------------------+---------+
+| Next occurrence of ``text``, backward   |``?text``|
++-----------------------------------------+---------+
+| Search again in the same direction      | ``n``   |
++-----------------------------------------+---------+
+| Search again in the opposite direction  | ``N``   |
++-----------------------------------------+---------+
+| Next occurrence of ``x`` in the line    | ``fx``  |
++-----------------------------------------+---------+
+| Previous occurrence of ``x`` in the line| ``Fx``  |
++-----------------------------------------+---------+
 
 +---------------------------------------+------------------+
 | Finding and Replacing                                    |
@@ -441,20 +441,20 @@
 
 .bashrc
 -------
-What would you do, if you want bash to execute a particular command each time you start it up? For instance, say you want the current directory to be your Desktop instead of your home folder, each time bash starts up. How would you achieve this? Bash reads and executes commands in a whole bunch of files called startup files, when it starts up. 
+What would you do, if you want bash to execute a particular command each time you start it up? For instance, say you want the current directory to be your Desktop instead of your home folder, each time bash starts up. How would you achieve this? Bash reads and executes commands in a whole bunch of files called start-up files, when it starts up. 
 
 When bash starts up as an interactive login shell, it reads the files ``/etc/profile``, ``~/.bash_profile``, ``~/.bash_login``, and ``~/.profile`` in that order. 
 
-When it is a shell that is not a login shell, ``~/.bashrc`` is read and the commands in it are executed. This can be prevented using the ``--norc`` option. To force bash to use another file, instead of the ``~/.bashrc`` file on startup, the ``--rcfile`` option may be used. 
+When it is a shell that is not a login shell, ``~/.bashrc`` is read and the commands in it are executed. This can be prevented using the ``--norc`` option. To force bash to use another file, instead of the ``~/.bashrc`` file on start-up, the ``--rcfile`` option may be used. 
 
 Now, you know what you should do, to change the current directory to you Desktop. Just put a ``cd ~/Desktop`` into your ``~/.bashrc`` and you are set!
 
-This example is quite a simple and lame one. The startup files are used for a lot more complex things than this. You could set (or unset) aliases and a whole bunch of environment variables in the ``.bashrc``. We shall look at them, in the next section where we look at environment variables and ``set`` command.
+This example is quite a simple and lame one. The start-up files are used for a lot more complex things than this. You could set (or unset) aliases and a whole bunch of environment variables in the ``.bashrc``. We shall look at them, in the next section where we look at environment variables and ``set`` command.
 
 
 .vimrc
 ------
-``.vimrc`` is a file similar to ``.bashrc`` for vim. It is a startup file that vim reads and executes, each time it starts up. The options that you would like to be set every time you use vim, are placed in the ``.vimrc`` file, so that they are automatically set each time vim starts. The recommended place for having your ``.vimrc`` is also your home directory. 
+``.vimrc`` is a file similar to ``.bashrc`` for vim. It is a start-up file that vim reads and executes, each time it starts up. The options that you would like to be set every time you use vim, are placed in the ``.vimrc`` file, so that they are automatically set each time vim starts. The recommended place for having your ``.vimrc`` is also your home directory. 
 
 The file ``/etc/vimrc`` is the global config file and shouldn't usually be edited. You can instead edit the ``~/.vimrc`` file that is present in your home folder.