{ "info": { "author": "Damien Clochard", "author_email": "daamien@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools", "Topic :: Software Development :: Documentation", "Topic :: Text Processing :: Filters" ], "description": "pandoc-latex-barcode\n===============================================================================\n\n[![Build Status](https://travis-ci.org/daamien/pandoc-latex-barcode.svg?branch=master)](https://travis-ci.org/daamien/pandoc-latex-barcode)\n[![Docker Automated Build](https://img.shields.io/docker/automated/daamien/pandoc-latex-barcode.svg)](https://hub.docker.com/r/daamien/pandoc-latex-barcode/)\n\nA pandoc filter to insert barcodes and QR codes in a latex/pdf document\n\nThe filter is written in Python with [panflute](http://scorreia.com/software/panflute/) \nwhich I recommend if you want to create your own pandoc filters.\n \n\nInstall\n-------------------------------------------------------------------------------\n\n```\nsudo pip install pandoc-latex-barcode\n```\n\nor \n\n```\ndocker run -d daamien/pandoc-latex-barcode\n```\n\nQuick Start\n-------------------------------------------------------------------------------\n\n### 1- Create a specific pandoc template\n\nFirst you need to the following packages to the latex template :\n\n```latex\n\\usepackage{pstricks}\n\\usepackage{pst-barcode}\n```\n\nFor your convenience, here's a complete one based on the pandoc default latex\ntemplate :\n\n[pandoc-latex-barcode.template.tex](pandoc-latex-barcode.template.tex)\n\n\n### 2- Add a barcode tag to your markdown file\n\n\nTo generate a generic barcode:\n\n``` \n
Hello World !
\n``` \n\nTo generate an ISBN barcode:\n\n```\n
978-3-86541-114
\n```\n\nTo generate a QR code:\n\n``` \n
http://www.pandoc.org
\n``` \n\n\n### 3- Enjoy !\n\n```\npandoc --filter pandoc-latex-barcode \\\n --template ./pandoc_latex_barcode.template.tex \\\n --latex-engine xelatex \\\n ./pandoc_latex_barcode.sample.md \\ \n -o ./pandoc_latex_barcode.sample.pdf\n```\n\nNote : The xelatex engine is mandatory because of pstricks.\n\n\nConfiguration\n-------------------------------------------------------------------------------\n\n\n\nThere's also few parameters you can setup in the document front matter :\n\n```yaml\nbarcode: { \n barcode_width: '50mm', \n barcode_height: '30mm', \n qrcode_width: '25mm', \n qrcode_height: '25mm' , \n isbn: '123-4-56789-111', \n} \n \n```\n\n- **barcode_width** and **barcode_height** defines the size of the barcode.\n _Default_ : 50mmx30mm\n\n- **qrcode_width** and **qrcode_height** defines the size of the QR code. \n _Default_ : 25mmx25mm\n\n- **isbn** : overides the value inside the ``
``\n __Default__ : ``None``\n\nFor more details, please refer to the _pst-barcode_ documentation :\n\nhttp://texdoc.net/texmf-dist/doc/generic/pst-barcode/pst-barcode-doc.pdf\n\nExample\n-------------------------------------------------------------------------------\n\nSee [pandoc-latex-barcode.sample.md](pandoc-latex-barcode.sample.md)\n\nand [pandoc-latex-barcode.sample.pdf](pandoc-latex-barcode.sample.pdf)\n\nContributing & Getting Help\n-------------------------------------------------------------------------------\n\nIf you have any difficulties with this software, please file an issue here :\n\nhttps://github.com/daamien/pandoc-latex-barcode/issues\n\nLicense\n-------------------------------------------------------------------------------\n\nThis software is available under the BSD 3-Clause Licence.\n\nsee [LICENSE](LICENSE)", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/daamien/pandoc-latex-barcode/archive/master.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/daamien/pandoc-latex-barcode", "keywords": "pandoc,filters,latex,barcode,qrcode", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "pandoc-latex-barcode", "package_url": "https://pypi.org/project/pandoc-latex-barcode/", "platform": "", "project_url": "https://pypi.org/project/pandoc-latex-barcode/", "project_urls": { "Download": "https://github.com/daamien/pandoc-latex-barcode/archive/master.zip", "Homepage": "https://github.com/daamien/pandoc-latex-barcode" }, "release_url": "https://pypi.org/project/pandoc-latex-barcode/1.1.1/", "requires_dist": null, "requires_python": "", "summary": "A pandoc filter to insert barcodes and QR codes in a latex/pdf document", "version": "1.1.1" }, "last_serial": 3536396, "releases": { "1.0.8": [ { "comment_text": "", "digests": { "md5": "d13872a64cf40bef6f5b5f62c2969494", "sha256": "c5fe7d2a19c46deb6e227b14861076329e8e5985ad5eddae1a67a0f7e582c2d8" }, "downloads": -1, "filename": "pandoc-latex-barcode-1.0.8.tar.gz", "has_sig": false, "md5_digest": "d13872a64cf40bef6f5b5f62c2969494", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4508, "upload_time": "2017-01-07T13:13:39", "url": "https://files.pythonhosted.org/packages/00/25/152f81008c632c2932e5cf93be5dba4abd2d43131db7684d4b4483390233/pandoc-latex-barcode-1.0.8.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "6ab656741de82c294ae0ca749b2ba460", "sha256": "2646e4d74d66c8264e4e035b07113ccd5a3cb7e92969548535f4e656c6628608" }, "downloads": -1, "filename": "pandoc-latex-barcode-1.1.1.tar.gz", "has_sig": false, "md5_digest": "6ab656741de82c294ae0ca749b2ba460", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4605, "upload_time": "2018-01-30T21:21:34", "url": "https://files.pythonhosted.org/packages/3d/f8/171367ee4ae66ceb87b2344e2350c2d8d950ad49322cb22202f298532ce4/pandoc-latex-barcode-1.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6ab656741de82c294ae0ca749b2ba460", "sha256": "2646e4d74d66c8264e4e035b07113ccd5a3cb7e92969548535f4e656c6628608" }, "downloads": -1, "filename": "pandoc-latex-barcode-1.1.1.tar.gz", "has_sig": false, "md5_digest": "6ab656741de82c294ae0ca749b2ba460", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4605, "upload_time": "2018-01-30T21:21:34", "url": "https://files.pythonhosted.org/packages/3d/f8/171367ee4ae66ceb87b2344e2350c2d8d950ad49322cb22202f298532ce4/pandoc-latex-barcode-1.1.1.tar.gz" } ] }