免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 发帖

如何让htlatex输出的displaymath保持代码不变而不是生成图片

如题,retain display equation as tex code in tex4ht
tex4ht tutorial
然后我去查资料,关于htlatex的配置文件怎么写
tex4ht doc
Private Configuration Files
The leading entry, in the first list of options of the htlatex-like commands, can equal ‘html’ or ‘xhtml’. If this is not the case, the entry is assumed to be the name of a configuration file. The extension ‘cfg’ is assumed for names of configuration files that are listed without their extension.

A configuration file should take the following form for LaTeX files.

...early definitions...
\Preamble{options}
...definitions...
\begin{document}
...insertions into the header of the html file...
\EndPreamble
It is up to the user to decide the distribution of entries between the \Preamble and the htlatex-like commands.

Example The command ‘htlatex myfile "mycfg,2"’ requests the compilation of a file named myfile.tex, in the presence of a configuration file named mycfg.cfg. The configuration file might have the following content.
\Preamble{html}
\begin{document}
  \Css{body { color : red; }}
\EndPreamble
好像是在当前目录下创建一个mycfg.cfg,然后用mycfg代替第二个参数里的mathjax

本帖最后由 hbghlyj 于 2022-5-1 00:07 编辑

https://www.12000.org/my_notes/faq/LATEX/htch4.htm#x5-770004.6
找到一个配置tex4ht以适用于mathjax的资料
  1. htlatex Anal.tex "mycfg.cfg,fn-in,charset=utf-8" " -cunihtf -utf8"
复制代码
mycfg.cfg (720 Bytes)

TOP

TOP

返回列表 回复 发帖