Fix Outline Styles when using Figure sources
This commit is contained in:
13
dhsn.typ
13
dhsn.typ
@@ -39,6 +39,8 @@
|
|||||||
counter(heading).update(0)
|
counter(heading).update(0)
|
||||||
set heading(numbering: none)
|
set heading(numbering: none)
|
||||||
context if query(selector(figure).after(here())).len() > 0 {
|
context if query(selector(figure).after(here())).len() > 0 {
|
||||||
|
show regex("[\n,;.]? *Quelle:.*"): none
|
||||||
|
show ref: none
|
||||||
{
|
{
|
||||||
show heading: none
|
show heading: none
|
||||||
heading(numbering: none)[Anhangverzeichnis]
|
heading(numbering: none)[Anhangverzeichnis]
|
||||||
@@ -95,6 +97,7 @@
|
|||||||
set par(justify: true, leading: 1.2em)
|
set par(justify: true, leading: 1.2em)
|
||||||
show heading: set block(below: 1.2em)
|
show heading: set block(below: 1.2em)
|
||||||
show figure: set par(leading: 0.8em)
|
show figure: set par(leading: 0.8em)
|
||||||
|
show figure.caption: set text(size: 10pt)
|
||||||
show table: set par(leading: 0.8em)
|
show table: set par(leading: 0.8em)
|
||||||
show raw: it => {
|
show raw: it => {
|
||||||
if (it.lines.first().count > 1) {
|
if (it.lines.first().count > 1) {
|
||||||
@@ -173,15 +176,16 @@
|
|||||||
pagebreak()
|
pagebreak()
|
||||||
|
|
||||||
context {
|
context {
|
||||||
|
show regex("[\n,;.]? *Quelle:.*"): none
|
||||||
|
show ref: none
|
||||||
if query(selector(figure.where(kind: image).before(<dhsn.addendum>))).len() > 0 {
|
if query(selector(figure.where(kind: image).before(<dhsn.addendum>))).len() > 0 {
|
||||||
{
|
{
|
||||||
show heading: none
|
show heading: none
|
||||||
heading(numbering: none)[Abbildungsverzeichnis]
|
heading(numbering: none)[Abbildungsverzeichnis]
|
||||||
}
|
}
|
||||||
|
|
||||||
outline(title: "Abbildungsverzeichnis", target: selector(figure.where(kind: image)).before(<dhsn.addendum>))
|
outline(title: "Abbildungsverzeichnis", target: selector(figure.where(kind: image)).before(<dhsn.addendum>))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
context {
|
|
||||||
if query(selector(figure.where(kind: table)).before(<dhsn.addendum>)).len() > 0 {
|
if query(selector(figure.where(kind: table)).before(<dhsn.addendum>)).len() > 0 {
|
||||||
{
|
{
|
||||||
show heading: none
|
show heading: none
|
||||||
@@ -189,11 +193,12 @@
|
|||||||
}
|
}
|
||||||
outline(title: "Tabellenverzeichnis", target: selector(figure.where(kind: table)).before(<dhsn.addendum>))
|
outline(title: "Tabellenverzeichnis", target: selector(figure.where(kind: table)).before(<dhsn.addendum>))
|
||||||
}
|
}
|
||||||
}
|
if (
|
||||||
context if (
|
|
||||||
query(selector(figure.where(kind: table).or(figure.where(kind: table))).before(<dhsn.addendum>)).len() > 0
|
query(selector(figure.where(kind: table).or(figure.where(kind: table))).before(<dhsn.addendum>)).len() > 0
|
||||||
) {
|
) {
|
||||||
pagebreak()
|
pagebreak()
|
||||||
|
counter(footnote).update(0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
context {
|
context {
|
||||||
|
|||||||
Reference in New Issue
Block a user