forked from functor.systems/website
feat: use latex hugo template
This commit is contained in:
parent
1d12f5614d
commit
9004c27ceb
56 changed files with 1666 additions and 2 deletions
57
site/content/post/shortcodes.md
Normal file
57
site/content/post/shortcodes.md
Normal file
|
@ -0,0 +1,57 @@
|
|||
+++
|
||||
title = "Shortcodes"
|
||||
description = "A description of theme-specific shortcodes"
|
||||
date = "2021-06-21"
|
||||
author = "Hugo Authors"
|
||||
+++
|
||||
|
||||
Tips for sidenotes.
|
||||
|
||||
<!--more-->
|
||||
|
||||
## Sidenotes
|
||||
|
||||
[LaTeX.css](https://latex.vercel.app/), which HugoTeX is using, defines syntax for sidenotes. However, as it is a little verbose to write, we provide a Hugo shortcode for that:
|
||||
|
||||
```md
|
||||
A sentence deserving a sidenote.{{%/* sidenote */%}}The note itself.{{%/* /sidenote */%}}.
|
||||
```
|
||||
|
||||
Will render into
|
||||
|
||||
---
|
||||
A sentence deserving a sidenote.{{% sidenote %}}The note itself.{{% /sidenote %}}.
|
||||
|
||||
---
|
||||
|
||||
## Tables
|
||||
|
||||
Another shortcode allows to insert tables with captions:
|
||||
|
||||
```md
|
||||
{{< table title="A sample table with a descriptive caption via [LaTeX.css](https://latex.vercel.app/)." >}}
|
||||
| Header 1 | Header 2 | Header 3 |
|
||||
|---------------|---------------|---------------|
|
||||
| Description 1 | Description 2 | Description 3 |
|
||||
| Description 1 | Description 2 | Description 3 |
|
||||
| Description 1 | Description 2 | Description 3 |
|
||||
|---------------|---------------|---------------|
|
||||
| Footer 1 | Footer 2 | Footer 3 |
|
||||
{{< /table >}}
|
||||
```
|
||||
|
||||
Will render into
|
||||
|
||||
---
|
||||
|
||||
{{< table title="A sample table with a descriptive caption via [LaTeX.css](https://latex.vercel.app/)." >}}
|
||||
| Header 1 | Header 2 | Header 3 |
|
||||
|---------------|---------------|---------------|
|
||||
| Description 1 | Description 2 | Description 3 |
|
||||
| Description 1 | Description 2 | Description 3 |
|
||||
| Description 1 | Description 2 | Description 3 |
|
||||
|---------------|---------------|---------------|
|
||||
| Footer 1 | Footer 2 | Footer 3 |
|
||||
{{< /table >}}
|
||||
|
||||
---
|
Loading…
Add table
Add a link
Reference in a new issue