Skip to content
View hbghlyj's full-sized avatar

Highlights

  • Pro

Block or report hbghlyj

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
hbghlyj/README.README
https://blog.cjhb.site/ is a blog that I created using Jekyll.

🤔 If you find an error or have suggestions:
Don't hesitate to:
  Open an issue: https://github.com/hbghlyj/hbghlyj/issues
- or -
  Open a PR: https://github.com/hbghlyj/hbghlyj/pulls


📁 The `_posts` folder

The HTML source codes are in https://github.com/hbghlyj/hbghlyj/tree/main/_posts
The file name format is `YYYY-MM-DD-title.html`.

Equations are in LaTeX or MathML format. One can be converted to the other by https://pandoc.org/try/
🗨️LaTeX is easier to type since there are high-level commands.
🗨️MathML can be parsed by Math-aware search engines like https://approach0.xyz/search/ but it is more verbose

The diagrams are generated in two ways: QuickLaTeX or MathJax SVG.
🗨️For QuickLaTeX, it converts TeX file to inline SVG using https://github.com/hbghlyj/jekyll-quicklatex
  It makes the output file size bigger but is authentic LaTeX.
  The diagram will be produced in TeX format, e.g. by TikZ, so it cannot be edited visually but it can use high-level commands.
🗨️For MathJax SVG, it embeds formula into SVG using a custom MathJax config https://github.com/hbghlyj/hbghlyj/blob/main/_includes/markdown-enhancements/mathjax.html (the point is to output SVG directly, instead of wrapping in mathjax typesetroot element).
  The diagram will be visually editable in Inkscape, but it may not be as high-level as TikZ, so more verbose.

Pinned Loading

  1. Unembed-PDF-base14-fonts-in-LaTeX Unembed-PDF-base14-fonts-in-LaTeX Public

    Unembed PDF base14 fonts in LaTeX to reduce font size. This also makes the text editable in Adobe Acrobat. (Danger: \sum in Symbola font only works in Mozilla PDF.js and does not work in other viewer)

    TeX 1

  2. build build Public

    JavaScript

  3. download HLS videos on Oxford Panopto download HLS videos on Oxford Panopto
    1
    const currentDocumentId = (new URL(document.location)).searchParams.get('id');
    2
    async function fetchStreamUrl(id){
    3
        await fetch("https://ox.cloud.panopto.eu/Panopto/Pages/Viewer/DeliveryInfo.aspx", {
    4
            "headers": {
    5
                "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"