How to make multi-column Layout in R Markdown when rendering PDF?
问题 This is a great answer on how to do a 2-column layout in R-Markdown when rendering PDF. Basically the answer is 'add the following to the header': --- output: pdf_document: classoption: twocolumn --- But how do I make it three columns or more ? 回答1: To generate a html file with multiple columns, you could use the CSS grid layout: --- output: html_document --- :::: {style="display: grid; grid-template-columns: 20% 50% 20%; grid-column-gap: 5%; "} ::: {} contents... ::: ::: {} contents... ::: :