在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rstropek/pandoc-latex开源软件地址(OpenSource Url):https://github.com/rstropek/pandoc-latex开源编程语言(OpenSource Language):Shell 69.3%开源软件介绍(OpenSource Introduction):Pandoc LaTeX with EisvogelIntroductionPandoc has an official Docker image pandoc/latex. I like to use the Eisvogel LaTeX template. Unfortunately, you cannot build PDFs from Markdown using this template with pandoc/latex. Some packages from TeX Live are missing. Therefore, I created a Docker image based on pandoc/latex that can build PDFs using Eisvogel. You can find it on Docker Hub under rstropek/pandoc-latex. ExamplesThe examples folder contains an example document (markdown content, YAML metadata) including the generated PDF document. UsageThe following Several optional packages, mentioned by pandoc/latex, are preinstalled in the image. Supported VersionsTested with Eisvogel LaTeX template 1.4.0. Linuxdocker run --rm \
-v `pwd`:/data \
-w /data \
rstropek/pandoc-latex \
-f markdown \
--template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v2.0.0/eisvogel.tex \
-t latex \
-o mydoc.pdf \
--metadata-file=mydoc.yaml \
mydoc.md Windowsdocker run --rm ^
-v %cd%:/data ^
-w /data ^
rstropek/pandoc-latex ^
-f markdown ^
--template https://raw.githubusercontent.com/Wandmalfarbe/pandoc-latex-template/v2.0.0/eisvogel.tex ^
-t latex ^
-o mydoc.pdf ^
--metadata-file=mydoc.yaml ^
mydoc.md DevelopmentBuild# Use a significative tag
# (e.g. here, follow the version of pandoc/latex used as the basis in the Dockerfile).
docker build -t rstropek/pandoc-latex:latest . TestsMake sure you have BATS installed. bats tests Tips and TricksManual Page BreaksTo insert manual page breaks, download pagebreak.lua. In the # Chapter 1
Some text goes here.
\newpage
# Chapter 2
Additional text goes here. ReferencesYou can read about citations in the Pandoc documentation. Here is a checklist for what you have to do:
references:
- title: Azure Homepage
container-title: Microsoft Website
id: Azure-Homepage
author: Microsoft
URL: https://azure.microsoft.com
type: webpage
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论