diff options
author | HelloRusk <hellorusk1998@gmail.com> | 2021-08-12 14:31:11 +0300 |
---|---|---|
committer | HelloRusk <hellorusk1998@gmail.com> | 2021-08-12 14:31:11 +0300 |
commit | 63e1877bc193aa9afd7388ae35b8a279fe1a7618 (patch) | |
tree | 0ece2fd89fd26e21fb59a3b8546ee6212a6a5dd9 | |
parent | e657773f7b5a168056fb1ea524f25e082da79cb8 (diff) |
modify latex.css and example page
-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; |