Wednesday, July 2, 2008

LaTeX

My Professor asked me to write down my thesis by LATEX. Actually, I am not so familiar with LATEX... lets see in wikipedia, what is the meaning of LATEX.
LATEX is a document markup language and document preparation system for the TeX typesetting program. LaTeX is used because of the high quality of typesetting achievable by TeX. The typesetting system offers programmable desktop publishing features and extensive facilities for automating most aspects of typesetting and desktop publishing, including numbering and cross-referencing, tables and figures, page layout and bibliographies.
Now, how can we use LaTeX? I found a blog which derive us how to install LaTeX. The blog is so familiar with me, thats one of my lecturer blog (Bu Yuhana). She gave us detail information of LaTeX installation in Indonesia Language. So, I try to translate into English in my blog. I install LaTeX on my notebook using windows operating system.
oke, let we try... how powerful LaTex, we will make some introduction by writing "HelloWorld" on LaTeX.
  • Open Texmaker and make a new file
  • write down this script on Texmaker :
\documentclass{article}

\begin{document}

Hello World!

\end{document}

  • Save the document in "Hello.tex"
  • Finally, convert the file into PDF by using PDFTEX in tool bar
Here is some references of how to write LaTeX.
http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf

Install NS-2.31 on Ubuntu 8.04

Hello everyone... I have done my installation using console mode on my Ubuntu 8.04. Of course your PC should connect to internet to download the source file and update some part of Ubuntu, here are the basic steps of the installation :

  • Download ns-allinone-2.31 from sourceforge.net
$wget http://nchc.dl.sourceforge.net/sourceforge/nsnam/ns-allinone-2.31.tar.gz

  • Un-tar the source file
$tar -xzfv ns-allinone-2.31.tar.gz
  • Install build-essential, autoconf, automake & libxmu-dev
$sudo apt-get install build-essential autoconf automake libxmu-dev
  • Run installation by using this script below. User should in ns-allinone-2.31 directory of ns-allinone
$./install



  • Setting environment variable
$gedit ~./bashrc

Add this script bellow on your bashrc file (the last line), remember to rename "/home/nra" based on your computer name.

-------------------------------------------------------------------------------------------
# LD_LIBRARY_PATH
OTCL_LIB=/home/nra/ns-allinone-2.31/otcl-1.13 NS2_LIB=/home/nra/ns-allinone-2.31/lib X11_LIB=/usr/X11R6/lib USR_LOCAL_LIB=/usr/local/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_ LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/nra/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/nra/ns-allinone-2.31/bin:/home/nra/
ns-allinone-2.31/tcl8.4.14/unix:/home/nra/ns-allinone-2.31/tk8.4.14/unix
NS=/home/nra/ns-allinone-2.31/ns-2.31/
NAM=/home/nra/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM
----------------------------------------------------------------------------------------------------

Run this script to affect the setting

$source ~./bashrc

  • Test NS2 installation, run this script. If '%' mark appear it mean your installation is complete. If not, you should reboot your system.
$ns
$%
  • Validate NS2. Under directory ns-allinone-2.31/ns-2.31 run this script. It will take several time to complete the validation.
$./validate

Reference : Alkautsarpens

Hello World

# Introduction of my Blog #
puts "Hello World"
puts "Blog Title : A Little Note about Knowledge"
###################