flm-core 0.6.0

FLM semantic markup framework — core library, built on techy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% flm.latex.def.flmx.headings.number -- the number of a heading.
%
% The headings feature writes a numbered heading's number inside its title,
% in a span of role flm.heading.number, the title template supplying the
% separator after it:
%   \flmxHeading[...]{\flmxSpan[role=flm.heading.number]{2.1}. Results}
% The headings feature's rule requires the style identifier
% flm.headings.style at every heading it stages, and this piece delivers it,
% so that it is in every style file that holds a heading.
%
% Default: the number as it stands, the target of the span's anchor first.
% A template changes it with
%   \flmxDefineSpan{flm.heading.number}{<code over #1, the number>}

\flmxDefineSpan{flm.heading.number}%
  {\flmxIfKey{anchor}{\flmxTarget{\flmxKey{anchor}}}{}#1}