diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-07-03 21:45:54 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-07-03 21:45:54 +0000 |
commit | 60b4c4c10b1d3f17d0cfd874ee2aa0c760323848 (patch) | |
tree | a9bce5b79aea345a4bb9bb73c3bdeb42aa865708 /Master/texmf-dist/tex | |
parent | a51e7b83ab266e1e51718bdb0f8007a4517a578a (diff) |
velthuis v2.15
git-svn-id: svn://tug.org/texlive/trunk@9196 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/velthuis/hindi.ldf | 100 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/velthuis/hindi.sty | 94 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/velthuis/dev.sty | 26 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/velthuis/devanagari.sty | 179 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/velthuis/dvngcite.sty | 78 | ||||
-rw-r--r-- | Master/texmf-dist/tex/xelatex/velthuis/hindicaptions.sty | 59 |
6 files changed, 426 insertions, 110 deletions
diff --git a/Master/texmf-dist/tex/generic/velthuis/hindi.ldf b/Master/texmf-dist/tex/generic/velthuis/hindi.ldf new file mode 100644 index 00000000000..cfa22ea0562 --- /dev/null +++ b/Master/texmf-dist/tex/generic/velthuis/hindi.ldf @@ -0,0 +1,100 @@ +%% +%% This is file `hindi.ldf', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% hindi.dtx (with options: `code') +%% This is a generated file. +%% +%% Copyright 1989-2004 Johannes L. Braams and any individual authors +%% listed elsewhere in this file. All rights reserved. +%% +%% This file was generated from file(s) of the Babel system. +%% --------------------------------------------------------- +%% +%% It may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Johannes Braams. +%% +%% This file may only be distributed together with a copy of the Babel +%% system. You may however distribute the Babel system without +%% such generated files. +%% +%% The list of all files belonging to the Babel distribution is +%% given in the file `manifest.bbl'. See also `legal.bbl for additional +%% information. +%% +%% The list of derived (unpacked) files belonging to the distribution +%% and covered by LPPL is defined by the unpacking scripts (with +%% extension .ins) which are part of the distribution. +\ProvidesLanguage{hindi} + [2007/05/11 v1.0a Hindi support from the babel system] +%% File `hindi.dtx' +%% Babel package for LaTeX version 2e +%% Copyright (C) 1989 -- 2004 +%% by Johannes Braams, TeXniek +%% Hindi language Definition File +%% Copyright (C) 2006 -- 2007 +%% by Zdenek Wagner, Ice Bear Soft +%% Johannes Braams, TeXniek +%% Please report errors to: Velthuis Devanagari for TeX project +%% http://sarovar.org/projects/devnag/ +\LdfInit\CurrentOption{captions\CurrentOption} +\gdef\CurrentOption{hindi}% +\edef\bbl@main@language{\CurrentOption}% +\ifx\l@hindi\@undefined + \@nopatterns{hindi} + \adddialect\l@hindi0\fi +\bbl@declare@ttribute{hindi}{modernhindi}{% + \let\captionshindi\captionsmodernhindi + \let\datehindi\datemodernhindi + } +\expandafter\ifx\csname XeTeXrevision\endcsname\relax + \bbl@declare@ttribute{hindi}{bombay}{\def\dnfamilydefault{dnb}} + \bbl@declare@ttribute{hindi}{calcutta}{\def\dnfamilydefault{dnc}} + \bbl@declare@ttribute{hindi}{nepali}{\def\dnfamilydefault{dnn}} + \bbl@declare@ttribute{hindi}{pen}{\def\dnfamilydefault{dnp}} + \bbl@declare@ttribute{hindi}{penbombay}{\def\dnfamilydefault{dnpb}} + \bbl@declare@ttribute{hindi}{pencalcutta}{\def\dnfamilydefault{dnpc}} + \bbl@declare@ttribute{hindi}{pennepali}{\def\dnfamilydefault{dnpn}} + \expandafter\ifx\csname RequirePackage\endcsname\relax + \input dnmacs + \else + \AtEndOfPackage{\RequirePackage[nocatcodes]{devanagari}[2006/06/21]} + \fi +\else + \expandafter\ifx\csname RequirePackage\endcsname\relax + \input hindicaptions.sty + \else + \AtEndOfPackage{\RequirePackage{hindicaptions}[2007/05/11]} + \fi +\fi +\ldf@finish{\CurrentOption} +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\endinput +%% +%% End of file `hindi.ldf'. diff --git a/Master/texmf-dist/tex/generic/velthuis/hindi.sty b/Master/texmf-dist/tex/generic/velthuis/hindi.sty new file mode 100644 index 00000000000..05d6c19c92d --- /dev/null +++ b/Master/texmf-dist/tex/generic/velthuis/hindi.sty @@ -0,0 +1,94 @@ +%% +%% This is file `hindi.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bbcompat.dtx (with options: `hindi') +%% This is a generated file. +%% +%% Copyright 1989-2005 Johannes L. Braams and any individual authors +%% listed elsewhere in this file. All rights reserved. +%% +%% This file was generated from file(s) of the Babel system. +%% --------------------------------------------------------- +%% +%% It may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Johannes Braams. +%% +%% This file may only be distributed together with a copy of the Babel +%% system. You may however distribute the Babel system without +%% such generated files. +%% +%% The list of all files belonging to the Babel distribution is +%% given in the file `manifest.bbl'. See also `legal.bbl for additional +%% information. +%% +%% The list of derived (unpacked) files belonging to the distribution +%% and covered by LPPL is defined by the unpacking scripts (with +%% extension .ins) which are part of the distribution. +%% File 'bbcompat.dtx' +%% Copyright (C) 1989 -- 2005 by Johannes Braams, +%% TeXniek +%% all rights reserved. +%% Please report errors to: J.L. Braams +%% babel at braams.cistron.nl +\ifx\LdfInit\undefined + \def\LdfInit{% + \chardef\atcatcode=\catcode`\@ + \catcode`\@=11\relax + \input babel.def\relax + \catcode`\@=\atcatcode \let\atcatcode\relax + \LdfInit} +\fi +\ifx\PackageError\undefined + \def\ProvidesLanguage#1[#2 #3 #4]{% + \wlog{Language: #1 #4 #3 <#2>}}% +\else + \def\bblstyerror{% + \PackageError{babel}% + {You have used an old interface to call babel\MessageBreak + You may expect compatibility problems wit other packages}% + {You could proceed but don't complain if you run into errors}% + \let\bblstyerror\@undefined + } + \ifx\ProvidesLanguage\undefined + \bblstyerror + \def\ProvidesLanguage{% + \chardef\atcatcode=\catcode`\@ + \catcode`\@=11\relax + \input babel.def\relax + \catcode`\@=\atcatcode \let\atcatcode\relax + \ProvidesLanguage} + \else + \bblstyerror + \fi +\fi +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +\endinput +%% +%% End of file `hindi.sty'. diff --git a/Master/texmf-dist/tex/latex/velthuis/dev.sty b/Master/texmf-dist/tex/latex/velthuis/dev.sty index 592bf5d1dad..ee53fe8133a 100644 --- a/Master/texmf-dist/tex/latex/velthuis/dev.sty +++ b/Master/texmf-dist/tex/latex/velthuis/dev.sty @@ -1,5 +1,5 @@ % -% dev.sty v2.14 +% dev.sty v2.15 % % LaTeX2e package for Devanagari for TeX system. % Copyright (C) 1991-2003 University of Groningen, The Netherlands @@ -7,8 +7,8 @@ % Author : Dominik Wujastyk <d.wujastyk@ucl.ac.uk> % Maintainer : Anshuman Pandey <apandey@u.washington.edu> % Kevin Carmody <i@kevincarmody.com> -% Zdenek Wagner <wagner@cesnet.cz> -% Revised : 30 March 2006 +% Zdenek Wagner <zdenek.wagner@gmail.com> +% Revised : 15 November 2006 % % This is an old package kept just for compatibility reasons. Use % devanagari.sty in new documents. @@ -27,7 +27,7 @@ % The Identification Part % ~~~~~~~~~~~~~~~~~~~~~~~ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesFile{dev.sty}[2006/03/30 v2.14 LaTeX macros for Velthuis Devanagari] +\ProvidesPackage{dev}[2008/03/09 v2.15 LaTeX macros for Velthuis Devanagari] % % Error message for someone running LaTeX 2.09: Checks for definition of % \documentclass; it exists in LaTeX2e, but not in LaTeX 2.09 @@ -50,10 +50,11 @@ \fi % % -% Loading devanagari.sty -% ~~~~~~~~~~~~~~~~~~~~~~ +% Loading devanagari.sty and dvngcite.sty +% ~~~~~~~~~~~~~~~~~~~~~~----------------- % \RequirePackageWithOptions{devanagari} +\RequirePackage{dvngcite} % % The end. % ~~~~~~~~ @@ -64,6 +65,19 @@ % Here is the log file, created by RCS. % $Log: dev.sty,v $ +% Revision 1.7 2008-03-09 15:58:00 icebearsoft +% Citation macros moved to a separate package. Switch \ifdnmode implemented. Email address corrected. +% +% Revision 1.6 2006/12/27 17:46:05 icebearsoft +% Definition \def\DevnagVersion{...} written to the beginning of the second +% line if the first line starts with %& in order to preserve +% %& -translate-file=... +% +% Error and warning messages written to stderr instead of stdout +% +% Revision 1.5 2006/11/16 10:18:18 icebearsoft +% Packages identified by \ProvidesPackage +% % Revision 1.4 2006/03/31 10:25:05 icebearsoft % Change of the comment. % diff --git a/Master/texmf-dist/tex/latex/velthuis/devanagari.sty b/Master/texmf-dist/tex/latex/velthuis/devanagari.sty index 350af9b197b..3e9207f3d97 100644 --- a/Master/texmf-dist/tex/latex/velthuis/devanagari.sty +++ b/Master/texmf-dist/tex/latex/velthuis/devanagari.sty @@ -1,14 +1,14 @@ % -% devanagari.sty v2.14 +% devanagari.sty v2.15 % % LaTeX2e package for Devanagari for TeX system. -% Copyright (C) 1991-2003 University of Groningen, The Netherlands +% Copyright (C) 1991-2006 University of Groningen, The Netherlands % % Author : Dominik Wujastyk <d.wujastyk@ucl.ac.uk> % Maintainer : Anshuman Pandey <apandey@u.washington.edu> % Kevin Carmody <i@kevincarmody.com> -% Zdenek Wagner <wagner@cesnet.cz> -% Revised : 30 March 2006 +% Zdenek Wagner <zdenek.wagner@gmail.com> +% Revised : 18 January 2007 % % 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 @@ -42,7 +42,7 @@ % The Identification Part % ~~~~~~~~~~~~~~~~~~~~~~~ \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesFile{devanagari.sty}[2006/05/04 v2.14 LaTeX macros for Velthuis Devanagari] +\ProvidesPackage{devanagari}[2008/03/09 v2.15 LaTeX macros for Velthuis Devanagari] % % Error message for someone running LaTeX 2.09: Checks for definition of % \documentclass; it exists in LaTeX2e, but not in LaTeX 2.09 @@ -130,9 +130,13 @@ % % The Main Code Part % ~~~~~~~~~~~~~~~~~~ +% We will need a reliable way to recognise that we are in the \dn mode. +% +\newif\ifdnmode +% % Now define the main Devanagari macro, \dn. % -\DeclareRobustCommand\dn{% +\DeclareRobustCommand\dn{\csname originalTeX\endcsname \dnmodetrue \fontencoding{U}\fontfamily{\dnfamilydefault}\selectfont% % \language=\l@nohyphenation \renewcommand*{\-}{\@@hyph}% @@ -143,7 +147,7 @@ \csname really@do@dev@catcodes\endcsname \let\dn@latex@info\@latex@info \let\@latex@info\@gobble \dn@commands \let\@latex@info\dn@latex@info - \csname dn@captions\endcsname \cmnum} + \csname dn@captions\endcsname} % % Here is the macro \do@dev@catcodes that changes the catcodes % appropriately for Devanagari. \UnDevCatcodes restores the @@ -202,8 +206,8 @@ \let\dn@commands\do@dev@catcodes}% {\let\dn@commands\relax} -\DeclareOption{catcodes}{\let\dn@commands\do@dev@catcodes} \DeclareOption{nocatcodes}{\let\dn@commands\relax} +\DeclareOption{catcodes}{\let\dn@commands\do@dev@catcodes} \DeclareOption{compat}{\let\really@do@dev@catcodes\do@dev@catcodes} % Language options: if one of these options is defined, \dn will also @@ -263,8 +267,6 @@ \DeclareRobustCommand*\rs{\NormalFont\thinspace}% \DeclareRobustCommand\re{\thinspace}% \DeclareRobustCommand*\rdt{\llap{\char19}}% -\DeclareRobustCommand*\dnnum{\let\nstyle=d}% -\DeclareRobustCommand*\cmnum{\let\nstyle=r}% \DeclareRobustCommand*\rn[1]{\if\nstyle r{\NormalFont ##1}\else##1\fi}% % Switch to "pen" mode of the current family \DeclareRobustCommand\pen{\expandafter\dn@penselect\f@family!?}% @@ -275,6 +277,12 @@ \fi \fi}% } % end of \dn@commands % +% Switch between Devanagari and CM numerals +% +\DeclareRobustCommand*\dnnum{\let\nstyle=d}% +\DeclareRobustCommand*\cmnum{\let\nstyle=r}% +\cmnum % default +% % Vedic intonation mark macros (based on Kevin Carmody's code from dnmacs.tex) % % Use these macros in DN files to enable and use Vedic intonation macros. @@ -331,102 +339,17 @@ \newdimen\anudep \newdimen\anuwid % +% Fix for the table of contents and enumerations % -% -% 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}} -% -\@ifundefined{chapter}{}{% -% -\newcommand{\old@part}{} % Test if \old@part can be used. -\let\old@part\part -% -\renewcommand{\part}{% - \@ifstar{\new@partstar}{% - \@ifnextchar[{\new@partopt}{\new@part}% - }% -} -\newcommand{\new@partstar}[1]{% - \old@part*{#1}% -} -\newcommand{\new@partopt}[2][]{% - \old@part[#1\NormalFont]{#2\NormalFont}% -} -\newcommand{\new@part}[1]{% - \old@part{#1\NormalFont}% -} -% -\newcommand{\old@chapter}{} % Test if \old@chapter can be used. -\let\old@chapter\chapter - -\renewcommand{\chapter}{% - \@ifstar{\new@chapterstar}{% - \@ifnextchar[{\new@chapteropt}{\new@chapter}% - }% -} -\newcommand{\new@chapterstar}[1]{% - \old@chapter*{#1}% -} -\newcommand{\new@chapteropt}[2][]{% - \old@chapter[#1\NormalFont]{#2\NormalFont}% -} -\newcommand{\new@chapter}[1]{% - \old@chapter{#1\NormalFont}% -} -} -\newcommand{\old@starttoc}{} % Test if \old@starttoc can be used (Z. Wagner). -\let\old@starttoc\@starttoc -\renewcommand\@starttoc{\afterassignment\NormalFont\old@starttoc} +\let\dn@old@starttoc\@starttoc +\renewcommand\@starttoc{\afterassignment\NormalFont\dn@old@starttoc} \AtBeginDocument{% - \renewcommand\labelenumi{{\NormalFont\theenumi.}}% - \renewcommand\labelenumii{{\NormalFont(\theenumii)}}% + \let\dn@old@labelenumi\labelenumi + \let\dn@old@labelenumii\labelenumii + % Change the definitions in the \dn mode only + \renewcommand\labelenumi{\ifdnmode{\NormalFont\theenumi.}\else \dn@old@labelenumi\fi}% + \renewcommand\labelenumii{\ifdnmode{\NormalFont(\theenumii)}\else \dn@old@labelenumii\fi}% }% -}{} % Select roman characters (comma, question and exclamation mark) from the correct % font, pen fonts always require italics @@ -563,6 +486,7 @@ within the Devanagari text.} \def\alsoname{{\dn aOr d\?EKe}}% \def\alsoseename{{\dn aOr d\?EKe}}} +\AtBeginDocument{% \providecommand\dateUSenglish{\def\today{\ifcase\month\or January\or February\or March\or April\or May\or June\or July\or August\or September\or October\or November\or December\fi @@ -603,6 +527,7 @@ within the Devanagari text.} \def\tablename{Table}% \def\seename{see}% \def\alsoseename{see also}} +} % % The end. @@ -614,6 +539,52 @@ within the Devanagari text.} Here is the log file, created by RCS. (Log from dev.sty is also kept here.) % $Log: devanagari.sty,v $ +% Revision 1.12 2008-03-09 15:58:00 icebearsoft +% Citation macros moved to a separate package. Switch \ifdnmode implemented. Email address corrected. +% +% Revision 1.11 2007/01/18 22:40:37 icebearsoft +% I forgot to change the date... +% +% Revision 1.10 2007/01/18 22:38:24 icebearsoft +% Enhanced switching to \dn so that it undoes language specific +% modifications introduced by babel, mainly \catcodes. This should not +% be done if invoked as a babel module because this action is done +% within \selectlanguage{...} or \begin{otherlanguage}{...}. The module +% will thus require another update in a short time. +% +% Revision 1.9 2006/11/16 10:18:18 icebearsoft +% Packages identified by \ProvidesPackage +% +% Revision 1.8 2006/11/15 11:08:01 icebearsoft +% Code which conflicts with hyperref.sty was removed. It seems that this code +% is not used any more and one user successfully used this version with +% a lot of other packages. +% +% Revision 1.7 2006/10/08 07:40:07 icebearsoft +% Modifications by Kevin Carmody: +% Switching between \cmum and \dnnum made simpler +% Manual updated +% +% Revision 1.6 2006/09/27 08:10:22 icebearsoft +% Default for the numerals was defined in a wrong place so that numerals did +% not work properly unless \cmnum or \dnnum was used globally at the beginning +% of the document. +% +% Revision 1.5 2006/09/26 15:54:20 icebearsoft +% Switches \cmnum and \dnnum made global. There is some conflict between this package +% and beng.sty: if beng.sty is loaded after devanagari.sty, global version of \cmnum +% will cease to work. +% +% Revision 1.4 2006/07/01 16:39:36 icebearsoft +% Order of option declarations changed. The Hindi language definitionn file +% for babel explicitely requests devanagari.sty with option `nocatcodes'. +% The new order of declarations allows to override it with `catcodes' on +% `compat' as an option in the \documentclass command. +% +% Revision 1.3 2006/06/21 09:56:05 icebearsoft +% Definition of English captions deferred in order to prevent colisions +% with babel. +% % Revision 1.2 2006/05/04 15:09:20 icebearsoft % \NormalFont made robust, otherwise sectioning commands do not work. % @@ -719,7 +690,7 @@ Here is the log file, created by RCS. (Log from dev.sty is also kept here.) % o Moved RCS log entries to after \endinput. % % Revision 1.11 1998/06/22 12:11:17 UCGADKW -% o added $Revision: 1.2 $ to \ProvidesFile; +% o added $Revision: 1.12 $ to \ProvidesFile; % o moved RCS log to after \endinput. % % Revision 1.10 1998/06/22 12:10:00 UCGADKW diff --git a/Master/texmf-dist/tex/latex/velthuis/dvngcite.sty b/Master/texmf-dist/tex/latex/velthuis/dvngcite.sty new file mode 100644 index 00000000000..98f470da8a1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/velthuis/dvngcite.sty @@ -0,0 +1,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}} +}{} diff --git a/Master/texmf-dist/tex/xelatex/velthuis/hindicaptions.sty b/Master/texmf-dist/tex/xelatex/velthuis/hindicaptions.sty new file mode 100644 index 00000000000..e483991082e --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/velthuis/hindicaptions.sty @@ -0,0 +1,59 @@ +%% $Id: hindicaptions.sty,v 1.4 2007-12-31 09:42:14 icebearsoft Exp $ +%% This package provides the Hindi caption names for use with XeLaTeX. + +\expandafter\ifx\csname ProvidesPackage\endcsname\relax +% Do nothing if used by babelized plain XeTeX +\else % Identification for XeLaTeX +\ProvidesPackage{hindicaptions}[2007/05/11 v2.14.1 Hindi captions for XeLaTeX] +\RequirePackage{ifxetex} +\RequireXeTeX +\fi + +% European style date +\def\datehindi{\def\today{\number\day\space\ifcase\month\or +जनवरी\or +फ़रवरी\or +मार्च\or +अपरैल\or +मई\or +जून\or +जलाई\or +अगस्त\or +सितम्बर\or +अक्तूबर\or +नवम्बर\or +दिसम्बर\fi +\space\number\year}} + +% Captions (with variants) +\def\captionshindi{% +\def\abstractname{सारांश}% +\def\appendixname{परिशिष्ट}% +\def\bibname{संदर ग्रन्थ}% (?) +\def\ccname{}% +\def\chaptername{अध्याय}% +\def\contentsname{विषय सूची}% +\def\enclname{}% +\def\figurename{चित्र}% रेखाचित्र +\def\headpagename{पृषठ}% +\def\headtoname{}% +\def\indexname{सूची}% +% सूचक +% अनुक्रमणिका +% अनुक्रमणि +\def\listfigurename{चित्रों की सूची}% +\def\listtablename{तालिकाओं की सूची}% +\def\pagename{पृषठ}% +\def\partname{खणड}% +\def\prefacename{प्रस्तावना}% प्राक्कथन +\def\refname{हवाले}% +\def\tablename{तालिका}% +\def\seename{देखिए}% +\def\alsoname{और देखिए}% +\def\alsoseename{और देखिए}} + +% It is supposed that the modern and traditional variant +% will be switched either by selection of the proper fonts +% or by using font options +\let\datemodernhindi\datehindi +\let\captionsmodernhindi\captionshindi |