summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/velthuis/dvngcite.sty
blob: 98f470da8a147a9141a7647d0215be84d79b104b (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
%
%    dvngcite.sty v2.15
%
%    LaTeX2e package for Devanagari for TeX system.
%    Copyright (C) 1991-2006 University of Groningen, The Netherlands
%    Extension for citations, compatibility package.
%
%    Author     : Dominik Wujastyk <d.wujastyk@ucl.ac.uk>
%    Maintainer : Anshuman Pandey <apandey@u.washington.edu>
%                 Kevin Carmody <i@kevincarmody.com>
%                 Zdenek Wagner <zdenek.wagner@gmail.com>
%    Revised    : 9 March 2008
%
%    This program is free software; you can redistribute it and/or modify
%    it under the terms of the GNU General Public License as published by
%    the Free Software Foundation.
%
%    This program is distributed in the hope that it will be useful,
%    but without any warranty; without even the implied warranty of
%    merchantability or fitness for a particular purpose. See the
%    GNU General Public License for more details.
%
%    =========================================================================
%
% The Identification Part
% ~~~~~~~~~~~~~~~~~~~~~~~
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{dvngcite}[2008/03/09 v2.15 Extension for citations in the nagari text]
%
%
% Fixes
% ~~~~~
% Here are some fixes for specific situations, provided by Francois Patte.
%
% Because TeX interprets [ and ] of the biblabel as dn char 133 and
% 135 the package cite is needed to use the command cite in the nagari
% text. This section corrects this behaviour.
% -- F. Patte.
%
\IfFileExists{cite.sty}
 {%
\RequirePackage{cite} }%
{ \newcommand\citeleft{}%
  \newcommand\citeright{}%
  \newcommand\citemid{}%
\typeout{}
\typeout{Package dev Info: Package cite.sty doesn't exist on your
 system.^^J
\space\space\space\space\space\space\space\space\space\space
\space\space\space\space\space\space\space
 This package is needed if you want to make bibliographies ^^J
\space\space\space\space\space\space\space\space\space\space
\space\space\space\space\space\space\space
within the Devanagari text.}
}
\typeout{}
%
\renewcommand{\citeleft}{{\NormalFont\bfseries [$\!\!$[}}
\renewcommand{\citeright}{{\NormalFont\bfseries ]$\!\!$]}}
\renewcommand\@biblabel[1]{{\NormalFont\bfseries [$\!\!$[}#1{\NormalFont\bfseries ]$\!\!$]}}
\renewcommand\citemid{{\LARGE{\dn\char'24 }}} %
%
% end the cite correction by F. Patte.
%
%
% This section corrects the use of LaTeX commands within the
% Devanagari text for those who want a nagari text with an European
% make-up: e.g. \item in enumerate environment will produce
% the number followed by a danda because the period stands for a danda
% in Velthuis'translation scheme.
% -- F. Patte.
%
\@ifundefined{@dev}
 {%
  \renewcommand\@biblabel[1]{{\NormalFont\bfseries [$\!\!$[ #1 ]$\!\!$]}}
  \renewcommand{\MakeUppercase}{}
 \newcommand{\notedn}[1]{\footnote{\dn #1}}
}{}