Testing make4ht


Site index page
Site Settings page

Testing the runlatex JavaScript make4ht/MathJax support. Change % !TeX make4ht to see LaTeX typset PDF.

Graphics and Math

% !TeX make4ht
\documentclass{article}
 
\usepackage{graphicx}
\usepackage{amsmath}
\begin{document}

\begin{center}
\includegraphics[scale=.9]{william-shakespeare.jpg}
\end{center}
  
\section{graphics}
  
 Something  \includegraphics[height=1cm]{example-image}
 
\section{math}

Equation
\begin{equation}\frac{-b\pm\sqrt{b^2-4ac}}{2a}\end{equation}

Align
\begin{align}
y^2&=ax^2+bx+c\\
  a&=b+c\\
  b&=2
\end{align}
\end{document}

Color and Rotation

% !TeX make4ht
\documentclass{article}
 
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{graphicx}
\begin{document}

\begin{itemize}

\item \rotatebox{10}{Rotated text}

\item BLACK \textcolor{red}{RED}  \textcolor{blue}{BLUE}

\end{itemize}

\begin{enumerate}
\item This.
\item That.
\item The other.
\end{enumerate}

\end{document}

XeLaTeX

% !TeX make4ht
% !TEX xelatex
\documentclass{article}
\usepackage{fontspec}
\setmainfont{texgyretermes-regular.otf}
\newfontfamily\cjkfont{FandolSong-Regular.otf}
\begin{document}

ABC → αβγ → {\cjkfont 你好}

\end{document}

LuaLaTeX fonts

% !TeX make4ht
% !TEX lualatex
\documentclass{article}
\usepackage{fontspec}
\setmainfont{texgyretermes-regular.otf}
\newfontfamily\cjkfont{FandolSong-Regular.otf}
\begin{document}

ABC → αβγ → {\cjkfont 你好}

\end{document}

LuaLaTeX (Lua)

% !TeX make4ht
% !TEX lualatex
\documentclass{article}

\begin{document}
\directlua{ tex.print('$ 2\string\\pi \string\\approx',2 * math.pi,'$') }

\end{document}