summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/marathi/marathi.sty
blob: 78ec695e7c5748bb9ec33ba4cc45f4b8b8c20914 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%%
%% This is file `marathi.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% marathi.dtx  (with options: `package')
%% 
%% -------------------------------------------------------------------------
%% आज्ञासंच:      marathi
%% लेखक:       निरंजन
%% आवृत्ती:      १.१  (२७ मे, २०२०)
%% माहिती:  लुआ-लाटेक् व झी-लाटेक् ह्यांच्यासह मराठीचा सुलभ वापर करण्यासाठी.
%% दुवा:   https://gitlab.com/niranjanvikastambe/marathi
%% अडचणी:  https://gitlab.com/niranjanvikastambe/marathi/-/issues
%% परवाना:      लाटेक् प्रकल्प परवाना. आवृत्ती १.३सी किंवा त्यापुढील.
%% अधिक माहितीकरिता marathi.dtx ही बीज-धारिका पाहा.
%% ---------------------------------------------------------------------------
%% हे काम लाटेक् प्रकल्प परवान्याच्या (१.३सी अथवा त्यापुढील) अटींचे पालन करून वितरित केले जाऊ शकते
%% तसेच सुधारले जाऊ शकते.
%% 
%% ह्या परवान्याची नवीनतम प्रत खालील दुव्यावर उपलब्ध आहे.
%% 
%% http://www.latex-project.org/lppl.txt.
%% 
%% हा आज्ञासंचाची लाटेक् प्रकल्पाच्या नियमांनुसार देखरेख केली जात आहे.
%% 
%% ह्या आज्ञासंचाचा लेखक व पालक निरंजन आहे.
%% 
%% ह्या कामात marathi.dtx, marathi.ins तसेच त्यांपासून निर्माण केलेली
%% marathi.sty ही धारिका समाविष्ट आहे.
%% --------------------------------------------------------------------------
%% Package:      marathi
%% Author:       Niranjan
%% Version:      1.1  (27 May, 2020)
%% Description:  For conveniently typesetting Marathi language with LuaLaTeX and XeLaTeX.
%% Repository:   https://gitlab.com/niranjanvikastambe/marathi
%% Bug tracker:  https://gitlab.com/niranjanvikastambe/marathi/-/issues
%% License:      The LaTeX Project Public License v1.3c or later.
%% ---------------------------------------------------------------------------
%% 
\def\marathiPackageName{marathi}
\def\marathiPackageVersion{१.१}
\def\marathiPackageDate{२७ मे, २०२०}
\def\marathiPackageDescription{लुआ-लाटेक् व झी-लाटेक् ह्यांच्यासह मराठीचा सुलभ वापर करण्यासाठी.}

\ProvidesPackage{marathi}
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{setspace}
\RequirePackage{pgfkeys}

\def\बदल#1{\pgfkeys{marathi/.cd,#1}}
\pgfkeys{
    marathi/.is family,marathi/.cd,
    अंतर/.code={\setstretch{#1}\selectfont},
    अंतर=1.5,
    अंतर/.default=1
}
\DeclareOption*{\expandafter\बदल\expandafter{\CurrentOption}}
\ProcessOptions
\def\arraystretch{1.2}
\@ifclassloaded{standalone}{\RequirePackage{fontspec}}{
    \RequirePackage{polyglossia}
    \setdefaultlanguage{marathi}
}
\RequirePackage{devanagaridigits}
\def\@arabic#1{\expandafter\devanagaridigits\expandafter{\number#1}}
\setmainfont[Renderer=Harfbuzz,Script=Devanagari,Mapping=devanagarinumerals]{Shobhika}
\providecommand{\टंक}[1]
{\setmainfont[Renderer=Harfbuzz,Script=Devanagari,Mapping=devanagarinumerals]{#1}}

\providecommand{\परिच्छेद}{\input{para}}

\newcounter{क्र}
\@ifclassloaded{article}{\setcounter{क्र}{1}}{}
\@ifclassloaded{book}{\setcounter{क्र}{2}}{}
\@ifclassloaded{report}{\setcounter{क्र}{3}}{}
\@ifclassloaded{beamer}{\setcounter{क्र}{4}}{}
\@ifclassloaded{letter}{\setcounter{क्र}{5}}{}
\providecommand{\नमुना}{
    \ifnum\value{क्र}=1\input{article}\else
    \ifnum\value{क्र}=2\input{book}\else
    \ifnum\value{क्र}=3\input{report}\else
    \ifnum\value{क्र}=4\input{beamer}\else
    \input{letter}\relax\fi\fi\fi\fi
}
\@ifclassloaded{beamer}{%
    \usefonttheme{serif}}
\endinput
%%
%% End of file `marathi.sty'.