基于W3C的Slidy2,增加了:
js
最末尾不喜欢可以直接删除)Slidy2是W3C开发的一种在HTML网页中运用javascript
和css
实现类似幻灯片播放效果的工具。
其原始版权声明为:
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:
使用pandoc
工具将markdown
,reST
等标记语言转化为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
目录,将本项目中styles
和scripts
两个目录复制进去。也可以去掉这一部分那就使用W3C官方的在线Slidy2,没有本项目修改增加的功能。此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。