Tuesday, September 13, 2011

SVN Checkout

SVN stands for subversion.It is a version control software that allows users to download latest version of a particular branch without having to wait until it is properly packaged and delivered.

Here is how you can checkout from svn.
svn checkout <here you enter the web page address>
 
  

Thursday, September 1, 2011

How to change font size in LaTex equations

Credit should go to original contributor. I am just sharing here.

\documentclass{article} \usepackage{amsmath}
 
\begin{document}


 
\begin{eqnarray} 2x+3 \end{eqnarray}


 
\makeatletter

 
\def\@eqnnum{{\normalsize \normalcolor (\theequation)}}

 
\makeatother

 
{ \small \begin{eqnarray} 2x+3 \end{eqnarray} }

 
\end{document}
 

enter image description here

to make sure the size of the equation numbers are not changed we have included a redefinition of the eqnnum command.
\makeatletter  \def\@eqnnum{{\normalsize \normalcolor (\theequation)}}  
\makeatother

available sizes:

  • \tiny
  • \scriptsize
  • \footnotesize
  • \small
  • \normalsize (default)
  • \large
  • \Large (capital "L")
  • \LARGE (all caps)
  • \huge
  • \Huge (capital "H")

Wednesday, August 31, 2011

TeXniCenter 0 ERRORS, 0 WARNINGS, 0 BAD BOX, 0 PAGES.

This happens if the MikTex has missing packages. To resolve this, go to
for e.g. MikTex2.9 -> maintainance (admin) - > Settings (admin) -> General and choose

either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".

cheers!

Tuesday, August 30, 2011

To get files from a FTP server

This is simple.

  1. Open the given ftp location in internet explorer
  2. In the "view" tab, click on "open FTP site in windows explorer"
  3. Just copy the contents from there
Cheers!

Wednesday, August 24, 2011

To span figures in two columns in LaTex

If you need your figures to span two columns in LaTex this is what you have to do.
\begin{figure*}[t]
\end{figure*}
Just change figure into figure*. Simple as that!

Wednesday, August 17, 2011

How to Find Keywords from Files in Ubuntu

I personally have wasted much time finding keywords within files, when I wanted to debug programming codes in Ubuntu.
Here is how it is done easily.

The function we use is called grep. Most of the Ubuntu distributions come with grep installed.

If you want to find my_function in all the files in folder /home/abc
type:
grep -i -n -r 'my_function' /home/abc

definition:
grep - function to search patterns in files
-i - ignore case
-n - output line number
-r - search recursively

Use
grep --help or man grep for more details.


Thanks for reading this post. Hope it would help!

Tuesday, August 16, 2011

Typing Japanese on Windows 7

Now this is very easy.
  • Go to control panel->Clock, Language and Region - click on the "Change keyboards or other input methods"
  • Click on the "Keyboards Languages" tab. Then click the "Change keyboards" button.
  • Click the "Add" button to add Japanese input capability.
  • Scroll down to Japanese. In the Keyboard section section choose "Microsoft IME. Click "OK".
That's it!