changed: rotation of draft watermark set to -22.5°
This commit is contained in:
parent
9c71251771
commit
04705b2003
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
#let watermark-color = luma(50%).transparentize(70%)
|
#let watermark-color = luma(50%).transparentize(70%)
|
||||||
|
|
||||||
#let watermark() = rotate(-45deg,
|
#let watermark() = rotate(-22.5deg,
|
||||||
rect(radius: 1em, inset: 1em, stroke: watermark-color, {
|
rect(radius: 1em, inset: 1em, stroke: watermark-color, {
|
||||||
text(size: 48pt, weight: "bold", fill: watermark-color, "DRAFT")
|
text(size: 48pt, weight: "bold", fill: watermark-color, "DRAFT")
|
||||||
linebreak()
|
linebreak()
|
||||||
|
@ -27,12 +27,6 @@
|
||||||
let thesis = config.thesis
|
let thesis = config.thesis
|
||||||
let style = config.style
|
let style = config.style
|
||||||
|
|
||||||
// set page geometry
|
|
||||||
// and paper format
|
|
||||||
set page(
|
|
||||||
paper: style.page.format,
|
|
||||||
margin: style.page.margin)
|
|
||||||
|
|
||||||
set text(
|
set text(
|
||||||
size: style.text.size,
|
size: style.text.size,
|
||||||
ligatures: true,
|
ligatures: true,
|
||||||
|
@ -68,6 +62,7 @@
|
||||||
|
|
||||||
set heading(numbering: none)
|
set heading(numbering: none)
|
||||||
set page(
|
set page(
|
||||||
|
paper: style.page.format,
|
||||||
foreground: if config.draft {
|
foreground: if config.draft {
|
||||||
watermark()
|
watermark()
|
||||||
},
|
},
|
||||||
|
@ -75,7 +70,9 @@
|
||||||
footer-descent: 1em,
|
footer-descent: 1em,
|
||||||
margin: (
|
margin: (
|
||||||
top: style.page.margin.top + style.header.logo-height + style.header.underline-top-padding + style.header.bottom-padding,
|
top: style.page.margin.top + style.header.logo-height + style.header.underline-top-padding + style.header.bottom-padding,
|
||||||
bottom: style.page.margin.bottom + 1em),
|
bottom: style.page.margin.bottom + 1em,
|
||||||
|
left: style.page.margin.left,
|
||||||
|
right: style.page.margin.right),
|
||||||
numbering: (..nums) => {
|
numbering: (..nums) => {
|
||||||
let current-page = here().page()
|
let current-page = here().page()
|
||||||
if current-page == 1{
|
if current-page == 1{
|
||||||
|
|
Loading…
Reference in New Issue