I want to write in urdu with nastaleeq font. I have done quite a few things but i dont know how to write it. Plus i dont know how to use xetex. So can anyone give me a simple example writing urdu in the desired font and how to run it on texmaker.
[Tex/LaTex] Simple example for writing Urdu using XeTeX with Nastaleeq font
babelxetex
Best Answer
Here is a typesetting of poem using
IranNastaliq
font andXePersian
package.XePersian
is included in texlive and in case you are missing it, you can get it from CTAN. One problem here is the font. IranNastaliq is designed for persian/farsi alphabet and despite of similarities between persian and urdu, it misses some of letters of urdu such asThis being said, I think you can find an urdu nastaliq font, just add it to you
tex
file and you will be good to go. I don't see any major difference between typesetting persian and urdu. Here is a sampletex
file containing a poem from Saadi with nastaliq font.which gives you this:
Please note that this is just a MWE and needs certain modification to be suitable for you purpose.
You can compile this from command line using:
To you use it with
TexMaker
, refer to this question.Above tex sample is borrowed from XePersian Forum and it's respected creator.