Wednesday, April 23, 2014

Latex script

If you are tired of making multiple clicks in TexWorks everytime just to get one .tex compiled into a PDF, here is a quick windows script. Note that bibtex works with the .aux file.

 echo %~f0  
 pdfLatex sample.tex  
 bibtex sample.aux  
 pdfLatex sample.tex  
 pdfLatex sample.tex  
 echo "Press any key to close (or your own message here)"  
 pause > nul  
 del *.aux  
 del *.bbl  
 del *.log  
 del *.blg  
 del *.out  
 sample.pdf  

P.S. JabRef is nice bib management tool on Windows.

Friday, April 18, 2014

MathJax Test

$$ x_{1,2} = \frac{-b \pm \sqrt{b^2-4ac}}{2b}. $$ Here is the link that shows how to use MathJax to show \( \LaTeX \) typesetting on Blogspot. Well written. :) 

Try a linear inverted pendulum dynamic equation:

\[ \ddot{y}=\frac{g}{z_c}-\frac{1}{m z_c}u_r \]

Note that enclosing math in single $'s does not work in the default setting for MathJax.

By default, use "\(\backslash(\)" and "\(\backslash)\)" for inline math and double dollar signs or "\(\backslash[\)" and "\(\backslash]\)" for displayed math.

Examples: inline equations: \((y+\sqrt z)^{-1}\) and \( \sin^2 x^2 \). And displayed equations
$$\frac{2}{3}$$
\[ {H}(q)\ddot{q} + C(q,\dot{q})\dot{q}+G(q)\dot{q} = S^T \tau + J^T f \]

One downside is, you will not see the typesetting result in the edit (compose) mode. It will show up after you press publish or update button.

Tuesday, April 15, 2014

6:30 a.m.


Such a beautiful morning. Hope it's also the beginning of a productive day.

Sunday, April 13, 2014




A good day starts with a home-made guacamole, with extra amount of onions. :)