Skip to content

Commit

Permalink
Transition to kebab case
Browse files Browse the repository at this point in the history
  • Loading branch information
lvignoli committed May 17, 2023
1 parent 98e720d commit 00397f2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Binary file modified long_example.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions long_example.typ
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
title: "Elucidation of the mechanical energy",
author: "Émilie du Châtelet",
date: "1759-04-19",
// display_lastpage: false,
// short_title: "The mechanical energy",
// display-lastpage: false,
// short-title: "The mechanical energy",
)

= Introduction
Expand Down Expand Up @@ -56,7 +56,7 @@ Top text

Bottom text

#transition(accent_color: navy)[We are about to conclude]
#transition(accent-color: navy)[We are about to conclude]

= Conclusion

Expand Down
16 changes: 8 additions & 8 deletions template.typ
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

#let transition(
// The slide accent color. Default is a vibrant yellow.
accent_color: rgb("f3bc54"),
accent-color: rgb("f3bc54"),

// The slide content.
body,
) = {
page(
width: 15cm,
height: 10cm,
background: rect(width: 100%, height: 100%, fill: accent_color),
background: rect(width: 100%, height: 100%, fill: accent-color),
header: none,
footer: none,
)[
Expand All @@ -31,10 +31,10 @@
date: none,

// If true, display the total number of slide of the presentation.
display_lastpage: true,
display-lastpage: true,

// If set, this will be displayed on top of each slide.
short_title: none,
short-title: none,

// The presentation's content.
body
Expand All @@ -47,17 +47,17 @@
set page(
width: 15cm,
height: 10cm,
header: if short_title != none {
header: if short-title != none {
set align(right)
set text(size: scriptsize)
short_title
short-title
},
footer: [
#let lastpage_number = locate(pos => counter(page).final(pos).at(0))
#let lastpage-number = locate(pos => counter(page).final(pos).at(0))
#set align(right)
#text(size: scriptsize)[
*#counter(page).display("1")*
#if (display_lastpage) [\/ #lastpage_number]
#if (display-lastpage) [\/ #lastpage-number]
]
],
)
Expand Down

0 comments on commit 00397f2

Please sign in to comment.