Friday, November 22, 2013

Single column abstract in two column TeX

Hey,

Use this trick to achieve above.

\begin{document}

\twocolumn[
  \begin{@twocolumnfalse}
    \maketitle
    \begin{abstract}
     ...
    \end{abstract}
  \end{@twocolumnfalse}

cheers!

Thursday, October 3, 2013

Autocomplete in TexnicCenter

Hi all,

Use ctrl + space to autocomplete commands while you are typing.

Cheers!

Monday, September 30, 2013

Writing small Katakana letters using IME Language bar

Hi guys,

To write small letters like トゥ simply type an 'x' before you type the 'u'
That's it.

Cheers!

Wednesday, September 25, 2013

MS Visio Drawings to PDF -> Latex

Hey,

If you want your MS Visio drawings exported as PDF so that you can include them in your .Tex files (with metadata) here is what you have to do.


  • First, change the page size 
    • In MS Visio 2007: File->Page Setup->Page Size: Size to fit drawing contents

  • Next, export
    • File->publish as PDF or XPS
    • And play around with the Options
      • current page
      • include background or not etc.

The exported pdfs are good in quality and you can select text fields.

Cheers!

Wednesday, September 11, 2013

Variables in LaTeX

Hello,

To use variables:

% Set the new variable called "\MyVariable" with the value 0.5
\newcommand{\MyVariable}{0.5}

% To use the variable.
\MyVariable
e.g. includegraphics[width=\MyVariable\columnwidth]{img/img.pdf}

Ubuntu LibreOffice Calc graphs to LateX

Here is how it is done!


  1. The first thing to do is to get the graph's size
    • selce your graph, right click on it and choose "Position and Size"
    • Get a printscreen or memorize the size values
  2. Copy the graph and open LibreOffice Draw and paste the graph there.
  3. Go to Format->Page and change the Width and Height using the above graph sizes
  4. Move the graph so that it fits perfectly on to the page.
  5. Finally, go to File->Export as PDF
    • Better to choose lossless compression
  6. Now you can use this pdf file in your .tex document

If you want to use grayscale pdf in your latex document there are some ways to convert the pdf into grayscale.

cheers!

MATLAB figures in LaTeX

Hey,

Here is how it is done.

  1. Open you figure file in MATLAB
  2. Goto File->Export Setup...->
  3. Apply you modifications like converting to grayscale etc. (Rendering->Colorspace)
  4. Choose "Export"
  5. In "Save as type" choose EPS
  6. Now you can use this EPS file in you .tex file:
    \begin{figure}[t]
    \begin{center}
    \includegraphics[width=\columnwidth]{figure.eps}
    \caption{my caption}
    \label{fig:system}
    \end{center}
    \end{figure}

    and choose latex->ps->pdf in your project builder (e.g. in TeXnicCenter)


    Or if you want to convert this to pdf use the epstopdf utility that comes with MikTeX in the command prompt:

    epstopdf figure.eps

    and use it like this:

    \begin{figure}[t]
    \centering
    \includegraphics[width=columnwidth]{figure.pdf}
    \caption{my caption}
    \label{fig:system}
    \end{center}
    \end{figure}


    Note:
    For some reason, direct export to pdf does not preserve the figure size.

    Monday, August 26, 2013

    To copy Photo Library from iPhone to PC

    Hey guys,

    If you need to copy Photo Library from iPhone to PC, use DiskAid - http://www.digidna.net/diskaid
    It is free!

    Cheers!

    Wednesday, July 3, 2013

    Latex: Captions both above and below of your table

    Hi guys,

    As the title says here is what you have to do:

    • first, \usepackage{caption}
    \begin{table}
    \begin{center}
    \caption{caption1}
    \label{Table: ABC}
    \begin{tabular}{|p{1.5cm}|p{2cm}|p{1.2cm}}
    \hline
    AAA&BBB&CCC\\
    a&b&c\\
    \hline
    \end{tabular}
    \caption*{caption2}
    \end{center}
    \end{table}

    Cheers!

    Wednesday, June 26, 2013

    Syncing non-Amazon Books in Kindle App

    Hey Guys,

    If you want to sync your Kindle books, which are not purchased through Amazon, you can do so by using your Amazon account.

    1. Go to Amazon webpage and sign in.
    2. Move the mouse to the "Hello <your_name>" and you will see:


    3. Go to "Your Cloud Drive"
    4. Upload your file. Kindle uses .mobi format for books.
    5. Open up your Kindle app in your device and select cloud. The uploaded files will be available there.

    6.   

    Monday, May 6, 2013

    To preserve formatting in HTML

    Hi all,

    In HTML sometimes you need to preserve whatever formatting you intend to include in your HTML page. Use <pre> your text here </pre> in such situations.

    That's it!

    Cheers

    Tuesday, April 30, 2013

    Ubuntu autoremove

    Hi all,

    The command sudo apt-get autoremove removes the packages that were installed to satisfy dependencies of another package but no longer required.

    That's it!

    cheers

    Friday, February 8, 2013

    Draw Arrows in GIMP

    Hey guys,

    To draw arrows in GIMP, here is what you can do.

    • You can find a plugin at http://registry.gimp.org/node/20269
    • Download the .scm file (arrow.scm)
    • Save the file in the scripts folder of GIMP
      • e.g. In Ubuntu open your home folder, press ctrl+h to show hidden files, open .gimp-2.6/scripts
    • Open GIMP
    • Using Tools->Paths draw a path. i.e. click two points
    • Next, go to Tools->Arrow and press OK
    Cheers!

    Wednesday, January 23, 2013

    Resize text fields in MS Visio drawing along with the group

    Hey guys,

    If you have also have encountered this problem, here is a one remedy.

    1) cut you text field
    2) goto Edit->Paste special and paste it as a Picture (enhanced meta file)
    3) group it again

    Now, you can resize it without a problem.

    cheers