File: simple_index

package info (click to toggle)
xindy 2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 51,492 kB
  • ctags: 16,667
  • sloc: lisp: 82,455; ansic: 43,027; xml: 25,207; asm: 22,166; sh: 20,913; perl: 15,725; fortran: 6,951; makefile: 3,644; cpp: 2,636; lex: 503; sed: 97
file content (24 lines) | stat: -rw-r--r-- 359 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

tmp=$(mktemp)
trap "rm $tmp" EXIT INT

texindy --out-file $tmp --stdin <<__EOF__
\indexentry{test}{1}
__EOF__

diff -u - $tmp <<__EOF__
\begin{theindex}
  \providecommand*\lettergroupDefault[1]{}
  \providecommand*\lettergroup[1]{%
      \par\textbf{#1}\par
      \nopagebreak
  }

  \lettergroup{T}
  \item test, 1

\end{theindex}
__EOF__