Forgot password?
 Create new account
View 343|Reply 2

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

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2022-1-16 07:54:53 |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

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2022-2-27 08:36:11
Last edited by hbghlyj at 2022-5-1 00:07:0012000.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: 33)

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

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

手机版Mobile version|Leisure Math Forum

2025-4-20 22:11 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list