Coder Social home page Coder Social logo

oi-wiki-export's Introduction

OI-Wiki-export

将 OI-Wiki 导出为印刷质量的 pdf 的工具。

导出

我们建议在 Linux 环境下进行导出操作。

首先请安装好以下软件包:

  • TeXLive
  • NodeJS
  • imagemagick
  • libwebp
  • librsvg
  • pygments

所需字体:

  • Roboto Mono
  • Noto 系列字体(包括 Noto Sans, Noto Serif, Noto Sans CJK SC, Noto Serif CJK SC)
  • CM Unicode 字体

然后安装所需依赖:

cd oi-wiki-export
npm install

然后运行导出脚本,将 OI-Wiki 源文件转换为 LaTeX 格式:

node index.js path/to/OI-wiki/repo

然后使用 latexmk 编译导出后得到的 tex 文档

latexmk -shell-escape -8bit -xelatex oi-wiki-export.tex

最终得到的 oi-wiki-export.pdf 即为结果。

故障排除

  • 在导出过程中可能会存在部分图片导出不成功的问题,目前尚未解决

注意

在使用导出得到的 pdf 时,应当注意 OI-wiki 的 LICENSE。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.