Forgot password?
 Register account
View 452|Reply 2

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

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

hbghlyj Posted 2022-1-16 07:54 |Read mode
如题,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

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2022-2-27 08:36
Last edited by hbghlyj 2022-5-1 00:0712000.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"
Copy the Code
$type mycfg.cfg (720 Bytes, Downloads: 63)

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

 Author| hbghlyj Posted 2022-5-1 05:05

Mobile version|Discuz Math Forum

2025-6-5 01:22 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit