Monday, December 5, 2011

LaTeX series -- Table

Minna sann~..... genki desuka?!!

Jyaa~... kyou... oppss... tershashul pulop!!.... ari ni aku belajar Te-Form (て-Form) kat kelas... pening sket aar... bnyk sgt condition dia... basically apa yang aku faham....
verbs ます-Form boleh dipecahkan kepada 3 kelas... Group I, II & III.

Group II & III adalah mudah.... hanya perlu omit ますand replace with て. Untuk Group II, bunyi yang terakhir sebelum ます adalah "ee" (え). Perbezaan antara Group II & III hanyalah pada Noun+ます (Group II) dan Noun+します (Group III).... Sebagai contoh:-

Group II:-

みせます >> みせて
おしえます >> おしえて

Group III:-

べんきょうします >> べんきょうして
さんぽんします >> さんぽんして

Bagi Group I pula, agak sukar sedikit kerana banyak condition dimana ia bergantung kepada bunyi akhir sebelum ます. Eh.....!!

Macam silap entry je neh... huhuhuhu... ok ok... back to the topic...

Today, I've spent most of my time to figure out how to draw a nice table!!! It's quite challenging, especially for me who is very new to LaTeX... enough with talk... let's go straight to the point.. Alrite..

First thing, we need to determined how the table should be. For two column articles, would it be 1 column? span for 2 column? . Then, how many column would you like to have for the table etc... I'll only show what I've done today for my future reference :-)

\newcommand\T{\rule{0pt}{3.1ex}} % Adds a space between the text and the [T]op \hline
\newcommand\B{\rule[-1.7ex]{0pt}{0pt}} % Adds a space between the text and the [B]ottom \hline
\setlength{\doublerulesep}{\arrayrulewidth} %make \hline \hline as thick line

\begin{table*}[!t]  %span table for 2 column. Omit * if want to make table in 1 column
\caption{Title of the table}
\label{table_1}
\centering
%make 3 column, set alignment for column 1- left, column 2-right & column 3-center
\begin{tabular}{l r c} 
\hline \hline %bold horizontal line. Act as the table border


% \multicolumn{2}{c}-- meaning, span 2 column and centered
% \T \B -- meaning, add space for top and bottom
% \cline{2-3} -- meaning, make a line from column 2 until column 3
& \multicolumn{2}{c}{\textbf{Some Title}} \T \B \\ \cline{2-3}


% \multicolumn{1}{l} -- meaning, change alignment for column 1, from original right align to left align
% \hline -- meaning, make a horizontal line (thin)
\multicolumn{1}{l}{Some Parameters} & 2nd Parameter & 3rd Parameter \\ \hline 
& row1column2 & row1column3 \\ % "&" symbol at the beginning is used to skip 1 column
row2column1 \T \B & row2column2 & row2column3 \\ % end row 2
row3column1 \T &
% wrap long text using {minipage}. [t] is to set to the top align. {1.1in} is to set the length of minipage
\begin{minipage}[t]{1.1in} 
\begin{flushleft}a very long line for row3column2 a very long line for row3column2 a very long line for row3column2 a very long line for row3column2 \end{flushleft}%
\end{minipage} 
% wrap long text using \parbox. {1.3in} is the length of the \parbox. 
% {flushleft} -- meaning, to set the alignment to left
\parbox{1.3in}{\begin{flushleft}a very long line for row3column3 a very long line for row3column3 a very long line for row3column3 a very long line for row3column3 \end{flushleft}} \\
\hline \hline
\end{tabular}
\centering
\end{table*}

The output of above command as follow:-
From the table, you can see that the \parbox is quite difficult to handle. It's behavior is not as expected. Well, this is as far as I can do... for now..


Alrite.... I think it is enough for now.... we'll cont. some other time... I need to finish the unfinished business!!

じゃ。まった こんど

Update: Dec 8, 2011

Using \begin{flushleft} \end{flushleft} somehow leave unwanted vertical space in the cell and that is why \parbox is behaving wild. What I did was, use \usepackage{array} and change the setting my column to something like this:-


\begin{tabular}{l >{\raggedright}p{0.2\textwidth}  >{\raggedright\arraybackslash}p{0.3\textwidth}}
\toprule
row1column1 & row1column2 & row1column3 \\ \midrule
\bottomrule

\raggedright} is used to align the text to left.
\arraybackslash is required in order to make \\ works.
\toprule is required for \midrulerule\bottomrule and "" to works.



~see LaTeX

Sunday, December 4, 2011

LaTeX

Akhirnyaa............... berjaya jugak aku solve problem yang sepatutnya bukan problem... hahahhaa.... well... kalu blaja sendiri mmg camnih... the learning curve sometimes looks like stock market... up and down... and sometimes could hardly get the slope to +ve pattern... anyway... anyhow... maybe I just jot it down here in for future use... :)

Software:-
Ghostscript
GSView 
MiKTeX 2.9
TeXstudio 2.2

Ghostscript & GSView are essential to run LaTeX. Without these two softwares, LaTeX could also run but I would suggest to install them to avoid any unnecessary problems in the future... The installation is straight forward... Click and follow the instruction...

MiKTeX 2.9 is one the best software on windows platform... The installation also quite straightforward and could take sometime to finish. I strongly suggest to tick on the option "install missing plugin on-the-fly" (or the like) to ease up the installation process. Otherwise, you need to wait in front of the pc and click on every pop up that will come out for about 15-30 minutes.

