2023-04-10 15:38:20 +02:00
<!doctype html> < html lang = en > < head > < meta charset = utf-8 > < meta name = viewport content = "width=device-width,initial-scale=1" > < meta property = "og:title" content = "Math Typesetting" > < meta property = "og:description" content = "A brief guide to write mathematical notation." > < meta property = "og:type" content = "article" > < meta property = "og:url" content = "https://mivinci.github.io/hugo-theme-minima/math-typesetting/" > < meta property = "article:section" content > < meta property = "article:published_time" content = "2020-07-18T10:52:59+08:00" > < meta property = "article:modified_time" content = "2020-07-18T10:52:59+08:00" > < meta name = twitter:card content = "summary" > < meta name = twitter:title content = "Math Typesetting" > < meta name = twitter:description content = "A brief guide to write mathematical notation." > < meta name = theme-color media = "(prefers-color-scheme: light)" content = "#ffffff" > < meta name = theme-color media = "(prefers-color-scheme: dark)" content = "#262d33" > < title > Hugo on Minima - Math Typesetting< / title > < link rel = "shortcut icon" href = /hugo-theme-minima/favicon.ico type = image/x-icon > < link rel = stylesheet href = /hugo-theme-minima/minima.css > < script defer type = text/javascript src = /hugo-theme-minima/minima.js > < / script > < / head > < script > const default _theme _config = 'sand' , default _light _theme = default _theme _config === 'system' ? 'light' : default _theme _config ; let default _theme = window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches ? 'dark' : default _light _theme ; try { const a = localStorage . getItem ( 'theme' ) ; a && ( default _theme = a === default _light _theme ? a : default _light _theme ) , localStorage . setItem ( 'theme' , default _theme ) , window . minima _theme = default _theme , document . querySelector ( 'html' ) . classList . add ( default _theme ) } catch ( a ) { console . error ( a ) } < / script > < body > < header class = "mt-3 mb-6" > < div class = "container mx-auto" > < nav class = "flex justify-between items-center" > < div class = "flex items-center" > < div id = theme-switch class = "text-3xl cursor-pointer" > 🌝< / div > < / div > < ul class = "flex items-center text-base font-bold
2023-05-05 08:39:32 +02:00
< / code > < / pre > < p > will be rendered as:< / p > < p > Pythagorean theorem can be written as $a^2+b^2=c^2$ where < em > a< / em > , < em > b< / em > and < em > c< / em > are the length of legs of a triangle.< / p > < / article > < / main > < link rel = stylesheet href = https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css integrity = sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc crossorigin = anonymous > < script defer src = https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.js integrity = sha384-YNHdsYkH6gMx9y3mRkmcJ2mFUjTd0qNQQvY9VYZgQd7DcN7env35GzlmFaZ23JGp crossorigin = anonymous > < / script > < script defer src = https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/contrib/auto-render.min.js integrity = sha384-vZTG03m+2yp6N6BNi5iM4rW4oIwk5DfcNdFfxkk9ZWpDriOkXX8voJBFrAO7MpVl crossorigin = anonymous > < / script > < script > document . addEventListener ( "DOMContentLoaded" , function ( ) { renderMathInElement ( document . body , { delimiters : [ { left : '$$' , right : '$$' , display : ! 0 } , { left : '$' , right : '$' , display : ! 1 } , { left : '\\(' , right : '\\)' , display : ! 1 } , { left : '\\[' , right : '\\]' , display : ! 0 } ] , throwOnError : ! 1 } ) } ) < / script > < div id = comment > < / div > < script > const s = document . createElement ( "script" ) ; s . src = "https://giscus.app/client.js" , s . crossOrigin = "anonymous" , s . async = ! 0 , s . setAttribute ( "data-repo" , "mivinci/hugo-theme-minima" ) , s . setAttribute ( "data-repo-id" , "MDEwOlJlcG9zaXRvcnkzODcxMjM2NDU=" ) , s . setAttribute ( "data-category" , "Comments" ) , s . setAttribute ( "data-category-id" , "DIC_kwDOFxMJvc4CScQm" ) , s . setAttribute ( "data-mapping" , "pathname" ) , s . setAttribute ( "data-strict" , "0" ) , s . setAttribute ( "data-reactions-enabled" , "1" ) , s . setAttribute ( "data-emit-metadata" , "0" ) , s . setAttribute ( "data-input-position" , "buttom" ) , s . setAttribute ( "data-theme" , window . minima _theme + "_protanopia" ) , s . setAttribute ( "data-lang" , "en" ) , s . setAttribute ( "data-loading" , "lazy" ) , document . getElementById ( "comment" ) . appendChild ( s ) < / script > < / div > < footer class = "mt-8 mb-8" > < div class = "container mx-auto" > < div class = "mt-8 flex flex-col-reverse sm:flex-row sm:justify-between items-center" > < div class = "text-center sm:text-left" > < p class = "mt-0 text-sm" > © 2020-2023 X< / p > < p class = "mt-0 text-xs" > Built with < a href = https://gohugo.io target = _blank rel = "noopener noreferrer" > Hugo< / a > v0.85.0