https://github.com/martisak/pandoc-shortcaption
Adds pandoc filter for short LaTeX captions.
https://github.com/martisak/pandoc-shortcaption
Last synced: 2 days ago
JSON representation
Adds pandoc filter for short LaTeX captions.
- Host: GitHub
- URL: https://github.com/martisak/pandoc-shortcaption
- Owner: martisak
- License: gpl-3.0
- Created: 2017-01-11T17:06:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T00:23:19.000Z (about 8 years ago)
- Last Synced: 2024-08-06T03:03:22.947Z (11 months ago)
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# pandoc-shortcaption filter
[](https://travis-ci.org/martisak/pandoc-shortcaption) [](https://badge.fury.io/py/pandoc-shortcaption)
`pandoc-shortcaption` is a [pandoc](http://pandoc.org/) filter for adding short captions to images in LaTeX output, i.e. `\caption[Short caption]{Long caption}`.
## Installation
~~~
pip install pandoc-shortcaption
~~~or
~~~
python setup.py install
~~~## Basic usage
~~~

~~~Compile with
~~~
pandoc -f markdown -t latex --filter pandoc-shortcaption test.md
~~~If you would like to use with [pandoc-crossref](https://github.com/lierdakil/pandoc-crossref), then add that filter afterwards.
~~~
{#fig:myfig2}Here is a reference to @fig:myfig2.
~~~You can also add a width in percent (no other units supported as of now).
~~~
{#fig:myfig2 width=60%}
~~~Compile with
~~~
pandoc -f markdown -t latex --filter pandoc-shortcaption --filter pandoc-crossref test.md
~~~## Acknowledgments and references
Inspired by [Template for writing a PhD thesis in Markdown](https://github.com/tompollard/phd_thesis_markdown).
* [Python Apps the Right Way: entry points and scripts](https://chriswarrick.com/blog/2014/09/15/python-apps-the-right-way-entry_points-and-scripts/)
* [pandocfilters](https://github.com/jgm/pandocfilters)