Debian Codegraph @

texmf-dist/doc/latex/shipunov/biokey-doc-en.tex

raw
1 \documentclass{article}
2 \usepackage[bookmarks=false,colorlinks=true,hypertexnames=false]{hyperref}
3 \usepackage{biokey}
4
5 \author{A.\,Shipunov\footnote{e-mail: \texttt{dactylorhiza at gmail}}}
6 \title{\texttt{biokey}, the package for precious and flexible identification keys}
7 \date{}
8
9 \begin{document}
10 \maketitle
11
12 This package can be used for creating biological identification keys. Different layouts are available.
13
14 \section{General usage}
15
16 This is the textual key:
17
18 \begin{verbatim}
19 1. It is an animal ... 2.
20 - It is a plant ... 3.
21 2. It is spiny ... Hedgehog
22 - It is not very spiny ... Swift
23 = It is not spiny at all ... Siskin
24 3(1). Lots of wood ... Spruce
25 - No wood ... Daisy
26 \end{verbatim}
27
28 The interpretation in suggested language is follows:
29
30 \bigskip\hrule
31
32 \begin{verbatim}
33
34 \begin{biokey}
35
36 \Z1. It is an animal \T 2.
37
38 \AN It is a plant \T 3.
39
40 \Z2. It is spiny \TT Hedgehog
41
42 \AN It is not very spiny \TT Swift
43
44 \AAN It is not spiny at all \TT Siskin
45
46 \ZZ3(1). Lots of wood \TT Spruce
47
48 \AN No wood \TT Daisy
49
50 \end{biokey}
51
52 \end{verbatim}
53
54 \hrule\bigskip
55
56 \begin{biokey}
57
58 \Z1. It is an animal \T 2.
59
60 \AN It is a plant \T 3.
61
62 \Z2. It is spiny \TT Hedgehog
63
64 \AN It is not very spiny \TT Swift
65
66 \AAN It is not spiny at all \TT Siskin
67
68 \ZZ3(1). Lots of wood \TT Spruce
69
70 \AN No wood \TT Daisy
71
72 \end{biokey}
73
74 \bigskip\hrule\bigskip
75
76 For aesthetics, I recommend that text before \verb|\T| should not end with dot (with the exception of abbreviations). \verb|\T| and \verb|\TT| are just the same thing, but second is better to designate names, and first is better for numbers. Sometimes, these two commands cannot format the paragraph without overfulls, in these (rare) cases I recommend the \verb|\TTTT| or ``old-style'' \verb|\TTT| which results are less precious but require less handwork.
77
78 \verb|\Z| and \verb|\ZZ| are different only for the second is used for backreferences, or for typical in serial zoological keys references for theses and antitheses. These two commands along with \verb|\AN|, \verb|\AAN|, and (not used in the example above) \verb|\AAAN| are used also for aesthetic hanging indentation.
79
80 Commands \verb|\N|, \verb|\NN| and \verb|\NNN| are for end-level objects (species, for example). They did not produce leading dots, but justify following object right, next with some space, or on next line, respectively.
81
82 Command \verb|\VT| is for hanging number references. There is also starred variant, \verb|\VT*|, where dot leader are also protruding outside right text margin.
83
84 By default, all \verb|\T|-like commands along with \verb|\N| and \verb|\NN| have the declaration \verb|\samepage| inside. One can redefine that via \verb|\SameDecl| hook. The most obvious redefinition is \verb|\relax|.
85
86 \verb|\SHRIFTZ| and \verb|\SHRIFTN| are two hooks which are defined by default as \verb|\relax| (do nothing), so one can redefine them to change the representation of these number and end-level objects, respectively. For example,
87
88 \verb|\renewcommand{\SGRIFTZ}{\textbf}|
89
90 will result in boldface theses numbers.
91
92 Several commands designed for commentaries after theses (or antitheses). \verb|\FK| put the text in footnote size, \verb|\KOM| imitate these, but without number, and \verb|\VPRAVO| aligned its contents to the right. \verb|\OTSTUP| is a hook for indentation of first two kinds of comments. By default it is 2\,em, but one can easily redefine it.
93
94 \section{``Automatic'' keys}
95
96 This sort of key can put numbers automatically. The example (needs two \LaTeX\ runs):
97
98 \bigskip\hrule
99
100 \begin{verbatim}
101
102 \begin{biokey}
103
104 \TE{ani} It is an animal \SS{spi}
105
106 \AN It is a plant \SS{pla}
107
108 \TE{spi} It is spiny \TT Hedgehog
109
110 \AN It is not very spiny \TT Swift
111
112 \AAN It is not spiny at all \TT Siskin
113
114 \SE{pla}{ani} Lots of wood \TT Spruce
115
116 \AN No wood \TT Daisy
117
118 \end{biokey}
119
120 \end{verbatim}
121
122 \hrule\bigskip
123
124 \begin{biokey}
125
126 \TE{ani} It is an animal \SS{spi}
127
128 \AN It is a plant \SS{pla}
129
130 \TE{spi} It is spiny \TT Hedgehog
131
132 \AN It is not very spiny \TT Swift
133
134 \AAN It is not spiny at all \TT Siskin
135
136 \SE{pla}{ani} Lots of wood \TT Spruce
137
138 \AN No wood \TT Daisy
139
140 \end{biokey}
141
142 \bigskip\hrule\bigskip
143
144 The biggest advantage of this type of key is that it is much easier to correct. It is possible to convert ``ordinary'' key to ``automatic'' key and further to HTML, with the help of \texttt{biokey2html} scripts (see documentation). See also how hyper-references working here.
145
146 \section{Indented keys}
147
148 And, finally, the different key layout---so-called indented keys:
149
150 \bigskip\hrule
151
152 \begin{verbatim}
153
154 \begin{biokey}
155
156 \Z A. It is an animal
157
158 \begin{LE}
159
160 \Z AA. It is more or less spiny
161
162 \begin{LE}[2]
163
164 \Z AAA. It is very spiny \TT Hedgehog
165
166 \Z BBB. It is not very spiny \TT Swift
167
168 \end{LE}
169
170 \Z BB. It is not spiny at all \TT Siskin
171
172 \end{LE}
173
174 \Z B. It is a plant
175
176 \begin{LE}
177
178 \Z CC. Lots of wood \TT Spruce
179
180 \Z DD. No wood \TT Daisy
181
182 \end{LE}
183
184 \end{biokey}
185
186 \end{verbatim}
187
188 \hrule\bigskip
189
190 \begin{biokey}
191
192 \Z A. It is an animal
193
194 \begin{LE}
195
196 \Z AA. It is more or less spiny
197
198 \begin{LE}[2]
199
200 \Z AAA. It is very spiny \TT Hedgehog
201
202 \Z BBB. It is not very spiny \TT Swift
203
204 \end{LE}
205
206 \Z BB. It is not spiny at all \TT Siskin
207
208 \end{LE}
209
210 \Z B. It is a plant
211
212 \begin{LE}
213
214 \Z CC. Lots of wood \TT Spruce
215
216 \Z DD. No wood \TT Daisy
217
218 \end{LE}
219
220 \end{biokey}
221
222 \bigskip\hrule\bigskip
223
224 It is more complicated then previous examples, so one may to consider \texttt{dichokey} package, but it is much less flexible.
225
226 \end{document}