找回密码
 快速注册
搜索
查看: 260|回复: 2

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

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2022-1-16 07:54 |阅读模式
如题,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

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-2-27 08:36
本帖最后由 hbghlyj 于 2022-5-1 00:07 编辑 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"
复制代码
$type mycfg.cfg (720 Bytes, 下载次数: 1)

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2022-5-1 05:05

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 12:18

Powered by Discuz!

× 快速回复 返回顶部 返回列表