html title

This commit is contained in:
2025-07-08 18:06:33 +02:00
parent 6c4616eb4c
commit 590f92f97e
7 changed files with 27 additions and 12 deletions

View File

@@ -4,9 +4,11 @@
#let small-font-size = if is-web { 14pt } else { 9pt } #let small-font-size = if is-web { 14pt } else { 9pt }
#let default-font-size = if is-web { 17pt } else { 10pt } #let default-font-size = if is-web { 17pt } else { 10pt }
#let core-page-style(content) = {context html-opt-elem("html", (:))[ #let core-page-style(html-head: [], content) = {context html-opt-elem("html", (:))[
#context if is-html() { #context if is-html() {
html.elem("head",[ html.elem("head",[
#html-head
#html.elem("meta", attrs:(charset:"utf-8")) #html.elem("meta", attrs:(charset:"utf-8"))
#html.elem("meta", attrs:(name:"viewport", content:"width=device-width, initial-scale=1")) #html.elem("meta", attrs:(name:"viewport", content:"width=device-width, initial-scale=1"))

View File

@@ -3,7 +3,8 @@
#import "../core-page-style.typ": * #import "../core-page-style.typ": *
#simple-page( #simple-page(
gen-table-of-contents: true gen-table-of-contents: true,
[The making of the favicon]
)[ )[
#section[ #section[

View File

@@ -3,7 +3,8 @@
#import "../core-page-style.typ": * #import "../core-page-style.typ": *
#simple-page( #simple-page(
gen-table-of-contents: true gen-table-of-contents: true,
[Introduction to RegEx]
)[ )[
#section[ #section[

View File

@@ -3,7 +3,8 @@
#import "../core-page-style.typ": * #import "../core-page-style.typ": *
#simple-page( #simple-page(
gen-table-of-contents: true gen-table-of-contents: true,
[Alexander Nutz - Approaches to Pattern Matching]
)[ )[
#section[ #section[
@@ -324,11 +325,12 @@
\ \
As a simple, *non realistic* example, let's imagine a CPU (core) that has one bit operations execution unit, As a simple, *non realistic* example, let's imagine a CPU (core) that has one bit operations execution unit,
and two ALU execution units: and two ALU execution units:
#context html-frame[``` #context html-frame(table(
+---------+-----+-----+ columns: 3,
| Bit Ops | ALU | ALU | inset: 7pt,
+---------+-----+-----+ [ Bit Ops ],
```] [ ALU ], [ ALU ],
))
This means that the CPU can execute two instructions in the ALU unit and one instruction in the bit ops unit at the same time. This means that the CPU can execute two instructions in the ALU unit and one instruction in the bit ops unit at the same time.
] ]
@@ -351,7 +353,7 @@
#section[ #section[
= Conclusion = Conclusion
One can see how pattern matching dialects are the best option by far. One can see how pattern matching dialects are the best option to approach pattern matching.
\ \
Someone wanted me to insert a takeaway here, but I won't. Someone wanted me to insert a takeaway here, but I won't.

View File

@@ -17,6 +17,7 @@
gen-table-of-contents: false, gen-table-of-contents: false,
gen-index-ref: false, gen-index-ref: false,
min-pdf-link: false, min-pdf-link: false,
[Alexander Nutz]
)[ )[
#br() #br()

View File

@@ -9,7 +9,8 @@
} }
#simple-page( #simple-page(
gen-table-of-contents: true gen-table-of-contents: true,
[etc-nand]
)[ )[

View File

@@ -17,9 +17,16 @@
gen-table-of-contents: true, gen-table-of-contents: true,
gen-index-ref: true, gen-index-ref: true,
min-pdf-link: true, min-pdf-link: true,
html-title,
content) = { content) = {
core-page-style[ let head = context if is-html() {
[
#html.elem("title", html-title)
]
} else {[]}
core-page-style(html-head: head)[
#if is-web { #if is-web {
let off = 3; let off = 3;