Skip to content

A simple pandoc filter that facilitates using the wrapfig package.

License

Notifications You must be signed in to change notification settings

nsheff/pandoc-wrapfig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandoc-wrapfig: A pandoc filter for pdf/LaTeX export with the wrapfig package

pandoc-wrapfig is a simple pandoc filter written in python 3. It simply allows use of the wrapfig package so that (specified) figures will have text wrapped around them.

Installation

Obviously, the wrapfig package must be installed.

A pandoc template must be used that contains \usepackage{wrapfig}. The included template is the default pandoc LaTeX template with this line added.

Usage

Simply include {x} at the end of the captions for figures that are to be wrapped. x is a number that specifies the width of the wrap in inches. Setting it to 0 will cause the width of the figure to be used (as per the wrapfig package instructions). Figures without the tag will float as usual.

Wrapping is specific to pdf/LaTeX output. For other formats, the tag is simply removed.

About

A simple pandoc filter that facilitates using the wrapfig package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 69.1%
  • Python 30.9%