summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/shipunov/tex/flower.sty
blob: d9dbcbb522d152f7f5193f9beb63eacf97308ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
% Author: Alexey Shipunov, dactylorhiza@gmail.com

\ProvidesPackage{flower}%
        [2019/10/03 v1.31 Typesetting botanical sings]

% 20191002 symmetry signs are now 'mathpunct', to ensure space after them

% Fonts `wasy' required
\DeclareRobustCommand\wasyfamily
        {\fontencoding{U}\fontfamily{wasy}\selectfont}
\DeclareSymbolFont{WASY}{U}{wasy}{m}{n}
\SetSymbolFont{WASY}{bold}{U}{wasy}{bx}{n}

% SIGNS BEFORE FORMULA
% Male
\DeclareMathSymbol{\Mal}{\mathord}{WASY}{"1A}
% Female
\DeclareMathSymbol{\Fem}{\mathord}{WASY}{"19}
% Hermafroditic
\def\Herm{\mbox{\ensuremath{\Mal}\kern-.82em\lower.27ex\hbox{\ensuremath{\Fem}}\kern.2em}}
% Asymmetry
\DeclareMathSymbol{\Asx}{\mathpunct}{WASY}{"12}
% Actinomorphy
\DeclareMathSymbol{\Act}{\mathpunct}{WASY}{"42}
% Zygomorphy
\DeclareMathSymbol{\Zyg}{\mathpunct}{symbols}{"22}

% NEW SYMMETRY SIGNS FROM Prenner et al., 2010
% Median monosymmetry (downwards arrow; Unicode: 2193): \downarrow
% Transverse monosymmetry (sidewards arrow; Unicode: 2192): \rightarrow
% Oblique monosymmetry (Latin capital letter O with stroke; Unicode: 00D8): \O
% Polysymmetry (asterisk): \Act
% Asymmetry (partial differential; Unicode 2202): \partial
% Obdiplostemonous / obhaplostemonous androecium (followed by "left right arrow"; Unicode 2194): \leftrightarrow
% Resupination (registered sign; Unicode 00AE): \textregistered
% Disymmetry (box drawings light vertical and horizontal; Unicode 253C):
\def\DS{\mbox{\lower.2ex\hbox{\rule{.4pt}{1.55ex}}\kern-.17em\lower-.5ex\hbox{\rule{.3em}{.4pt}}\kern.2em}}

% FLORAL UNITS
% Perianth
\def\P#1{\mathrm{\PName}_{#1}}
% Calyx
\def\K#1{\mathrm{\KName}_{#1}}
% Corolla
\def\C#1{\mathrm{\CName}_{#1}}
% Androceum
\def\A#1{\mathrm{\AName}_{#1}}
% Gynoeceum
\def\G#1{\mathrm{\GName}_{#1}}
% Exterior ovary = hypogynous flower: $\Ge(2)$ or $\Ge{(2)}$
\def\Ge{\@ifnextchar(\Ge@B{\Ge@@}}
        \def\Ge@B(#1){\mathrm{\GName}_{(\underline{#1})}}
        \def\Ge@@#1{\mathrm{\GName}_{\underline{#1}}}
% Hemiinferior ovary = hemiepigynous flower
\def\Gm{\@ifnextchar(\Gm@B{\Gm@@}}
        \def\Gm@B(#1){\mathrm{\GName}_{\hbox{-}(#1)\hbox{-}}}
        \def\Gm@@#1{\mathrm{\GName}_{\hbox{-}#1\hbox{-}}}
% Inferior ovary = epigynous flower
\def\Gi{\@ifnextchar(\Gi@B{\Gi@@}}
        \def\Gi@B(#1){\mathrm{\GName}%
                \raise.25ex\hbox{$_{\scriptstyle(\overline{#1})}$}}
        \def\Gi@@#1{\mathrm{\GName}%
                \raise.25ex\hbox{$_{\scriptstyle\overline{#1}}$}}
% Non-trivial floral units
\def\?#1#2{\ensuremath{\mathrm{#1}_{#2}}}

% For redefinition:
\def\PName{P}
\def\KName{K}
\def\CName{C}
\def\AName{A}
\def\GName{G}

% FLOWER OPERATION NAMES (Shipunov, unpubl.)
% Fixation
\newcommand{\Fix}{\mathop{\mathrm{Fix}}\nolimits}
% Reduction
\newcommand{\Red}{\mathop{\mathrm{Red}}\nolimits}
% Connation
\newcommand{\Con}{\mathop{\mathrm{Con}}\nolimits}
% Differentiation
\newcommand{\Dif}{\mathop{\mathrm{Dif}}\nolimits}
% Homeosis
\newcommand{\Mov}{\mathop{\mathrm{Mov}}\nolimits}

% PLANT LIFE FORMS
% Annuals
\def\Mon{\mbox{\textcircled{\lower.1ex\hbox{$\cdot$}}}}
% Biennials
\def\Bin{\mbox{\textcircled{\lower.1ex\hbox{$\cdot\mkern-1mu\cdot$}}}}
% Perennials
\def\Per{{\wasyfamily\char"58}}
% Shrubs
\def\Shrub{{\wasyfamily\char"59}}
% Trees
\def\Tree{{\wasyfamily\char"59}\kern-.58em\lower-.65ex\hbox{-}\kern.15em}

\endinput