Skip to content

Commit

Permalink
fix(templates): Disable TOC functions in unwritable directories
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jan 1, 2021
1 parent 295d21b commit 541a63f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions binding.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<sile class="cabook" crop="false" background="false">
<script>
SILE.require(CASILE.include)
SILE.documentState.documentClass.writeToc = function () end
SILE.registerCommand("meta:surum", function()
SILE.typesetter:typeset(versioninfo)
end)
Expand Down
1 change: 1 addition & 0 deletions cover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<sile class="cabook" crop="false" background="false">
<script>
SILE.require(CASILE.include)
SILE.documentState.documentClass.writeToc = function () end
SILE.registerCommand("meta:surum", function()
SILE.typesetter:typeset(versioninfo)
end)
Expand Down
1 change: 1 addition & 0 deletions geometry.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<define command="output-right-running-head"></define>
<script>
SILE.require("layouts/" .. papersize, CASILE.casiledir)
SILE.documentState.documentClass.writeToc = function () end
SILE.typesetter:typeset(".")
</script>
</sile>

0 comments on commit 541a63f

Please sign in to comment.