<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Engineering on blog@tuan</title><link>https://chidokun.github.io/hugo-blog-tuan/categories/engineering/</link><description>Recent content in Engineering on blog@tuan</description><generator>Hugo</generator><language>en-US</language><copyright>© 2026 blog@tuan. Content released under CC BY-SA 4.0.</copyright><lastBuildDate>Tue, 02 Jun 2026 14:30:00 +0700</lastBuildDate><atom:link href="https://chidokun.github.io/hugo-blog-tuan/categories/engineering/index.xml" rel="self" type="application/rss+xml"/><item><title>Mathematics with LaTeX</title><link>https://chidokun.github.io/hugo-blog-tuan/2026/06/mathematics-with-latex/</link><pubDate>Tue, 02 Jun 2026 14:30:00 +0700</pubDate><guid>https://chidokun.github.io/hugo-blog-tuan/2026/06/mathematics-with-latex/</guid><description>&lt;p class="lead"&gt;Most Hugo themes render mathematics by shipping KaTeX or MathJax to the browser&#10;and having it re-scan the whole page. This theme does not: Hugo calls KaTeX&#10;directly during the build and writes HTML with MathML into the static file. The&#10;reader downloads exactly one extra stylesheet.&lt;/p&gt;</description></item><item><title>Syntax Highlighting at Build Time</title><link>https://chidokun.github.io/hugo-blog-tuan/2026/05/syntax-highlighting-at-build-time/</link><pubDate>Mon, 18 May 2026 11:00:00 +0700</pubDate><guid>https://chidokun.github.io/hugo-blog-tuan/2026/05/syntax-highlighting-at-build-time/</guid><description>&lt;p class="lead"&gt;Every code block on this site was coloured before the HTML ever left the build&#10;machine. The browser receives &lt;code&gt;&amp;lt;span&amp;gt;&lt;/code&gt; elements that already carry their classes,&#10;and the palette is nothing but CSS variables — so switching between light and dark&#10;recolours the code immediately, with nothing to re-render.&lt;/p&gt;</description></item><item><title>Diagrams with Mermaid</title><link>https://chidokun.github.io/hugo-blog-tuan/2026/04/diagrams-with-mermaid/</link><pubDate>Sun, 05 Apr 2026 16:45:00 +0700</pubDate><guid>https://chidokun.github.io/hugo-blog-tuan/2026/04/diagrams-with-mermaid/</guid><description>&lt;p class="lead"&gt;This is the one thing in the theme that genuinely needs JavaScript, and it only&#10;loads on the pages that actually contain a diagram. The palette is read out of&#10;the same CSS variables everything else uses, so a diagram can never drift out of&#10;tone with the page around it.&lt;/p&gt;</description></item></channel></rss>