Giter VIP home page Giter VIP logo

pandoc-gpp's Introduction

pandoc-gpp

pandoc-gpp is a wrapper aroung pandoc and gpp allowing pandoc users who want to go from markdown to pdf/html to :

  • include files
  • add missing features : underline, color
  • include code directly
  • include images with specific ratio
  • include graphs
  • include tables based on csv files

The code is still evolving to cope with different type of limitations of the markdown specifications.

Installation

Python dependencies

pandoc-gpp depends on three external python packages :

  • pygal (version >= 1.0.0) for the generation of graphs in svg
  • CairoSVG (version >= 0.5) for the conversion of png from svg
  • cssselect (version >= 0.8) extra dependency for CairoSVG

These dependencies will be installed (if not present) during the installation of pandoc-gpp.

Prerequisites

To use pandoc-gpp some packages are required : python (version 2.6 is ok). It's needed to run pandoc-gpp (which is written in python), python-dev, python-cairo, gpp, build-essential (you need a gcc compiler), libxslt1-dev (cairosvg needs lxml which needs xslt and libxml2)

Installation

To install pandoc-gpp, simply do :

$ sudo python setup.py install

Limitations

pandoc-gpp does provide several macros that are available for some input formats and some output formats. It is mainly dedicated to markdown as input format and HTML/EPUB/LATEX/PDF for output formats. However, some macros only include code (so it's up to you to make included code match the current code) and others translate to markdown before being processed by pandoc.

License

This software is licensed under the AGPL v3.0 License. See the COPYING file in the top distribution directory for the full license text.

pandoc-gpp's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

pandoc-gpp's Issues

Crash

Trying a file like this

\include{t.txt}

And t.txt as

testing

when running pandoc-gpp t.pandoc gives

pandoc-gpp dave3605_notater.pandoc
Traceback (most recent call last):
  File "/usr/bin/pandoc-gpp", line 4, in <module>
    __import__('pkg_resources').run_script('pandoc-gpp==0.2.5', 'pandoc-gpp')
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 696, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1621, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/lib/python2.7/site-packages/pandoc_gpp-0.2.5-py2.7.egg/EGG-INFO/scripts/pandoc-gpp", line 113, in <module>

  File "/usr/lib/python2.7/site-packages/pandoc_gpp-0.2.5-py2.7.egg/EGG-INFO/scripts/pandoc-gpp", line 93, in main

  File "/usr/lib/python2.7/site-packages/pandoc_gpp-0.2.5-py2.7.egg/EGG-INFO/scripts/pandoc-gpp", line 72, in parseOptions

TypeError: argument of type 'NoneType' is not iterable

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.