Hi, I have a foo.tex input file written in Tamil, which I use with xelatex to generate a PDF. How can I do both left and right justification for the text? Right now, it is only aligned only the left. See:
http://shakthimaan.com/tmp/foo.pdf The xelatex version in Ubuntu 14.10 is given below: $ xelatex --version XeTeX 3.14159265-2.6-0.99991 (TeX Live 2014/Debian) kpathsea version 6.2.0 Copyright 2014 SIL International, Jonathan Kew and Khaled Hosny. There is NO warranty. Redistribution of this software is covered by the terms of both the XeTeX copyright and the Lesser GNU General Public License. For more information about these matters, see the file named COPYING and the XeTeX source. Primary author of XeTeX: Jonathan Kew. Compiled with ICU version 52.1; using 52.1 Compiled with zlib version 1.2.8; using 1.2.8 Compiled with FreeType2 version 2.5.3; using 2.5.3 Compiled with Graphite2 version 1.2.4; using 1.2.4 Compiled with HarfBuzz version 0.9.29; using 0.9.35 Compiled with libpng version 1.6.10; using 1.6.10 Compiled with poppler version 0.26.2 Compiled with fontconfig version 2.11.1; using 2.11.1 === Source: test.tex === % % xelatex foo.tex % \documentclass{article} \usepackage{fontspec} \newfontfamily{\lohit}[Script=Tamil]{Lohit-Tamil-Classical} \renewcommand{\familydefault}{\sfdefault} \title{\lohit{தமிழ் எண்கள்}} \date{\lohit{மண்மதி-புரட்டாசி ௰க, உ௲௰ரு}} \begin{document} \maketitle \large\lohit தமிழ் எண்கள் என்பது தமிழில் பயன்படுத்தப்படும் எண்களை குறிக்கும். இவ்வெண் வடிவங்கள் பிற தமிழ் எழுத்துக்களின் வடிவங்களை மிகவும் ஒத்து காணப்படும். தமிழ் எண்களும் கிரந்த எண்களும் ஒரே எண் வடிவைக் கொண்டிருப்பது குறிப்பிடத்தக்கது. எனினும் கிரந்த எண்களைப்போல் தமிழில் சுழியம் கிடையாது. தமிழ் எண்கள் தற்போது பெருவழக்கில் இல்லை, தமிழில் எண்களை எழுத இந்திய-அரேபிய எண்கள் தான் பயன்படுத்தப்படுகின்றன. \\ தமிழ் எண்களில் பழங்காலத்தில் சுழியம் (பூஜ்யம்) இல்லாமல் போயினும், தற்காலத்தில் சுழியம் தமிழில் எண்களை எழுதும் போது பயன்படுத்தப்பட்டு வருவது குறிப்பிடத்தக்கது. 1825ஆம் ஆண்டு வெளி வந்த கணித தீபிகை என்னும் நூல் கணித செயல்பாடுகளை எளிமையாக்கும் பொருட்டு தமிழில் சுழியம் அறிமுகப்படுத்தப்படுவதாகக் கூறுகிறது. ஒருங்குறியின் 4.1 பதிப்பில் இருந்து தமிழ் எண் சுழியம் அட்டவணையில் சேர்க்கப்பட்டுள்ளது. \\ தொடக்கத்தில் தமிழ் எண்கள் இடம் சார்ந்த முறையில் எழுதப் பயன்படுத்தப்படவில்லை. 10, 100, 1000 ஆகியவற்றுக்குத் தனித்தனி குறியீடுகள் இருப்பதைக்கொண்டு இதை அறியலாம். தமிழ் எண்கள் எழுத்தால் எழுதப்படும் எண்களைச் சுருக்குவதற்கான குறியீட்டு முறையாகவே பயன்படுத்தப்பட்டது. சுழியம் அறிமுகம் செய்யப்பட்ட பின்னர்தான் தமிழ் எண்கள் இடம் சார்ந்த முறையில் எழுதப்பட ஆரம்பித்தது. உதாரணமாக, இரண்டாயிரத்து நானூற்றி ஐம்பத்தி மூன்று என்பது பழைய முறையின் படி, ௨௲௪௱௫௰௩ என எழுதப்பட்டது. அதாவது, \\ \end{document} === END === Appreciate your help in this regard, Thanks! SK -- Shakthi Kannan http://www.shakthimaan.com -------------------------------------------------- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex