Add footnote insertion area and thanks
This commit is contained in:
1 parent
5fa301fdcd
commit
1da46c61d6
11 files changed
+486
-28
No files matched your search
@@ -55,6 +55,12 @@ impl Default for PageSize {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Footnote {
|
||||
pub number: u32,
|
||||
pub runs: Vec<Run>,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct DocumentModel {
|
||||
pub title: String,
|
||||
@@ -68,6 +74,7 @@ pub struct DocumentModel {
|
||||
pub block_sources: Vec<Option<SourceLocation>>,
|
||||
pub labels: HashMap<String, String>,
|
||||
pub citations: HashMap<String, usize>,
|
||||
pub footnotes: Vec<Footnote>,
|
||||
}
|
||||
|
||||
impl Default for DocumentModel {
|
||||
@@ -85,6 +92,7 @@ impl Default for DocumentModel {
|
||||
block_sources: Vec::new(),
|
||||
labels: HashMap::new(),
|
||||
citations: HashMap::new(),
|
||||
footnotes: Vec::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -233,6 +241,7 @@ pub struct Run {
|
||||
pub rule: Option<RuleBox>,
|
||||
pub box_run: Option<InlineBox>,
|
||||
pub y_offset: Option<common::Scaled>,
|
||||
pub footnote_number: Option<u32>,
|
||||
pub unresolved_reference: Option<UnresolvedReference>,
|
||||
pub bold: bool,
|
||||
pub italic: bool,
|
||||
@@ -254,6 +263,7 @@ impl Run {
|
||||
rule: None,
|
||||
box_run: None,
|
||||
y_offset: None,
|
||||
footnote_number: None,
|
||||
unresolved_reference: None,
|
||||
bold: false,
|
||||
italic: false,
|
||||
|
||||
Reference in new issue
Block a user