<< | 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.
- Install LyX
- 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.
- create new LyX document and write anything in Hindi then save it.
- 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.
- 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.
- go to Tool → preferences → Look & Feel → Screen fonts then change font to Chandas and save.
- Exit LyX. this will generate preferences file in $HOME/.lyx directory. you need to change something in Tool → preferences to generate this file.
- open that file ($HOME/.lyx/preferences and write following line in that file
- save file and exit. Restart LyX.
- 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