使用Pandoc和Mathjax遇到一些问题 [英] Getting some problems with pandoc and mathjax

查看:141
本文介绍了使用Pandoc和Mathjax遇到一些问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用pandoc从包含某些乳胶的markdown文件中生成html幻灯片.

I'm trying to use pandoc to produce a html slideshow from a markdown file with some latex in it.

文件位于此处位于github .

如果我运行以下pandoc命令:

If I run the following pandoc command:

pandoc -s -t s5 --mathjax apresentacao.md -o index.html

MathJax可以完美显示数学,但是我只得到一个包含所有幻灯片的网页,没有幻灯片功能.

The math is perfectly displayed by MathJax, but I only get a webpage with all the slides and no slideshow functionality.

如果我运行以下命令:

pandoc -s --self-contained -t s5 --mathjax apresentacao.md -o index.html

我得到了一个很好的演示,但是MathJax无法加载.对于加载的图像和javascript库,生成的html文件中(毫无疑问)的二进制文件中充满了二进制文件.但是它似乎无法正确地合并MathJax.

I get a perfectly alright presentation, but MathJax fails to load. The resulting html file is (undestandably) full of binaries in it, for the images and javascript libraries that are loaded. But it seems to fail to incorporate MathJax correctly.

你们有这个问题吗?有什么简单的方法可以解决此问题吗?

Do you guys had this issue? Are there any easy way to fix this?

我正在使用以下pandoc版本:

I'm using the following pandoc version:

$ pandoc --version
pandoc 1.11.1
Compiled with citeproc-hs 0.3.8, texmath 0.6.1.3, highlighting-kate 0.5.3.8.
Syntax highlighting is supported for the following languages:
    actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog,
    clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
    diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
    fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc,
    javascript, json, jsp, julia, latex, lex, literatecurry, literatehaskell,
    lua, makefile, mandoc, matlab, maxima, metafont, mips, modula2, modula3,
    monobasic, nasm, noweb, objectivec, objectivecpp, ocaml, octave, pascal,
    perl, php, pike, postscript, prolog, python, r, relaxngcompact, rhtml, ruby,
    rust, scala, scheme, sci, sed, sgml, sql, sqlmysql, sqlpostgresql, tcl,
    texinfo, verilog, vhdl, xml, xorg, xslt, xul, yacc, yaml
Default user data directory: /home/calsaverini/.pandoc
Copyright (C) 2006-2013 John MacFarlane
Web:  http://johnmacfarlane.net/pandoc
This is free software; see the source for copying conditions.  There is no
warranty, not even for merchantability or fitness for a particular purpose.

推荐答案

这是已知问题:--self-contained上不能很好地工作.我还没有研究到足够的解决方案,但是欢迎提出建议.

It's a known issue: --mathjax doesn't work well with --self-contained. I haven't studied it enough to come up with a fix yet, but suggestions welcome.

这篇关于使用Pandoc和Mathjax遇到一些问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