Transcript#
This transcript was generated automatically and may contain errors.
Welcome back to the Data Science Lab, everybody. My name is Libby. I do community stuff here at Posit and I am joined by my co-host, the Discord link maven, Isabella Velazquez. Isabella, would you like to say hello? Yes. Hi, everyone. Thanks so much for joining. Yeah, like Libby said, I'll be posting links on Discord and on Zoom. I also wanted to shout out, Libby does this amazing job of aggregating all the links after every single episode and when they're published on YouTube, they're linked in the description. So if you are ever re-watching an episode and you're like, what link is that? Just make sure to expand that and you'll see the lengthy, lengthy lists of links.
So lengthy. So lengthy that I hit the limit on YouTube almost every time for like the length that your description can be because our group here in Zoom does such a good job with sharing resources. Today, as we are going through, you're going to see lots of resources get posted as links. Please do so yourself if you have stuff to share or interesting stuff.
So if you've never been to the Data Science Lab, we are screen sharing, technical topics, relaxed discussion, we hang out, absolutely casual. We chat on Discord and the point of the Data Science Lab is for everybody to learn something together and for us to all be able to ask questions. So please ask your questions in Discord. You will see Isabella or I or anybody else, if you see someone who asked a question, put a golf flag emoji on their question. That just means a question letting me know so I can make sure I can try to ask it.
If we don't get to your question or maybe it passed by and it didn't have a golf flag on it, feel free to just bump it, like send it again. Say hey, I think my question got missed and we'll try to get to it. If you know the answer to somebody's question and you're in the chat, answer it. Just hit reply on Discord. There is a little, if you hover over a question, you'll see like a left arrow that says reply. Reply to their question and answer it and we would absolutely be grateful for you to do that.
I am so excited to welcome back our current reigning champion for most guest appearances as a lab manager on the Data Science Lab, Emil Hvitfeldt. He is here to talk about Quarto slides once again. Reminder, Emil is on the tidy models team, the tidy team. He is not even like, this isn't even his full-time job to do Quarto stuff, and yet he is so prolific in this area. And today he's going to be talking to us about Quarto themes. Several themes to share. I'm really excited about it. This is a huge topic. We can't get through the nitty-gritty of all of it in one hour, but we are going to attempt to get through, you know, how can we learn the basics of building a theme in Quarto for Revealjs slides.
And then also if you want to use Emil's that are pre-made and ready, how do you do that? So Emil, I'm so excited to announce your lab managership and reigning championship. Would you like to introduce yourself briefly and go ahead and share your screen and get started?
Yes. Thank you so much. It's always a pleasure being here with all of you. Yeah, so I am like technically on the tidy models team. That's where I spend the most of my time, trying to make modeling as easy and painless as possible for the R user. But I also dabble a little bit in these like non-crucial parts, which is like Quarto for me. So I will get started.
The NES Revealjs theme
So a lot of this, like this invite started with Libby finding my NES theme. Oh, Isabella sent that to me. Isabella was like, open me up to the world of Emil's themes. And I was like, there's an NES theme. I was immediately in love.
So then this is just a Quarto theme. And this is actually done a little bit weird, but it is fine. So it's done as a different type of Revealjs theme. So this is totally a NES Revealjs theme. So it's a new format, but you should also have done, this is one of my early ones, but essentially you use it and you just put format NES Revealjs, and it overloads a lot of the CSS and adds a lot of little things. So essentially you just did this NES CSS styling, which is a thing that someone made online and I adapted to the Revealjs idea. So we have the fonts and the sizing that's like this fun, like pixelated feel.
And I added a little bit more stylings, like we had code chunks feel right, at least in this NES-y fun idea. And if you spend just a little bit of time, you can extend this theme to stuff like ggplots, as long as you just put in the same font as the general theme. So you're getting this very nice, cohesive idea, as long as you pull in this font as well and match the colors of the theme. So we're doing that and now even let our plots match.
I've also added a bunch of these custom CSS classes. So if you need to have the colors match throughout the whole thing, you just use these .blue, .green, .yellow classes around here, put on a span, and then it uses the colors that are specified by the theme. So you don't have to manually put them. And we have some social media icons that are also hoarded in if you tell about those, as well as just some general fun icons that also fit the theme, right? And you just add these with these, like this, like syntax on the left.
And these all live in an SCSS file, maybe? Yeah. So this is all, as far as I know, this is all just like, I think there's two. Yeah. So there's technically two files that are being bundled in. So the first one sets the fonts, sets sizes, so we needed to update the sizes to make everything fit. You almost always need to update the sizes when you're changing the font of something because a 10 pixel reads differently depending on what font you're using. So sometimes when you're switching font, you need to update the sizing as well. There's this really handy presentation font size route that when you modify that one, then everything else modifies according to it, which is really nice.
But then, yeah, it's just a bunch of setting the rest of the theme accordingly. And a lot of this isn't really, like we didn't really actually change that much. We changed the font colors and the sizes, and we added our classes. But then a lot of it really is just, a lot of the work is really being done to like the borders around our output. And a lot of work was put into this like black throat to make it look nice. So that before here is not after he has done to make that little speech bubble effect, which is like that's just an extra flag that doesn't really add much, but the file actually is much smaller than you think. We're actually not doing that much.
Audience questions: header colors and icons
Okay. So we have a couple of things to make sure that we can answer for people, but I think we're going to get to them. So Shelby and Notebeko had asked a couple of questions about adding icons and also getting different header levels in your QMD file. The QMD file, we can do that really quickly. So Shelby asked, how do you get the different header levels in your QMD file, not on the slides, to be color coordinated so that all the H1 headings are red and all the H2 headings are orange, et cetera. So this is actually just color formatting as a setting in Positron, I think. Right? Oh, like in this file? Yes. Yes.
Yeah. So that is, oh, a little rain. Oh, no. Somewhere in my settings, I have that. Hmm. Is it maybe a bracket pair colorization? Good question. We might need to- We might need to pin this question, Shelby, and get back to it. Because I think that I know where it is too, but I'm going to have to go look for it. Or I might have to ask Isabel Zimmerman, who knows all about this. But we will figure it out.
I'm pretty sure I wrote it up on my blog. I had a blog post earlier this year about my Positron setup. Yeah. Oh, Isabella just found it. Okay. Yay. Yes. And then if you search for, well, I think it's the very second setting that you mentioned about the bracket pair colorization. Great question, Shelby.
I know that it wasn't about the slides, but it's still, it's so helpful to have color pairing and color coordinating in your Quarto source code files. And then Notebeko had asked about adding SVG icons. I think that Emil's going to get to this one. So we will hold on and wait.
Anatomy of a Quarto Revealjs SCSS theme
So what Emil is showing us is the guts of his NES theme. And a lot of this is in a .scss file. That stands for sassy CSS. And CSS stands for cascading style sheet. It's the way that you add styling, which is all of the colors, the fonts, and all of that stuff to a Quarto document or Quarto slides. If you've never used a .scss file before, you access it in your theme in the YAML. So if Emil goes over to his template.qmd and he looks at his- So this one is a little different. It might be more complicated than this one. Oh, I can show it real easy in this one.
So this is my Quarto Revealjs template that I use whenever I do a new thing. And when you're setting a format Revealjs and your other settings, in that you can add a theme, which can be a list of things. And then I put styles.css, and then this is just a default one. And the main thing- I'm not sure if we're seeing what you're showing though, because I'm still seeing the just nes.scss file. Is anybody else seeing anything differently?
Yeah, maybe. Oh, interesting. Might need to reshare. So I've been using... So if you look at the very top of the screen, I'm using this VS Code feature called native tabs. So when I have multiple Positron sessions open, I can just like go between them. And somehow when I was sharing, it's by tab. Oh, okay. So you switch tabs.
So here I'm in my Revealjs template that I use. And when you set format Revealjs and all your other settings among those, you have the theme, and it can be a list of things. So then it just appends all of the themes together, and then it's normal CSS rules with like last one wins. And in that, that's where you put everything in.
Okay. So this is what I wanted to show is just the very basics of this. In his YAML, his front matter, he has got that linked as his style, that dot CSS file or dot CSS file. And then inside of that, he has these CSS chunks that define certain variables that represent colors or fonts or sizes or typefaces like bold or italic and stuff like that. All of that stuff can go in to CSS files, and then it is automatically applied by class. So just basic stuff here. Like if he defines H1s look like this, then all of his H1s that he puts into Quarto will look the way that he styles them. It's super, super fun to customize all of this stuff. It just takes a little time to get used to using CSS. The cloud is actually very helpful CSS.
Oh, no. Let's do one that's easy. Dark green. Nice. That didn't show up, so then it might be... Oh, no.
We can change. And now all the H1 look with this dark green. And this is partly why we're using a CSS plus it, at least in my opinion, adds nicer variable controls. So I have specified some color names up here, like theme, dark green. And I can specify once and then use it everywhere. But you can also do a little bit of math. So I could technically say dark green, like 20% maybe. And 20% here turned out to be a lot. But you can do a little bit of math as well. And here you have the presentation font size root. I have set the H1 font size to 2.5 EM, but I could also set it to be four times the font size root.
So then now the header one is too bad for this design. Just slightly. But then if I change the font size, but the font size root, then here our H1 is dynamically changing with it. And a lot of this is happening with the default SCSS theme that Tom built with Quarto. And if we're using the same techniques, we can tell a lot of these things free, which is very nice.
This is so cool. Okay. So the NES theme is amazing. It's my favorite. I'm a retro gamer and I love it so much. But there are a couple others that Emil has made that can kind of showcase the cool stuff. So I'm going to let Emil take it away and I'll stop talking. So here's another one that's kind of fun. And this one doesn't really show.
So on the left-hand side, you will notice that the total looks like how we would expect, other than the fact that it's duplicated a lot to show different things. And the only thing I'm really doing on my QMD file is adding these dot theme, slash, and then a name. So here I have title one, title two, section one, two, and then just slide one, two, three. So my idea of this style of theme is that you don't really write any styling code in your QMD file. All of that happens in your SCSS files. And then the hope is that you write the theme once and then you just apply it over and over. And it's really fast to do.
All of that happens in your SCSS files. And then the hope is that you write the theme once and then you just apply it over and over. And it's really fast to do.
And this one does a little bit more than you might need. So this has, it changes the fonts and colors and everything, but I'm also adding background images. And that's what the different theme ideas are. So then here we have theme section one, and we're adding text. So everything works how you would expect, but depending on what theme you're setting, the background images change because that's a fun little aesthetic change of having something fun in the background that doesn't interfere with everything. But we know how to do little extra things. So here we have in the theme section one, since we have that little earth on the right that spins, I've also made it so the toad and text doesn't go as wide. So it wraps earlier than you would expect, like normally. I think you can kind of see it here, like the word finished right here is further, actually it might be the same, but it's like, or here's maybe a better example. So since we have the earth on the left-hand side, we need to move all the text a little bit to the right, but you don't do it when you're writing the slides because this slide theme just knows where everything is and just moves it around depending on all of it.
And it might feel like a lot of effort to do it, but other than sourcing all the SVGs that you need or like file, the SVG is here because I needed the earth to rotate and you can do that as an SVG. But the theme, I would say, isn't that bad. So then we are setting our colors in the beginning and then we're updating all the things we need. So here we are changing the background color, the leg color, the toad colors, the bodies, the headings, setting the fonts, and then changing some sizes. So that's all of that. I'm unsetting, I'm removing the background colors and the background borders for the toad shots because otherwise then...I don't remember why. It's probably because it comes with a white background and if you put it, that's different than my white that I set because this is slightly off white. And if you don't unset it, then you see a white on white and it doesn't look that nice. And depending on what background color you have, I could also set it to the same background color, but just unsetting it in a way is the same.
Building multiple slide themes with SCSS
But then what makes all of these different themes really is just this idea right here, where I'm saying ThemeTitle1 and then ThemeTitle2. So it's just copy pasted over and over one for each and with any that isn't actually that much. So what I'm doing is I'm setting the h2. So h2 is the normal header you see. So I'm setting that one, I'm just changing the size and I'm centering it. The h3, which is like the subtitle here, I'm saying it's a blue, so it's always blue. And then I'm doing this a little bit more like...it's a little fiddly syntax to set the background because you can't set in Revealjs. There's technically like two things that count as a background. So you both have the background of the screen itself, which is like your window, which is why you see everything moves accordingly to my aspect ratio. But the other background is the background of the rectangle where all my content is.
And if you just try to say it naively, you get both. So then you have two images that shift out of sync with each other. So this is how you do that. And then there's this weird thing where to make the...once you render your slides, you compile the CSS into CSS, and then it goes into this lib, like template files, which is my jubilee files for template, libs, Revealjs, dist, theme. And then I think it's this one that has like technically a CSS. So to make this file right here understand where my assets folder is, I found that it's like five of these. But once you know this, it's fairly easy. And that's an issue, but it's kind of hard to know where all of this is. So this is a little bit of a pain.
It's a little bit of a pain. I feel like this is a Quarto thing a little bit. But once you figure it out, the double dot notation to designate going up a folder level, you can get there. Yeah. And you just need to know it once, right? And this is written...there's a chapter in my book about slide drafting as well that has this specific example where if you want an image in your thing...but then each theme is the same, right? Here, like this one, like title one and two is the same other than the image. And then for the ones where it matters, oh, this section one, I needed to move some stuff around a little bit. I changed the width and margins a little bit to size it up. So it isn't...
Once you know what you want and what you need to do, actually setting this up isn't that long if you have Claude as well, even faster, because this is very tedious. Because you're just copy pasting over, going through them one at a time saying, I want a different size, I want a different color. But once you're done, writing your slides takes no time. But all the configuration is really easily done.
Sharing and reusing Quarto themes
Yes. And time check, we're at half the way mark. And also, if you create this, you can share it with other people and they can use it too. And you can reuse it later. Like you could use any of Emil's if you wanted to.
Yeah. So I just posted everything is on GitHub somewhere. And it's actually quite easy. I will actually just show how to do it now, just the task, right? So in the readme, it says how we do it. But if we go to the terminal, a clean terminal, and I'm just going to jump over to the desktop. Oh, no. So it's just Quarto use template, and then the repo of your theme. In an organization, this can also be a file path, right? So it doesn't have to be a GitHub repo. This can be a file path to wherever you have or like any website. So if you have this folder somewhere inside whatever corporate firewall, you just post that link there, and Quarto will understand it. So you don't have to have everything public.
So if you put this in, say yes, then first thing, do you trust it? Yes. Do you want to create a subdirectory? Yes. And then like F2. Because Quarto use template is really just a very fancy copy-paste. So it makes a zip, downloads it, unzips it, and then... Oh, it didn't open it for me. So let's open folder, desktop, add it. Oh, F2.
So then it copied over everything I needed. Oh, it will not. Oh, no. Uh-oh, what's wrong? I mean, in a...
We're lighting more candles as we speak for this live coding peril. Yeah. So somehow my 4.6.0 R version is messed up and it just defaults to it somehow. So turning off the Toad, now we have the theme as well and we can just do whatever we want. So the Quarto use template name copies over everything we need. So here it has like a file, it portals over the assets, and it has everything we need and we can put everything else in it. And you can technically specify when you're making the theme. There's this portal ignore file where you can put stuff in your viewport, but not everything is being copied over. So there's some rules about what's being copied over, which is basically everything except things with periods in front, because they're private. So it doesn't copy over the .vstoad folder or the .digitnull and all of that. And you also copy over your .dig folder and all of that, but you can even remove even more things to be copied over.
So then let's try to make our own theme and let's do it in the same way. So I want to use my... Okay. So we are on a totally new project and we're creating just like a simple theme? Yeah. Yeah. Okay.
But I'm quickly making a new one. Yes, yes. So we're using Quarto's template. Which somehow... And this is a template for making our own theme, right? This is the starter template I use for all of my slides, just because it sets up the things I normally write, but it already has the styles file. It has the width and height the way I like it. I don't really care for the total line numbers, the outputs, I turn it off. And it also has this... If you ever need JavaScript in your slides, which we don't need today, I can never remember where to put it. It's like include after body, but I never remember. So it's just part of this. So this is now we have... This is a very basic... Oh, same issue.
Uh-oh. Darn our installation. Yeah.
All right. So now we have just a very basic... There's no theming at all. This is some extra things that we don't need right now.
All right. So here, really, then how you actually make the theme is we do the thing where we specify our colors and then we use them in different ways. So one of the things we can do is we can say link color and then...
Right now, all the link colors are blue, but we might not want that. We might want a nice, light magenta. Love that. Love that you can just change that right there. Yeah, right. And now the link color is magenta.
This might also be using a... So I don't know why there's two, but that's fine. So then we essentially just have a bunch of... But we need to remember... So here I had to remember what link color was. So I added this extension.
Using the Theme Tweaker extension in Positron
tor-theme-treater, which is like a little extension. So you can find it via tor-positron. And then when you're in here, we say... So you open a command palette, which is command-shift-P. And you find the theme-treater, open theme-treater. And you have to have the Qt file open. So it knows which file you're thinking about. And now we have our slides, how you would expect them to look on the left-hand side. And then we have a UI-based way of modifying things.
So now we can say, oh, I want to use Helvet's font. And I want to... I always think the font size is too small, so we can change it up a little bit. Make it 50 sized. And we can change all the different things. We can change the... Oh, no. Oh, I clicked the link. That's unfortunate.
Let me try it one more time. So we need to repeat really quickly the command palette shortcut. Command-shift-P. Command-shift-P. Nathan, I hope that was your question. Theme-treater, open theme-treater. We did it.
And you need to have your QMD file as, like, the active one, I think. But otherwise, it doesn't know. And what it does is it finds what the file is, and it sees, hey, he's using styles as CSS. And that will be important later.
So then we just modify a bunch of things, like the sizing. We might say another header size. Heading size is a little bit too big. Move that down a little bit. And then we just background, right? So we want something more fun. So we need maybe... So this is where it's going to be horrible. Maybe a little peach, light peach maybe, right?
It's not going to be pretty, but now we just, like, actually just made some really bad slides. But it's just the idea, right? So you're just modifying a bunch of things. We already wanted the magenta color for the links. And there's all the options, right? But imagine we're done with what we want.
So we click this to make such changes. And it identifies what the SAS variables are. You press right. And if I'm not mistaken... Oh, I didn't. All right. We can type them over here.
So now we were able to change the theme in, like, a couple of minutes by just intuitively see, oh, these are options and moving them around. And obviously, these are trash. But this is not a great theme. But instead of having to... But it was so easy. Yeah. So instead of remembering all the names, you just do that. And it should work.
So now we were able to change the theme in, like, a couple of minutes by just intuitively see, oh, these are options and moving them around.
So if we try it one more time and open it, it should have remembered all our options. So we say, actually, this magenta is a little much. So let's move it over a little bit. Tone it down.
Recap and audience questions
So I want to recap and answer a question really quickly since I think we can. So the recap is we used Emil's template for Cordial Slides. It came preloaded with a CSS file, which Emil opened up and he changed stuff in. And what he used to change it using the UI is a Positron extension. So a VSCode slash Positron extension. That is linked in the Discord right now. You'll see it under that marketplace.visualstudio.co.com. Or visualstudio.com. And so he went and he installed that extension.
And that allowed him to use the Command Palette, Command Shift P, or Control Shift P, to open up the theme tweaker. And then that theme tweaker was the UI. So in case that went by a little too fast, we had a bunch of questions that were like, wait, how did you get there? What is that thing? How do I get it?
And then the lingering question is, is there a version of this that also works in RStudio since this is specific to Positron? Yes. So there's not a version that works in RStudio yet, because this is all VSCode related. One thing I know, this is still like, in a way, really the alternative is you open up this page on like behind or like second monitor and whatever. And you just like bind the names in here and modify them. So it's like you're not saving that much time, but you're saving a little time because finding the names take a while.
Finding the formatting for me too, like having it all in there and you have the little like the default section, the rule section, the function section, having that predefined for you in a template is golden. It's very nice. Yes. And also just the name, that it knows the name. So here, yeah. So sometimes you can get it to work here. So here like if you, and this might be an extension somewhere, but you just say the thing and you can still find it. But it's still like, that's a lot, right? And you don't know. Some of them are taught presentation and some are not taught presentation, but still matter. Having the UI is really helpful.
We're working on like having tighter integration with Quarto and like Quarto Hub with all of this. So when I made it, the Quarto team was like, hey, we would like this eventually in, like just support it more natively. So that will happen. But right now this is the while you wait version.
And I don't know how easy this would be on RStudio. Honestly, this should probably just be built in more directly because I'm doing some weird things that you might have noticed. So normally when you render preview here, Quarto is like spinning up in the terminal. And then every time that we make a change, we see that it re-renders and it's being put into this window. And Positron knows about this. And like everyone plays together.
My extension couldn't do any of this because this is all like in a walled garden of this is where the path ends up. So it is just doing its own thing that just happens to work. So it spins up its own Quarto. It spins up a new window. So none of this is built into work and we will make that work better in the future. Because this semi-visual... This is obviously nice and programmers love it. But it's also so much easier just to... This looks so much nicer when you just do something fast.
And obviously the slide is imperfect because you can only set the intervals that I've decided that is useful. But the groupings are nice. It's easy to see if something is taller or not. So this is wonderful.
And also the whole inheritance doesn't work in the tweeter, right? So everything then becomes hard coded because you're not using predefined colors. But you could then see this being like, oh, I really like this magenta. You can put it up here. Magenta. Put it up here.
Brand YAML and SVG icons
We have covered so much. I think we covered almost all the questions. There were a couple that were lingering. One from NoTobeco about adding those SVG icons, which I think we can fit in in our last 15 minutes just to cover the extra on that part. And then there was one from Jessica that was a little bit more just like Quarto-specific. Jessica, I'll follow up with you. Isabella and I will follow up with you about referencing a figure from another file.
And then Jonathan had also asked, does ThemeTweaker integrate well with a brand file? So which one of those do you want to tackle first, the brand file question or the SVG icon question? I can answer the ThemeTweaker. So that will eventually work with the brand-yml idea. The issue with it a little bit is that I don't think the brand-yml is granular enough to do what I need it to do. So obviously, it sets a lot of settings, but it doesn't set enough. I actually started the project as, oh, it'll be a brand-yml thing. But it doesn't have enough, but that will work in the future. You can use the tweeter as a visual editor for your brand-yml file, and that should work.
And then when we're saying SVG files, is that the background thing or like as a logo in our slides? Okay, let me read the question from No Tobacco. It says, what about adding SVG icons you've created? You added some really cool icons in the NES one that were like little stars and coins and stuff. I think it might have been right then.
So you can do it in a different way. How did we even do it here? Oh, No Tobacco clarifies logos and icons. So that's probably more in here. All right. So then we have our theme, which is lovely, and we need an image. So I took a stupid little screenshot here. So icons just have to be some type of image. So here I'm making it a screenshot of the IDE, which is delightful. And then in, I think it's right here, we can say logo and logo PNG. And now the slides have this little logo, which is way too small right now. Itty bitty little thing. Yeah.
So you can add a logo to your slides by setting the logo thing. And then it appears on all of them, which is a little unfortunate. And also the thing is, right now it says that it's always on the bottom right. So let's say you don't care about that. So then we fixed that fairly easily. So now I opened up my slide in my browser and I opened the developer page, which I don't remember how to do that.
So on the mat for this browser, it's command option I. I picked this little selector and I find this is where the icon is. And I see that this, so it has the styling right here, which might be a little small to read. So I can see that this little image has the slide logo class and it's also like nested in reveal.
So we can actually move around. So if we say bottom 100, it's right. But that's like a weird place. Let's say we want it top right. So we would remove the bottom one and we may say top zero. So now it's at the top right instead of bottom right.
But obviously we don't want it like here. So what we do is we take this, the names. We go in here and then under rules and it already starts. So the first one is bottom or not. Am I spelling bottom right? B-O-T-T. Double O. There we go.
And I'm saying unset because it's already set. And I'm saying top zero. And now it's at the top. So now we have changed where the icon is with, I want to say fairly minimal, like CSS, which will also, that might be hard. So we can. But that gets us most of the way there.
I love it. That gets us most of the way. And now we have an icon. The thing, I don't remember how I did that, but we could. The only thing that might be like annoying is what if we don't want it, right?
So we can say no logo, but obviously it still has the logo. But then we can be like that.
I love Emil quietly talking to himself as he life codes. It's very soothing. We don't get enough life coding. I was talking about that in the chat today, that like a lot of things have taken over the video tutorial spot. Right. People like just ask cloud questions, but life coding is still so, so valuable.
So is this what we need? Oh, and then. Oh, it doesn't turn that.
I'll put it up later because I don't know if I can remember how to do this. That's okay. That is possible. So I did it at one point, but some does Toro has this weird ideas sometimes. So obviously it has the slides on, but the content on the slide is obviously on the slide itself. But like the background images are technically not part of the slides themselves. They are in a different div next to it. That is then being shown behind it. So they're not part of the slide.
So sometimes when you're trying to select something, I don't remember if the logo is considered part of the slide or if it's like a theory or third thing that happens to just also be viewed at the same time. Right. I did at one point, someone asked me and I figured out how to basically make this work. So you can have logo and they're always there, but you can specify no logo and you're just making it not appear on that specific slide. But that's sometimes nice to have.
Using Quarto templates to share themes
I'm going to go dig through your NES themes dot SCSS file and just see how you did. You did all of these amazing, many, many things, but also we have about eight minutes left and sorry, we had a question from Nathan, which was, so we make our amazing themes, then we push them to GitHub and we can just use quarto use template, you know, my name slash my theme. Could you go over one more time how to use these themes using one of yours as an example, like the NES theme or something?
Yes. So we go to our terminal and I'll just open a new one. And we, oh, I'm on desktop already. It's fine. I'm close enough. So then you say use, so quarto use template, and then you have to put in the path or, let's say the path to a folder or part of the URL, or if you just use the name dash, that repo name, it knows to pull from GitHub.
I'm feeling you can also use other ones. I don't exactly know how everything's passed, but I know that it's, so if I want to use the NES one, it's quarto NES theme. And because of the way we do things, we have to say, yes, I always create a subdirectory because of the way. When I use a theme, it's because I'm starting a new document. So I'll just want a folder with everything I need in it.
You can also say no to the subdirectory part, and then it just copies the files into your current folder. And as long as filenames don't matter, it's fine. So here we're having new demo, and then you say, yes, and it is essentially a copy paste. So it said what it is. This is done as an extension, which is a little weird. And then I don't know why it doesn't open up. I feel like it used to just open up by default, but then you find it.
And so because the quarto use template really is just copying the files over for you. It's the thinnest of wrapper. It doesn't actually do that much. It just looks. This is a folder online. Can I copy it over? It may be checked if there's a quarto file in there. I don't even know. And then obviously it adheres to the quarto ignore file. But yeah, then you just have a file and you can modify it.
It's the thinnest of wrapper. It doesn't actually do that much. It just looks. This is a folder online. Can I copy it over?
And I think that it does too. If you name your file template, here in your extension, it will then inherit the name when you use the template. So here I told this repo new demo and the QMD file is called new demo QMD. But if you give it a different name, it doesn't rename this file. If that makes sense.
Okay. I think I would have to walk through these steps one more time to make sure I get them all. But I'm loving it. And this is all something that you could put in a read me for somebody. If you wanted to share your, your template.
Upcoming events and closing remarks
And I also wanted to share a couple of things that I just put in the discord. And I will also put them in the chat. In just a second. I have two things. One is this Wednesday. One is in a couple of Wednesdays. This Wednesday, Isabella and I are going to be joining the R Ladies Melbourne group. If you are in the United States, this is quite late at night for you. So for Isabella and I in central time is going to be starting at 8 PM. If you're on the East coast, it'll be at 9 PM. But it is going to be a gentle introduction to Positron for RStudio users.
So a lot of people had questions today that were like, oh my gosh, this is all in Positron. This is so cool. I'm still in RStudio and like, there's some hesitation there. That is okay. We got you. Come join us. We'll give you a gentle introduction. I think it will be recorded. There was a question about that. It's up to the R Ladies organizers, but we will for sure ask. And then that's something that they can share themselves.
And then also Emil himself is hosting a two hour slide crafting workshop in a couple of weeks on a Wednesday. It's on August 12th. So I put a link to that as well. It's at the same time slot as the lab. If you are used to that. So 11 AM for me central it's 12 PM Eastern. And it's going to be on August 12th.
Okay. I think that that's it for me. I know we only have two minutes left, so I will say. Thank you so much. I'm going to put the stuff in the, in the chat. But it's formatted hilariously because I copied the emojis from discord. So please ignore those. Yeah. Those, those paste artifacts, but this was so great. Thank you so much. Emil for joining us. This was so enlightening. I think a lot of people were amazed by your extension for Positron. They were like, oh, this is worth like heading over to Positron. So thank you so much.
So thank you so much for everything you do developing for the Quarto community. Thank you for having me. It's always a great talking to people and three time returning champion. Yeah.

