Page_layout_problem::read_spacing_spec (spacing_spec,
&system_system_space_,
- ly_symbol2scm ("space"));
+ ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (page_breaking_spacing_spec,
&system_system_space_,
- ly_symbol2scm ("space"));
+ ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (title_spec,
&system_markup_space_,
- ly_symbol2scm ("space"));
+ ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (spacing_spec,
&system_system_padding_,
title_min_distance_ = 0;
space_ = 0;
title_space_ = 0;
- Page_layout_problem::read_spacing_spec (spec, &space_, ly_symbol2scm ("space"));
- Page_layout_problem::read_spacing_spec (title_spec, &title_space_, ly_symbol2scm ("space"));
+ Page_layout_problem::read_spacing_spec (spec, &space_, ly_symbol2scm ("basic-distance"));
+ Page_layout_problem::read_spacing_spec (title_spec, &title_space_, ly_symbol2scm ("basic-distance"));
Page_layout_problem::read_spacing_spec (spec, &padding_, ly_symbol2scm ("padding"));
Page_layout_problem::read_spacing_spec (title_spec, &title_padding_, ly_symbol2scm ("padding"));
Page_layout_problem::read_spacing_spec (spec, &min_distance_, ly_symbol2scm ("minimum-distance"));
return tallness_;
}
+Real
+Line_details::spring_length (Line_details const &next_line) const
+{
+ // space_ measures the spring which goes from the bottom refpoint
+ // of this to the top refpoint of next_line. We want to return
+ // the stretchable space between the bottom of this's extent to
+ // the top of next_line's extent.
+ Real refpoint_dist = tallness_ + refpoint_extent_[DOWN] - next_line.refpoint_extent_[UP];
+ Real space = next_line.title_ ? title_space_ : space_;
+ return max (0.0, space - refpoint_dist);
+}
+
Line_shape::Line_shape (Interval begin, Interval rest)
{
begin_ = begin;