]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Improve index.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 13 Dec 2012 22:43:23 +0000 (23:43 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 13 Dec 2012 22:43:23 +0000 (23:43 +0100)
Makefile
myindexstyle.ist [new file with mode: 0644]

index 3c307b6f9675156263cca2a1f253a94f43c78288..878d03bb2899824a58f1de82c8a74a2f5e64f0d8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ url = http://www.sslug.dk/~chlor/lessig/freeculture.sgml.2004-04-01.gz
 #  -P latex.class.options=a5paper
 DBLATEX = dblatex \
        -T simple \
+       --indexstyle=myindexstyle.ist \
        --param lingua=nb \
        --xsl-user=data/user_param.xsl \
        --xsl-user=data/xetex_param.xsl \
diff --git a/myindexstyle.ist b/myindexstyle.ist
new file mode 100644 (file)
index 0000000..536156e
--- /dev/null
@@ -0,0 +1,34 @@
+%%
+%% This is file `myindexstyle.ist', from <URL: http://bugs.debian.org/685721 >
+%%
+%% The idea is from Ingo Kloeckl, Latex2e:
+%% Herbert Voss 000726
+%% 
+%% This is a MAKEINDEX style file which should be used to generate the
+%% formatted change history for use with the doc package. The TeX
+%% commands used below are defined in doc.sty.  The commands for
+%% MAKEINDEX like `level' `item_x1' are described in `` Makeindex, A
+%% General Purpose, Formatter-Independent Index Processor'' by Pehong
+%% Chen.
+%%
+headings_flag       1          % headings yes
+heading_prefix   "\\textbf{"   % boldfont
+heading_suffix   "}\n"         % newline
+symhead_positive "Symbols"
+%% preamble
+%%   "\\begin{theindex}\n"
+%% item_1
+%%   "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}"
+%% item_01
+%%   "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}"
+%% item_x1
+%%   "\\par\\leavevmode\\hangindent10pt\\makebox[10pt][l]{--}"
+%% item_2
+%%   "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }"
+%% item_12
+%%   "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }"
+%% item_x2
+%%   "\\par\\leavevmode\\hangindent20pt\\makebox[20pt][l]{-- -- }"
+%% 
+%%
+%% End of file `myindexstyle.ist'.