public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Two Column layout in R Markdown Beamer
@ 2015-01-13  8:46 Michaela Nieuwenhuis
       [not found] ` <12fa9bb8-b296-4c12-8cb8-e583b041c3b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Michaela Nieuwenhuis @ 2015-01-13  8:46 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


[-- Attachment #1.1: Type: text/plain, Size: 1220 bytes --]

Is there any way to break the raw tex passing of pandoc? I like to have a 
two column layout, this is possible using pure latex but it is not possible 
to include R then. The problem seems to be down to pandoc 
https:
//support.rstudio.com/hc/communities/public/questions/202717656-Can-we-have-columns-in-rmarkdown-beamer-presentations-

. Any solution or work around would be greatly appreciated.

Thank you,

Michaela

Minimal non working example:
## Slide
 \begin{columns}
    \begin{column}{.5\linewidth}
      Nice Plot
    \end{column}
    \begin{column}{.5\linewidth}
```{r, echo=FALSE}
plot(cars)
```
    \end{column}
  \end{columns}







-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/12fa9bb8-b296-4c12-8cb8-e583b041c3b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 3623 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Two Column layout in R Markdown Beamer
       [not found] ` <12fa9bb8-b296-4c12-8cb8-e583b041c3b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-01-13 18:28   ` John MacFarlane
  0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2015-01-13 18:28 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Have you tried this approach?
https://groups.google.com/d/msg/pandoc-discuss/3-4Nktneoe8/sI88E2pCnZAJ

In your latex/beamer template preamble,

    \def\begincols{\begin{columns}}
    \def\endcols{\begin{columns}}
    \def\begincol{\begin{column}}
    \def\endcol{\begin{column}}

then:

    ## Slide
    
    \begincols
    
    \begincol
    
    Plot
    
    \endcol
    
    \begincol
    
    R stuff here
    
    \endcol
    
    \endcols

Other option is to use a pandoc Markdown table.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-13 18:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-13  8:46 Two Column layout in R Markdown Beamer Michaela Nieuwenhuis
     [not found] ` <12fa9bb8-b296-4c12-8cb8-e583b041c3b2-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-13 18:28   ` John MacFarlane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).