Friday, June 21, 2013

Preparing Springer article manuscript in LyX (Windows)

For most journals in Springer, the global  manuscript submision LaTeX class is svjour3. The following is the preparation steps in Windows
(Tested in Windows 7, 64-bit):


Step 1 - Download LaTeX svjour3 class and bst



Step 2 - Relocate the svjour3 class package

  • For Windows 64-bit:
    • Find the MiKTeX installation: C:\Program Files (x86)\MiKTeX 2.9
    • Go to C:\Program Files (x86)\MiKTeX 2.9\tex\latex then create a new folder svjour3
    • Unzip the global.zip and all extracted files to
      C:\Program Files (x86)\MiKTeX 2.9\tex\latex\svjour3
  • For Windows 32-bit:
    • Windows 32-bit: C:\Program Files\MiKTeX 2.9
    • Go to C:\Program Files\MiKTeX 2.9\tex\latex then create a new folder svjour3
    • Unzip the global.zip and all extracted files to
      C:\Program Files\MiKTeX 2.9\tex\latex\svjour3 


Step 3 - Relocate the bibliography style (bst) files

  • For Windows 64-bit:
    • Find the MiKTeX installation: C:\Program Files (x86)\MiKTeX 2.9
    • Go to C:\Program Files (x86)\MiKTeX 2.9\bibtex\bst then create a new folder svjour3
    • Move the downloaded files from  ftp://ftp.springer.de/pub/tex/latex/svjour3/bibtex to
      C:\Program Files (x86)\MiKTeX 2.9\bibtex\bst\svjour3
  • For Windows 32-bit:
    • Windows 32-bit: C:\Program Files\MiKTeX 2.9
    • Go to C:\Program Files\MiKTeX 2.9\bibtex\bst then create a new folder svjour3
    • Move the downloaded files from  ftp://ftp.springer.de/pub/tex/latex/svjour3/bibtex to
      C:\Program Files\MiKTeX 2.9\bibtex\bst\svjour3 


Step 4 - Refresh LaTeX filename database

  • Open MikTeX settings:
 
  •  Click Refresh FNDB



Step 5 - Reconfigure LyX

  • Open LyX
  • From them menu Tools, select Reconfigure

  • After successfully reconfigure LyX, close it. After this configuration process, the class article (Springer svjour3/global) will be available.
 


Step 6 - Working with springer article template in LyX

  • Download the svjour3/global template (svjour3-authoryear-template.zip) here and unzip it to a folder. You can rename the lyx file if you want.
  • You have to have all figures in the same folder. When you submit in springer you have to submit all figures in the springer submission system. All figures must be the same folder with the tex file.
  • The submitted file is the LaTeX tex file not lyx format.
  • To get tex file.
    From the menu File > Export > LaTeX (plain)

Saturday, June 15, 2013

Install printer/scanner Canon PIXMA MG2270 in Ubuntu

Canon printers and scanners are not supported by default in Ubuntu. The printer and scanner drivers must be downloaded from the manufacturer and installed in Ubuntu system.
Canon supports Windows, Mac and Linux machines.

The following steps are the way I installed Canon PiXMA MG2270 in Ubuntu. Tested in Ubuntu 12.04 and 12.10.



Step 1 - Download printer and scanner drivers MG2200 series

Go to Canon support http://support-my.canon-asia.com/?personal. Under the Inkjet Printers, select Product series: PIXMA, Model: MG2270 and Document type: Drivers and software.  Then click Find.


  • Click OS option Linux.
  • Download the MG2200 series IJ Printer Driver Ver. 3.80 for Linux (debian). The downloaded filename: cnijfilter-mg2200series-3.80-1-deb.tar.gz.
  • Download the MG2200 series ScanGear MP Ver. 2.00 for Linux (debian). The downloaded filename: scangearmp-mg2200series-2.00-1-deb.tar.gz.



Step 2 - Extract the downloaded compressed files

  • Right click on the cnijfilter-mg2200series-3.80-1-deb.tar.gz, then click Extract here. It creates a new folder cnijfilter-mg2200series-3.80-1-deb.
  • Right click on the scangearmp-mg2200series-2.00-1-deb.tar.gz, then click Extract here. It creates a new folder scangearmp-mg2200series-2.00-1-deb.


Step 3 - Install printer driver

  • Open folder cnijfilter-mg2200series-3.80-1-deb, then open subfolder packages 
 
  • For 64-bit machine:
    • Double click cnijfilter-common_3.80-1_amd64.deb. It opens Ubuntu Software Center, then click Install.
    • Double click cnijfilter-mg2200series_3.80-1_amd64.deb. It opens Ubuntu Software Center, then click Install.
  •  For 32-bit machine:
    • Double click cnijfilter-common_3.80-1_i386.deb. It opens Ubuntu Software Center, then click Install.
    • Double click cnijfilter-mg2200series_3.80-1_i386.deb. It opens Ubuntu Software Center, then click Install.


Step 4 - Install scanner driver and scanner software

  • Open folder scangearmp-mg2200series-2.00-1-deb, then open subfolder packages 
  • For 64-bit machine:
    • Double click scangearmp-common_2.00-1_amd64.deb. It opens Ubuntu Software Center, then click Install.
    • Double click scangearmp-mg2200series_2.00-1_amd64.deb. It opens Ubuntu Software Center, then click Install.
  •  For 32-bit machine:
    • Double click scangearmp-common_2.00-1_i386.deb. It opens Ubuntu Software Center, then click Install.
    • Double click scangearmp-mg2200series_2.00-1_i386.deb. It opens Ubuntu Software Center, then click Install.


Step 5 - Add new Canon MG2270 printer in Ubuntu

  • Turn on  MG2270 and plug the usb cable to the ubuntu computer.
  • Click Ubuntu dash and type printer. After clicking printer, it opens printer setting. Click Add button and wait a minute the Canon printer will appear. Select it and click Forward. 

  • After printer configuration settings completed, the new printer MG2200 series appears in the printer list.


Step 6 - Using scanner MG2270

  • Make sure you turn on  MG2270 and plug the usb cable to the ubuntu computer.
  • Open Ubuntu terminal or press Ctrl+Alt+T, then type scangearmp. A simple scanning software ready to use the Canon MG2270 scanner,

Friday, March 29, 2013

Using m-functions in FreeMat

FreeMat is a free environment for rapid engineering and scientific prototyping and data processing. It is similar to commercial systems such as MATLAB from Mathworks.

If you don't have FreeMat installed, you can refer here how to get FreeMat.

The folder where you save the m functions should be defined in FreeMat path.

Step 1, Open pathtool in FreeMat:
The tool to integrate m-function folder in FreeMat is pathtool.


(a) Open FreeMat and type pathtool and Enter. Alternatively you can open the path tool window from the menu  Tool > Path Tool
(b) Find the folder where you save your m files (for example m-functions) on the left box, then select  Add, Save then confirm it by pressing Done.

Step 2, Restart FreeMat:
Restart FreeMat to completely integrate the m files path.


After restarting FreeMat, it can access and use the m files located in the folder (in this example the name of the folder is m-functions).