Slideshow 使用pandoc';s slidy离线

Slideshow 使用pandoc';s slidy离线,slideshow,offline,pandoc,Slideshow,Offline,Pandoc,我正在使用Pandoc将降价转换为幻灯片格式。但是我需要离线使用slidy,所以我把从他们网站下载的slidy脚本的副本放在一个文件夹“Slidy2”下,然后我使用这个命令 pandoc -s -t slidy -V slidy-url=Slidy2 为了链接slidy的本地副本,pandoc生成以下html代码 ... <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"

我正在使用Pandoc将降价转换为幻灯片格式。但是我需要离线使用slidy,所以我把从他们网站下载的slidy脚本的副本放在一个文件夹“Slidy2”下,然后我使用这个命令

 pandoc -s -t slidy -V slidy-url=Slidy2 
为了链接slidy的本地副本,pandoc生成以下html代码

...
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
<link rel="stylesheet" type="text/css" media="screen, projection, print"
    href="Slidy2/styles/slidy.css" />
<script src="Slidy2/scripts/slidy.js.gz"
    charset="utf-8" type="text/javascript"></script>
</head>
...

我不知道是什么问题。

尝试使用--self-contained选项生成一个自给自足的HTML代码。您的HTML代码不完整。它缺少
元素

我不知道到底是什么问题,但将加载slidy脚本压缩版本的行
src=“Slidy2/scripts/slidy.js.gz”
更改为未压缩版本
src=“Slidy2/scripts/slidy.js”
解决了问题。

我没有粘贴所有html代码,仅包含链接到slidy的零件。我有一个问题,因为mathjax不能工作。
1. Use relative URIs depending on your local setup to access the appropriate files. 
   Use the same directory structure as on the W3C server, ie, ".../2005/Talks/...".

2. Run a Web server on your machine so that the directory above can be accessed via
   http://localhost/Talks/Tools/Slidy2 and use the URIs of the form   
   "/Talks/Tools/Slidy2/styles/slidy.css", "/Talks/Tools/Slidy2/scripts/slidy.js".