Go to page:

Search:   Help



LyX documentation


Shared groups



Categories: Hindi, Ubuntu
<< | Page list | >>

Complete hindi writing guide for LyX on Ubuntu.

In this guide I used http://www.google.com/inputtools/cloud/try/ to type hindi then paste to LyX.


  1. Install LyX
  2. Install texlive-xetex and texlive-luatex packages. In terminal type the following

sudo apt-get install texlive-xetex texlive-luatex
While installing if asked to continue installation without verification, choose yes.

Document settings

  1. create new LyX document and write anything in Hindi then save it.
  2. go to Document → Settings → Fonts then check option use non Tex fonts(via xetex/luatex). At this point you can generate pdf but it will not show hindi.
  3. go to Document → Settings → LateX Preamble and write the following text

here I am using Chandas font. you can use http://wiki.lyx.org/Windows/Devanagari to download this font and http://www.wikihow.com/Install-TrueType-Fonts-on-Ubuntu to install. I used 3rd way to install. you may need to restart after this.

Doing above can generate pdf in Hindi

Screen font setting

At this point hindi fonts on LyX may look messy. so lets correct that as well.

  1. go to Tool → preferences → Look & Feel → Screen fonts then change font to Chandas and save.
  2. Exit LyX. this will generate preferences file in $HOME/.lyx directory. you need to change something in Tool → preferences to generate this file.
  3. open that file ($HOME/.lyx/preferences and write following line in that file

\force_paint_single_char false

  1. save file and exit. Restart LyX.
  2. use XeTeX or LuaTeX to generate pdf file. it should be working now.


font-spec-error chandas font not found, even it is available in font drop down


Hindi Ubuntu

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2013-02-09 12:28 CET