Closed KronosTheLate closed 5 months ago
You can use #set text(1.1em)
to add to the global settings as normal, just put it after #show: init
.
It's not usually necessary, but if you really want to change the setting parameters of #slide
globally, you can
#let slide = slide.with(setting: body => {
set text(1.1em)
body
})
It turns out that #set text(1.2em)
has to be placed after #show: init
, AND before #show: slides
. Before the formed had no effect, and after the latter ended up making my = Section One
show up as a normal heading inside the slide content.
Code used for testing:
Given that there are ways for this to go wrong, and that I managed to misread this section to mean that I had to get fancy to change the style, I think there is some reason to add a short section on how this is done properly, and just briefly mention what will not work.
Yes, you're right, I'll add a more detailed document.
Awesome! Thanks for taking my feedback seriously ^_^
The 0.3.1 released, close the issue by https://touying-typ.github.io/touying/docs/global-settings
I am interested in changing the fontsize globally. I figured our how to do this, relying on the "simple" coding style with
#slides
:I am however not sure if this is the best way. I am also uncertain about how to do with if I was using
#slides
instead, as I get the error "only element functions can be used in set rules" when I do the following:A section in the docs on "How to change global settings" or something to that effect would be great ^_^