rstudio / distill

Distill for R Markdown
https://rstudio.github.io/distill/
Apache License 2.0
422 stars 57 forks source link

Support for Other Distill Layouts #95

Open saptarshiguha opened 5 years ago

saptarshiguha commented 5 years ago

Hi, I'm back! Going to commit my self to this format. I notice on the distill website there are several layout options for figures e.g. .l-body.side,.l-middle.side,.l-page.side.

Will these be supported? i tried using them but they aren't (or maybe i did something wrong?)

astamm commented 3 years ago

Hi, I just set up my first Distill website and ended up having the same issue. It seems that floated images is not yet supported by distill despite the documentation that announces the existence of layouts such as l-body.side which are currently not recognised though. I would appreciate any comments on these features. Thanks.

cderv commented 3 years ago

Regarding l-body.side, it was answered in https://github.com/rstudio/distill/issues/263#issuecomment-751810989

I think same answer applies to other *.side layout

astamm commented 3 years ago

Thanks for pointing out the solution. It seems to be working as expected with layout = "l-body side" as chunk option.

cderv commented 3 years ago

Yes .l-body.side is equivalent to layout = "l-body side" but I don't think this give what is still documented in https://distill.pub/guide/ which was working for V1 but not V2.

Seems now that side is another way to put on the aside: https://rstudio.github.io/distill/#footnotes-and-asides

astamm commented 3 years ago

You are right. It seems that layout = "l-body side"is interpreted as an aside environment now. It is not inserting the image as a floating image inline in the text.

cderv commented 3 years ago

Yes this is it. And it seems Distill V2 does not support the inline floating image anymore. That is why the R package distill does not have it as we are based on V2.