我使用Pandoc将Markdown格式转换为幻灯片格式。但我需要脱机使用slidy,因此我将从他们的网站http://www.w3.org/Talks/Tools/Slidy2/slidy.zip下载的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>
...但slidy根本不起作用。
在滑动页面中,提到了以下选项:
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".我不知道这会是什么问题。
发布于 2013-07-11 21:47:35
我不知道到底是什么问题,但将加载slidy脚本src="Slidy2/scripts/slidy.js.gz"的压缩版本的行改成未压缩版本的src="Slidy2/scripts/slidy.js"解决了这个问题。
发布于 2013-07-11 01:32:24
尝试使用--self-contained选项生成一个自给自足的HTML代码。您的HTML代码不完整。缺少<html>, <body>元素
https://stackoverflow.com/questions/17531190
复制相似问题