Hang plainnat bibliography continuation lines
This commit is contained in:
1 parent
2fca019237
commit
71bd01c82c
4 files changed
+22
-7
No files matched your search
@@ -2869,10 +2869,11 @@ pub(super) fn build_positioned_pages(
|
||||
numbered.extend(runs.clone());
|
||||
numbered
|
||||
};
|
||||
for line in measure_positioned_lines(
|
||||
let hanging_indent_mm = 7.0;
|
||||
let entry_lines = measure_positioned_lines(
|
||||
&numbered,
|
||||
10,
|
||||
content_width_mm,
|
||||
(content_width_mm - hanging_indent_mm).max(10.0),
|
||||
metrics,
|
||||
font_cache,
|
||||
cjk_family,
|
||||
@@ -2881,7 +2882,8 @@ pub(super) fn build_positioned_pages(
|
||||
math_metrics,
|
||||
math_layout,
|
||||
cache,
|
||||
) {
|
||||
);
|
||||
for (entry_line_index, line) in entry_lines.into_iter().enumerate() {
|
||||
let anchor = PageAnchor {
|
||||
block: block_index,
|
||||
line: line_index,
|
||||
@@ -2907,7 +2909,11 @@ pub(super) fn build_positioned_pages(
|
||||
anchor,
|
||||
content: line.content,
|
||||
y: cursor,
|
||||
x: 0,
|
||||
x: if entry_line_index == 0 {
|
||||
0
|
||||
} else {
|
||||
millimeters_to_scaled(hanging_indent_mm)
|
||||
},
|
||||
centered: false,
|
||||
ragged: false,
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user