Typora教程

Typora快捷键

目录

windows快捷键:

  • 无序列表:输入-之后输入空格

  • 有序列表:输入数字+“.”之后输入空格

  • 任务列表:-[空格]空格 文字

  • 标题:ctrl+数字

  • 表格:ctrl+t

  • 生成目录:

    目录

  • 选中一整行:ctrl+l

  • 选中单词:ctrl+d

  • 选中相同格式的文字:ctrl+e

  • 跳转到文章开头:ctrl+home

  • 跳转到文章结尾:ctrl+end

  • 搜索:ctrl+f

  • 替换:ctrl+h

  • 引用:输入>之后输入空格

  • 代码块:ctrl+alt+f

  • 加粗:ctrl+b

  • 倾斜:ctrl+i

  • 下划线:ctrl+u

  • 删除线:alt+shift+5

  • 插入图片:直接拖动到指定位置即可或者ctrl+shift+i

  • 插入链接:ctrl + k

给代码块设置快捷键:

偏好设置->打开高级设置->conf.user.json文件

1
2
3
4
5
6
7
8
Copy  "keyBinding": {
// for example:
// "Always on Top": "Ctrl+Shift+P"
"Always on Top": "Ctrl+Shift+P",
"Code Fences": "Ctrl+Shift+F",
"Ordered List":"Ctrl+Alt+o",
"Unordered List": "Ctrl+Alt+u"
},

Code Fences 代码块

Ordered List 数字有序列表

Unordered List 无序列表

Mac中的快捷键:

  1. 最大标题:command + 1 或者:#
  2. 大标题:command + 2 或者:##
  3. 标准标题:command + 3 或者:###
  4. 中标题:command + 4 或者:####
  5. 小标题:command + 5 或者:#####
  6. 插入表格:command + T
  7. 插入代码:command + alt +c
  8. 行间公式 command + Alt + b
  9. 段落:command + 0
  10. 竖线 : command + Alt +q
  11. 有序列表(1. 2.) :输入数字+“.”之后输入空格 或者:command + Alt + o
  12. 黑点标记:command + Alt + u
  13. 隔离线shift + command + -
  14. 超链接:command + Alt + l
  15. 插入链接:command +k
  16. 下划线:command +u
  17. 加粗:command +b
  18. 搜索:command +f

图片:

img img

表情

输出表情需要借助 符号。

栗子::smile 显示为 😄,记住是左右两边都要冒号。

使用者可以通过使用ESC键触发表情建议补全功能,也可在功能面板启用后自动触发此功能。同时,直接从菜单栏Edit -> Emoji & Symbols插入UTF8表情符号也是可以的。

或者使用下面的方法

访问网站 https://emojikeyboard.org/,找到需要的符号,鼠标左键单击,然后粘贴到需要的地方就行了!🆗

数学公式

你可以通过使用MathJax来实现LaTeX的数学符号的表达。

输入$$,然后按下Enter键就会弹出一个支持TeX/LaTeX语法的输入框,下面是一个栗子:

在Markdown源文件中,数学的公式块是通过利用$$标记借用LaTeX语言来实现的:

1
2
3
4
5
6
7
8
$$
\mathbf{V}_1 \times \mathbf{V}_2 =
\begin{vmatrix}
\mathbf{i} & \mathbf{j} & \mathbf{k} \\
\frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\
\frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \\
\end{vmatrix}
$$

\[ \mathbf{V}_1 \times \mathbf{V}_2 = \begin{vmatrix} \mathbf{i} & \mathbf{j} & \mathbf{k} \\ \frac{\partial X}{\partial u} & \frac{\partial Y}{\partial u} & 0 \\ \frac{\partial X}{\partial v} & \frac{\partial Y}{\partial v} & 0 \\ \end{vmatrix} \]

Another Example: \[ \begin{aligned} y = y(x,t) &= A e^{i\theta} \\ &= A (\cos \theta + i \sin \theta) \\ &= A (\cos(kx - \omega t) + i \sin(kx - \omega t)) \\ &= A\cos \frac{2\pi}{\lambda} (x - v t) + i A\sin \frac{2\pi}{\lambda} (x - v t) \end{aligned} \]

How to support latex in github-pages?

The easiest way to do this right now is to use the KaTeX auto-render extension.

Simply drop the following into your <head>:

Note that this assumes the following delimiters appear in your HTML:

1
2
3
$$\LaTeX code$$   (for display)
\\[\LaTeX code\\] (also for display)
\\(\LaTeX code\\) (for inline)

Note, if using Jekyll, you will need to have the following in your _config.yml:

1
2
3
markdown: kramdown
kramdown:
math_engine: katex

