diff --git a/docs/product/components/code-blocks.html b/docs/product/components/code-blocks.html index 31c2b36d06..543af66761 100644 --- a/docs/product/components/code-blocks.html +++ b/docs/product/components/code-blocks.html @@ -350,6 +350,54 @@ + {% header "h3", "LaTeX" %} +
+{% highlight html %} +
+    …
+
+{% endhighlight %} +
+{% highlight latex %} +% !TeX encoding = utf8 +\documentclass{article} + +\usepackage[T1]{fontenc} +\usepackage{lmodern} +\usepackage{amsfonts} +\usepackage{xparse} +\usepackage{mathtools} + +\newcommand\hi[1]{Hello #1!} + +\ExplSyntaxOn + % Convert a roman number into an arabic one + \NewDocumentCommand \romantonum { m } + { \int_from_roman:n { #1 } } +\ExplSyntaxOff + +\begin{document} + +\section{Highlight.js} +\hi{you} +This is \LaTeX\ syntax highlighted by \verb|highlight.js|. +You should look at section~\ref{sec:fermat} next. + +Did you know that MDCLXI is \romantonum{MDCLXI}? % It's 1661. + +\subsection{Fermat}\label{sec:fermat} +I have a wonderful proof that +\[ + a^n + b^n \neq c^n +\] +for \(a, b, c, d, n \in \mathbb{Z}_+\) with \(n > 2\). +Sadly, it is too large to fit in this code snippet. + +\end{document} +{% endhighlight %} +
+
+ {% header "h3", "SQL" %}
{% highlight html %}