Archive for October, 2011

HowTo: Now in Linux! Preparing your thesis for Ubuntu-based systems

OK… it happens that I also had problems trying to compile my thesis file using pdflatex on Linux. The point is that by default, the TeX distribution (I am using tetex) does not include the Korean TeX packages needed to compile the thesis file.
Now, the solution is much easier than in Windows ^^. Just execute:

sudo apt-get install ko.tex-bin ko.tex-base ko.tex ko.tex-extra ko.tex-extra-hlfont

and Done!… or not ^^

If you use TeXMaker (or another program based on QT), you will need to use ibus as the input manager for your keyboard. To do this execute:

sudo apt-get install ibus ibus-m17n ibus-qt4 ibus-hangul

Then (instructions from this Ubuntu website)

  • Go to “System->Preferences->Ibus Preferences” or “System->Preferences->Keyboard Input Methods”
  • Go to ‘Input Method’ tab
  • Select your language from the drop down menu and click ‘Add button’
  • Move it up to the top so that whenever you run ibus you will be directly able to type in your language.
  • Close

Now you are ready to type your thesis. Enjoy!

HowTo: Preparing your KAIST thesis in latex using MikTeX

A friend of mine was having issues preparing his thesis in latex using MikTex on Windows.
The problem was not easy to discover, but it involved three things:

  • The TeXnicenter latex editor did not support UTF-8 (Shame on you TeXnicenter!)
  • There were some Korean-related packages missing, and
  • The font format in one class was not compatible with his version of MikTex

If you are experiencing similar problems while writing your thesis, the solution is as follows:

  • Download MikTeX 2.9 from here and install it (It is important to download 2.9 and not 2.8, as the format for the fonts is not compatible with version 2.8 or versions before that one)
  • Download the Ko.TeX package from here and install it. This package includes all the needed styles, classes, fonts, etc to deal with Korean-document writing issues ^^
  • After installing both applications, we need to set up MikTeX to detect Ko.TeX packages
    • Go to Start->All Programs->MikTeX 2.9->Maintenance (Admin)->Settings (Admin)
    • Select the Roots tab and add \usr\w32tex\share\texmf-kotex (by default this path is c:\usr\w32tex\share\texmf-kotex). Click the ‘Apply‘ button
    • Select the General tab and press the ‘Refresh FNDB‘ button
    • Now, open a command line by going to Start->All Programs->Accesories->Command Prompt. If you are on Windows Vista or 7 I recommend you to run it as administrator. For this, right-click over ‘Command Prompt’ and select ‘Run as Administrator’
    • At the command prompt, run the following command: initexmf --edit-config-file udpmap
    • Update! Christian Tischler let me know that some times the command to launch the MikTex configuration for adding the mappings does not work. If that is your case, then run the following command instead:initexmf --admin --edit-config-file udpmap (note the –admin option)
    • Add the following lines to that file:
      map kotex-base.map
      map kotex-extra.map
      map kotex-midkor.map
      
    • Save the file and close it
    • Now run the following at the command prompt: initextmf -u
    • MikTeX is ready! You can close the command prompt now by typing exit
  • Install TeXMaker or another UTF-8 compatible laTeX editor. The following instructions are if you are running TexMaker:
    • Install TeXMaker and open it
    • Select Options->Configure TeXMaker from the main menu at the top
    • Press the Editor button at the left side of the screen
    • Select UTF-8 for the ‘Editor Font Encoding‘ option (third one in the first box)
    • Press ‘OK
    • Done!
  • Now try it! Download KAIST’s Guidelines,Template for thesis that contains the latex format (and others too!). Extract the file and the latex format file included in it. Open the file ‘sample-ucs-final.tex’ using TeXMaker, and press the blueish arrow next to ‘Quick Build’.

If an error happened, then re-check this guide or contact me!