<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>幻灯片 &#8211; 李辉 / Grey Li</title>
	<atom:link href="https://greyli.com/tag/%E5%B9%BB%E7%81%AF%E7%89%87/feed/" rel="self" type="application/rss+xml" />
	<link>https://greyli.com</link>
	<description>一个编程和写作爱好者的在线记事本</description>
	<lastBuildDate>Thu, 06 Nov 2025 11:36:11 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.26</generator>

<image>
	<url>https://greyli.com/wp-content/uploads/2025/03/avatar-500-compressed-144x144.jpg</url>
	<title>幻灯片 &#8211; 李辉 / Grey Li</title>
	<link>https://greyli.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Wii Remote——支持上下左右四个方向的幻灯片翻页笔</title>
		<link>https://greyli.com/wii-remote-a-slides-flip-pen-that-support-four-directions/</link>
		<comments>https://greyli.com/wii-remote-a-slides-flip-pen-that-support-four-directions/#comments</comments>
		<pubDate>Sat, 09 Nov 2019 05:05:45 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[计算机与编程]]></category>
		<category><![CDATA[reveal.js]]></category>
		<category><![CDATA[Wii]]></category>
		<category><![CDATA[幻灯片]]></category>
		<category><![CDATA[翻页笔]]></category>

		<guid isPermaLink="false">http://greyli.com/?p=2613</guid>
		<description><![CDATA[如果你用 reveal.js 做幻灯片，你会发现没有合适的翻页笔可以用。具体来说，是没有支持上下左右四个方向的 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>如果你用 reveal.js 做幻灯片，你会发现没有合适的翻页笔可以用。具体来说，是没有支持上下左右四个方向的翻页笔。</p>
<p>参加 PyCon China 上海站的时候，因为现场条件限制，不得不用翻页笔，但是发现翻页笔只支持上下翻页，不支持左右翻页，而使用 reveal.js 做的幻灯片常常会包含上下左右四个方向的切换。当时还和其他志愿者说这是个潜在的商机——做一个支持上下左右四个方向的翻页笔。</p>
<p>回来去网上搜了一下，发现真的没有支持四个方向的翻页笔。想想也没有多少人会需要用到四个方向切换。市场份额最大的幻灯片制作软件是 PPT、Keynote 和 Prezi。前两者上下翻页，Prezi 左右翻页，所以有一些翻页笔会支持在「上下」和「左右」两种模式切换，还有一些会支持切换成「PageUp 和 PageDown」翻页模式，用来给 PDF 文件翻页。</p>
<p>接着，我调整方向开始找有没有只有四个方向键的蓝牙小键盘，找的过程中突然想到以前用手柄映射键盘按键来玩一些不支持手柄的电脑游戏，那么 Wii Remote（Wii 右手控制器）也许也可以通过映射按键来当做一个翻页笔用。搜了一些资料，发现真的可以！找到了一个叫做 <a href="http://onakasuita.org/wii/index-e.html">WiinRemote</a> 的程序来做按键映射（macOS 可以使用 Darwiin Remote，另外还有其他通用的替代选项）。</p>
<p>以 Windows 10 为例，你需要先通过蓝牙把 Wii Remote 连接到电脑，基本步骤如下：</p>
<ul>
<li>任务栏蓝牙图标右键</li>
<li>加入个人区域网</li>
<li>添加设备</li>
<li>同时按住 Wii Remote 的 1 和 2 键进入匹配模式（四个指示灯闪烁）</li>
<li>选择设备，一般名称会显示 Nintendo RVL-CNT，点下一步</li>
<li>PIN 码留空点下一步</li>
</ul>
<p>第一次和电脑配对会有些麻烦，后续就可以很容易连接了。</p>
<p>连接成功后打开 WiinRemote 配置按钮。在 Options &#8211; Preferences &#8211; Button Assign 选项里可以定义按键映射。除了设置上下左右四个方向切换以外，Wii Remote 上的其他按钮也可以利用起来，比如分别用来映射 Enter、Esc 这些按钮。</p>
<div id="attachment_2614" style="width: 635px" class="wp-caption alignnone"><a href="http://greyli.com/wp-content/uploads/2019/11/wiinremote.png"><img class="wp-image-2614 size-large" src="http://greyli.com/wp-content/uploads/2019/11/wiinremote-1024x603.png" alt="" width="625" height="368" srcset="https://greyli.com/wp-content/uploads/2019/11/wiinremote-1024x603.png 1024w, https://greyli.com/wp-content/uploads/2019/11/wiinremote-150x88.png 150w, https://greyli.com/wp-content/uploads/2019/11/wiinremote-300x177.png 300w, https://greyli.com/wp-content/uploads/2019/11/wiinremote-624x368.png 624w, https://greyli.com/wp-content/uploads/2019/11/wiinremote.png 1061w" sizes="(max-width: 625px) 100vw, 625px" /></a><p class="wp-caption-text">设置按键映射</p></div>
<p>唯一的缺点就是 Wii Remote 和常见的翻页笔相比有点大……</p>
<div id="attachment_2622" style="width: 635px" class="wp-caption alignnone"><a href="http://greyli.com/wp-content/uploads/2019/11/wiiremote-compare.jpg" rel="attachment wp-att-2622"><img class="wp-image-2622 size-large" src="http://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-1024x768.jpg" alt="" width="625" height="469" srcset="https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-1024x768.jpg 1024w, https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-150x113.jpg 150w, https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-300x225.jpg 300w, https://greyli.com/wp-content/uploads/2019/11/wiiremote-compare-624x468.jpg 624w" sizes="(max-width: 625px) 100vw, 625px" /></a><p class="wp-caption-text">和翻页笔比大小</p></div>
<p>虽然看起来很完美，但后来我还是采用了另一个替代方案，买了一个支持切换 PageDown 和 PageUp 翻页模式的翻页笔，这样可以让 reveal.js 的幻灯片按照从左到右，从上到下的顺序逐页切换。</p>
<p>也许下次演讲你会看到我用 Wii Remote 来翻页。</p>
<p>P.S. 除了用来当翻页笔，Wii Remote 甚至可以用来实现数字白板、触控屏幕和 3D 头戴显示器（<a href="https://www.ted.com/talks/johnny_lee_demos_wii_remote_hacks?language=en">Free or cheap Wii Remote hacks</a>）。</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/wii-remote-a-slides-flip-pen-that-support-four-directions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SimpleWords——幻灯片生成器</title>
		<link>https://greyli.com/simplewords-slideshow-generator/</link>
		<comments>https://greyli.com/simplewords-slideshow-generator/#comments</comments>
		<pubDate>Wed, 31 Aug 2016 08:54:42 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[计算机与编程]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[幻灯片]]></category>

		<guid isPermaLink="false">http://withlihui.com/?p=934</guid>
		<description><![CDATA[介绍 SimpleWords是一个HTML幻灯片生成工具，你只需要按照格式把幻灯片写在文本文档里，就可以轻松生 [&#8230;]]]></description>
				<content:encoded><![CDATA[<h2>
	介绍<br />
</h2>
<p>
	SimpleWords是一个HTML幻灯片生成工具，你只需要按照格式把幻灯片写在文本文档里，就可以轻松生成一个HTML幻灯片（使用浏览器打开）。SimpleWords支持Markdown和HTML标签，可以设置背景颜色。支持两种样式：
</p>
<ul>
<li>
		pure：它适用于制作简单的概括性的幻灯片：每页只有少量的文字或关键词；每页只放一张图片，或是一个视频。这种样式没有页面边框，文字和元素将居中显示。
	</li>
<li>
		rich：适合更复杂的页面布局。有页面边框，文字和元素靠左对齐。
	</li>
</ul>
<p>
	GitHub 地址：<a href="https://github.com/greyli/simplewords" target="_blank">https://github.com/greyli/simplewords</a>
</p>
<h2>
	用法<br />
</h2>
<h3>
	设置样式<br />
</h3>
<p>
	在文档第一行设置页面的样式，默认为pure样式。在两个百分号后面写上样式名称（pure或rich），独占一行，小写：
</p>
<pre>
%%pure</pre>
<p>
	或
</p>
<pre>
%%rich
</pre>
<h3>
	设置背景颜色或图片<br />
</h3>
<p>
	在文档的最后一行设置背景颜色，默认为灰色。在两个美元符号后接上你要设置的颜色，RGB值，如下所示：
</p>
<pre>
$$red</pre>
<p>
	或
</p>
<pre>
$$rgb(123, 45, 45)</pre>
<p>
	需要注意的是，所有的字符都要是英文半角字符。所以不应该出现￥￥或是（）。
</p>
<h3>
	文件结构<br />
</h3>
<p>
	SimpleWords\<br />
	&#8211; js\<br />
	&#8211; css\<br />
	&#8211; images\<br />
	&#8211; videos\<br />
	&#8211; words.txt<br />
	&#8211; slide.py<br />
	&#8211; slide.html
</p>
<ul>
<li>
		根目录下的words.txt是你写幻灯片的地方。
	</li>
<li>
		你要插入的图片和视频要分别放在images和videos文件夹内。
	</li>
<li>
		slides!.py是生成你的幻灯片的程序。
	</li>
<li>
		slides.html是你的幻灯片，点击它就可以打开你的幻灯片了。
	</li>
</ul>
<h3>
	幻灯片分隔符<br />
</h3>
<p>
	每一张幻灯片的分隔方式有两种：第一种，使用独占一行的五个横线分隔&ldquo;&#8212;&#8211;&rdquo;；第二种，使用换行符作为分隔，即一行代表一张幻灯片。两种分隔方式不可混用。当没有发现横线换行符时，采用默认的行分隔。
</p>
<p>
	<strong>注意：设置样式和背景颜色的语句同样需要使用分隔符！</strong>
</p>
<h3>
	文字效果<br />
</h3>
<p>
	支持Markdown和HTML两种标记语言（可以混用），所以你可以方便的为你的幻灯片实现你想要的效果。比如下面是一些常用的Markdown标签：
</p>
<pre>
# 这是H1
## 这是H2
### 这是H3
这是一个段落。 
*这是斜体*
**这是粗体** 
***这是粗体+斜体***
一段文字后打上两个空格表示另起一行 &nbsp;</pre>
<p>
	了解更多有关HTML和Markdown的信息：<a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML" target="_blank">MDN HTML文档</a>、<a href="https://daringfireball.net/projects/markdown/" target="_blank">Markdown</a>
</p>
<h3>
	添加图片和视频<br />
</h3>
<p>
	图片：
</p>
<pre>
![alt text](images/photo.jpg)&nbsp;</pre>
<p>
	或
</p>
<pre>
&lt;img src=&quot;images/photo.jpg&quot; height=&quot;600&quot;&gt;</pre>
<p>
	视频：
</p>
<pre>
&lt;video width=&quot;800&quot; height=&quot;600&quot; controls&gt;&lt;source src=&quot;videos/movie.mp4&quot;&gt;&lt;/video&gt;</pre>
<p>
	注意：当使用行分隔时，不要让标签分行。建议不要让height值超过600。
</p>
<h3>
	版权声明<br />
</h3>
<p>
	SimpleWords基于简化了的<a href="http://greyli.com/html-for-impress-js-write-slides/" target="_blank">impress.js</a>生成。
</p>
<p>
	&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/simplewords-slideshow-generator/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>我目前为止做的最好的幻灯片</title>
		<link>https://greyli.com/one-of-the-best-slide-ive-done-so-far/</link>
		<comments>https://greyli.com/one-of-the-best-slide-ive-done-so-far/#comments</comments>
		<pubDate>Fri, 13 May 2016 09:52:09 +0000</pubDate>
		<dc:creator><![CDATA[李辉]]></dc:creator>
				<category><![CDATA[思考与随感]]></category>
		<category><![CDATA[impress.js]]></category>
		<category><![CDATA[幻灯片]]></category>

		<guid isPermaLink="false">http://withlihui.com/?p=461</guid>
		<description><![CDATA[花了两周左右的时间做了一个幻灯片。这周四终于要展示了，很兴奋。 这是一门建筑材料课，最后一次课是两个班分成若干 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><span lang="zh-CN">花了两周左右的时间做了一个幻灯片</span><span lang="zh-CN">。这周四终于要展示了，很兴奋。</span></p>
<p>这是一门建筑材料课，最后一次课是两个班分成若干组，各小组把课题调研结果做成幻灯片展示。恍恍惚惚两节课，像是在用幻灯片做演讲稿的朗读比赛现场。等啊等，终于轮到我们组了。按照之前预演过的程序，我离开座位，靠窗的同学帮我拉上窗帘，我上前关上所有的灯，连接电脑，氛围就绪！</p>
<p>因为幻灯片里放了很多录音和视频，我就没有站在讲台上，拿着任天堂的小键盘在下面当了放映员。看着自己做出来的东西，听着身后响起的一阵阵掌声和欢笑，真是开心又感动。</p>
<p><script src="https://fast.wistia.com/embed/medias/mv18mebh2z.jsonp" async></script><script src="https://fast.wistia.com/assets/external/E-v1.js" async></script></p>
<div class="wistia_responsive_padding" style="padding:56.25% 0 0 0;position:relative;">
<div class="wistia_responsive_wrapper" style="height:100%;left:0;position:absolute;top:0;width:100%;">
<div class="wistia_embed wistia_async_mv18mebh2z videoFoam=true" style="height:100%;position:relative;width:100%">
<div class="wistia_swatch" style="height:100%;left:0;opacity:0;overflow:hidden;position:absolute;top:0;transition:opacity 200ms;width:100%;"><img src="https://fast.wistia.com/embed/medias/mv18mebh2z/swatch" style="filter:blur(5px);height:100%;object-fit:contain;width:100%;" alt="" aria-hidden="true" onload="this.parentNode.style.opacity=1;" /></div>
</div>
</div>
</div>
<p></p>
<p><strong>观看提示：</strong></p>
<ol type="1">
<li value="1">这个幻灯片的主题是吊顶材料。</li>
<li>里面出现的人物都是我的舍友和小组成员（感谢陈中华和董淑松的支持！）。</li>
<li>关于制作这个幻灯片的细节，见<a href="http://greyli.com/make-a-fun-slide/" target="_blank" rel="noopener">做个有趣的幻灯片</a>和<a href="http://greyli.com/html-for-impress-js-write-slides/" target="_blank" rel="noopener">用HTML写幻灯片</a>。</li>
</ol>
<p>Addition Notes：</p>
<ul>
<li>幻灯片：<a href="http://greyli.com/slides/2016-building-material">http://greyli.com/slides/2016-building-material</a>（包含大量视频，考虑到网速和浏览器支持情况，建议直接看视频）</li>
<li>幻灯片使用 Impress.js 制作，混杂了很多效果，比如 CSShake，其中的动画用了 iPad 上的 Chomp。用 AHK 做了启动放映的快捷键。因为想做成一个类似动画的东西，所以严格来说不算是演讲。关灯后用蓝牙键盘在第一排控制放映。现在来看，有些内容大概有些恶趣味……&gt;&lt;。放映的现场效果很好，可惜没有录像。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://greyli.com/one-of-the-best-slide-ive-done-so-far/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
