diff options
-rw-r--r-- | exampleSite/content/post/shortcodes.md | 4 | ||||
-rw-r--r-- | static/css/latex.css | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/exampleSite/content/post/shortcodes.md b/exampleSite/content/post/shortcodes.md index 37fe8e0..6787790 100644 --- a/exampleSite/content/post/shortcodes.md +++ b/exampleSite/content/post/shortcodes.md @@ -5,6 +5,10 @@ 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: diff --git a/static/css/latex.css b/static/css/latex.css index 7b033b4..384d5d4 100644 --- a/static/css/latex.css +++ b/static/css/latex.css @@ -101,8 +101,7 @@ body { } /* Justify and hyphenate all paragraphs */ -p { - font-size: large; +p { text-align: justify; hyphens: auto; margin-top: 1rem; @@ -429,6 +428,15 @@ input.sidenote-toggle { border-top: 1px solid hsl(0, 0%, 39%); } +/* Center title and paragraph */ +.abstract, +.abstract p { + text-align: center; +} +.abstract { + margin: 2.25rem 0; +} + /* Format the LaTeX symbol correctly (a higher up, e lower) */ .latex span:nth-child(1) { text-transform: uppercase; |