Skip to content

Commit

Permalink
new article conformal-trajectory
Browse files Browse the repository at this point in the history
add phira contact
add katex macros
some tags
  • Loading branch information
UlyssesZh committed Dec 22, 2023
1 parent 2f0dc63 commit b646b28
Show file tree
Hide file tree
Showing 10 changed files with 779 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source 'https://rubygems.org/'

gem 'highline'
gem 'rake'
gem 'tomlib'

gem 'jekyll', '~> 4'
gem 'minima', github: 'jekyll/minima', ref: '85374864e0311f544f49139078927b41ecbe8792'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ GEM
google-protobuf (~> 3.23)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
tomlib (0.6.0)
unicode-display_width (2.5.0)
wdm (0.1.1)
webrick (1.8.1)
Expand All @@ -114,6 +115,7 @@ DEPENDENCIES
jekyll-toc
minima!
rake
tomlib
wdm
webrick

Expand Down
81 changes: 81 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,87 @@ paru:
formatter: table
formatter_options:
code_class: highlight language-%{lang}
katex:
output: html
macros:
'\mbb': '\mathbb'
'\mfk': '\mathfrak'
'\mrm': '\mathrm'
'\trm': '\textrm'
'\mbf': '\mathbf'
'\tbf': '\textbf'
'\mit': '\mathit'
'\msf': '\mathsf'
'\mcal': '\mathcal'
'\mscr': '\mathscr'
'\mtt': '\mathtt'
'\tit': '\textit'
'\ttt': '\texttt'
'\bs': '\boldsymbol'

'\bN': '\mbb{N}'
'\bZ': '\mbb{Z}'
'\bQ': '\mbb{Q}'
'\bR': '\mbb{R}'
'\bC': '\mbb{C}'

'\alp': '\alpha'
'\gma': '\gamma'
'\Gma': '\Gamma'
'\dlt': '\delta'
'\Dlt': '\Delta'
'\eps': '\epsilon'
'\veps': '\varepsilon'
'\vphi': '\varphi'
'\tht': '\theta'
'\Tht': '\Theta'
'\kap': '\kappa'
'\lmd': '\lambda'
'\Lmd': '\Lambda'
'\omg': '\omega'
'\Omg': '\Omega'
'\sgm': '\sigma'
'\Sgm': '\Sigma'

'\divby': '\divisionsymbol'
'\ceq': '\coloneqq'
'\eqc': '\eqqcolon'

'\i': '\mrm{i}'
'\e': '\mrm{e}'
'\st': '\mrm{st}'
'\d': '\mrm{d}'

'\fr': '\frac'
'\dfr': '\dfrac'
'\tfr': '\tfrac'
'\opn': '\operatorname'
'\bhat': '\hat{\mbf{\bs{#1}}}'
'\func': '#1\colon #2\to #3'
'\vfunc': '\func{#1}{#2}{#3},\quad #4\longmapsto #5'
'\fc': '#1\mathchoice{\!}{\!}{}{}\p{#2}'
'\bfc': '#1\mathchoice{\!}{\!}{}{}\b{#2}'
'\Bfc': '#1\mathchoice{\!}{\!}{}{}\B{#2}'
'\opc': '\fc{\opn{#1}}{#2}'
'\bopc': '\bfc{\opn{#1}}{#2}'
'\Bopc': '\Bfc{\opn{#1}}{#2}'
'\set': '\left\{#1\;\middle|\;#2\right\}'
'\abar': '\left.#1\right|_{#2}'

'\p': '\left(#1\right)'
'\b': '\left[#1\right]'
'\B': '\left\{#1\right\}'
'\v': '\left|#1\right|'
'\V': '\left\|#1\right\|'
'\a': '\left\langle #1\right\rangle'
'\floor': '\left\lfloor #1\right\rfloor'
'\ceil': '\left\lceil #1\right\rceil'
'\round': '\left\lfloor #1\right\rceil'
'\bra': '\left\langle #1\right|'
'\ket': '\left|#1\right\rangle'
'\braket': '\left\langle #1\middle|#2\right\rangle'
'\mel': '\left\langle #1\middle|#2\middle|#3\right\rangle'

gitalk:
enable_in_development: false
client_id: 49611570ab5cf827576b
Expand Down
7 changes: 7 additions & 0 deletions _plugins/~bootstrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require 'fileutils'
require 'yaml'
require 'tomlib'

module Jekyll::UlyssesZhan
end
Expand All @@ -20,6 +21,7 @@ def run
read_katex_version
write_crossref_config
write_rouge_config
write_katex_config
fetch_mastodon_post
read_github_run_id
end
Expand All @@ -44,6 +46,11 @@ def write_rouge_config
File.write File.join(BOOTSTRAP_DIR, 'rouge.yml'), YAML.dump(@site.config['paru']['rouge'])
end

def write_katex_config
ENV['PANDOC_KATEX_CONFIG_FILE'] = filename = File.join BOOTSTRAP_DIR, 'katex.toml'
File.write filename, Tomlib.dump(@site.config['paru']['katex'])
end

def read_env
@site.config['avoid_markdown'] = !!ENV['JEKYLL_AVOID_MARKDOWN']
@site.config['no_archive'] = !!ENV['JEKYLL_NO_ARCHIVE']
Expand Down
1 change: 1 addition & 0 deletions _posts/2020-03-03-normal-field.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ categories:
- math
tags:
- calculus
- vector analysis
layout: post
excerpt: 'This article gives the formula for the normal vectors of a surface defined by a scalar field on $\mathbb R^n$.
The normal vector of the graph of the function $y=f\!\left(\mathbf x\right)$ at
Expand Down
1 change: 1 addition & 0 deletions _posts/2023-11-09-lattice-algebraic.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ date: 2023-11-09 23:53:41 -0800
categories:
- math
tags:
- complex
- condensed matter physics
- algebraic number theory
- lattice
Expand Down

0 comments on commit b646b28

Please sign in to comment.