Sunday 31 May 2009

Genius and Eccentricity

Eccentricity is not, as dull people would have us believe, a form of madness. It is often a kind of innocent pride, and the man of genius and the aristocrat are frequently regarded as eccentrics because genius and aristocrat are entirely unafraid of and uninfluenced by the opinions and vagaries of the crowd.
Edith Sitwell, Taken Care Of : The Autobiography of Edith Sitwell (1965), Ch 15

PS: This is dedicated to my friend Bharathan. :)

Wednesday 27 May 2009

The Float LaTeX Package for Placing the Figure Here

If you don’t care where the figures are placed as long as they are in the same chapter, you need not worry and will get the best layout possible from TeX. But, if there is a major figure or a table which you want to appear before the discussion or a section, you are in for trouble. There is an option [h] which means ‘You may put it here if you like.’ No, Tex is not going to like whatever you like and often floats it somewhere else.

Hence a package called here was written by David Carlisle which gave an option [H] which means “put it HERE, period”. That package is now replaced by Anselm Lingnau’s float package which provides some more facilities also. This package is included by default in both MikTeX as well as TeXlive and you may include it in file by standard

and use the HERE option as
Note that the [H] option cannot be used in conjunction with other options as you can do with [h] option like [htb]. That doesn’t make sense, anyway.
To know about other features of this package and download documentation go here.

Friday 22 May 2009

TeX and LaTeX

TeX is a typesetting tool that is used predominantly by mathematicians and other scientists to prepare reports, articles and books. It is more efficient than any other word processor. (In fact, MS-WORD cannot do many things that TeX can do.) After all, it is written by prof. Knuth himself.
LaTeX is a macro package for the TeX system. That is, it defines a number of additional keywords and commands that make using TeX easy and accessible for non-programmers. For example, to get fonts and other style required by a particular journal, all you have to do is select an appropriate class and the content will be formatted in a correct manner for you.(Assuming that somebody has written a style file and/or class, which is true for most journals.) If you are writing an article for a journal and it is to be included in a collected works also, imagine the work involved if you are using a word processor. In LaTeX all you have to do is change the class name. :-)

To learn TeX and LaTeX get hold of the following books and read them.
Here we'll see the packages required to use it and how to install them, since that is what most beginners struggle at and not covered in the above books.

Download and install the following software (Both are available for free):
MikTeX - This contains the actual TeX software and it takes care of reading your input files and converting them into PDF or DVI files.
WinShell - This is basically an editor and you can create documents without this one, but considering the extraordinary capabilities of the Notepad it may be wise to install this. It has much more capabilities like generating LaTeX code for writing math symbols or tedious work like producing table etc.

Open your favorite package manager and install the following packages:
  • texlive-base
  • texlive-latex-base
Install the documentation too. As you progress with the stuff you can install extra packages and their documentation.
If you are an EMACS fan, install Auctex also.
To compile your TeX files (which are actually text files created using any editor) see the relevant section in The TeXbook.

I'll post about the tips and tricks in subsequent posts since tutorial is already available in Knuth's excellent book.
A TeX Users Group is also available and is very active.


I believe that the internet connection will be there in college when i go back and start blogging again. Sigh.

PS: I'm in home enjoying the holidays. :-)