Top 10 steps to a better brain

There are many studies showing that a 30 minutes workout is good for everyone. There is also tones of evidence supporting the fact that eating healthy food and having a proper diet is good for both physical and mental health. I also encourage you to read this article about 10 steps to a better brain published in the newscientist to see what else is necessary for you.

It is also important to control our diet after a short (daily) workout. Here is some advice taken from here . To summarize briefly; take up as much as half the calorie you burned during exercise. The intake calorie should be spend roughly as 60% carbs, 25% protein, and 15% fat. Finally, drink about 16-20 ounces of water after workout. The ideal time to eat after a workout is within 30 minutes to two hours.

More on Latex into HTML: Latex2HTML

There are many programs out there to convert latex documents into the HTML code. Some days ago, I introduced the latex2wp. Today, I will briefly explain yet another (free) program to generate HTML code from your Latex document. It is called latex2html, and you can find all about this program here.

First you have to install this program. Installation is rather easy on Mac, although you need some programs such as GNU installed before. For example, see here. In below you can find what I have imported after compiling report.tex using latex2html.

About this document …

A Segmentation Example

This document was generated using the
LaTeX2HTML translator Version 2012 (1.2)

Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.

Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.

The command line arguments were:

latex2html ../latex2html-2012/example/report.tex

The translation was initiated by Fred on 2014-02-16

Homemade LaTex package: Scientific diary!

Everyday, many of us spend a lot of time studying various subjects most of which in direction of our field of study, lab, or work. It is almost impossible to make a good use of whatever we read everyday without taking note systematically. This brings me to the title of my post. The question is, what is the best way to store and organize everyday note?

I have searched online for rather long time and these are the approximate solution that I have found so far:

  1. Microsoft Onenote and the free (cloud based) Evernote software
  2. There are also several packages or class in Latex:
  • labbook: is a customized latex class mostly intended for experimentalists
  • ouline: outline-style indented lists with freely mixed levels up to four levels deep.

I have also came across some of purchasable softwares such as circus pony, however, none of the above was useful for me. Here, I have developed my own package. I am using LaTex for a rather long time, however, I am very new to this package/class writing business. Hence, it is a very simple package.

Here what is in this package: this package provide new command called \nitem[tag][comment]{category name}{title} . The first two entries (tag and comment) are optional, and the second two (category name and title) are mandatory. For example, \nitem[physics, les houches lecture note][This is something important]{spin}{How to manipulate spin} has the following output:


The special point about this new command (\nitem) is that it classify items according to “category name”. For example, in the above example, spin is one of my categories that I am interested to list when I search later. Note that, YOU SHOULD DEFINE YOUR CATEGORY NAME AFTER \begin{document} BEFORE USING.  Here is the template code for defining new categeory name:


Just replace your desired keyword for X. In the case of the above example, I defined:


Here is the style package. Download this package and leave a copy in the directory of your .tex file. Then insert \usepackage{scidriary} in the preamble (before \begin{document}). Do not forgot to define your desired category names after \begin{document}.

This is a early version, and it is continuously changing. I will be grateful if you could help me with your comments on how to improve it. It seems that I can not upload sty file here, so please contact me in case you are interested in.

More on Latex in WordPress.

While ago, I wrote a post on how to use a simple latex command into the WordPress. Unfortunately, this method is very limited and you can’t certainly include complex latex codes into your blog this way. Particularly, writing colorful texts, with equations, and numbering is a nightmare in the WordPress, unless you start writing in HTML.

Today, I came across this wonderful post on how to convert latex into something useable in WordPress. There is this free software written in Python called Latex2wp, which converts latex to HTML. I would like to thank the person who wrote this program. I have complied the example file included in the package, and copy and paste the HTML code into the WordPress editor. It is a rather long text, but you can see the part of it below. To appreciate the important of this software, just try to write first two lines below yourself, left alone equation numbering, etc.

Look at the document source to see how to strike out text, how to use different colors, and how to link to URLs with snapshot preview and how to link to URLs without snapshot preview.

There is a command which is ignored by pdflatex and which defines where to cut the post in the version displayed on the main page Continue reading

A brief guidelines for preparation of writing your thesis.

First and foremost, you need a reliable and flexible text editor. I personally suggest LaTex or Lyx to everyone. For beginners, it might be a drag but after a little bit you will appreciate the strength and flexibility. Then, you need a very good  vector graphics editor, so your image does not get distorted after resizing. There are several open source softwares out there such as Inkscape, XFig, etc. However, it is important to choose something that you are very comfortable with, since creating new images usually take a long time. You also need a flexible software to plot your equations and save as SVG. I suggest to use GNU plot. Finally, yo need an easy-to-use citation manager software such as JabRef, Refworks, or Zotero.

Now that you have all the tools,  you need some strategy to start writing your thesis. It is usually suggested to leave the introduction and conclusion chapters to the end. Now, I will outline the strategy I find useful for writing a paper or a thesis. Create a folder for every chapter (or section in the case of paper). Each day that you make some changes to the particular chapter, start with a new copy of the last version of that chapter in a new folder. Name the folder, the day you are working on that chapter.  Finally, make a log file (a text file) and write changes you have made at the end of the day. See below figure.