WARNING: Do not use math_engine: mathjax. It will break this by automatically removing the LaTeX delimiters.

Inline Example: \( i={}-1 \)

HTML

Typora不能使用HTML元素,但是Typora可以解析和编译非常有限的HTML元素,作为Markdown功能的补充,这些有限的功能包括:

  • 下划线: <u>underline</u>
  • 图片:<img src="http://www.w3.org/html/logo/img/mark-word-icon.png" width="200px" />(HTML标签中的width, height 以及属于样式的width, height, zoom样式可以被识别和应用。)
  • 评论:<!-- This is some comments -->
  • 超链接: <a href="http://typora.io" target="_blank">link</a>

大多数这些属性、样式或分类会被忽略。对其他的标签,Typora会将它们以HTML片段的形式表达。

行内嵌数学符号

想要使用这个功能,需要在设置面板的 Markdown栏启用它。然后使用$来启动TeX命令,栗如$\lim_{x \to \infty} \exp(-x) = 0$ 会以LaTeX的命令形式表达出来。

为了触发行内内嵌数学符号的实时编译你需要:输入$然后按下ESC键之后输入TeX命令,之后就会弹出一个如图所示的工具提示栏:

img

下标

想要使用这个功能,需要在设置面板的 Markdown 栏启动它,之后使用~来修饰下标文本。栗如:

H~2~OX~long\ text~ 显示为 H2O 和Xlong text 。

上标

想要使用这个功能,需要在设置面板的 Markdown 栏启动它,之后使用^来修饰下标文本。栗如:

X^2^ 显示为 X2 。

高亮

想要使用这个功能,需要在设置面板的Markdown 栏启动它,之后使用==来修饰高亮文本,栗如:

==highlight== 显示为 highlight 。

Markdown嵌套视频

1
2
3
<video id="video" controls="" preload="none" poster="https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=652322852,1290568523&fm=26&gp=0.jpg">
<source id="mp4" src="http://vfx.mtime.cn/Video/2019/03/19/mp4/190319222227698228.mp4" type="video/mp4">
</video>

简洁的写法:

1
2
3
4
5
6
7
<iframe 
width="800"
height="450"
src="https://v.miaopai.com/iframe?scid=SvyHaHOczsp7B6ftW86oqMMz62-h5ai6~Fwp8A__"
frameborder="0"
allowfullscreen>
</iframe>

Markdown嵌套音频

1
2
3
<audio id="audio" controls="" preload="none" style="box-sizing: border-box; display: inline-block; vertical-align: baseline; color: rgb(64, 64, 64); font-family: -apple-system, system-ui, &quot;Helvetica Neue&quot;, Arial, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, STHeiti, &quot;Microsoft YaHei&quot;, &quot;Microsoft JhengHei&quot;, &quot;Source Han Sans SC&quot;, &quot;Noto Sans CJK SC&quot;, &quot;Source Han Sans CN&quot;, &quot;Noto Sans SC&quot;, &quot;Source Han Sans TC&quot;, &quot;Noto Sans CJK TC&quot;, &quot;WenQuanYi Micro Hei&quot;, SimSun, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-style: initial; text-decoration-color: initial;">
<source id="mp3" src="http://m10.music.126.net/20201212152151/1248b0f87abd9ad542b2377c9818d22a/ymusic/0758/550f/545f/028d3b9421be8425d60dc57735cf6ebc.mp3">
</audio>

简洁的写法:

1
2
3
<audio id="audio" controls="" preload="none">
<source id="mp3" src="http://m10.music.126.net/20201212152151/1248b0f87abd9ad542b2377c9818d22a/ymusic/0758/550f/545f/028d3b9421be8425d60dc57735cf6ebc.mp3">
</audio>

嵌入PDF

当然,PDF也不在话下,通过 Google Drive Viewer 即可嵌入PDF

1
<iframe src="https://docs.google.com/viewer?url=http://infolab.stanford.edu/pub/papers/google.pdf&embedded=true" style="width:800px; height:500px;" frameborder="0"></iframe>

如果你会科学上网的话,那应该就可以成功在typorah中看到嵌入的PDF了:

参考:

https://baka943.coding.me/2018/02/08/2018-02-08-TyporaSimpleDoc/

在markdown中使用HTML中的特殊符号:

Markdown输入Latex公式的特殊符号

Markdown For Typora 中文版使用指南

Cmd Markdown 公式指导手册

Markdown 简介

作者:hongda

出处:https://www.cnblogs.com/hongdada/p/9776547.html

版权:本文采用「署名 4.0 国际」知识共享许可协议进行许可。


Typora教程
https://www.blog.spphoto.top/2020/08/15/2020-08-15-Typro教程/
Author
Starry
Posted on
August 15, 2020
Licensed under