我使用Pandoc從Markdown轉換爲Slidy幻燈片格式。但我需要使用slidy下線,所以我把我從他們的網站http://www.w3.org/Talks/Tools/Slidy2/slidy.zip下載的文件夾「Slidy2」下的slidy腳本的副本,然後我用命令使用pandoc的斯萊迪離線
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".
我不知道它可能是問題。
我不會粘貼所有的html代碼,只有鏈接到slidingy的部分。由於--mathjax不起作用,所以我自己也有問題。 – Leosar