TeXstudio 2.2 is a very userfriendly software for beginners. It will assist the user without the need to type full command as it will display the related command in "drop down list" as you type. You need to configure the Quick build to "LaTeX + DviPs + Ps2Pdf + Pdf Viewer" to allow .eps file to be displayed correctly using package "\usepackage[dvips]{graphicx}"

Sometimes, the template provided by the conference organizer ie. IEEE must be altered to meet the requirement set. You don't need to push yourself to edit .cls file but instead just use "\renewcommand"... For my case, I need to use "\renewcommand{\figurename}{Figure}" & "\renewcommand{\IEEEkeywordsname}{Keyword}" to set the figure caption as "Figure" instead of "Fig." and "Keyword" instead of "Key-Index"..

All command:-

\usepackage[dvips]{graphicx}
\renewcommand{\figurename}{Figure}
\renewcommand{\IEEEkeywordsname}{Keyword}

need to be loaded AFTER "\documentclass[conference]{IEEEtran}" call.

The rest could be "easily" learn :) from the template.... just follow the template provided....

I could rest happily tonite...

Peace!!! No War!!!
Kami Benci Rasuah!!!
Yang Salah Tetap Salah!!!

Wednesday, November 16, 2011

Syarat Halal Pelaburan Emas

Aku memang nak beli emas.... tapi macam-macam benda yang aku dengar tentang emas ni... takut terjebak dalam benda-benda yang syubhah & paling teruk haram...

tapi hari ni ada satu artikel yang aku rasa menarik untuk dikongsi bersama.... so.... da banyak duit apa lagi.... pulun emas aaar... $$$$$$$$$$$$$$$$!!

Keputusan Majlis Fatwa Syarat Halal Bagi Pelaburan Emas

Wednesday, October 5, 2011

Hari Ini Dalam Sejarah...

Wooooooo... arini berkayuh berkilometersss....


  1. Dari umah (area Oomiya) ke gakko (school)... 1.5km
  2. Dari gakko ke pejabat (Fukui City) ... pejabat ape ek.. heeee.. tak ingat nama pejabat tuh... tapi pejabat gomen jepun aar... salah satu fungsi adalah pendaftaran gaijin (org bukan jepun yg masuk ke jepun)... p amik Alien Card (aku BUKAN Alien!!!)... ok la jugak.. x jauh sangat dari gakko.... 1km+
  3. Then next destination, pegi translate lesen memandu kat Japanese Automobile Federation (JAF)... yg ni jauh gak... dlm 3.2km... diorang perlukan 1 jam plop nak translate... p jenjalan kat Toys R' Us... dlm 1.4km
  4. Lepas 1 jam patah balik ke JAF.... 1.4km
  5. Pastu balik ke rumah..... dlm 6km... solat apa sumer... 
  6. Proceed to next target... driving centre (area Harue)... 6km+ dari rumah.... ada naik bukit lak tuh.. arghhh... dah laa ujan renyai-renyai.... sempat amik gambo kat atas jambatan.. Giler penat... mujur suhu dingin-dingin gitu...
  7. Da setel buat appointment (~baru buat appointment), patah balik ke umah... 6km+... di tengah2 jalan tu jadi benda yang tak syoq tuh... arghh.... tetiba kete POLIS stop depan aku (~yg naik basikal neh), duk kecek nihon-go... aku pun aaa!~ AAAA!~... eeetooo..... anoooo... nihon-go wakarimasen.... dah la baru dapat Alien Card... trus digunakan secara efektifnyer... adooi.... no plat basikal aku pn dia catat (~basikal ada no plat oooooo)... nak pastikan basikal tu aku yg punya huhuhu... sabo jer ler... mujur x kena saman... kes apa???~ pasal bawa payung sambil bawa basikal.... (~aku baru tau lepas kena ngan polis tu, masuk lab n google trus apa kes.... tadi duk nganga x tau pasal apa dia tahan huhuhu)... bukan takat bawa payung jah... ride and playing with phones also cannot maaa.... 
  8. Balik umah.. tukar suar yg lembap, solat then trus p gakko.... (~kena tunjuk muka kat lab... ).. 1.4km
  9. bla bla bla dalam lab... p surau solat magrib... trus balik umah... 1.4km.... seriusly sakit j***r aku... adoooiiihhh... suspension kurang berkesan... 
  10. yoshhhhhhh... ganbatte kudasai!!!... 




View dari atas jambatan Harue-cho

Monday, September 26, 2011

Japan

Fuhhhhhhhhhh....

Punya lama aku tak update blog aku neh....

Lupa plak nk catatkan benda2 menarik yang berlaku lately....
aku dah jadi malas nak tulis panjang2.... so.... this is/was what happen(ed) a few days back...

17 September 2011
KLIA - OSAKA

18 September 2011
Sannomiya/Rokkomachi , KOBE
Sayo

19 September 2011
Fukui-Ken, Fukui-Shi

Until now.........

iPhone downgrade....

FAIL!!!!!!!!!!!

arghhh.....................


mujur buat back up.....

cait!!!!

Tuesday, July 5, 2011

Chrome: My Default Browser

Hermmm... nothing much to say.....

I'm a big fan of MUSANGAPI.... However...

The performance of CHROME surprise me very much.
MUSANGAPI is beaten by CHROME during start up.

The only reason I was staying with MUSANGAPI was due to a few adds on i.e GMark & Webmailnotifier.
Since CHROME has YAGBE & X-notifier, I would rather shift to CHROME until MUSANGAPI come up with good solution.

Til then.....

CHROME: My Default Browser