GithubHelp home page GithubHelp logo

iot-doc's Introduction

##安装pandoc## 这是一个痛苦而又复杂的过程,当然也可以直接下载[Pandoc][0] [0]:http://code.google.com/p/pandoc/downloads/list

###安装ghc### port安装ghc

 sudo port install ghc

homebrew安装ghc

brew install ghc

###编译cabal###

Common Architecture for Building Applications and Libraries2

Cabal是Haskell用于构建应用程序和库的公共架构。

简单的来说它是haskell的包管理,和上面的port、brew 命令类似。

下载地址http://haskell.org/cabal/

解压后

ghc --make Setup.hs
./Setup configure
./Setup build 
sudo ./Setup install

###安装cabal###

安装之前我们需要更新

cabal update

安装pandoc

cabal install pandoc

添加到PATH

 export PATH=/Users/fdhuang/.cabal/bin:$PATH

#markdown 转doc#

pandoc iot.md -o iot.docx

#markdown 转pdf# 这里只针对于安装了mactex

##安装mactex##

下载地址:

http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg

##markdown转pdf##

不含中文时

 pandoc doc.pandoc doc.pdf   

含有中文时的简单作法

 pandoc --latex-engine=xelatex iot.md -o iot.pdf -V mainfont="SimSun"

iot-doc's People

Contributors

phodal avatar plinx avatar

Watchers

 avatar James Cloos avatar

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.