diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md new file mode 100644 index 0000000..48e7c50 --- /dev/null +++ b/exampleSite/content/about.md @@ -0,0 +1,6 @@ ++++ +title = "About This Site" +hasMath = false ++++ + +Hello, I'm an example site that uses the Hugo Tufte theme. diff --git a/exampleSite/content/page/about.md b/exampleSite/content/page/about.md deleted file mode 100644 index cd352c6..0000000 --- a/exampleSite/content/page/about.md +++ /dev/null @@ -1,6 +0,0 @@ -+++ -title = "About This Site" -hasMath = false -+++ - -Hello, I'm an example site that uses the Hugo Morphism theme. diff --git a/exampleSite/content/post/more-maths.md b/exampleSite/content/post/more-maths.md new file mode 100644 index 0000000..0872600 --- /dev/null +++ b/exampleSite/content/post/more-maths.md @@ -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... + + +## Matrix + +

+$$ +\begin{matrix} +\alpha& \beta^{*}\\ +\gamma^{*}& \delta +\end{matrix} +$$ +

+ +

+$$ +\begin{bmatrix} +\alpha& \beta^{*}\\ +\gamma^{*}& \delta +\end{bmatrix} +$$ +

+ + + +

+$$ +\begin{Vmatrix} +\alpha& \beta^{*}\\ +\gamma^{*}& \delta +\end{Vmatrix} +$$ +

+ +## 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$$ \ No newline at end of file diff --git a/exampleSite/content/post/new.md b/exampleSite/content/post/new.md index 033e12f..1f8f2c0 100644 --- a/exampleSite/content/post/new.md +++ b/exampleSite/content/post/new.md @@ -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 diff --git a/exampleSite/content/post/old.md b/exampleSite/content/post/old.md deleted file mode 100644 index 9da0b8a..0000000 --- a/exampleSite/content/post/old.md +++ /dev/null @@ -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. diff --git a/exampleSite/content/post/tufte-features.md b/exampleSite/content/post/tufte-features.md index 672bc6d..0df7678 100644 --- a/exampleSite/content/post/tufte-features.md +++ b/exampleSite/content/post/tufte-features.md @@ -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 `

` tags and blank lines. For instance:

-\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} +$$

+ is produced from ```

-\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} +$$

``` @@ -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.