Debian Codegraph @

texmf-dist/doc/latex/lexref/lexref.tex

raw
1 \documentclass[a4paper]{ltxdockit}[2011/03/25]
2 \usepackage{btxdockit}
3 \usepackage[utf8]{inputenc}
4 \usepackage[english]{babel}
5 \usepackage[strict]{csquotes}
6 \usepackage[parfill]{parskip}
7 \usepackage{tabularx}
8 \usepackage{longtable}
9 \usepackage{booktabs}
10 \usepackage{shortvrb}
11 \usepackage{pifont}
12 \usepackage{libertine}
13 \usepackage[scaled=0.8]{beramono}
14 \usepackage{microtype}
15 \lstset{basicstyle=\ttfamily,keepspaces=true}
16 \KOMAoptions{numbers=noenddot}
17 \addtokomafont{paragraph}{\spotcolor}
18 \addtokomafont{section}{\spotcolor}
19 \addtokomafont{subsection}{\spotcolor}
20 \addtokomafont{subsubsection}{\spotcolor}
21 \addtokomafont{descriptionlabel}{\spotcolor}
22 \pretocmd{\cmd}{\sloppy}{}{}
23 \pretocmd{\bibfield}{\sloppy}{}{}
24 \pretocmd{\bibtype}{\sloppy}{}{}
25 \makeatletter
26 \patchcmd{\paragraph}
27 {3.25ex \@plus1ex \@minus.2ex}{-3.25ex\@plus -1ex \@minus -.2ex}{}{}
28 \patchcmd{\paragraph}{-1em}{1.5ex \@plus .2ex}{}{}
29 \makeatother
30
31 \usepackage{geometry}
32 \geometry {left=5cm, right=2cm, top=1.5cm, bottom=1.3cm, includeheadfoot}
33
34
35 \titlepage{%
36 title={lexref},
37 subtitle={},
38 url={},
39 author={Adrien Vion},
40 email={adrien[dot]vion3[at]gmail[dot]com},
41 revision={1.1a},
42 date={2015-01-11}}
43
44 \hypersetup{%
45 pdftitle={lexref},
46 pdfsubject={},
47 pdfauthor={Adrien Vion},
48 pdfkeywords={tex, latex, legal, reference, citation, article, paragraph}}
49
50 % tables
51
52 \newcolumntype{T}{>{\sffamily\large\bfseries\spotcolor}c}
53 \newcolumntype{H}{>{\sffamily\bfseries\spotcolor}l}
54 \newcolumntype{L}{>{\raggedright\let\\=\tabularnewline}p}
55 \newcolumntype{R}{>{\raggedleft\let\\=\tabularnewline}p}
56 \newcolumntype{C}{>{\centering\let\\=\tabularnewline}p}
57 \newcolumntype{V}{>{\raggedright\let\\=\tabularnewline\ttfamily}p}
58
59 \newcommand*{\sorttablesetup}{%
60 \tablesetup
61 \ttfamily
62 \def\new{\makebox[1.25em][r]{\ensuremath\rightarrow}\,}%
63 \def\alt{\par\makebox[1.25em][r]{\ensuremath\hookrightarrow}\,}%
64 \def\note##1{\textrm{##1}}}
65
66 \newcommand{\tickmarkyes}{\Pisymbol{psy}{183}}
67 \newcommand{\tickmarkno}{\textendash}
68 \providecommand*{\textln}[1]{#1}
69 \providecommand*{\lnstyle}{}
70
71 % markup and misc
72
73 \setcounter{secnumdepth}{9}
74
75 \makeatletter
76
77 \newenvironment{nameparts}
78 {\trivlist\item
79 \tabular{@{}ll@{}}}
80 {\endtabular\endtrivlist}
81
82 \newenvironment{namedelims}
83 {\trivlist\item
84 \tabularx{\textwidth}{@{}c@{=}l>{\raggedright\let\\=\tabularnewline}X@{}}}
85 {\endtabularx\endtrivlist}
86
87 \newenvironment{namesample}
88 {\def\delim##1##2{\@delim{##1}{\normalfont\tiny\bfseries##2}}%
89 \def\@delim##1##2{{%
90 \setbox\@tempboxa\hbox{##1}%
91 \@tempdima=\wd\@tempboxa
92 \wd\@tempboxa=\z@
93 \box\@tempboxa
94 \begingroup\spotcolor
95 \setbox\@tempboxa\hb@xt@\@tempdima{\hss##2\hss}%
96 \vrule\lower1.25ex\box\@tempboxa
97 \endgroup}}%
98 \ttfamily\trivlist
99 \setlength\itemsep{0.5\baselineskip}}
100 {\endtrivlist}
101
102 \makeatother
103
104 \newcommand{\lexref}{\texttt{lexref}\xspace}
105
106 \newcommand{\supra}{\emph{supra}\xspace}
107 \newcommand{\infra}{\emph{infra}\xspace}
108 \newcommand{\Cf}{\textnormal{Cf. }}
109 \newcommand{\cf}{cf.\xspace}
110 \newcommand{\GM}{\enquote}
111 \newcommand{\pex}{\textnormal{par exemple}\xspace}
112 \newcommand{\Pex}{\textnormal{Par exemple}\xspace}
113 \newcommand{\marg}[1]{\{\texttt{#1}\}}
114 \newcommand{\oarg}[1]{\texttt{[#1]}}
115
116 \newcommand{\variable}[1]{$\langle$\textsl{#1}$\rangle$}
117
118
119 \usepackage[CHde]{lexref}
120
121
122
123 \begin{document}
124
125 \DeclareLex{ZGB}{ZGB}
126 \DeclareLex{OR}{OR}
127 \DeclareLex{FG}{FG}
128
129 \printtitlepage
130
131 \begin{quote}
132 This document contains information about the \lexref package. This \LaTeX{} package is aimed at continental lawyers (especially swiss and german). It provides macros to make \textbf{references to legal provisions} conveniently and uniformly. It also allows the user to automatically add cited Acts to a \textbf{nomenclature list} and to build \textbf{specific indexes} for each cited Act.
133
134 \textbf{Important notice} for users who were using version 1.0.1a: \textbf{the \cs{DeclareLex} macro has changed} and now requires four arguments instead of three. Please modify your \tex documents accordingly (see below).
135 \end{quote}
136
137 \tableofcontents
138
139 \section{Introduction}
140
141 \subsection{Purposes}
142
143 Lawyers have to make reference to Acts, Codes and various kind of regulations every day. \LaTeX{} contains very powerful solutions to handle bibliographies (e.g. the \texttt{biblatex} package by Philipp Lehman), but no really easy way to reference legal texts, which in fact differs a bit from citing regular documents (books, etc.). Usually, legal texts shouldn't be part of the bibliography but have instead to appear in a separate nomenclature list, which also often contains other shortcuts, etc.
144
145 This package has \textbf{three purposes}:
146 \begin{enumerate}
147 \item First of all, this package will help you \textbf{reference conveniently and uniformly regulations} inside your text, whether in text body, brackets or footnotes. By using a simple \cs{DeclareLex} macro, you define precisely and once and for all how each Act will be referenced.
148 \item Cited Acts must frequently be added to a nomenclature list. When done manually, this can be painful, especially in long documents citing many different Acts. This package can do this 'dirty job' for you, ensuring that every cited Act will be \textbf{included in the nomenclature}. The package I chose to build the nomenclature is \texttt{nomencl}\footnote{\url{http://www.ctan.org/tex-archive/macros/latex/contrib/nomencl}}. The nomenclature list can also be completed with any arbitrary other shortcuts.
149 \item A very useful thing for readers of legal books is an \textbf{index of every legal disposition cited}. Again, doing this manually is a tedious task; \lexref will also do this for you. The package \texttt{splitidx}\footnote{\url{http://www.ctan.org/pkg/splitindex}} is used to this end and creates a \textbf{separate subindex} for every Act.
150 \end{enumerate}
151
152
153
154
155 \subsection{Requirements}
156
157 You need the following packages in order to use \lexref:
158 \begin{marglist}
159 \item[etoolbox] Used to define commands, test things, etc.
160 \item[xargs] Used to define commands with optionnal arguments.
161 \item[xstring] Used to test strings.
162 \item[nomencl] Used to build the nomenclature list.
163 \item[splitidx] Used to build the multiple indexes.
164 \end{marglist}
165
166 You don't need to load them; \lexref already does it.
167 These packages are all part of standard \LaTeX{} distributions so there shouldn't be any problem about their loading.
168
169 Splitidx uses python to process the index file, so be sure to have it installed if you want to use the indexing feature of \lexref. \texttt{splitidx} also offers alternate ways to proceed, see its documentation for further details.
170
171 \subsection{Legal Status of this package}
172
173 \copyright~Adrien Vion 2013.
174
175 This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or any later version.
176 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 2005/12/01 or later.
177
178 This work has the LPPL maintenance status 'maintained'.
179
180 The Current Maintainer of this work is Adrien Vion.
181
182 This work consists of the file lexref.sty and the related information files.
183
184 Please note that this work is experimental (still alpha version) and that retrocompatibility may not be ensured.
185
186
187 \section{Basic usage}
188
189 \subsection{Package loading}
190
191 Use the standard macro in the preamble of your .tex document:
192
193 \cs{usepackage}\oarg{\variable{option list}}\marg{lexref}
194
195 \variable{option list} is a comma separated list of options.
196
197 \subsection{Options}\label{options}
198
199 \subsubsection{Language and region selection}
200
201 The package contains some language and region dependant macros, which are mostly prefixes used to cite dispositions (e.g. 'art.'). Default is english (see the annex, p. \pageref{annex}). You can use the three following options to override default settings:
202
203 \begin{marglist}
204 \item[CHfr] For users from french part of Switzerland. See the annex for the list of macro redefinitions.
205 \item[CHde] For users from german part of Switzerland. See the annex for the list of macro redefinitions.
206 \item[DE] For users from Germany. See the annex for the list of macro redefinitions.
207 \end{marglist}
208
209 Please note that these options are totally independent from your \texttt{babel} settings.
210
211 Using another language is possible and easy: you will just have to renew the LexShortcuts (see p. \pageref{customization}).
212
213 Please note that citing french laws might not properly work, mostly because of the dashes and letters contained in their disposition numbers. As a matter of fact, you shouldn't have any serious problem regarding the citation \textit{print} (as 'art.' is the same in singular or plural), but indexing won't work properly with french laws. To get a better result, the string tests applied to disposition numbers in order to determine if they're plural or singular, and to sort them within the indexes should be finetuned. This could be implemented in next versions, as well as some other options to the \cs{DeclareLex} macro.
214
215 \subsubsection{Other options}
216
217 The four following options can also be loaded:
218
219 \begin{marglist}
220 \item[nomencl] When loaded, this option adds to the nomenclature every Act, if at least one of its dispositions is cited. See p. \pageref{nomenclature} for further details.
221 \item[shortcutstolist] When loaded, this option adds to the nomenclature every LexShortcut used in the document. See p. \pageref{nomenclature} for further details.
222 \item[indexing] When loaded, process every citation of a disposition to an \texttt{.idx} file which also allows to build a subindex for every Act. See p. \pageref{indexing} for further details.
223 \item[noprint] When loaded, the Act citation macros don't print anything but will still affect the nomenclature and the index.
224 \end{marglist}
225
226
227 \subsection{Declaring Acts with \cs{DeclareLex}}
228
229 The first step is using the following macro for each Act you want to cite in your document.
230
231 \begin{ltxsyntax}
232 \cmditem{DeclareLex}{Act's macro}{printed abbreviation}[Act's full name][alt option]
233 \end{ltxsyntax}
234
235
236 An example with swiss ZGB would be (assuming the package option CHde is set):
237
238 \begin{ltxcode}
239 <<\DeclareLex>>{ZGB}{ZGB}[Schweizerisches Zivilgesetzbuch vom 10. Dezember 1907]
240 \end{ltxcode}
241
242 This macro will use its first argument (\prm{Act's macro}) to create a series of other macros. In this example, this command will create a \cs{ZGB} command (among others), which you can use in the whole document to cite this Act.
243 Because it is used to create macros, you should avoid using any special character (no spaces, etc.) in the first argument of \cs{DeclareLex}, and make sure it is different from any other macro already defined (otherwise your compilation will crash).
244
245 For example, using \cs{ZGB}\marg{2} will print 'Art. 2 ZGB'.
246 The printed Act's name in this output (ZGB) is given by the second argument of \cs{DeclareLex} (\prm{printed abbreviation}).
247
248 In this example there is no difference between first and second argument. In some cases, you may want the citation macro to be different than the printed name. Suppose you want to cite the \textit{Dresdner Entwurf} of 1866. You can then type:
249
250 \begin{ltxcode}
251 <<\DeclareLex>>{DEw}{Dres. Entw.}[Dresdner Entwurf (1866)]
252 \end{ltxcode}
253
254 This will create a \cs{DEw} macro, which when used (for instance \cs{DEw}\marg{88}) will output 'Art. 88 Dres. Entw.'.
255
256 The third argument (\prm{Act's full name}) is only used for the nomenclature list, if desired (see p. \pageref{nomenclature}).
257
258 The fourth argument can be either undefined (\oarg{}) or containing 'alt' (\oarg{alt}). When it is set to 'alt', the article prefixes (by default \cs{DispPrefixMain} and \cs{DispsPrefixMain}) will be overrided by alternate article prefixes (\cs{DispPrefixAlt} and \cs{DispsPrefixAlt}), in every citation of the defined Act. This is useful to cite Acts which use a different prefix. For instance, with package option CHde, \cs{DispPrefixMain} is set to 'Art.' and \cs{DispPrefixAlt} to '\S'. If you want to cite the german BGB in the same document, you can use:
259
260 \begin{ltxcode}
261 <<\DeclareLex>>{BGB}{BGB}[B\"urgerliches Gesetzbuch][alt]
262 \end{ltxcode}
263
264 so that for example \cs{ZGB}\marg{2} will output 'Art. 2 ZGB', whereas \cs{BGB}\marg{154} will output '\S{} 154 BGB'.
265
266 \subsection{Citing legal provisions}
267
268 \subsubsection{Main macros}\label{citationmainmacros}
269
270 The \cs{DeclareLex} creates for each Act the following macros:
271
272 \begin{ltxsyntax}
273 \cmditem{\prm{Act's macro}}{art./Art.}[al./Abs.][ch./Ziff.][let./lit.]
274 \end{ltxsyntax}
275
276
277
278 \begin{ltxsyntax}
279 \cmditem{np\prm{Act's macro}}{art./Art.}[al./Abs.][ch./Ziff.][let./lit.]
280 \end{ltxsyntax}
281
282 \begin{ltxsyntax}
283 \cmditem{\prm{Act's macro}ns}{art./Art.}[al./Abs.][ch./Ziff.][let./lit.]
284 \end{ltxsyntax}
285
286 \begin{ltxsyntax}
287 \cmditem{np\prm{Act's macro}ns}{art./Art.}[al./Abs.][ch./Ziff.][let./lit.]
288 \end{ltxsyntax}
289
290
291 As you can see, the control sequences names of these macros depend on the \variable{Act's macro} set as first argument in \cs{DeclareLex}. In the csnames, 'np' stands for 'no prefix' and 'ns' for 'no suffix' (the suffix being the Act's name). That explains the output of the macros, as the following example will show.
292
293 % which means the diffrerence between these two macros is that the first will omit the article prefix ('560 Abs. 1 ZGB', whereas the second macro will output 'Art. 560 Abs. 1 ZGB').
294
295
296
297 An example with swiss ZGB would be (assuming the package option CHde is set) :
298
299 \begin{ltxcode}
300 <<\DeclareLex>>{ZGB}{ZGB}[Schweizerisches Zivilgesetzbuch vom 10. Dezember 1907]
301 \end{ltxcode}
302
303 which allows you to you use the following in your document
304
305 \begin{tabular}{llll}
306 \begin{ltxcode}
307 <<\ZGB>>{2}[1]
308 \end{ltxcode}
309 &
310 \begin{ltxcode}
311 <<\npZGB>>{2}[1]
312 \end{ltxcode}
313 &
314 \begin{ltxcode}
315 <<\ZGBns>>{2}[1]
316 \end{ltxcode}
317 &
318 \begin{ltxcode}
319 <<\npZGBns>>{2}[1]
320 \end{ltxcode}
321 \\
322 Art. 2 Abs. 1 ZGB
323 &
324 2 Abs. 1 ZGB
325 &
326 Art. 2 Abs. 1
327 &
328 2 Abs. 1
329 \end{tabular}
330
331 These variants are useful to write lists of dispositions in your text. For instance, if you type:
332
333 \begin{ltxcode}
334 'Siehe insbesondere <<\ZGBns>>{2}[2], <<\npZGBns>>{3}[1] und <<\npZGB>>{8}'
335 \end{ltxcode}
336
337 you will get
338
339 'Siehe insbesondere \ZGBns{2}[2], \npZGBns{3}[1] und \npZGB{8}'
340
341 instead of getting
342
343 'Siehe insbesondere \ZGB{2}[2], \ZGB{3}[1] und \ZGB{8}'
344
345 (which would be by far less elegant).
346
347 An example with letters:
348
349 \begin{ltxcode}
350 <<\DeclareLex>>{OR}{OR}
351 <<\OR>>{40a}[1][][b]
352 \end{ltxcode}
353
354
355 will output '\OR{40a}[1][][b]'.
356
357 Note that the prefix will detect if you're citing more than one provision and will then be in plural form (for instance, \S\S {} instead of \S).
358
359 \subsubsection{Additionnal macros}
360
361 You should also use the following macros in the arguments of \cs{\variable{abbreviation}} and the other main macros listed in the previous section:
362
363 \begin{tabular}{lllll}
364 \begin{ltxcode}
365 <<\sq>>
366 \end{ltxcode}
367 &
368 \begin{ltxcode}
369 <<\sqq>>
370 \end{ltxcode}
371 &
372 \begin{ltxcode}
373 <<\bis>>
374 \end{ltxcode}
375 &
376 \begin{ltxcode}
377 <<\ter>>
378 \end{ltxcode}
379 &
380 \begin{ltxcode}
381 <<\quater>>
382 \end{ltxcode}
383 \\
384 sq.
385 &
386 sqq.
387 &
388 $^{bis}$
389 &
390 $^{ter}$
391 &
392 $^{quater}$
393 \\
394 \begin{ltxcode}
395 <<\quinquies>>
396 \end{ltxcode}
397 &
398 \begin{ltxcode}
399 <<\sexies>>
400 \end{ltxcode}
401 &
402 \begin{ltxcode}
403 <<\septies>>
404 \end{ltxcode}
405 &
406 \begin{ltxcode}
407 <<\octies>>
408 \end{ltxcode}
409
410 &
411 \begin{ltxcode}
412 <<\nonies>>
413 \end{ltxcode}
414 \\
415 $^{quinquies}$
416 &
417 $^{sexies}$
418 &
419 $^{septies}$
420 &
421 $^{octies}$
422 &
423 $^{nonies}$
424 \end{tabular}
425
426 Example (with package option CHde):
427
428 \begin{ltxcode}
429 <<\DeclareLex>>{FG}{FG}[Fiktives Gesetz]
430 <<\FG>>{40<<\quinquies>>}[1 <<\sqq>>]
431 \end{ltxcode}
432
433 Output: \FG{40\quinquies}[1 \sqq]
434
435 \subsection{Important note: don't use the citation macros in titles}
436
437 You shouldn't use the citation commands in the titles (chapter, section, etc.).
438 If you do so, output will be normally printed but the Act will probably disappear from the nomenclature list.
439 If you still want the index features, please use the macro \cs{idx\variable{Act's macro}} (see p. \pageref{indexwhithoutprint}).
440
441 For instance, instead of writing this:
442
443 \begin{ltxcode}
444 <<\section>>{Le fardeau de la preuve (\CC{8})}
445 \end{ltxcode}
446
447 write this:
448
449 \begin{ltxcode}
450 <<\section>>{Le fardeau de la preuve (art. 8 CC)}<<\idxCC>>{8}
451 \end{ltxcode}
452
453
454 \section{Customizing shortcuts and prefixes}\label{customization}
455
456 Default shortcuts are listed in the annex (p. \pageref{annex}) and depend on the language/region options.
457
458 You can fully customize them by using the following macro:
459
460 \begin{ltxsyntax}
461 \cmditem{RenewLexShortcut}{LexShortcut}{redefinition}[nomenclature]
462 \end{ltxsyntax}
463
464 Suppose you want for instance that \cs{\variable{Act's macro}} commands output full 'article' or 'articles' instead of 'art.'. You can do it this way:
465
466 \begin{ltxcode}
467 <<\RenewLexShortcut>>{DispPrefixMain}{article }[]
468 <<\RenewLexShortcut>>{DispsPrefixMain}{articles }[]
469 \end{ltxcode}
470
471 By leaving the third argument blank, you ensure this redefined shortcut won't appear in the nomenclature list anymore.
472
473 The complete list of LexShortcuts which can be renewed is in the annex.
474
475 A precision about the nomenclature list title: it is controlled by the macro \cs{nomname}, which should be modified by a regular \cs{renewcommand} and not by \cs{RenewLexShortcut}.
476
477 \section{Building a nomenclature list containing the cited Acts' titles}\label{nomenclature}
478
479 \subsection{Basics}
480
481 The following conditions must be concurrently fulfilled in order for an Act to appear in the nomenclature list:
482 \begin{enumerate}
483 \item the Act must have been declared with \cs{DeclareLex}
484 \item the third argument of \cs{DeclareLex} (i. e. the full name of the Act) has to be defined (otherwise it makes no sense to have it in the list!)
485 \item the Act must have been at least cited once in the document, using either \cs{\variable{Act's macro}} or any other main citation macro (see list above: \ref{citationmainmacros}).
486 \end{enumerate}
487
488 Follow these steps:
489 \begin{enumerate}
490 \item Activate the \texttt{nomencl} and/or \texttt{shortcutstolist} options of \lexref.
491 \item Do a latex compilation. This will create a .nlo file in the directory where your .tex file is located.
492 \item Open a terminal window and get to the directory where your .tex file is located (on UNIX-like systems, use the 'cd' command to do so).
493 \item Type the following in the terminal (replace 'filename' by the name of the file you want to process):
494 \begin{ltxcode}
495 makeindex filename.nlo -s nomencl.ist -o filename.nls
496 \end{ltxcode}
497
498 This will create .nls file in the directory where your .tex file is located.
499 \item Return to your \LaTeX{} editor and put \cs{printnomenclature} where you want the list to be printed.
500 \item Run latex once again.
501 \end{enumerate}
502
503 For any additionnal information, you should check the \texttt{nomencl} package documentation.
504
505
506
507 \subsection{Adding any other shortcut to the nomenclature list}
508
509 Simply use in your .tex file
510
511 \begin{ltxsyntax}
512 \cmditem{nomenclature}{shortcut}{nomenclature}
513 \end{ltxsyntax}
514
515 for every item of the nomenclature list, then rerun the steps 2-4 and 6 of the procedure described above.
516
517 \section{Indexing citations of provisions}\label{indexing}
518
519 \subsection{Basics}
520
521 The following conditions must concurrently be fulfilled in order for the references to be indexed:
522 \begin{enumerate}
523 \item the Act must have been declared with \cs{DeclareLex}
524 \item the Act must have been at least cited once in the document, using either \cs{\variable{Act's macro}}, any other main citation macro (see list above: \ref{citationmainmacros}) or \cs{idx\variable{Act's macro}}
525 \end{enumerate}
526
527 Follow these steps:
528 \begin{enumerate}
529 \item Activate the \texttt{indexing} option of \lexref.
530 \item Do a latex compilation. This will create a .idx file in the directory where your .tex file is located.
531 \item Open a terminal window and run the following script (replace 'filename' by the name of the file you want to process):
532
533 \begin{ltxcode}
534 splitindex.pl filename.idx
535 \end{ltxcode}
536
537 It may be a bit more complicated, e. g. you'll have to locate the splitindex.pl in your texlive directory and then, in the terminal, run the script on the file specifying its absolute path, etc.
538
539 This script will create a new .idx file for each different Act cited in the document, follwing this syntax \variable{filename}-\variable{Act's macro}.idx
540
541 \item get to the directory where your .tex file is located (on UNIX-like systems, use the 'cd' command to do so).
542
543 \item run the following command in the terminal, once for every different abbreviation (replace 'filename' and 'abbreviation' by the one you actually use)
544
545 \begin{ltxcode}
546 makeindex filename-abbreviation.idx
547 \end{ltxcode}
548
549 (Please note that on some configurations, this step wasn't necessary.)
550
551 This will create .ilg and .ind files for every abbreviation.
552
553 \item Return to your \LaTeX{} editor and insert the following macros where you want your index printed:
554
555 \begin{ltxcode}
556 <<\pagebreak>>
557 \section*{Cited Acts' index}% Modify this title as you wish
558 <<\twocolumn>>
559 <<\printindex*>>
560 \end{ltxcode}
561
562 You can finetune the output by using a \cs{printindex}\oarg{\variable{Act's macro}} macro for every Act appearing in the index, rather than using \cs{printindex*}. This will also allow you to print other indexes than the Acts' index (general index, authors index, etc.). See the \texttt{splitidx} manual for further information.
563
564 \item Run latex once again.
565 \end{enumerate}
566
567
568
569 \subsection{Indexing without printing}
570
571 \label{indexwhithoutprint}
572
573 If you want to do this globally, you should consider the \texttt{noprint} option (see p. \pageref{options}).
574
575 If, for any reason, you want to create an index entry at a given location in your file without having any printed output there, you can use
576
577 \begin{ltxsyntax}
578 \cmditem{idx\prm{Act's macro}}{art./Art.}[par./al./Abs.][nr./ch./Ziff.][let./lit.]
579 \end{ltxsyntax}
580
581 The \variable{abbreviation} is the first argument used in \cs{DeclareLex}.
582
583
584 \section{Version History}
585
586 \subsection*{Version 1.1$\alpha$, 11 January 2015}
587
588 \begin{itemize}
589 \item Modification of the \cs{DeclareLex} macro, which has now four arguments instead of three. Aim is to separate the csname used for citations and the printed act's name.
590 \item Fixed a bug regarding the nomenclature, now using toggles to ensure that the \cs{nomenclature} macro will be only issued once per abbreviation.
591 \end{itemize}
592
593 \subsection*{Version 1.0.1$\alpha$, 21 January 2014}
594
595 Minor bug fix (unwanted space).
596
597 \subsection*{Version 1.0$\alpha$, 3 December 2013}
598
599 First public version.
600
601 \section{Annex: Default shortcuts (depending on language)}\label{annex}
602
603 \begin{table}[h!]\label{}
604 \tablesetup
605 \caption{Default settings (english)}
606 \begin{tabularx}{\textwidth}{@{}p{4cm}@{}p{3cm}@{}X@{}}
607 \toprule
608 \multicolumn{1}{@{}H}{LexShortcut} &
609 \multicolumn{1}{@{}H}{output} &
610 \multicolumn{1}{@{}H}{nomenclature} \\
611 \cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule{3-3}
612 {DispPrefixMain} & art. & article(s) \\ %\hline
613 {DispsPrefixMain} & art. & \\ %\hline
614 {DispPrefixAlt} &\S{} & \\ %\hline
615 {DispsPrefixAlt} & \S\S{} & \\ %\hline
616 {SubPrefix} & par. & paragraph(s)\\ %\hline
617 {SubSubPrefixNumber} & nr. & number(s)\\ %\hline
618 {SubSubPrefixLetter} & let. & letter(s)\\ %\hline
619 {sq} & sq. & sequiturque\\ %\hline
620 {sqq} & sqq. & sequunturque\\ %\hline
621 \cs{nomname} & Nomenclature & \\ %\hline
622 \bottomrule
623 \end{tabularx}
624 \end{table}
625
626 \begin{table}[h!]\label{}
627 \tablesetup
628 \caption{CHfr settings}
629 \begin{tabularx}{\textwidth}{@{}p{4cm}@{}p{3cm}@{}X@{}}
630 \toprule
631 \multicolumn{1}{@{}H}{LexShortcut} &
632 \multicolumn{1}{@{}H}{output} &
633 \multicolumn{1}{@{}H}{nomenclature} \\
634 \cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule{3-3}
635 {DispPrefixMain} & art. & article(s) \\ %\hline
636 {DispsPrefixMain} & art. & \\ %\hline
637 {DispPrefixAlt} &\S{} & \\ %\hline
638 {DispsPrefixAlt} & \S\S{} & \\ %\hline
639 {SubPrefix} & al. & alin\'ea(s)\\ %\hline
640 {SubSubPrefixNumber} & ch. & chiffre(s)\\ %\hline
641 {SubSubPrefixLetter} & let. & lettre(s)\\ %\hline
642 {sq} & s. & et suivant(e)\\ %\hline
643 {sqq} & ss & et suivant(e)s\\ %\hline
644 \cs{nomname} & Abr\'eviations & \\ %\hline
645 \bottomrule
646 \end{tabularx}
647 \end{table}
648
649 \begin{table}[h!]\label{}
650 \tablesetup
651 \caption{CHde settings}
652 \begin{tabularx}{\textwidth}{@{}p{4cm}@{}p{3cm}@{}X@{}}
653 \toprule
654 \multicolumn{1}{@{}H}{LexShortcut} &
655 \multicolumn{1}{@{}H}{output} &
656 \multicolumn{1}{@{}H}{nomenclature} \\
657 \cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule{3-3}
658 {DispPrefixMain} & Art. & Artikel \\ %\hline
659 {DispsPrefixMain} & Art. & \\ %\hline
660 {DispPrefixAlt} &\S{} & \\ %\hline
661 {DispsPrefixAlt} & \S\S{} & \\ %\hline
662 {SubPrefix} & Abs. & Absatz, -\"{ }e\\ %\hline
663 {SubSubPrefixNumber} & Ziff. & Ziffer(n)\\ %\hline
664 {SubSubPrefixLetter} & lit. & litera\\ %\hline
665 {sq} & f. & und die folgende\\ %\hline
666 {sqq} & ff. & und die folgenden\\ %\hline
667 \cs{nomname} & Abk\"urzungen & \\ %\hline
668 \bottomrule
669 \end{tabularx}
670 \end{table}
671
672 \begin{table}[h!]\label{}
673 \tablesetup
674 \caption{DE settings}
675 \begin{tabularx}{\textwidth}{@{}p{4cm}@{}p{3cm}@{}X@{}}
676 \toprule
677 \multicolumn{1}{@{}H}{LexShortcut} &
678 \multicolumn{1}{@{}H}{output} &
679 \multicolumn{1}{@{}H}{nomenclature} \\
680 \cmidrule(r){1-1}\cmidrule(r){2-2}\cmidrule{3-3}
681 {DispPrefixMain} &\S{} & \\ %\hline
682 {DispsPrefixMain} & \S\S{} & \\ %\hline
683 {DispPrefixAlt} & Art. & Artikel \\ %\hline
684 {DispsPrefixAlt} & Art. & \\ %\hline
685 {SubPrefix} & Abs. & Absatz, -\"{ }e\\ %\hline
686 {SubSubPrefixNumber} & Ziff. & Ziffer(n)\\ %\hline
687 {SubSubPrefixLetter} & lit. & litera\\ %\hline
688 {sq} & f. & und die folgende\\ %\hline
689 {sqq} & ff. & und die folgenden\\ %\hline
690 \cs{nomname} & Abk\"urzungen & \\ %\hline
691 \bottomrule
692 \end{tabularx}
693 \end{table}
694
695 \vfill {~}
696 \end{document}