mirror of
https://github.com/loikein/hugo-tufte.git
synced 2024-12-23 13:59:44 +01:00
exampleSite updated
This commit is contained in:
parent
7038e4ff89
commit
0d5b116750
6 changed files with 93 additions and 42 deletions
6
exampleSite/content/about.md
Normal file
6
exampleSite/content/about.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "About This Site"
|
||||
hasMath = false
|
||||
+++
|
||||
|
||||
Hello, I'm an example site that uses the Hugo Tufte theme.
|
|
@ -1,6 +0,0 @@
|
|||
+++
|
||||
title = "About This Site"
|
||||
hasMath = false
|
||||
+++
|
||||
|
||||
Hello, I'm an example site that uses the Hugo Morphism theme.
|
64
exampleSite/content/post/more-maths.md
Normal file
64
exampleSite/content/post/more-maths.md
Normal file
|
@ -0,0 +1,64 @@
|
|||
+++
|
||||
math = true
|
||||
meta = false
|
||||
author = "AUTHOR NAME"
|
||||
date = "2021-07-20T13:56:01-08:00"
|
||||
type = "post"
|
||||
title = "More math \\(\\xi_{(even-in-the-title-!)}\\)"
|
||||
subtitle = "Wow this really works ! "
|
||||
toc = true
|
||||
categories = ["katex", "latex", "tufte-css"]
|
||||
+++
|
||||
A compilation of \\(\LaTeX\\) formulas...
|
||||
<!--more-->
|
||||
|
||||
## Matrix
|
||||
|
||||
<p>
|
||||
$$
|
||||
\begin{matrix}
|
||||
\alpha& \beta^{*}\\
|
||||
\gamma^{*}& \delta
|
||||
\end{matrix}
|
||||
$$
|
||||
</p>
|
||||
|
||||
<p>
|
||||
$$
|
||||
\begin{bmatrix}
|
||||
\alpha& \beta^{*}\\
|
||||
\gamma^{*}& \delta
|
||||
\end{bmatrix}
|
||||
$$
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
$$
|
||||
\begin{Vmatrix}
|
||||
\alpha& \beta^{*}\\
|
||||
\gamma^{*}& \delta
|
||||
\end{Vmatrix}
|
||||
$$
|
||||
</p>
|
||||
|
||||
## Limits
|
||||
|
||||
$$
|
||||
\lim_{n \to \infty}
|
||||
\sum_{k=1}^n \frac{1}{k^2}
|
||||
= \frac{\pi^2}{6}
|
||||
$$
|
||||
|
||||
|
||||
$$
|
||||
\lim_{n \to \infty}
|
||||
\frac{1}{x^n}
|
||||
= 0
|
||||
$$
|
||||
|
||||
## Various symbols
|
||||
|
||||
$$\lambda,\xi,\pi,\theta,
|
||||
\mu,\Phi,\Omega,\Delta$$
|
|
@ -10,6 +10,12 @@ categories:
|
|||
|
||||
## First Heading
|
||||
|
||||
| Tables | Are | Cool |
|
||||
|:----------|:-------------:|------:|
|
||||
| col 1 is | left-aligned | $1600 |
|
||||
| col 2 is | centered | $12 |
|
||||
| col 3 is | right-aligned | $1 |
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus, consequatur aspernatur omnis iste. Voluptates, id inventore ea natus ab sed amet ipsa ratione sunt dignissimos. Soluta illum aliquid repellendus recusandae.
|
||||
|
||||
### Sub
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
---
|
||||
title: "First Post"
|
||||
description: "Welcome to the first blog post."
|
||||
date: "2014-03-28"
|
||||
categories:
|
||||
- "template"
|
||||
- "boring"
|
||||
---
|
||||
|
||||
## Sample Post 1
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
||||
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
||||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
||||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
||||
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
||||
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
||||
|
||||
### Sub-heading
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Est, non, ratione, molestiae illo optio quia sequi id fuga natus nihil ad architecto dolor alias ex sunt iste aperiam eius itaque.
|
||||
|
||||
|
||||
## foo
|
||||
|
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quo, neque, eveniet voluptate eos debitis illum qui nostrum eius maxime ratione assumenda suscipit impedit deserunt voluptatibus odio ducimus non. Ex, ratione.
|
|
@ -12,13 +12,13 @@ categories = ["katex", "latex", "tufte-css"]
|
|||
+++
|
||||
|
||||
This is a quick demonstration post. It serves as an example of the features
|
||||
of this theme. One of them is \\( \LaTeX \\) via MathJax.
|
||||
of this theme. One of them is \\( \LaTeX \\) via [Katex](https://katex.org/).
|
||||
{{< section "begin" >}}
|
||||
## A Bit About Mathematics
|
||||
|
||||
{{< epigraph pre="Shawn O'Hare, " cite="Math is Fun" >}}
|
||||
This is an example of an epigraph with some math
|
||||
\\(\mathbb N \subseteq \mathbb R \\)
|
||||
\\( \mathbb N \subseteq \mathbb R \\)
|
||||
to start the beginning of a section.
|
||||
{{< /epigraph >}}
|
||||
|
||||
|
@ -40,33 +40,38 @@ And display math using escaped brackets `\\[`:
|
|||
|
||||
### Environments
|
||||
|
||||
Currently, certain $\LaTeX$ environments need to be escaped so that
|
||||
the markdown processor does not override MathJax. Currently, display
|
||||
Currently, certain \\(\LaTeX\\) environments need to be escaped so that
|
||||
the markdown processor does not override Katex. Currently, display
|
||||
environments should be enclosed in `<p>` tags and blank lines.
|
||||
For instance:
|
||||
|
||||
<p>
|
||||
\begin{align*}
|
||||
$$
|
||||
\begin{aligned}
|
||||
\mu(A) &= \iint_{I^2} \chi_A (x,y) \ d(x,y)
|
||||
= \int_I \left( \int_I \chi_A (x,y) \ dx\right) dy
|
||||
= \int_I 0 \ dy= 0 \quad \text{and} \\
|
||||
\mu(A) &=\iint_{I^2} \chi_A (x,y) \ d(x,y)
|
||||
= \int_I \left( \int_I \chi_A (x,y) \ dy \right) dx
|
||||
=\int_I dx = 1,
|
||||
\end{align*}
|
||||
\end{aligned}
|
||||
$$
|
||||
</p>
|
||||
<!-- See https://github.com/jgm/pandoc/issues/3953#issuecomment-334670625 -->
|
||||
|
||||
is produced from
|
||||
```
|
||||
<p>
|
||||
\begin{align*}
|
||||
$$
|
||||
\begin{aligned}
|
||||
\mu(A) &= \iint_{I^2} \chi_A (x,y) \ d(x,y)
|
||||
= \int_I \left( \int_I \chi_A (x,y) \ dx\right) dy
|
||||
= \int_I 0 \ dy= 0 \quad \text{and} \\
|
||||
\mu(A) &=\iint_{I^2} \chi_A (x,y) \ d(x,y)
|
||||
= \int_I \left( \int_I \chi_A (x,y) \ dy \right) dx
|
||||
=\int_I dx = 1,
|
||||
\end{align*}
|
||||
\end{aligned}
|
||||
$$
|
||||
</p>
|
||||
```
|
||||
|
||||
|
@ -125,7 +130,8 @@ Below we have an example of a regular width figure.
|
|||
>}}
|
||||
{{< section "end" >}}
|
||||
|
||||
And now we exhibit a margin figure.
|
||||
|
||||
|
||||
{{< figure
|
||||
src="https://edwardtufte.github.io/tufte-css/img/rhino.png"
|
||||
class="class param"
|
||||
|
@ -135,10 +141,11 @@ And now we exhibit a margin figure.
|
|||
label="mn-export-import"
|
||||
caption="This is the image caption."
|
||||
attr="Image attribution"
|
||||
attrlink="attribute link"
|
||||
attrlink="https://edwardtufte.github.io/tufte-css"
|
||||
alt="alt"
|
||||
link="link"
|
||||
>}}
|
||||
But tight integration of graphics with text is central to Tufte’s work even when those graphics are ancillary to the main body of a text. In many of those cases, a margin figure may be most appropriate.
|
||||
{{< section "end" >}}
|
||||
|
||||
Below is a full-width figure.
|
||||
|
|
Loading…
Reference in a new issue