LaTex issue: How to make the figure captions centered?

Couple days ago, I spent so many hours figuring out how to make my figure captions centered in LaTex. I use WindEdt 6 Editor and IEEE journal template for that. The problem was, the IEEE journal template will automatically make the figure captions  left justified. Several minutes later, I found a great page written by Michael Shell to solve this problem. Here’s the link :

According to the above link, basically what I need to do is to add an additional code in my tex file as follows:

[contentblock id=1 img=adsense.png]

[syntax type=”css”]
footnotesizebegin{center}{normalfontfootnotesize #1}
{normalfontfootnotesizescshape #2}end{center}%
setbox@tempboxahbox{normalfontfootnotesize {#1.}~~ #2}%
ifdim wd@tempboxa >hsize%
setbox@tempboxahbox{normalfontfootnotesize {#1.}~~ }%
parbox[t]{hsize}{normalfontfootnotesize noindentunhbox@tempboxa#2}%
hbox tohsize{normalfontfootnotesizehfilbox@tempboxahfil}fifi}

I have added the above code after my document class initialization in my tex file and it has worked perfectly for me. I really need to thank Michael Shell for his useful information regarding this matter :D. Hope this information will also help those who face the same problem.

How to add Post Format function in WordPress Child Theme

[contentblock id=1 img=adsense.png]

We used to use our child theme of TwentyEleven for this site that support some Post Format functions including video. However several days ago, we update our WordPress site into the new one as well as updating the TwentyEleven theme. Unfortunately, I could not use video format since I modified the functions.php from the parent theme which was changed as it is updated now while my old parent’s function also updated. So I was googling how to add post format function in WordPress child theme in order to fix it. Fortunately I found the trick on and it is very useful. Below is the code and I added it into the child theme’s functions.php.

// add post-format in child theme
add_action('after_setup_theme', 'minds_setup', 11);
function minds_setup() {
    add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery','status', 'quote', 'image', 'video' ));

Minds: Free Tumblr-like WordPress Twenty Eleven Child Theme

A couple of days ago, I was looking for Twenty Eleven Child Theme for this site. Luckily, I found it on in article 8 Free Twenty Eleven Child Theme by Siobhan McKeown. However, because I was looking for the theme that looks like Tumblr theme, my eyes focused directly on HUM theme by Daryl Koop. It has a fixed header (contains site title, featured image, search box and navigation section) which is located on the left side, and what I like most is its simplicity has made it a beautiful child theme. However, I made several modifications to meet my mood like you can see now. Continue reading “Minds: Free Tumblr-like WordPress Twenty Eleven Child Theme”

Bibtex:GUI framework cannot be initialized

Hi guys! I guess you might face the same problem with me. I’m new to LaTex and I run my LaTex file this morning in my PC and simply got this error message : Bibtex:GUI framework cannot be initialized! Yesterday, I run a similar code using same installation procedure (I use MikTex 2.9 and WinEdt6) in my laptop and everything worked well. So, I spent my time searching in Google for a perfect solution and finally I came into this useful link :

[contentblock id=1 img=adsense.png]

So, in summary, if you face the same problem, here’s a solution:

  1. Open a command prompt window and go into the directory where you put your latex file.
  2. Run your latex file (e.g latex mylatexfile)
  3. Run BibTex (e.g bibtex mylatexfile), and then it will automatically download the missing files that I guess caused the error, so make sure you are connected with the internet!
  4. Rerun your latex file twice (this is to make your references integrated and listed in your latex files), and done! 🙂

Now, you can find the executed file in dvi format in your latex directory and the problem is solved. This works for me,  hope it solves your problem as well. 😀

Adding Google Custom Search Engine into WordPress without Plugin

In this article I’d like to share what I’ve done to embed Google Custom Search Engine (CSE) into my site which is basically using WordPress. So, the goal is to add CSE without changing my native search box. Why? Because I solely like it 😛 Try to search some keywords on my search box to see the result of this tutorial 😉

Okay, let’s start the tutorial Continue reading “Adding Google Custom Search Engine into WordPress without Plugin”