Search code examples
pdffigurequarto

Quarto pdf output with text beside figure


I am trying out Quarto and want to place some text next to a figure with pdf output.

I have researched this and it seems there are solutions for HTML output using the bootstrap.css grid system but not for pdf. Some online comments say that bootstrap is natively available in Quarto (not specifying anything about the type of output) - I was skeptical but nevertheless I added page-layout: custom to my header and tried the suggested fix ...

enter image description here

but that just renders as ...

enter image description here

My header is ..

enter image description here

Any thoughts would be greatly appreciated :-)


Solution

  • Well - after lots of research I have found that I can use div to achieve the desired result ... optionally adjusting the width of each column using {layout}. So this code ...

    enter image description here

    Renders nicely as ...

    enter image description here