Wednesday, December 12, 2012

To keep formatting when copying from Notepad to MS Word

Hey all,

I have always had trouble copy/paste MS Notepad texts to MS Word because usually the formatting goes away. It is important to keep formatting if you are especially copying guitar chords.

Here is what I do to keep the formatting.
  1. Copy the content from webpage to MS Notepad.
  2. Copy the text from MS Notepad to MS Word
  3. Change MS Word font to a fixed length font like Courier New
That's all!

cheers!!!

Wednesday, November 21, 2012

Jump back and forth in Code::Blocks

Hi all,

This is how it is done.

  1. First, you need the BrowseTracker plugin.
    • The BrowseTracker-plugin is part of the contrib-plugins. You can install it using the synaptic package manager (codeblocks-contrib)
  2. Once you have the BrowseTracker plugin you would see "Jump" tab in the "View" menu.
    • now you can use this "Jump" for navigating back and forth.
  3. However, to make things a little bit easier you can use the Keyboard shortcuts plugin to assign shortcuts.
    • Go to "Settings->Editor" in the menu bar.
    • Choose "Keyboard shortcuts"
    • In the Commands: option go to Menu bar->View->Jump and add your keyboard shorcuts
That's it!

Cheers!!!

Monday, November 19, 2012

head and tail for shell scripting

Hey guys,

Do you know the head and tail commands?
For example,

head -10 abc.txt > abc_left.txt
tail -10 abc_txt > abc_right.txt

  • The first command will read the first 10 lines from abc.txt and write them into a abc_left.txt file
  • The second command will read the last 10 lines from abc.txt and write them into a abc_right.txt file

Cool isnt' it?

Cheers!


Wednesday, October 10, 2012

MS Visio Drawings to .eps

Hey guys,

This is one way of doing it:

  1. For Microsoft Visio 2003, save the drawing in .wmf format
  2. Open it in Open-Office Draw utility and export to .eps: when you export, check the "selection" checkbox.
  3. If the .eps is not proper, play a bit with the margins.
Cheers!

Monday, October 1, 2012

LaTeX sections without section number

Hi guys,

This is actually very easy to do; you just have to use an asterix.

\section*{my_section}

that's all folks!

cheers!

Monday, September 24, 2012

BibTex export from Google Scholar

Hi guys,

If you want to import the BibTex reference of a paper from google scholar,
  • Go to Settings
  • In bibliography manager check "Show links to import citations into" choose BibTex
That's it!

cheers!!!

Images for XeLaTeX->pdf output profile

Hi guys,

  • I have been using LaTeX->PS output profile and the images were included using .eps format (.eps preserves image quality). But, this does not work if you use XeLaTeX profile as it does not support PS outputs.
  • To include the figures you have to convert them to .pdf format.
  • To convert your .eps figures into .pdf format you can use the epstopdf executable (it should be already installed by MikTex) by:
    • Windows prompt> epstopdf  file.eps