From c08b57cbaae40a74f9abb043682540c61749acda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Thu, 10 Sep 2020 16:44:45 +0200 Subject: [PATCH] Using tex shortcode from https://latkin.org/blog/2016/08/07/better-tex-math-typesetting-in-hugo --- content/subsets.md | 2 +- layouts/shortcodes/tex.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/tex.html diff --git a/content/subsets.md b/content/subsets.md index c7a06c54..39265ec2 100644 --- a/content/subsets.md +++ b/content/subsets.md @@ -4,7 +4,7 @@ date: 2020-09-10 15:00 draft: false --- -The QUEST database provides theoretical best estimates (TBEs) for more than 470 highly-accurate excitation energies of various natures (valence, Rydberg, $n \ra \pis$, $\pi \ra \pis$, singlet, doublet, triplet, and double excitations) for molecules ranging from diatomics to molecules as large as naphthalene. +The QUEST database provides theoretical best estimates (TBEs) for more than 470 highly-accurate excitation energies of various natures (valence, Rydberg, {{< tex "n \ra \pis" >}}, {{< tex "\pi \ra \pis" >}}, singlet, doublet, triplet, and double excitations) for molecules ranging from diatomics to molecules as large as naphthalene. The molecules included in the QUEST dataset have been systematically optimized at the CC3/aug-cc-pVTZ level of theory, except for a very few cases. The QUEST dataset of vertical excitations is composed by 5 subsets: diff --git a/layouts/shortcodes/tex.html b/layouts/shortcodes/tex.html new file mode 100644 index 00000000..8f2c7668 --- /dev/null +++ b/layouts/shortcodes/tex.html @@ -0,0 +1,16 @@ + + {{ if .IsNamedParams }} + $${{ .Get "display" }}$$ + {{ else }} + \({{ .Get 0 }}\) + {{ end }} + + \ No newline at end of file