~ubuntu-branches/ubuntu/raring/texlive-extra/raring

« back to all changes in this revision

Viewing changes to texmf-dist/tex/latex/imakeidx/imakeidx.sty

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-05-16 08:22:07 UTC
  • mfrom: (1.1.12) (3.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20120516082207-41ox35jj1qsu46a7
Tags: 2012.20120516-1
* new upstream snapshot based on TL2012 tlpretest
* switch to xz compression for orig and deb (Closes: #672428)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
%% The original source files were:
6
6
%%
7
7
%% imakeidx.dtx  (with options: `package')
8
 
%%   ______________________________________________________
 
8
%%   ___________________________________________________________
9
9
%%   The imakeidx package for LaTeX
10
 
%%   Copyright (C) 2010 Claudio Beccari and Enrico Gregorio
 
10
%%   Copyright (C) 2010-2012 Claudio Beccari and Enrico Gregorio
11
11
%%   All rights reserved
12
12
%% 
13
13
%%   License information appended
14
14
%% 
15
15
\NeedsTeXFormat{LaTeX2e}[2005/12/01]
16
16
\ProvidesPackage{imakeidx}%
17
 
   [2010/07/12 v.1.0a Package for typesetting indices in a synchronous mode]
 
17
   [2012/05/09 v1.1 Package for typesetting indices in a synchronous mode]
18
18
\RequirePackage{xkeyval}
19
19
\DeclareOption{xindy}{\def\imki@progdefault{texindy}}
20
20
\DeclareOption{texindy}{\def\imki@progdefault{texindy}}
40
40
\def\imki@engine{(pdf)latex}
41
41
\ifdefined\XeTeXversion\def\imki@engine{xelatex}\fi
42
42
\ifdefined\directlua % luatex doesn't have \(pdf)shellescape
43
 
  \def\imki@engine{lualatex}\chardef\imki@shellescape\@cclv
 
43
 \def\imki@engine{lualatex}
 
44
  \ifnum\luatexversion<68
 
45
    \chardef\imki@shellescape\@ne % no way to know the value
 
46
  \else
 
47
    \RequirePackage{pdftexcmds} % provides \pdf@shellescape
 
48
    \chardef\imki@shellescape\pdf@shellescape
 
49
  \fi
 
50
  \let\imki@exec\pdf@system
44
51
\fi
45
52
\edef\imki@splitindexoptions{-m \string"\string"}
46
53
\def\splitindexoptions#1{\g@addto@macro\imki@splitindexoptions{ #1}}
47
54
\@onlypreamble\splitindexoptions
48
 
\@ifclassloaded{memoir}{%
49
 
  \PackageError{imakeidx}{Incompatible package won't be loaded}
50
 
    {This package is incompatible with memoir, sorry}\endinput}{}
51
55
\@namedef{ver@makeidx.sty}{3000/12/31}
52
56
\@ifpackageloaded{multind}
53
57
  {\PackageError{imakeidx}{Incompatible package `multind' loaded}
166
170
  \endgroup
167
171
  \@esphack}
168
172
\def\imki@shellwarn{}
169
 
\ifdefined\imki@shellescape % luatex >= 0.60
170
 
  \chardef\imki@shellescape=\@ne
 
173
\ifdefined\imki@shellescape % luatex
171
174
\else
172
175
  \@ifundefined{shellescape}
173
 
    {\let\imki@shellescape\pdfshellescape}
174
 
    {\let\imki@shellescape\shellescape}
 
176
    {\let\imki@shellescape\pdfshellescape} % pdftex
 
177
    {\let\imki@shellescape\shellescape} % xetex
175
178
\fi
176
179
\ifnum\imki@shellescape=\z@
177
180
  \let\KV@imki@noautomaticfalse\KV@imki@noautomatictrue
358
361
  \let\imki@wrindexunique\@undefined
359
362
  \let\imki@putindexunique\@undefined
360
363
\fi
 
364
\@ifclassloaded{memoir}{\let\@wrindexm@m\@wrindex}{}
 
365
 
361
366
%% 
362
 
%% Copyright 2010 Claudio Beccari <claudio dot beccari at gmail dot it>
363
 
%% Copyright 2010 Enrico Gregorio <Enrico dot Gregorio at univr dot it>
 
367
%% Copyright 2010--2012 Claudio Beccari <claudio dot beccari at gmail dot it>
 
368
%% Copyright 2010--2012 Enrico Gregorio <Enrico dot Gregorio at univr dot it>
364
369
%% 
365
370
%% Distributable under the LaTeX Project Public License,
366
371
%% version 1.3c or higher (your choice). The latest version of