Beispiel #1
0
        public static FootnoteLeaf Footnote(Paragraph content, string?name = null)
        {
            name ??= "0";
            var footnote = new FootnoteLeaf(name, content);

            content.Parent = footnote;
            return(footnote);
        }
Beispiel #2
0
        public static FootnoteLeaf Footnote(CompilerState state, Paragraph content, string?name = null)
        {
            name ??= LabelVariables.FootnoteCounter.Increment(state.Document).ToString();
            var footnote = new FootnoteLeaf(name, content);

            content.Parent = footnote;
            content.Classes.Add("footnote");

            return(footnote);
        }