INWTlab / ireports

R package with RMarkdown Business Reports
GNU General Public License v3.0
82 stars 33 forks source link

Is there a way to set the template to two column format? #26

Open tanga94 opened 1 year ago

tanga94 commented 1 year ago

Hi @SarahWagner . Thanks for making this template available, I'm really a fan of the design. I was wondering, is there a way to set the template to alternate between one column format and two column format? So for example, to have the paragraphs in two columns and then perhaps be able to switch to one column for some of the charts/tables in the document?

I'm trying to get my document to look something like this https://ibb.co/Dz2mX7d

Thanks!

SarahWagner commented 1 year ago

Hi @tanga94, to make it a two-column document, while having a figure in full (text) width, you can do the following:

\begin{figure*}[t]
  \centering
  \includegraphics[width = \textwidth]{<figurename>.png}
\end{figure*}

If you want to make the output of code chunks full width inside a two-column document or vice versa, please take a look at the RMarkdown cookbook, there's a latex hack you can try: https://bookdown.org/yihui/rmarkdown-cookbook/multi-column.html