当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 0

hz838 / Slidy2-modified
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Slidy2修改版

基于W3C的Slidy2,增加了:

  • 上下箭头按键翻页功能(从而兼容了很大一部分无线PPT翻页器)
  • 鼠标滚轮翻页功能(代码在js最末尾不喜欢可以直接删除)

版权

Slidy2是W3C开发的一种在HTML网页中运用javascriptcss实现类似幻灯片播放效果的工具。 其原始版权声明为:

By obtaining and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions.

Permission to copy, modify, and distribute this work, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the work or portions thereof, including modifications:

  • The full text of this NOTICE in a location viewable to users of the redistributed or derivative work.
  • Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, the W3C Software and Document Short Notice should be included.
  • Notice of any changes or modifications, through a copyright statement on the new code or document such as "This software or document includes material copied from or derived from [title and URI of the W3C document]. Copyright © [YEAR] W3C® (MIT, ERCIM, Keio, Beihang)."

与pandoc结合使用

使用pandoc工具将markdownreST等标记语言转化为Slidy幻灯片,需要增加一部分pandoc特定的语法。 以markdown为例:

文件开头增加以下信息:

%幻灯片标题
%作者姓名
%幻灯片日期

可以使用##作为每一页幻灯片起始的标题级别,如果某一页幻灯片需要分阶段放出则增加一行:

. . .

需要逐步放出的列表需要使用```incremental``控制,如下:

::: incremental

- 逐步放出的列表项
- Markdown列表项
- 列表项里面插入公式
- 公式:$\mathbb{R}$

:::

最终使用pandoc转换的命令为:

pandoc -t slidy -s test.md -o test.html --mathml --slide-level 2 -s -V slidy-url='./Slidy2'

注意事项:

  • --mathml将数学公式转化成了MathML格式,也可以选择--mathjax
  • --slide-level 2设置##标记新的一页幻灯片,也可以更改这一层级为3等其他数字。
  • -s -V slidy-url='./Slidy2'给出了Slidy2的位置,应当在md文件所在目录底下建立Slidy2目录,将本项目中stylesscripts两个目录复制进去。也可以去掉这一部分那就使用W3C官方的在线Slidy2,没有本项目修改增加的功能。

空文件

简介

修改版的Slidy2,增加了左右箭头和鼠标滚轮的支持 展开 收起
JavaScript
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/hz838/Slidy2-modified.git
git@gitee.com:hz838/Slidy2-modified.git
hz838
Slidy2-modified
Slidy2-modified
master

搜索帮助