This project is read-only.

Horizontal floats of images in PDF (LaTeX) output.

Dec 13, 2016 at 3:47 AM
So I am trying to float a Figure to the left and have the text wrap around it to the right.
This works great in the HTML output with the float parameter, but I don't see an obvious way to do it in the PDF output. This is what I came up with that is somewhat effective.
~ HtmlOnly
~~ Figure { #fig-butterfly; float:left; caption:"A Monarch butterfly."; page-align:forcehere;}

~ TexRaw
\caption{\label{fig-butterfly}This is a figure caption.}
A problem with this is that the Figure reference works in HTML, but is broken in the PDF output.

Is there a better way to accomplish this with the Figure block?
Dec 13, 2016 at 4:28 AM
Marked as answer by zivbk1 on 12/16/2016 at 3:30 PM
Dec 16, 2016 at 11:30 PM
Here is an example that I used that worked in HTML and PDF versions of the file. Posting this in case others have the same question.
~ Figure { #fig-butterfly; caption:"A Monarch butterfly."; float:left; page-align:forcehere; width:9em; tex-wrap-lines:13; tex-wrap-placement:inside; }

[butterfly]: images/butterfly.png "butterfly"  { width:8em }