Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Latex math mode support using jektex #73

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ sass:
plugins:
- jekyll-feed
- jekyll-seo-tag
- jektex

jektex:
cache_dir: ".jektex-cache"
ignore: ["*.xml"]
silent: false
macros:
- ["\\Q", "\\mathbb{Q}"]
- ["\\C", "\\mathbb{C}"]
6 changes: 5 additions & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@
{%- endif -%}
</title>

{% comment %}
{%-seo title=false-%}
{% endcomment %}
{%-feed_meta-%}

<link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | relative_url }}" />
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
</head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.css" integrity="sha384-OH8qNTHoMMVNVcKdKewlipV4SErXqccxxlg6HC9Cwjr5oZu2AdBej1TndeCirael" crossorigin="anonymous">

</head>
20 changes: 20 additions & 0 deletions _posts/2023-02-03-jektex-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
layout: post
---

This post is here to test [$$\jektex$$](https://github.com/yagarea/jektex),
a lightweight jekyll plugin for LaTeX rendering $$\LaTeX$$.

## Inline example
Lorem ipsum dolor sit amet, consectetur $$e^{i\theta}=\cos(\theta)+i\sin(\theta)$$
adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

## Display example
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua.

$$ \left[ \frac{-\hbar^2}{2\mu}\nabla^2 + V(\mathbf{r},t)\right] \Psi(\mathbf{r},t) $$

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex
ea commodo consequat.

1 change: 1 addition & 0 deletions no-style-please.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency "jekyll", "~> 3.9.0"
spec.add_runtime_dependency "jekyll-feed", "~> 0.15.1"
spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.7.1"
spec.add_runtime_dependency "jektex", "~> 0.1.1"

end