starting to take shape
This commit is contained in:
171
main.typ
171
main.typ
@@ -1,8 +1,6 @@
|
||||
#import "@preview/diatypst:0.7.0": *
|
||||
#import "importer/main.typ": *
|
||||
#import "@preview/physica:0.9.5": *
|
||||
#import "globals.typ": *
|
||||
|
||||
|
||||
// Patch the ETH logo to actually be white:
|
||||
#let logo = "assets/uzh-logo.svg"
|
||||
#let original = read(logo)
|
||||
#let changed = original.replace(
|
||||
@@ -26,122 +24,109 @@
|
||||
#let title-color = color.blue.darken(50%);
|
||||
#let bg-color = color.white;
|
||||
|
||||
#let padded_logos = logos.map(logo => box(height: 1.5em, inset: (x:0.3cm), logo))
|
||||
|
||||
|
||||
///// Front page /////
|
||||
#let notebook = json("../workdir/11_visualization/very_high_res_snapshot.ipynb")
|
||||
#let front_image = image_cell(notebook, cell_id: "very_high_res_slice")
|
||||
#let (height, space) = layouts.at(layout_size)
|
||||
#let width = ratio * height
|
||||
// #title-slide[
|
||||
|
||||
#set page(
|
||||
height: height,
|
||||
width: width,
|
||||
footer: none,
|
||||
header: none,
|
||||
margin: 0cm
|
||||
)
|
||||
// #let space = 2cm
|
||||
// #place[
|
||||
// #front_image,
|
||||
// ]
|
||||
// #place[
|
||||
// #box(
|
||||
// width: 100%,
|
||||
// height: 100%,
|
||||
// fill: color.black.transparentize(65%)
|
||||
// )
|
||||
// ]
|
||||
|
||||
#let space = 2cm
|
||||
#place[
|
||||
#set image(
|
||||
width: 105%,
|
||||
)
|
||||
#front_image,
|
||||
]
|
||||
#place[
|
||||
#box(
|
||||
width: 100%,
|
||||
height: 100%,
|
||||
fill: color.black.transparentize(65%)
|
||||
)
|
||||
]
|
||||
|
||||
#block(
|
||||
inset: (x:0.5*space, y:1em),
|
||||
width: 100%,
|
||||
height: 60%,
|
||||
align(bottom)[#text(2.0em, weight: "bold", fill: bg-color, title)],
|
||||
above: 0cm,
|
||||
below: 0cm,
|
||||
)
|
||||
// #block(
|
||||
// inset: (x:0.5*space, y:1em),
|
||||
// width: 100%,
|
||||
// height: 60%,
|
||||
// align(bottom)[#text(2.0em, weight: "bold", fill: bg-color, title)],
|
||||
// above: 0cm,
|
||||
// below: 0cm,
|
||||
// )
|
||||
|
||||
|
||||
#let padded_logos = logos.map(logo => box(height: 1.5em, inset: (x:0.3cm), logo))
|
||||
|
||||
|
||||
#block(
|
||||
height: 40%,
|
||||
width: 100%,
|
||||
fill: bg-color,
|
||||
inset: (x:0.5*space,top:1cm, bottom: 1em),
|
||||
above: 0cm,
|
||||
below: 0cm,
|
||||
if subtitle != none {[
|
||||
#text(1.4em, fill: title-color, weight: "bold", subtitle)
|
||||
]} +
|
||||
if subtitle != none and date != none { text(1.4em)[ \ ] } +
|
||||
if date != none {text(1.1em, date)} +
|
||||
align(
|
||||
bottom,
|
||||
stack(
|
||||
dir: ltr,
|
||||
authors.join(", ", last: " & "),
|
||||
h(1fr),
|
||||
..padded_logos,
|
||||
)
|
||||
)
|
||||
)
|
||||
// #block(
|
||||
// height: 40%,
|
||||
// width: 100%,
|
||||
// fill: bg-color,
|
||||
// inset: (x:0.5*space,top:1cm, bottom: 1em),
|
||||
// above: 0cm,
|
||||
// below: 0cm,
|
||||
// if subtitle != none {[
|
||||
// #text(1.4em, fill: title-color, weight: "bold", subtitle)
|
||||
// ]} +
|
||||
// if subtitle != none and date != none { text(1.4em)[ \ ] } +
|
||||
// if date != none {text(1.1em, date)} +
|
||||
// align(
|
||||
// bottom,
|
||||
// stack(
|
||||
// dir: ltr,
|
||||
// authors.join(", ", last: " & "),
|
||||
// h(1fr),
|
||||
// ..padded_logos,
|
||||
// )
|
||||
// )
|
||||
// )
|
||||
// ]
|
||||
// #slide[
|
||||
|
||||
// // #set page(
|
||||
// // footer: none,
|
||||
// // header: none,
|
||||
// // margin: 0cm
|
||||
// // )
|
||||
|
||||
|
||||
// ]
|
||||
|
||||
///// Main content /////
|
||||
|
||||
#show: slides.with(
|
||||
title: title,
|
||||
subtitle: subtitle,
|
||||
date: date,
|
||||
authors: authors,
|
||||
toc: false,
|
||||
layout: layout_size,
|
||||
ratio: ratio,
|
||||
title-color: title-color,
|
||||
bg-color: bg-color,
|
||||
footer-title: footer-title,
|
||||
count: "number"
|
||||
|
||||
|
||||
|
||||
|
||||
#show: lineal-theme.with(
|
||||
aspect-ratio: "16-9",
|
||||
// config-common(handout: true),
|
||||
config-info(
|
||||
title: [#title],
|
||||
subtitle: [#subtitle],
|
||||
author: [Author],
|
||||
date: datetime.today(),
|
||||
institution: [ETH Zürich, University of Zürich],
|
||||
// logo: brand.logo,
|
||||
),
|
||||
// footer-left: self => [..#padded_logos],
|
||||
)
|
||||
|
||||
|
||||
|
||||
#show footnote.entry: set text(size: 0.6em)
|
||||
#set footnote.entry(gap: 3pt)
|
||||
#set align(horizon)
|
||||
#set grid(
|
||||
columns: 2,
|
||||
gutter: 2em,
|
||||
)
|
||||
|
||||
|
||||
#title-slide()
|
||||
|
||||
#include "introduction.typ"
|
||||
|
||||
#include "halo_model.typ"
|
||||
#include "beorn.typ"
|
||||
#include "refinements.typ"
|
||||
|
||||
#include "implementation.typ"
|
||||
|
||||
#include "results.typ"
|
||||
#include "conclusion.typ"
|
||||
|
||||
|
||||
|
||||
#set heading(numbering: none, outlined: false)
|
||||
= Thank you for your attention
|
||||
= End
|
||||
== Thank you for your attention
|
||||
|
||||
#bibliography("references.bib")
|
||||
|
||||
// #context let last_page = counter(page).get()
|
||||
// #let last_page = counter("page").get()
|
||||
// #let last_page = 20
|
||||
// freeze the page counter here
|
||||
|
||||
#show: appendix
|
||||
#include("backup.typ")
|
||||
|
||||
// #counter(page).update(last_page)
|
||||
|
Reference in New Issue
Block a user