Debian Codegraph @

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

raw
1 \documentclass[a4paper,12pt]{article} \usepackage{biokey}
2
3 \author{Anna Shipunova, Alexey Shipunov}
4
5 \title{``\texttt{biokey2html}'',\\ the primer of hypertext web/typography
6 identification key}
7
8 \date{} \begin{document} \maketitle
9
10 \subsection*{Example A}
11
12 This is the plain text source:
13
14 \bigskip\hrule \begin{verbatim}
15
16 1. Leaves pinnatifid ... 2.
17
18 -- Leaves entire ... 3.
19
20 2. Plants perennial, leaves dissected to numerous lanceolate lobes
21 ... Polemonium L.---Jacob's ladder.
22
23 -- Annual plants, leaves with narrow lobes ... Gilia L.---Gilia.
24
25 3(1). The compact inflorescence is surrounded by leaflike bracts
26 ... Collomia Nutt.---Collomia.
27
28 -- The sparse inflorescence without specialised bracts ... Plox
29 L.---Phlox, Sweet-william.
30
31 \end{verbatim}
32
33 \subsection*{Example B}
34
35 This is the \TeX/\LaTeX variant (with stable numbers) of the same
36 key. Please look to the Collomia---the italicizing is pretty simple
37 (fo binomials one need to use \verb|\NN| command)q:
38
39 \bigskip\hrule \begin{verbatim}
40
41 \Z1. Leaves pinnatifid \T 2.
42
43 \AN Leaves entire \T 3.
44
45 \Z2. Plants perennial, leaves dissected to numerous lanceolate lobes \T
46 Polem\'onium L.---Jacob's ladder.
47
48 \AN Annual plants, leaves with narrow lobes \T G\'\i{}lia L.---Gilia.
49
50 \ZZ3(1). The compact inflorescence is surrounded by leaflike bracts
51 \T\KN Coll\'omia Nutt.---Collomia.
52
53 -- The sparse inflorescence without specialised bracts \T Plox L.---Phlox,
54 Sweet-william.
55
56 \end{verbatim}
57
58 \subsection*{Example C}
59
60 This is the typorgaphic PDF output. To produce this, you need special
61 style file, \texttt{biokey.sty}:
62
63 \bigskip\hrule\bigskip
64
65 \Z1. Leaves pinnatifid \T 2.
66
67 \AN Leaves entire \T 3.
68
69 \Z2. Plants perennial, leaves dissected to numerous lanceolate lobes \T
70 Polem\'onium L.---Jacob's ladder.
71
72 \AN Annual plants, leaves with narrow lobes \T G\'\i{}lia L.---Gilia.
73
74 \ZZ3(1). The compact inflorescence is surrounded by leaflike bracts
75 \T Coll\'omia Nutt.---Collomia.
76
77 \AN The sparse inflorescence without specialised bracts \T Plox
78 L.---Phlox, Sweet-william.
79
80 \subsection*{Example D}
81
82 This is the variant with \textbf{automatic} numeration (you need to
83 run \LaTeX{} twice to obtain results) \emph{with PDF hyperlinks}. You
84 can produce if from example B manually, or can use the Perl-script
85 (see below):
86
87 \bigskip\hrule \begin{verbatim}
88
89 \TEZA{AA} Leaves pinnatifid \SSYLKA{AB}
90
91 \AN Leaves entire \SSYLKA{AC}
92
93 \TEZA{AB} Plants perennial, leaves dissected to numerous lanceolate
94 lobes \T Polem\'onium L.---Jacob's ladder.
95
96 \AN Annual plants, leaves with narrow lobes \T G\'\i{}lia L.---Gilia.
97
98 \STEZA{AC}{AA} The compact inflorescence is surrounded by leaflike bracts
99 \T Coll\'omia Nutt.---Collomia.
100
101 \AN The sparse inflorescence without specialised bracts \T Plox
102 L.---Phlox, Sweet-william.
103
104 \end{verbatim}
105
106 And output:
107
108 \bigskip
109
110 \TEZA{AA} Leaves pinnatifid \SSYLKA{AB}
111
112 \AN Leaves entire \SSYLKA{AC}
113
114 \TEZA{AB} Plants perennial, leaves dissected to numerous lanceolate
115 lobes \T Polem\'onium L.---Jacob's ladder.
116
117 \AN Annual plants, leaves with narrow lobes \T G\'\i{}lia L.---Gilia.
118
119 \STEZA{AC}{AA} The compact inflorescence is surrounded by leaflike bracts
120 \T Coll\'omia Nutt.---Collomia.
121
122 \AN The sparse inflorescence without specialised bracts \T Plox
123 L.---Phlox, Sweet-william.
124
125 \subsection*{Example F}
126
127 Three simple \textsf{Perl} scripts do the main work. You can run them
128 all by command \texttt{biokey2html.sh} under UNIX shell on \textsf{Mac
129 OS X} or \textsf{Linux}, or command \texttt{biokey2html.bat} under
130 \textsf{Windows} console:
131
132 \begin{verbatim} $ chmod 755 biokey2html.sh biokey2html*.pl $
133 ./biokey2html.sh biokey2html-ex-en.tex Making relative LaTeX key...
134 Making HTML title and paragrafs tags... Making reference tags...
135 \end{verbatim}
136
137 If you want only to produce "automatic" PDF-key with hyperlinks, you
138 should use the file with \texttt{.2} extension, which appears after
139 \texttt{biokey2html.sh} run (see \texttt{biokey2html-ex-en.pdf}).
140
141 And the HTML result (part of code):
142
143 \bigskip\hrule \begin{verbatim}
144
145 <p class="ST"><span class="TEZA"><a name="AA">1</a>.</span> Leaves
146 pinnatifid ... <span class="SSYLKA"><a href="#AB">2</a>. </span>
147
148 <p class="ST">-- Leaves entire ... <span class="SSYLKA"> <a
149 href="#AC">3</a>.</span>
150
151 <p class="ST"><span class="TEZA"><a name="AB">2</a>. </span>
152 Plants perennial, leaves dissected to numerous lanceolate lobes
153 ... <!--<a href="">--><span class="SP"> Polemonium L.--Jacob's ladder.
154 </span><!--</a>-->
155
156 <p class="ST">-- Annual plants, leaves with narrow lobes ... <!--<a
157 href="">--><span class="SP"> Glia L.--Gilia.</span> <!--</a>-->
158
159 \end{verbatim}
160
161 The commented anchors placed there just in case if you are interested to
162 insert links for images etc. The real examples of keys (which is widely
163 used) are on the web-pages:
164
165 \begin{itemize}
166
167 \item Abramova L.A. et al. The key for most frequent plants in
168 Chupa Gulf environs. [Electronic resource]. 2005. Mode of access:
169 \texttt{http://herba.msu.ru\\/shipunov2/belomor/2005/flora/ws\_key/ws\_key.htm}
170
171 \item Abramova L.A. et al. The key for most frequent plants in
172 Chupa Gulf environs. [Electronic resource]. 2004. Mode of access:
173 \texttt{http://herba.msu.ru\\/shipunov/belomor/2004/flora/ws\_key.pdf}
174
175 \end{itemize}
176
177 \end{document}