Skip navigation.

Beyond the Sky

The place where surface stop and share the experience of life

Posts tagged with "latex"

Latex to write IEEE paper (2) dynamic reference

IEEEtran_HOWTO.pdf is a good guide to show you how to use the templates to start your journal writting. But I do face some difficulties without modify the templates. I have many graphs to include into my paper, which is in format of EPS. In order me to work well with graphics, i need to add this

\usepackage[dvips]{graphicx}


just under the

\documentclass[conference]{IEEEtran}


I took away the page break

%\IEEEpeerreviewmaketitle


Add in keyword field

\begin{keywords}
Put any keyword at here, what ever you like.
\end{keywords}


There are three things which will be the references of my paper.
1. Other's researcher's work.
2. Graphs (include statistical results and diagrams)
3. Tables

While writting your paper, the references will keep changing, cause you have page constrain, you cannot have more then 8 pages for some conferences submission, some references you might want to taken out, add in new graphs or other references on the fly. One of the advantages of LATex is it support dynamic references. Every references in your paper have an identifier. you can refer to your references base on the identifier and latex will take care the numbering. If you have experience of using word editing software to write paper, you will know what I really mean.

Okay, how to do it?
1. Other's researcher's work

\bibitem{AODV-RFC}
Charles E. Perkins, Elizabeth M. Royer, S. Das. \emph{RFC 3561 Ad hoc On-Demand Distance Vector (AODV) Routing.} \relax July 2003.
\bibitem{DSDV}
Charles E. Perkins, Pravin Bhagwat. \emph{Highly Dynamic Destination-Sequenced Distance-Vector Routing (DSDV) for Mobile Computers.} 
\relax INFOCOM 1994, page 602 – 609.
...


Include these at the end of your tex files. When you want to refers to that paper, you will do like bellow

Ad Hoc On-Demand Distance Vector (AODV) routing protocol \cite{AODV-RFC} is a combination of DSDV and Dynamic Source Routing (DSR)...


2. Graphs

Here is the example that how I insert my graph
\begin{figure}
\begin{center}
\includegraphics[width=3.0in]{g1.eps}
\caption{Data Delivery Ratio of AODV and DSDV in dense and sparse networks}
\label{fig:DDR-DnS} % THIS IS YOUR IDENTIFIER
\end{center}
\end{figure}


And I refers this figure with

The data delivery ratio results of four different scenarios are shown in Figure~\ref{fig:DDR-DnS}. 


3. Table

Do the same thing, add in the \label and refer with ~\ref

Latex to write IEEE paper (1) Kile settings

,

Finally I have done latex settings on my ubuntu linux box.

First of all, need to apt-get some packages to support latex edit, get all them
tetex-base
tetex-bin
tetex-extra
latex-xft-fonts


To code latex documents, you can use vi, emacs, gedit, kate or any editor, but i prefer kile.

apt-get install kile as well, it will resolves dependencies, basically it needs qt libs.

I am gnome user, and kile is a kde program, so i do not expect it will works exacally well as in kde. Some settings need to be done.

Settings-> Configure Kile -> Build

This is where you change ur tools function, appears at second line of kile i supposed.

Select ViewPdf, "libkghostviewpart" is not available at gnome, not planning to install as well. Use Gnome available PDF Viewer than. So i select "Advance" tab and change the type to "Run outside of Kile". Back to "General" tab and command:evince(can be gpdf), Options:'%target'.

Select DVItoPDF, change command "dvipdfm" to "dvipdf", dvipdf will include embeded subset font to the pdf file which is very important. IEEE only except the pdf with font of embeded subset, because pdf with embeded subset will allow any printer to print nicely.
[To check your pdf is it embeded subset enable, open pdf with evince, File -> Properties -> Font. Make sure all font have embeded subnet enabled]

Select QuickBuild, make it run Latex, DVItoPDF, ViewPDF at the sequence.

Kile settings done. Now u can "compile" your tex by just clicking QuickBuild icon.

How to write a IEEE paper on the fly?
Download the templates at Here, it provided the guideline as well.

Latex References click Here

Using Latex, GNUPlot and Tgif

, ,

In order to produce research paper, I need at least three tools. Tired of using word to prepare my paper, that you spend most of the time structure your paper outlook, decides where to put your graphs, checking alignments, etc. Sometimes, modification on your word will screw up the alignments and structure. With using Latex, it solves the problem, it auto arrange your graphs location, allignment, structure etc just as u defined. Download an IEEE templates and start put your text in, and you are done.

GNUPlot is used to generate vector graphs, if you change your graphs into bitmaps like png, jpg you make your graphs lossy, it is recommented to remain your graphs in vector format such as (eps). EPS is readable files, you can get ur graphs shows using postscript viewer and read the vector using any text editor.

Tgif is another vector image editor. I use gnuplot to produce an obj file, then use edit it with tgif then convert it to eps.

A GNUPLOT TEMPLATES
#gnuplot demo file: g1.dem
set terminal tgif #select the terminal
set output "g1.obj" #create a file
set origin 0,0
set autoscale #make it autoscale, if the range is not define.
set key top right #the label box location
set key width 1 #increase label box width by 1
set key height 1 #increase label box heigh by 1
set key box # show label box
set xlabel "Number of Nodes" #x axis label
set ylabel "Data Received / Data Sent" #y axis label
set xrange [000:200]
set yrange [0.00:1.00]
plot "g1.txt" using 1:2 title 'AODV Dense' w linespoints, \
"g1.txt" using 1:3 title 'AODV Sparse' w linespoints , \
"g1.txt" using 1:4 title 'DSDV Dense' w linespoints, \
"g1.txt" using 1:5 title 'DSDV Sparse' w linespoints
#command gnuplot g1.dem
#command tgif g1.obj


RAW DATA
# Data Delivery Ratio for dence and sparse network
#value  aodv-d aodv-s dsdv-d dsdv-s
20  1        0.99303  1       0.923698
50  0.962796 0.566538 0.89112  0.40992
100 0.497811 0.363612 0.580752 0.181104
150 0.418789 0.142586 0.47741  0.075527
200 0.396346 0.02684  0.368173 0.027323

December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31