Skip to content

Commit 652eeb0

Browse files
committed
latex post
1 parent 3132fcb commit 652eeb0

File tree

69 files changed

+116
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+116
-16
lines changed

_data/directory.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ Miscellaneous:
2323

2424
Robots:
2525
url: "projects/robots.html"
26+
27+
Electronics:
28+
url: "projects/electronics.html"
2629

2730
# Blog directory
2831

_data/projects.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ Vehicles:
1010
Coding:
1111
- "Arduino-Libraries"
1212
- "Miscellaneous"
13+
14+
Hardware:
15+
- "Electronics"

_includes/head.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
<head>
2-
<!-- auto-generated tag -->
3-
{% if site.google_analytics %}
4-
{% include google-analytics.html %}
5-
{% endif %}
6-
7-
<!-- RSS feed -->
8-
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="/feed.xml">
9-
10-
<!-- default -->
11-
<meta charset="utf-8">
12-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
13-
<meta name="viewport" content="width=device-width, initial-scale=1">
14-
{%- seo -%}
15-
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
16-
{%- feed_meta -%}
2+
<!-- auto-generated tag -->
3+
{% if site.google_analytics %}
4+
{% include google-analytics.html %}
5+
{% endif %}
6+
7+
<!-- RSS feed -->
8+
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="/feed.xml">
9+
10+
<!-- default -->
11+
<meta charset="utf-8">
12+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
13+
<meta name="viewport" content="width=device-width, initial-scale=1">
14+
{%- seo -%}
15+
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
16+
{%- feed_meta -%}
17+
18+
<!-- Include MathJax for Latex rendering -->
19+
{% include katex.html %}
1720
</head>
1821

1922

_includes/katex.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{% if page.katex %}
2+
<!-- CSS -->
3+
<!-- src: https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css -->
4+
<link rel="stylesheet" href="/katex/katex.min.css"/>
5+
6+
<!-- JavaScript -->
7+
<!-- src: https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.js -->
8+
<script defer src="/katex/katex.min.js"></script>
9+
10+
<!-- src: https://cdn.jsdelivr.net/npm/katex@latest/dist/contrib/auto-render.min.js -->
11+
<script defer src="/katex/contrib/auto-render.min.js"
12+
onload="renderMathInElement(document.body,{
13+
delimiters: [
14+
{ left: '$$', right: '$$', display: true },
15+
{ left: '$', right: '$', display: false },
16+
{ left: '\\[', right: '\\]', display: true },
17+
{ left: '\\(', right: '\\)', display: false }
18+
]});">
19+
</script>
20+
{% endif %}
21+
22+
<!-- Source code: https://ionathan.ch/2021/05/19/latex-in-jekyll.html -->
Lines changed: 2 additions & 1 deletion
Lines changed: 65 additions & 0 deletions

katex/contrib/auto-render.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

katex/fonts/KaTeX_AMS-Regular.ttf

62.1 KB
Binary file not shown.

katex/fonts/KaTeX_AMS-Regular.woff

32.7 KB
Binary file not shown.
27.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)