Skip to content

Commit

Permalink
style(manual): Tweak rskip and indentation in note callouts
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Aug 19, 2023
1 parent fd6d527 commit 7b7fc75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/autodoc/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ function package:registerCommands ()
local innerindent = SILE.measurement("1em"):absolute()
SILE.settings:temporarily(function ()
SILE.settings:set("document.lskip", leftindent)
SILE.settings:set("document.rskip", SILE.nodefactory.glue())
SILE.settings:set("document.rskip", leftindent)

SILE.call("noindent")
colorWrapper("note", function ()
Expand All @@ -383,10 +383,11 @@ function package:registerCommands ()
SILE.call("hrule", { width = 3 * linedimen, height = linethickness })
SILE.call("hrule", { width = linethickness, height = linethickness, depth = linedimen })

SILE.call("noindent")
SILE.call("novbreak")
SILE.settings:temporarily(function ()
SILE.settings:set("document.lskip", SILE.nodefactory.glue(leftindent + innerindent))
SILE.settings:set("document.rskip", SILE.nodefactory.glue(innerindent))
SILE.settings:set("document.rskip", SILE.nodefactory.glue(leftindent + innerindent))
SILE.call("font", { size = "0.95em", style = "italic "}, content)
SILE.call("novbreak")
end)
Expand Down

0 comments on commit 7b7fc75

Please sign in to comment.