refine doc about export via pandoc

This commit is contained in:
Le Tan 2019-12-17 07:57:36 +08:00
parent e10b52d111
commit c17ced1587
4 changed files with 17 additions and 5 deletions

View File

@ -87,10 +87,16 @@ Advanced settings:
- `%3`: the input file directories; - `%3`: the input file directories;
- `%4`: the rendering code block CSS style file to be used; - `%4`: the rendering code block CSS style file to be used;
An example to use [pandoc](http://pandoc.org) to export notes: An example to use [Pandoc](http://pandoc.org) to export notes:
```sh ```sh
pandoc --resource-path=.:"%3" --css="%2" --css="%4" -s -o "%1" "%0" pandoc --resource-path=.:"%3" --css="%2" --css="%4" -s -o "%1" "%0"
``` ```
Then if the output suffix is `pdf`, it will generate the PDF file; if it is `docx`, it will generate the DOCX file. ::: alert-info
On Windows, you need to change the separator from `:` to `;` according to Pandoc.
:::
If the output suffix is `pdf`, it will generate the PDF file; if it is `docx`, it will generate the DOCX file; and if it is `pptx`, it will generate the PPTX file.

View File

@ -86,7 +86,7 @@
"attachments": [ "attachments": [
], ],
"created_time": "2018-11-24T12:19:30Z", "created_time": "2018-11-24T12:19:30Z",
"modified_time": "2018-11-24T12:19:40Z", "modified_time": "2019-12-16T23:55:02Z",
"name": "Export.md", "name": "Export.md",
"tags": [ "tags": [
] ]

View File

@ -86,7 +86,7 @@
"attachments": [ "attachments": [
], ],
"created_time": "2018-11-24T12:30:14Z", "created_time": "2018-11-24T12:30:14Z",
"modified_time": "2018-11-24T12:35:05Z", "modified_time": "2019-12-16T23:57:13Z",
"name": "导出.md", "name": "导出.md",
"tags": [ "tags": [
] ]

View File

@ -93,4 +93,10 @@ VNote支持将笔记导出为PDF文件。页面大小和边距是可配置的。
pandoc --resource-path=.:"%3" --css="%2" --css="%4" -s -o "%1" "%0" pandoc --resource-path=.:"%3" --css="%2" --css="%4" -s -o "%1" "%0"
``` ```
如果之后输出的后缀是`pdf`它将生成PDF文件如果是`docx`它将生成DOCX文件。 ::: alert-info
根据Pandoc语法Windows上需要将分隔符`:`改为`;`
:::
如果输出的后缀是`pdf`它将生成PDF文件如果是`docx`它将生成DOCX文件如果是`pptx`它将生成PPTX文件。