Can I set a font for just one page?

I use sometimes like to put guitar tablature in obsidian. It looks like this:

e|--------------|-----------|-------------|-------------|
B|–10------10–|–9------9-|—7------7–|—7-------6-|
G|--------6-----|-------6—|--------4----|—4----4–4-|
D|--------------|-----------|-------------|-------------|
A|–9–9--------|–7–7-----|—5–5------|—4–4----4-|
E|--------------|-----------|-------------|-------------|

But it needs to be presented in a monospace font to be readable. I know I can change all of my notes to be monospace, but can I do it on a note by note basis?

Thanks

What I’m trying to do

I know of possible three choice without much effort

1. Use codeblock

If u specify codeblock md u can simply write what u need. It already in monospace.

```md
Your guitartab goes here
```

2. Use plugin

This should be exactly what u need but the output i believed is rendered graphic.

3. Use callout

See post below. The benefit is that u can have it collapsed and titled.

3 Likes

I think efemkay’s code block suggestion is the way to go because it’s the easiest and also kind of semantically appropriate. I’d leave out the “md”, tho, because it’s not Markdown.

But FYI another way is to set a CSS class on individual notes in the front matter:

---
cssclass: tablature
---

And then make a CSS snippet that targets that class.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.