**关于Markdown的一些学习笔记**
一直利用markdown进行博客的文档编写,一方面是因为不需要特别注重排版,另一方面是十分的方便。最近突发奇想的认为,如果能运用到平时的作业或课程中,会不会也是极大的提高效率的一大方式呢?
## Markdown装成pdf格式
在网上查了相关的资料,总结起来有:
1.Markdown编辑器自带的转换pdf功能
此功能比较方便,且能确保格式正确;但是目前这个功能一般都是付费使用的。
2.转换成html格式后,再利用浏览器的另存为pdf生成pdf,但这种方法生成的pdf和所使用的浏览器自带格式相关,可能存在一些错误,所以需要注意一下。
3.利用pandoc
pandoc一直被评为“瑞士军刀”,因为在很多格式面前都有很大的作用;但是此方法更适合应用在linux系统上,此外在针对中文编码上需要先安装latex才可以。
4.在线转换pdf
这里介绍一个比较好的转换网址,可将md文件格式转换成pdf的[网站](http://www.mdtr2pdf.com/index_en.html),转换效果笔者认为还算不错的。

Markdown制作ppt

平时制作PPT都是找到一个PPT模板,然后进行修改;往往找一个模板要考虑他的背景和动画效果;但如果时间很紧的话,这样显得不是特别的解决之道。如果熟悉Markdown的话,可以利用Marp这个编辑器,选择自己喜欢的ppt背景并生成pdf;在制作ppt上感觉速度还是较快的。Marp源代码在这里;而具体的release版本在这里

这里放出marp的一个模板

Marp
=== # ![](images/marp.png) ##### Markdown presentation writer, powered by [Electron](http://electron.atom.io/) ###### Created by Yuki Hattori ( [@yhatt](https://github.com/yhatt) ) --- # Features - **Slides are written in Markdown.**
- Cross-platform. Supports Windows, Mac, and Linux
- Live Preview with 3 modes
- Slide themes (`default`, `gaia`) and custom background images
- Supports emoji :heart:
- Render maths in your slides
- Export your slides to PDF --- # How to write slides? Split slides by horizontal ruler `---`. It's very simple. ```md
# Slide 1 foobar --- # Slide 2 foobar

Notice: Ruler (<hr>) is not displayed in Marp.


Directives

Marp's Markdown has extended directives to affect slides.

Insert HTML comment as below:

<!-- {directive_name}: {value} -->
<!--
{first_directive_name}: {value}
{second_directive_name}: {value}
...
-->

Global Directives

$theme

Changes the theme of all the slides in the deck. You can also change from View -> Theme menu.

<!-- $theme: gaia -->
Theme name Value Directive
Default default <!-- $theme: default -->
Gaia gaia <!-- $theme: gaia -->

$width / $height

Changes width and height of all the slides.

You can use units: px (default), cm, mm, in, pt, and pc.

<!-- $width: 12in -->

$size

Changes slide size by presets.

Presets: 4:3, 16:9, A0-A8, B0-B8 and suffix of -portrait.

<!-- $size: 16:9 -->


Page Directives

The page directive would apply to the current page and the following pages.

You should insert it at the top to apply it to all slides.

page_number

Set true to show page number on slides. See lower right!

<!-- page_number: true -->


template

Set to use template of theme.

The template directive just enables that using theme supports templates.

<!--
$theme: gaia
template: invert
--> Example: Set "invert" template of Gaia theme.

footer

Add a footer to the current slide and all of the following slides

<!-- footer: This is a footer -->

Example: Adds "This is a footer" in the bottom of each slide


prerender

Pre-renders a slide, which can prevent issues with very large background images.

<!-- prerender: true -->

Pro Tips

Apply page directive to current slide only

Page directive can be selectively applied to the current slide by prefixing the page directive with *.

<!-- *page_number: false -->
<!-- *template: invert -->


Slide background Images

You can set an image as a slide background.

![bg](mybackground.png)

Options can be provided after bg, for example ![bg original](path).

Options include:

  • original to include the image without any effects
  • x% to include the image at x percent of the slide size

Include multiple![bg](path) tags to stack background images horizontally.


Maths Typesetting

Mathematics is typeset using the KaTeX package. Use $ for inline maths, such as \(ax^2+bc+c\), and $$ for block maths:

\[I_{xx}=\int\int_Ry^2f(x,y)\cdot{}dydx
\]

This is inline: $ax^2+bx+c$, and this is block:

$$I_{xx}=\int\int_Ry^2f(x,y)\cdot{}dydx$$


Enjoy writing slides!

关于Markdown的一些学习笔记的更多相关文章

  1. Markdown公式编辑学习笔记

    一.公式使用参考 1.如何插入公式 行中公式(放在文中与其它文字混编)可以用如下方法表示:$ 数学公式 $ 独立公式可以用如下方法表示:$$ 数学公式 $$ 自动编号的公式可以用如下方法表示: 若需要 ...

  2. MarkDown语法 学习笔记 效果源码对照

    MarkDown基本语法学习笔记 Markdown是一种可以使用普通文本编辑器编写的标记语言,通过简单的标记语法,它可以使普通文本内容具有一定的格式. 下面将对Markdown的基本使用做一个介绍 目 ...

  3. Markdown 学习笔记: Basics

    Markdown 学习笔记: Basics 原文:Basics. 了解Markdown格式化句法的要点 本页对如何使用Markdown提供了一个简单的概述.在"句法"页中对Mark ...

  4. GitHub与Markdown(学习笔记)

    一.学前提问: 1.GitHub用翻墙吗? 访问 GitHub 不用翻墙,只是可能访问速度稍慢些. 2.英语差学得会吗? GitHub 虽然都是英文,但是,对英语水平的要求不是那么高,都是些简单的单词 ...

  5. [ASP.NET MVC] ASP.NET Identity学习笔记 - 原始码下载、ID型别差异

    [ASP.NET MVC] ASP.NET Identity学习笔记 - 原始码下载.ID型别差异 原始码下载 ASP.NET Identity是微软所贡献的开源项目,用来提供ASP.NET的验证.授 ...

  6. RoadTrip 学习笔记

    #RoadTrip 学习笔记 本篇是在Cmd Markdown中写完粘贴来的. RoadTrip介绍 RoadTrip 项目地址:https://github.com/romainguy/road-t ...

  7. Jade学习笔记

    初学nodejs,折腾过用handlebars做模板,后来隔了一段重新学习,用了jade,真心简洁……记录一些学习笔记,以备复习. jade是基于缩进的,所以tab与space不能混用: 属性的设置: ...

  8. pure学习笔记

    最近研究Pure,发现这个对于写css来说确实是个好的框架,特此总结了一番,如有错误或不足的地方,欢迎交流指点,轻拍. 此文运用的是优雅的Markdown而书 Pure学习笔记 #写在最前 1# Pu ...

  9. udacity android 学习笔记: lesson 4 part b

    udacity android 学习笔记: lesson 4 part b 作者:干货店打杂的 /titer1 /Archimedes 出处:https://code.csdn.net/titer1 ...

随机推荐

  1. Java 处理批量数据提交

    在Java web开发过程中,处理表单数据是很重要一部分,常见的是form post处理单条数据的,但也会遇到一次提交多条数据到服务器的,如下:

  2. POJ1061 青蛙的约会 和 LOJ2721 「NOI2018」屠龙勇士

    青蛙的约会 Language:Default 青蛙的约会 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 133470 Accep ...

  3. P1731 生日蛋糕

    题目背景 7月17日是Mr.W的生日,ACM-THU为此要制作一个体积为Nπ的M层 生日蛋糕,每层都是一个圆柱体. 设从下往上数第i(1<=i<=M)层蛋糕是半径为Ri, 高度为Hi的圆柱 ...

  4. POJ(2186)强连通分量分解

    #include<cstdio> #include<vector> #include<cstring> using namespace std; ; vector& ...

  5. 第三课 go语言基础语法

    http://www.runoob.com/go/go-basic-syntax.html 1 行分隔符 在 Go 程序中,一行代表一个语句结束.每个语句不需要像 C 家族中的其它语言一样以分号 ; ...

  6. ng2 中使用echart

    1.首先创建echarts指令 //echart.directive.ts important { Directive,ElementRef,Input,Ouput,Onchanges,OnInit, ...

  7. 在python3.6下 发明一个类似python3.7 dataclass数据类,不用在 __init__中self.xx

    虽然我用3.6,但我在2.7转3.6时候,把3.3 3.4 3.5 3.6的变化都看了一次,虽然已经忘了哪些变化.同时也关注3.7 3.8的变化,3.7中就有1个数据类印象深刻,因为之前在定义这种类时 ...

  8. C#自定义控件 绘制框

    上几张测试的 效果 虽然全是用.net 的绘图库画的,但是手动双缓冲,不会闪烁,感觉还不错,源码开放了,喜欢的拿去扩展吧; 用于撤销的存放图像的数据结构我设置为10个,怕是内存崩了,我看mspaint ...

  9. linux日常管理-rsync后台服务方式-2

    把本地的数据拷贝到远程 这里是个错误,read only.只允许读,不允许写. 改一下远程机器的配置文件 把read only改为no 拷贝到远程成功 tree一下远程机器的目录 ////////// ...

  10. 17_点击事件第四种写法_布局文件添加onclick属性

    尽量不要用第四种点击事件的写法.在一万多行代码中发现了一个没被调用的代码 public void call(View v){//第四种写法参数一定是View v //public void call( ...