I have a simple *.tex file for this question:
\documentclass[12pt,letterpaper]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\begin{document}
\title{A test \LaTeX to HTML page}
\section{Section One}
Hello world. Here is some mathematics:
\begin{equation}
x + y = 3
\end{equation}
\end{document}
Now, when I increase font size in the \documentclass
command from 12pt
to 16pt
, I don't see a corresponding increase in font size in the output HTML.
Why is that?
Here is my build file:
local filter = require "make4ht-filter"
local process = filter{"cleanspan", "fixligatures", "hruletohr"}
if mode == "draft" then
Make:htlatex()
else
Make:htlatex()
Make:htlatex()
Make:htlatex()
end
Make:image("png$",
"dvipng -bg Transparent -T tight -o ${output} -pp ${page} ${source}")
Make:match("html$",process)
Make:match("html$", "tidy -m -xml -utf8 -q -i ${filename}")
article
class doesn't have any font options larger than12pt
, so that's not going to get you where you want to go. you can try inserting\Huge
at the beginning (after\begin{document}
). that will enlarge the text, but not titles or section headings, in the tex output. i don't know whether it will carry over to the html.