feat: rename CS template to formal template
This commit is contained in:
5 files changed
+17
-17
No files matched your search
@@ -61,7 +61,7 @@ Optional arguments:
|
|||||||
- `show-credits`: display the package credit (`false`)
|
- `show-credits`: display the package credit (`false`)
|
||||||
- `credits`: custom credit content
|
- `credits`: custom credit content
|
||||||
|
|
||||||
### `computer-science-template`
|
### `formal-template`
|
||||||
|
|
||||||
A denser layout with (German) submission and attestation dates, optional digit
|
A denser layout with (German) submission and attestation dates, optional digit
|
||||||
grouping, and decimal-comma formatting. Required arguments are `sheetnumber`,
|
grouping, and decimal-comma formatting. Required arguments are `sheetnumber`,
|
||||||
@@ -107,7 +107,7 @@ Optional arguments:
|
|||||||
- `qed`: right-aligned square; `jb`: justified line break
|
- `qed`: right-aligned square; `jb`: justified line break
|
||||||
- `smallcaps` and `upper`: tracked small-cap and uppercase helpers
|
- `smallcaps` and `upper`: tracked small-cap and uppercase helpers
|
||||||
|
|
||||||
See `examples/base.typ` and `examples/computer-science.typ` for complete source
|
See `examples/base.typ` and `examples/formal.typ` for complete source
|
||||||
examples.
|
examples.
|
||||||
|
|
||||||
## Fonts
|
## Fonts
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#import "@preview/clean-sheets:0.3.0": Cal, chevrons, computer-science-template, definition, exercise, korollar, lemma, qed
|
#import "@preview/clean-sheets:0.3.0": Cal, chevrons, formal-template, definition, exercise, korollar, lemma, qed
|
||||||
|
|
||||||
#show: body => computer-science-template(
|
#show: body => formal-template(
|
||||||
1,
|
1,
|
||||||
subtitle: [Vorlesung 1: Einführung in die Grundlagen],
|
subtitle: [Vorlesung 1: Einführung in die Grundlagen],
|
||||||
[Exemplarische Grundlagen I],
|
[Exemplarische Grundlagen I],
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
attestations-until: datetime(day: 8, month: 1, year: 2027, hour: 10, minute: 0, second: 0),
|
attestations-until: datetime(day: 8, month: 1, year: 2027, hour: 10, minute: 0, second: 0),
|
||||||
info-text: lorem(40),
|
info-text: lorem(40),
|
||||||
track-heading-counter: true,
|
track-heading-counter: true,
|
||||||
page-numbering: "Blatt I von I",
|
page-numbering: "I von I",
|
||||||
group-digits: true,
|
group-digits: true,
|
||||||
decimal-comma: true,
|
decimal-comma: true,
|
||||||
text-font: "Libertinus Serif",
|
text-font: "Libertinus Serif",
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#import "src/templates/base.typ": base-template
|
#import "src/templates/base.typ": base-template
|
||||||
#import "src/templates/computer-science.typ": computer-science-template
|
#import "src/templates/formal.typ": formal-template
|
||||||
|
|
||||||
#import "src/helpers.typ": Cal, Complement, chevrons, german-date-time, group-digits-text, jb, qed
|
#import "src/helpers.typ": Cal, Complement, chevrons, german-date-time, group-digits-text, jb, qed
|
||||||
#import "src/components/boxes.typ": axiom, corollary, definition, exercise, korollar, lemma, satz, theorem
|
#import "src/components/boxes.typ": axiom, corollary, definition, exercise, korollar, lemma, satz, theorem
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#import "../config.typ": custom-raw-syntaxes
|
#import "../config.typ": custom-raw-syntaxes
|
||||||
#import "../theme.typ": code-theme, common-theme, computer-science-theme, smallcaps
|
#import "../theme.typ": code-theme, common-theme, formal-theme, smallcaps
|
||||||
#import "../helpers.typ": german-date-time, group-digits-text, render-footnote-entry
|
#import "../helpers.typ": german-date-time, group-digits-text, render-footnote-entry
|
||||||
|
|
||||||
/// Computer science exercise sheet template.
|
/// Formal exercise sheet template.
|
||||||
#let computer-science-template(
|
#let formal-template(
|
||||||
sheetnumber,
|
sheetnumber,
|
||||||
subtitle: none,
|
subtitle: none,
|
||||||
course,
|
course,
|
||||||
@@ -21,25 +21,25 @@
|
|||||||
group-digits: false,
|
group-digits: false,
|
||||||
decimal-comma: true,
|
decimal-comma: true,
|
||||||
raw-syntaxes: custom-raw-syntaxes,
|
raw-syntaxes: custom-raw-syntaxes,
|
||||||
text-font: computer-science-theme.text-font,
|
text-font: formal-theme.text-font,
|
||||||
math-font: computer-science-theme.math-font,
|
math-font: formal-theme.math-font,
|
||||||
table-header-smallcaps: false,
|
table-header-smallcaps: false,
|
||||||
no-pagebreak: false,
|
no-pagebreak: false,
|
||||||
body,
|
body,
|
||||||
) = {
|
) = {
|
||||||
let font-size = computer-science-theme.font-size
|
let font-size = formal-theme.font-size
|
||||||
|
|
||||||
set page(
|
set page(
|
||||||
header: context {
|
header: context {
|
||||||
if counter(page).get().first() > 1 [
|
if counter(page).get().first() > 1 [
|
||||||
#set text(computer-science-theme.header-size)
|
#set text(formal-theme.header-size)
|
||||||
#grid(
|
#grid(
|
||||||
columns: (3fr, 2fr, 3fr),
|
columns: (3fr, 2fr, 3fr),
|
||||||
align(start)[_#course _],
|
align(start)[_#course _],
|
||||||
align(center)[*Übungsblatt #sheetnumber*],
|
align(center)[*Übungsblatt #sheetnumber*],
|
||||||
align(end)[#students.map(((name, matrNr)) => name).join(", ")],
|
align(end)[#students.map(((name, matrNr)) => name).join(", ")],
|
||||||
)
|
)
|
||||||
#line(length: 100%, stroke: 0.4pt + computer-science-theme.divider)
|
#line(length: 100%, stroke: 0.4pt + formal-theme.divider)
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
numbering: page-numbering,
|
numbering: page-numbering,
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
size: font-size - code-theme.size-offset,
|
size: font-size - code-theme.size-offset,
|
||||||
)
|
)
|
||||||
|
|
||||||
show raw.where(block: true): box.with(..computer-science-theme.raw-block)
|
show raw.where(block: true): box.with(..formal-theme.raw-block)
|
||||||
show raw.where(block: false): box.with(..code-theme.inline)
|
show raw.where(block: false): box.with(..code-theme.inline)
|
||||||
|
|
||||||
show figure.where(kind: table): set block(breakable: true)
|
show figure.where(kind: table): set block(breakable: true)
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
#v(0.2cm)
|
#v(0.2cm)
|
||||||
#line(length: 100%, stroke: 0.4pt + computer-science-theme.divider)
|
#line(length: 100%, stroke: 0.4pt + formal-theme.divider)
|
||||||
#v(0.3cm)
|
#v(0.3cm)
|
||||||
|
|
||||||
#align(center)[
|
#align(center)[
|
||||||
+1
-1
@@ -91,7 +91,7 @@
|
|||||||
raw-block: code-theme.block,
|
raw-block: code-theme.block,
|
||||||
)
|
)
|
||||||
|
|
||||||
#let computer-science-theme = (
|
#let formal-theme = (
|
||||||
font-size: 10.5pt,
|
font-size: 10.5pt,
|
||||||
text-font: fonts.cmu,
|
text-font: fonts.cmu,
|
||||||
math-font: fonts.cmu-math,
|
math-font: fonts.cmu-math,
|
||||||
|
|||||||
Reference in new issue
Block a user