Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zommerfelds/pandoc-image-in-table
A very simple Pandoc filter to properly position images inside a table for LaTeX output
https://github.com/zommerfelds/pandoc-image-in-table
Last synced: 3 months ago
JSON representation
A very simple Pandoc filter to properly position images inside a table for LaTeX output
- Host: GitHub
- URL: https://github.com/zommerfelds/pandoc-image-in-table
- Owner: zommerfelds
- Created: 2016-06-29T08:23:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T11:31:34.000Z (over 8 years ago)
- Last Synced: 2024-05-19T23:36:52.970Z (6 months ago)
- Language: Python
- Size: 597 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pandoc-image-in-table
A very simple Pandoc filter to properly center images inside a table for LaTeX output. It works by simply adding `\raisebox{-.5\height}{IMAGE}` to images occurring in a table.To use this filter, simply add `--filter table_image.py` to your Pandoc arguments.
## Demo
Given the following Markdown:
```
Name Surface area Photo
-------------- ----------------- -------------------
Earth 510,072,000 km^2^ ![](earth.png)
Mars 144,798,500 km^2^ ![](mars.png)
```### Example without the filter
`pandoc -o before.pdf demo.md`
![](demo/before.png)
### Example with the filter
`pandoc --filter ../table_image.py -o after.pdf demo.md`
![](demo/after.png)