@ -915,12 +915,13 @@ See Style tweaks → Miscellaneous → Alternative ToC hints.]]),
-- might be useful to have the footer and SkimTo progress bar less crowded.
-- This also affects the footer current chapter title, but leave the ToC itself unchanged.
localgenTocLevelIgnoreMenuItem=function(level)
ifnotself.ticksornotself.ticks[level]then
localticks=self:getTocTicks()
ifnotticks[level]then
return
end
return{
text_func=function()
returnT(_("%1 entries at ToC depth %2"),#self.ticks[level],level)
returnT(_("%1 entries at ToC depth %2"),#ticks[level],level)
end,
checked_func=function()
returnnotself.toc_ticks_ignored_levels[level]
@ -936,18 +937,18 @@ See Style tweaks → Miscellaneous → Alternative ToC hints.]]),
menu_items.toc_ticks_level_ignore={
text_func=function()
localnb_ticks=0
ifself.ticksthen
forlevel=1,#self.ticksdo
ifnotself.toc_ticks_ignored_levels[level]then
nb_ticks=nb_ticks+#self.ticks[level]
end
localticks=self:getTocTicks()
forlevel=1,#ticksdo
ifnotself.toc_ticks_ignored_levels[level]then
nb_ticks=nb_ticks+#ticks[level]
end
end
returnT(_("Progress bars: %1 ticks"),nb_ticks)
end,
help_text=_([[The progress bars in the footer and the skim dialog can become cramped when the table of contents is complex. This allows you to restrict the number of tick marks.]]),