feat: add Pacman
.
This commit is contained in:
parent
a0754c5397
commit
df9bf1f5e9
11
README.md
11
README.md
@ -150,7 +150,7 @@ Quick Reference
|
|||||||
[Find](./docs/find.md)<!--rehype:style=background: rgb(16 185 129);-->
|
[Find](./docs/find.md)<!--rehype:style=background: rgb(16 185 129);-->
|
||||||
[FFmpeg](./docs/ffmpeg.md)<!--rehype:style=background: rgb(0 193 9);&class=contributing-->
|
[FFmpeg](./docs/ffmpeg.md)<!--rehype:style=background: rgb(0 193 9);&class=contributing-->
|
||||||
[Gdb](./docs/gdb.md)<!--rehype:style=background: rgb(215 89 62);-->
|
[Gdb](./docs/gdb.md)<!--rehype:style=background: rgb(215 89 62);-->
|
||||||
[Git](./docs/git.md)<!--rehype:style=background: rgb(215 89 62);-->
|
[Git](./docs/git.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=版本控制-->
|
||||||
[Grep](./docs/grep.md)<!--rehype:style=background: rgb(16 185 129);-->
|
[Grep](./docs/grep.md)<!--rehype:style=background: rgb(16 185 129);-->
|
||||||
[Htop](./docs/htop.md)<!--rehype:style=background: rgb(16 185 129);-->
|
[Htop](./docs/htop.md)<!--rehype:style=background: rgb(16 185 129);-->
|
||||||
[iptables](./docs/iptables.md)<!--rehype:style=background: rgb(32 74 135);-->
|
[iptables](./docs/iptables.md)<!--rehype:style=background: rgb(32 74 135);-->
|
||||||
@ -162,16 +162,17 @@ Quick Reference
|
|||||||
[Netcat](./docs/netcat.md)<!--rehype:style=background: rgb(4 92 135);-->
|
[Netcat](./docs/netcat.md)<!--rehype:style=background: rgb(4 92 135);-->
|
||||||
[OpenSSL](./docs/openssl.md)<!--rehype:style=background: rgb(114 20 18);-->
|
[OpenSSL](./docs/openssl.md)<!--rehype:style=background: rgb(114 20 18);-->
|
||||||
[ps](./docs/ps.md)<!--rehype:style=background: rgb(99 99 99);-->
|
[ps](./docs/ps.md)<!--rehype:style=background: rgb(99 99 99);-->
|
||||||
|
[Pandoc](./docs/pandoc.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=文档转换器-->
|
||||||
[Sed](./docs/sed.md)<!--rehype:style=background: rgb(16 185 129);-->
|
[Sed](./docs/sed.md)<!--rehype:style=background: rgb(16 185 129);-->
|
||||||
[Systemd](./docs/systemd.md)<!--rehype:style=background: rgb(16 185 129);-->
|
[Systemd](./docs/systemd.md)<!--rehype:style=background: rgb(16 185 129);-->
|
||||||
[SSH](./docs/ssh.md)<!--rehype:style=background: rgb(99 99 99);-->
|
[SSH](./docs/ssh.md)<!--rehype:style=background: rgb(99 99 99);-->
|
||||||
[Subversion (SVN)](./docs/subversion.md)<!--rehype:style=background: rgb(99 99 99);-->
|
[Subversion (SVN)](./docs/subversion.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=版本控制-->
|
||||||
[Screen](./docs/screen.md)<!--rehype:style=background: rgb(99 99 99);-->
|
[Screen](./docs/screen.md)<!--rehype:style=background: rgb(99 99 99);-->
|
||||||
[Sysdig](./docs/sysdig.md)<!--rehype:style=background: rgb(1 171 199);-->
|
[Sysdig](./docs/sysdig.md)<!--rehype:style=background: rgb(1 171 199);-->
|
||||||
[Tmux](./docs/tmux.md)<!--rehype:style=background: rgb(99 99 99);-->
|
[Tmux](./docs/tmux.md)<!--rehype:style=background: rgb(99 99 99);-->
|
||||||
[Taskset](./docs/taskset.md)<!--rehype:style=background: rgb(99 99 99);-->
|
[Taskset](./docs/taskset.md)<!--rehype:style=background: rgb(99 99 99);-->
|
||||||
[tar](./docs/tar.md)<!--rehype:style=background: rgb(215 89 62);-->
|
[tar](./docs/tar.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=解压缩-->
|
||||||
[Zip](./docs/zip.md)<!--rehype:style=background: rgb(99 99 99);-->
|
[Zip](./docs/zip.md)<!--rehype:style=background: rgb(99 99 99);&class=tag&data-lang=解压缩-->
|
||||||
<!--rehype:class=home-card-->
|
<!--rehype:class=home-card-->
|
||||||
|
|
||||||
## 工具箱
|
## 工具箱
|
||||||
@ -184,7 +185,7 @@ Quick Reference
|
|||||||
[Homebrew](./docs/homebrew.md)<!--rehype:style=background: rgb(252 185 87);&class=tag&data-lang=macOS-->
|
[Homebrew](./docs/homebrew.md)<!--rehype:style=background: rgb(252 185 87);&class=tag&data-lang=macOS-->
|
||||||
[Linux Command](./docs/linux-command.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=命令速查-->
|
[Linux Command](./docs/linux-command.md)<!--rehype:style=background: rgb(215 89 62);&class=tag&data-lang=命令速查-->
|
||||||
[Mitmproxy](./docs/mitmproxy.md)<!--rehype:style=background: rgb(4 92 135);-->
|
[Mitmproxy](./docs/mitmproxy.md)<!--rehype:style=background: rgb(4 92 135);-->
|
||||||
[pacman](./docs/pacman.md)<!--rehype:style=background: rgb(24 147 209);&class=tag&data-lang=archlinux&class=contributing-->
|
[Pacman](./docs/pacman.md)<!--rehype:style=background: rgb(24 147 209);&class=tag&data-lang=archlinux&class=contributing-->
|
||||||
[YUM](./docs/yum.md)<!--rehype:style=background: rgb(86 86 123);-->
|
[YUM](./docs/yum.md)<!--rehype:style=background: rgb(86 86 123);-->
|
||||||
<!--rehype:class=home-card-->
|
<!--rehype:class=home-card-->
|
||||||
|
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
Github Copilot 备忘清单
|
Github Copilot 备忘清单
|
||||||
===
|
===
|
||||||
|
|
||||||
这是开始使用 [Github Copilot](https://code.visualstudio.com/docs/editor/github-copilot) 的快速参考指南。
|
这是开始使用 [Github Copilot](https://code.visualstudio.com/docs/editor/github-copilot) 的快速参考指南
|
||||||
|
|
||||||
\* 校对、错误请指正。📮邮箱: <a href="mailto:jussker@outlook.com">jussker@outlook.com</a>
|
|
||||||
|
|
||||||
一、准备工作
|
一、准备工作
|
||||||
----
|
----
|
||||||
|
168
docs/pandoc.md
Normal file
168
docs/pandoc.md
Normal file
@ -0,0 +1,168 @@
|
|||||||
|
Pandoc 备忘清单
|
||||||
|
===
|
||||||
|
|
||||||
|
Pandoc 是一个文档转换器,这个 [pandoc](https://pandoc.org/) 备忘单包含 pandoc 命令和一些常见的 pandoc 技巧
|
||||||
|
|
||||||
|
入门
|
||||||
|
---
|
||||||
|
|
||||||
|
### 语法
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc -s [source file] -o [output file]
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
- [Pandoc 官方文档](https://pandoc.org/)
|
||||||
|
|
||||||
|
#### 安装
|
||||||
|
|
||||||
|
安装命令 | 环境
|
||||||
|
:-|-
|
||||||
|
`$ brew install pandoc` | macos
|
||||||
|
`$ choco install pandoc` | windows
|
||||||
|
|
||||||
|
#### Debian/Ubuntu
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo apt-get update
|
||||||
|
$ sudo apt-get install pandoc
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Fedora
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo dnf install pandoc
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Arch Linux
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ sudo pacman -S pandoc
|
||||||
|
```
|
||||||
|
|
||||||
|
### 将 LaTeX 转换为 MS Word
|
||||||
|
<!--rehype:wrap-class=col-span-2-->
|
||||||
|
|
||||||
|
简单的 `.tex` 到 `.docx`
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc -s file.tex -o file.docx
|
||||||
|
```
|
||||||
|
|
||||||
|
将 `.tex` 转换为 `.docx` 并使用默认引文
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc -s file.tex --citeproc --bibliography=bib_library.bib -o file.docx
|
||||||
|
```
|
||||||
|
|
||||||
|
将 `.tex` 文件转换为 `.docx` 文件,并注明具体引文
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc -s file.tex --citeproc --bibliography=bib_library.bib --csl=apa.csl -o file.docx
|
||||||
|
```
|
||||||
|
|
||||||
|
`.tex` 到 `.docx`,带交叉引用
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc -s file.tex --filter pandoc-crossref -o file.docx
|
||||||
|
```
|
||||||
|
|
||||||
|
使用示例
|
||||||
|
---
|
||||||
|
|
||||||
|
### 转换文件格式
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.pdf
|
||||||
|
```
|
||||||
|
|
||||||
|
### 支持的输入格式
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc -s input.txt -o output.html
|
||||||
|
```
|
||||||
|
|
||||||
|
### 自定义输出格式
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md --to=latex -o output.tex
|
||||||
|
```
|
||||||
|
|
||||||
|
### 添加元数据
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.pdf --metadata title="My Document"
|
||||||
|
```
|
||||||
|
<!--rehype:className=wrap-text-->
|
||||||
|
|
||||||
|
### 从 URL 转换
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc https://example.com/document.md -o output.pdf
|
||||||
|
```
|
||||||
|
<!--rehype:className=wrap-text-->
|
||||||
|
|
||||||
|
### 生成幻灯片
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -t beamer -o output.pdf
|
||||||
|
```
|
||||||
|
|
||||||
|
### 合并文件
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc file1.md file2.md -o output.pdf
|
||||||
|
```
|
||||||
|
|
||||||
|
### 指定样式文件
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.pdf --css=style.css
|
||||||
|
```
|
||||||
|
<!--rehype:className=wrap-text-->
|
||||||
|
|
||||||
|
### 转换为 AsciiDoc
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.asciidoc
|
||||||
|
```
|
||||||
|
|
||||||
|
### 转换为 Docx 格式
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.docx
|
||||||
|
```
|
||||||
|
|
||||||
|
### 执行 Lua 过滤器
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md --lua-filter=custom-filter.lua -o output.pdf
|
||||||
|
```
|
||||||
|
<!--rehype:className=wrap-text-->
|
||||||
|
|
||||||
|
### 自动生成目录
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.pdf --toc
|
||||||
|
```
|
||||||
|
|
||||||
|
### 禁用目录编号
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.pdf --toc --toc-depth=2
|
||||||
|
```
|
||||||
|
<!--rehype:className=wrap-text-->
|
||||||
|
|
||||||
|
### 显示详细信息
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc input.md -o output.pdf -v
|
||||||
|
```
|
||||||
|
|
||||||
|
### 查看支持的输出格式
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ pandoc --list-output-formats
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user