跳至主要内容

博文

目前显示的是标签为“Tooling”的博文

From markdown to PDF using Pandoc

花了点儿时间玩 Pandoc,将一些 Markdown 文档转换为 PDF 文档。 首先参考[官方文档](https://pandoc.org/installing.html)在 Mac OS 上安装了 Pandoc: > You can install pandoc using homebrew: `brew install pandoc`. > > There is a package installer at pandoc’s download page. If you later want to uninstall the package, you can do so by downloading this script and running it with perl uninstall-pandoc.pl. > > We also provide a zip file containing the binaries and man pages, for those who prefer not to use the installer. Simply unzip the file and move the binaries and man pages to whatever directory you like. > > For PDF output, you’ll also need LaTeX. Because a full MacTeX installation takes more than a gigabyte of disk space, we recommend installing BasicTeX (64M) and using the tlmgr tool to install additional packages as needed. If you get errors warning of fonts not found, try `tlmgr install collection-fontsrecommended` 安装了 BasicTex 之后一直在 Apps 里寻找 `LaTex` 或是 `BasicTex` 这样的应用,但是一无所获(?!) 后来跑到 MacTex...

Code to Graph

花了点儿时间寻找适合 code 转换为 graph 的工具,发现了 pandoc 和 Graphviz。 [Graphviz](https://graphviz.gitlab.io/documentation/) 貌似比较有趣,下载了一个Windows的版本,安装之后在 Win10 上没有任何的图标添加,要自己到安装目录下找到 `bin/gvedit.exe` 打开。 另外找到了一篇[很详细的攻略](http://blog.jobbole.com/94472/)来学习如何使用 Dot 语言来绘图。