81 lines
No EOL
2.8 KiB
Text
81 lines
No EOL
2.8 KiB
Text
TitleInfo {
|
|
header_line1: None,
|
|
header_line2: None,
|
|
document_type: None,
|
|
title_line1: None,
|
|
title_line2: None,
|
|
title_line3: None,
|
|
title_line4: None,
|
|
author_line1: None,
|
|
author_line2: None,
|
|
author_line3: None,
|
|
date: None,
|
|
prof: None,
|
|
code_section_title: None,
|
|
}
|
|
Multiple {
|
|
tokens: Tokens(
|
|
[
|
|
Paragraph {
|
|
is_newline: false,
|
|
space_before: false,
|
|
formatting: None,
|
|
content: "This is a test of ayano-generated stuff.",
|
|
},
|
|
Paragraph {
|
|
is_newline: true,
|
|
space_before: false,
|
|
formatting: None,
|
|
content: "This is supposed to be a generated figure:",
|
|
},
|
|
Ayano {
|
|
data: AyanoBlock {
|
|
ident: StaticDebug(
|
|
0,
|
|
),
|
|
display_state: NotDisplayed,
|
|
spaces_before: 0,
|
|
is_static: false,
|
|
code: "@fig: src=\"circle.png\", ident=\"circle\", caption=\"Some caption for a line drawing. This is parsed as a *regular document text*, so you may [@eq:line] and $f(x) = A \\cdot x^{1} + B \\cdot x^{0}$ here, for example\"",
|
|
insert_path: None,
|
|
},
|
|
},
|
|
Paragraph {
|
|
is_newline: true,
|
|
space_before: false,
|
|
formatting: None,
|
|
content: "Here's a table with specified width:",
|
|
},
|
|
Ayano {
|
|
data: AyanoBlock {
|
|
ident: StaticDebug(
|
|
0,
|
|
),
|
|
display_state: NotDisplayed,
|
|
spaces_before: 0,
|
|
is_static: false,
|
|
code: "width = 0.2\n@fig: src = \"graph.png\", width = width",
|
|
insert_path: None,
|
|
},
|
|
},
|
|
Paragraph {
|
|
is_newline: true,
|
|
space_before: false,
|
|
formatting: None,
|
|
content: "This is expected to be a generated table:",
|
|
},
|
|
Ayano {
|
|
data: AyanoBlock {
|
|
ident: StaticDebug(
|
|
0,
|
|
),
|
|
display_state: NotDisplayed,
|
|
spaces_before: 0,
|
|
is_static: false,
|
|
code: "data = [\n\t\t[\"x\", \"y\"],\n\t\t[1.0, 3.0],\n\t\t[3.0, 4.0],\n\t\t[-1.0, -5743234.0],\n]\n@gen_table: lambda r,c: data[r][c]; rows=4, columns=2, caption=\"Caption for a table 1, *because* why not\", ident=\"table1\"",
|
|
insert_path: None,
|
|
},
|
|
},
|
|
],
|
|
),
|
|
} |