Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.81 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.81 KB

Introduction

This is a very small single file that helps in typesetting documents in Nepali (devanagari in general) with $\LaTeX$ with the latest lualatex engine. Various sensible defaults have been used to make the document readable in Nepali.

This package uses lua code in lualatex so can only be compiled with lualatex. You should anyway be using lualatex for compilation. One more reason to use lualatex if you want to typeset document in nepali using $LaTeX$.

Installation

Since this is a single .sty file, it can be easily installed by putting the file package/nepali.sty into your texmf tree. You can either put this into the same directory as your latex document or in any location in the texmf tree. A common location in unix-like os is under ~/texmf/tex/latex

$ git clone https://github.com/pranphy/nepatex.git
$ cp nepatex/package/nepali.sty ~/texmf/tex/latex/

Note

Some systems might need installation of luatex extension to latex explicitly. For example on ubuntu you need to install this with

sudo apt install texlive-luatex

Usage

To use the package simply use this in preamble

\usepackage{nepali}

The default date command \today gives date in BS calendar system. It will print current date in the format २०७८ फागुन ४. And additionaal command \nepdate is available which also prints the current date. So you can use.

आजको मितिः \nepdate हो।

which will produce

आजको मिति २०७८ फागुन ४ हो।

Demo

A sample demo is available inside the demo directory. To compile it

$ cd neplatex/demo
$ lualatex nepali-demo.tex

A demo pdf is also included. You can open with your favourite pdf reader

$ zathura nepali-demo.pdf