Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/7ma7X/HugoTeX.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelloRusk <hellorusk1998@gmail.com>2021-08-12 14:31:11 +0300
committerHelloRusk <hellorusk1998@gmail.com>2021-08-12 14:31:11 +0300
commit63e1877bc193aa9afd7388ae35b8a279fe1a7618 (patch)
tree0ece2fd89fd26e21fb59a3b8546ee6212a6a5dd9
parente657773f7b5a168056fb1ea524f25e082da79cb8 (diff)
modify latex.css and example page
-rw-r--r--exampleSite/content/post/shortcodes.md4
-rw-r--r--static/css/latex.css12
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;