Skip to content

Instantly share code, notes, and snippets.

@btbytes
Created July 17, 2009 03:24
Show Gist options
  • Select an option

  • Save btbytes/148841 to your computer and use it in GitHub Desktop.

Select an option

Save btbytes/148841 to your computer and use it in GitHub Desktop.
Typesetting Kannada Unicode using XeTeX

Typesetting Kannada Unicode using XeTeX

System: Ubuntu 9.04

Install XeTeX

$ sudo apt-get install texlive-xetex

Download Akshar fonts and install

$ cd /usr/share/fonts/truetype/ttf-kannada-fonts
$ sudo wget http://www.kamban.com.au/fonts/akshar.ttf
$ sudo fc-cache

Note: You may have to install ttf-kannada-fonts package if don't see the above directory.

Create a TeX file containing Kannada Unicode text. See attached ondu.tex for example.

Convert the .tex file to .pdf using xelatex command

$ xelatex ondu.tex

View the output file -- ondu.pdf with

$ evince ondu.pdf

Ref: http://thread.gmane.org/gmane.comp.tex.xetex/11562

\documentclass[11pt]{article}
\usepackage{fontspec}
\usepackage{xunicode}
\setmainfont[Script=Kannada]{Akshar Unicode}
\begin{document}
\date{}
\title[kan-xetex]{XeTeX ಬಳಸಿ ಕನ್ನಡದಲ್ಲಿ ಟೈಪ್-ಸೆಟ್ಟಿಂಗ್ ಮಾಡುವ ವಿಧಾನ}
\maketitle{}
\begin{abstract}
ಈ ಲೇಖನದಲ್ಲಿ ಗ್ನು/ಲಿನಕ್ಷ್ ಮತ್ತು XeTeX ಅನ್ನು ಬಳಸಿ ಕನ್ನಡ ಟೈಪ್ ಸೆಟ್ಟಿಂಗ್ ಮಾಡುವುದು ಹೇಗೆ ಎಂದು ನೋಡೋಣ
\end{abstract}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment