首页 > 其他分享 >Advanced_Slides 的使用

Advanced_Slides 的使用

时间:2024-03-18 17:22:07浏览次数:15  
标签:--- 网格 Slides Advanced https 使用 2.3 250 幻灯片

Advanced_Slides 的使用 

来源  https://www.cnblogs.com/liuzhongkun/p/17096534.html

 

目录

 

Advanced Slides 的使用

一、 概述

1、 简介

Advanced Slides 是 Obsidian 的开源插件,允许您在 Obsidian 中创建基于eveal.js的演示文稿。使用此工具,任何能够在 Obsidian 中创建笔记的人也可以创建漂亮的演示文稿。

其遵循以下理念convention over configuration,这意味着在大多数情况下,只需使用Obsidian Markdown 语法编写一个 Slide 就足够了。

官方文档位置:https://mszturc.github.io/obsidian-advanced-slides

2、 特征

  • 编辑幻灯片时的实时预览
  • 幻灯片的主题支持
  • 嵌入支持 - 在幻灯片中包含其他 Markdown 文档 -![[Note.md#FirstChapter]]
  • 图像支持
    • 通过 Obsidian Synthax 包含图像 -![[picture.jpg]]
    • 管道图像属性 - -![[image.png|100x100]]
  • 块支持 -::: block
  • 脚注支持 -Here's a footnote[^1]
  • 在 Markdown 中定义样式表 -<style>....</style>
  • 通过 frontmatter 将选项传递给 Slide Compiler
  • 注释元素<!-- element class="red" -->
  • 支持内部链接
    • [[Note]]将在 Presentation 中呈现为普通文本
    • 带别名[[Note|My Note]]
  • Excalidraw 支持
  • 流程图支持

3、 第一个 PPT

官方示例演示文稿:https://liuzhongkun1.github.io/ppt/example/index.html

创建步骤:

  1. 创建幻灯片

  2. 打开实时预览

二、 基础语法

1、 水平垂直幻灯片

要创建水平幻灯片,请使用由两个空行包围的三个破折号。要创建垂直幻灯片,请使用两个空行包围的两个破折号:

  # Slide 1
   
  ---
   
  # Slide 2.1
   
  --
   
  # Slide 2.2

2、 元素注释

用来设置元素的样式

  text with border <!-- element class="with-border" -->
   
  text with background <!-- element style="background:blue" -->
   
  text with attribute <!-- element data-toggle="modal" -->

3、 幻灯片注释

您可以通过注释为整个幻灯片传递样式或类属性:

  <!-- .slide: style="" -->
   
  # Header with coral background color
   
  Paragraph has coral background color, too!
   
  ---
   
  <!-- .slide: style="" -->
   
  - All Bullet points
  - have green
  - background color

4、 块注解

可以使用块注释对幻灯片的各个部分进行分组。通过对代码块进行注释,该代码块中的所有项目都将获得注释的属性:

  ::: block
   
  #### Header
  _and_
  Paragraph content
  *in same block*
   
  :::
   
  ---
   
  no color
   
  ::: block <!-- element style="" -->
   
  everything inside this block has red background color
   
  ::: block <!-- element style="" -->
   
  blue
   
  :::
   
  red
   
  :::
   
  no color

5、 元素动画

用于突出显示或逐步显示幻灯片上的单个元素。在移动到下一张幻灯片之前,将逐步执行具有类片段的每个元素。默认片段样式是从不可见开始淡入。可以通过将不同的类附加到片段来更改此样式。

  Fade in <!-- element class="fragment" -->
   
  Fade out <!-- element class="fragment fade-out" -->
   
  Highlight red <!-- element class="fragment highlight-red" -->
   
  Fade in, then out <!-- element class="fragment fade-in-then-out" -->
   
  Slide up while fading in <!-- element class="fragment fade-up" -->
   
  ---
   
  - Permanent item
  - Appear Fourth <!-- element class="fragment" data-fragment-index="4" -->
  - Appear Third <!-- element class="fragment" data-fragment-index="3" -->
  - Appear Second <!-- element class="fragment" data-fragment-index="2" -->
  - Appear First <!-- element class="fragment" data-fragment-index="1" -->

常见的动画样式:https://revealjs.com/fragments/

6、 内联样式

你可以在你的标记中定义 css 样式:

  1. 通过使用<style>标签

      <style>
      .with-border{
      border: 1px solid red;
      }
      </style>
       
      styled text <!-- element class="with-border" -->
  2. 通过 CSS 文件包含它们

      ---
      css: [css/layout.css,css/customFonts.css]
      ---

7、 幻灯片背景样式

你可以通过注释幻灯片来改变背景:

  <!-- slide bg="aquamarine" -->
  ## Slide with text based background
  ---
   
  <!-- slide bg="#ff0000" -->
  ## Slide with hex based background
   
  ---
   
  <!-- slide bg="rgb(70, 70, 255)" -->
  ## Slide with rgb based background
   
  ---
   
  <!-- slide bg="hsla(315, 100%, 50%, 1)" -->
  ## Slide with hsl based background
   
  ---
   
  # Slide without background
   
  ---
   
  <!-- slide bg="https://picsum.photos/seed/picsum/800/600" -->
  ## Slide with image background
   
  ---
   
  <!-- slide bg="[[image.jpg]]" -->
  ## Slide with image background #2
   
  ---
   
  <!-- slide bg="https://picsum.photos/seed/picsum/800/600" data-background-opacity="0.5" -->
  ## with opacity
   
  0.5 ≙ 50% opacity
   
  ---
   
  ## More options:
   
  See [reveal backgrounds](https://revealjs.com/backgrounds/)

可以通过 fontmatter 添加内容来更改所有幻灯片的背景:

  ---
  bg: red
  bg: '#ff0000'
  bg: rgb(70, 70, 255)
  bg: transparent <!--设置背景为透明样式-->
  ---

8、 演讲者模式

Advanced Slides 带有演讲者备注功能,可用于在演讲者视图中呈现每张幻灯片的备注。

要访问扬声器视图,您必须打开Slide Preview然后点击Open in Browser右上角的按钮。您的幻灯片将在您的默认网络浏览器中打开。按键盘上的 »S« 键打开备注窗口。

注释窗口还可以让您预览下一张幻灯片,因此即使您没有写任何注释,它也可能会有所帮助。

  ## My Slide
   
  This is part of my Presentation
   
   
  note: this is not! Only the speaker might see this text.
   
  - and this bulletpoint
  - or this picture
   
  ![](https://picsum.photos/id/1005/250/250)

9、 列表动画

基于片段概念的高级幻灯片引入了一个约定,自动将片段注释添加到有序和无序列表的项目符号点。通过使用 + 或 ) 作为列表的指示符,列表将自动显示为片段列表。

  # Unordered list
   
  - First
  - Second
  - Third
   
  ---
   
  # Fragmented unordered list
   
  - Permanent
  + First
  + Second
  + Third
   
  ---
   
  # Ordered list
   
  1. First
  2. Second
  3. Third
   
  ---
   
  # Fragmented ordered list
   
  1. Permanent
  2) Second
  3) Third
  4) Fourth

10、 画图支持

需要在 Excalidraw 设置中激活 Auto-Export SVG/PNG。

  #### Excalidraw support
   
  ![[Sample.excalidraw|100]]
   
  ![[Sample.excalidraw]] <!-- element style="width:300px; height:400px" -->

11、 图标

您可以使用以下标记将图标添加到幻灯片中:

   
  <!-- .slide: bg="white"-->
   
  ![](fab fa-font-awesome fa-4x)
   
  ## Icons
   
  ---
   
  <!-- .slide: bg="white"-->
  ### Basic Syntax
   
  ![](fas fa-envelope fa-4x)<!-- .element: color="coral"-->
   
  Short Syntax
   
  ![](fas fa-envelope fa-4x)<!-- .element: color="coral"-->
   
  HTML Synthax
   
  <i color="coral" class="fas fa-envelope fa-4x"/>
   
  ShortCode Synthax
   
  :fas_envelope:
   
  ---
   
  # Sizing
   
  <i class="fas fa-camera fa-xs"></i>
  <i class="fas fa-camera fa-sm"></i>
  <i class="fas fa-camera fa-lg"></i>
  <i class="fas fa-camera fa-2x"></i>
  <i class="fas fa-camera fa-3x"></i>
  <i class="fas fa-camera fa-5x"></i>
  <i class="fas fa-camera fa-7x"></i>
   
  ---
   
  # Rotating Icons
   
  <i class="fas fa-snowboarding"></i>
  <i class="fas fa-snowboarding fa-rotate-90"></i>
  <i class="fas fa-snowboarding fa-rotate-180"></i>
  <i class="fas fa-snowboarding fa-rotate-270"></i>
  <i class="fas fa-snowboarding fa-flip-horizontal"></i>
  <i class="fas fa-snowboarding fa-flip-vertical"></i>
  <i class="fas fa-snowboarding fa-flip-both"></i>
   
  ---
   
  # Animating Icons
   
  <i class="fas fa-spinner fa-spin fa-3x"></i>
  <i class="fas fa-circle-notch fa-spin fa-3x"></i>
  <i class="fas fa-sync fa-spin fa-3x"></i>
  <i class="fas fa-cog fa-spin fa-3x"></i>
  <i class="fas fa-spinner fa-pulse fa-3x"></i>
  <i class="fas fa-stroopwafel fa-spin fa-3x"></i>
   
   
  ---
   
  #### Bordered + Pulled Icons
   
  <i class="fas fa-quote-left fa-2x fa-pull-left"></i>
   
  Gatsby believed in the green light, the orgastic future that year by year recedes before us.
  It eluded us then, but that’s no matter — tomorrow we will run faster, stretch our arms further...
  And one fine morning — So we beat on, boats against the current, borne back ceaselessly into the past.<!-- .element: style="font-size: 24px" align="justify" -->
   
  <br>
   
  <i class="fas fa-arrow-right fa-2x fa-pull-right fa-border"></i>
   
  Gatsby believed in the green light, the orgastic future that year by year recedes before us.
  It eluded us then, but that’s no matter — tomorrow we will run faster, stretch our arms further...
  And one fine morning — So we beat on.<!-- .element: style="font-size: 46px" align="justify" -->

支持的所有图标:https://fontawesome.com/v5/search

字体图标使用教程:https://fontawesome.com/v5/docs/web/reference-icons/

12、 表情包

你可以在幻灯片中使用表情包短代码:

  :smile: =>

标签:---,网格,Slides,Advanced,https,使用,2.3,250,幻灯片
From: https://www.cnblogs.com/lsgxeva/p/18080994

相关文章

  • STM32工具使用--J-Flash烧录程序
            最近客户那边需要给他们烧程序,他们需要把板子给寄给我,我烧写好之后又发回去,这样一来一回就浪费不少时间,而且也比较麻烦,所以最近给它们出了一个如何烧写.hex程序文件的步骤,这样以后就不用再麻烦自己给他们烧写了,他们根据教程就能完成。    我使用的是P......
  • windows下pm2安装使用
    1.PM2简介PM2是node进程管理工具,可以利用它来简化很多node应用管理的繁琐任务,如性能监控、自动重启、负载均衡等,而且使用非常简单。PM2的运行需要node环境和npm的支持,node环境和npm安装检查: PM2常用命令:--watch:监听应用目录的变化,一旦发生变化,自动重启。如果要精确监听......
  • Python3 使用 sqlcipher 来增强本地数据的安全性
    使用sqlcipher来增强本地数据的安全性本文是基于系列文章PyQt5+SQLAlchemy做登录注册页的补充,并不单独放在系列文中,主要讲的是,使用sqlcipher来保存本地密码,这比直接使用SQLite更安全关于sqlcipher,官方介绍原文如下:SQLCipherisastandaloneforkoftheSQLitedata......
  • 使用BenchmarkSQL压测openGauss
    使用BenchmarkSQL压测openGauss安装配置JDK官方网站下载JDK:https://www.oracle.com/technetwork/java/javase/downloads/index.html配置JDK环境解压到JDK到指定路径。#解压到JDK到指定路径tar-xvfjdk-8u231-linux-x64.tar.gz-C/usr/local#配置系统环境变......
  • 使用vscode编辑c语言
    在VisualStudioCode(VSCode)中配置C语言环境步骤指南:一,前期准备(安装扩展,软件包)安装C/C++扩展打开VSCode。点击左侧边栏的扩展按钮(或使用快捷键Ctrl+Shift+X)。在搜索框中输入C/C++。从结果中找到Microsoft的C/C++扩展并点击“安装”。安装MinGW或......
  • Linux(三) Linux基础开发工具的使用
    一、xshell在windows下使用图形化界面,在Linux下使用各种指令,这些指令和图形化界面我们称为shell,即外壳程序从技术角度,shell最简单的定义:命令行解释器(commandinterpreter)主要包含:1.将使用者的命令翻译给核心(kernel)处理2.同时,将核心处理结果翻译给使用者外壳程序的作......
  • Jmeter性能测试 —— jmeter之使用ServerAgent监控服务器
    ServerAgent性能测试时我们关注的重要指标是:并发用户数,TPS,请求成功率,响应时间,服务器的CPU,memory,I/Odisk等。Jmeter的聚合报告可以查看并发数、吞吐量、请求成功率、响应时间等;如果要查看服务器端的CPU,memory,I/Odisk等就需要安装插件ServerAgent将ServerAgent-2.2.1.jar上传......
  • 应用使用JNDI,数据库无法连接,导致的进程无法启动问题处理
    起因数据库迁移,导致的ip改变,并且更换了用户密码。解决方法找到服务器应用目录,例如:/home/weblogic/Oracle/Middleware/user_projects/domains/abc进入config目录config.xml配置文件,属于中间件的整体配置,删除使用JNDI的应用的标签内容jdbc目录为weblogic的数据库配置文件重......
  • springboot结合rocketmq的使用以及遇到的问题
    rocketmq是一款低延迟、高并发、高可用、高可靠的分布式消息中间件。消息队列RocketMQ可为分布式应用系统提供异步解耦和削峰填谷的能力,同时也具备互联网应用所需的海量消息堆积、高吞吐、可靠重试等特性。首先需要下载安装rocketmq:1.官网 https://rocketmq.apache.org/zh/do......
  • 【Python使用】嘿马头条完整开发md笔记第2篇:数据库,作用【附代码文档】
    嘿马头条项目从到完整开发笔记总结完整教程(附代码资料)主要内容讲述:课程简介,ToutiaoWeb虚拟机使用说明,Pycharm远程开发,产品与开发,数据库1产品介绍,2原型图与UI图,3技术架构,4开发。OSS对象存储,七牛云存储,CDN,缓存。缓存,缓存架构,缓存数据,缓存有效期与淘汰策略,缓存模式缓存数据的......