title: Slidify: Alignment of Codes
body: <p>I have problem with the alignment of the codes in two column slide. </p>
  
  <p><img src="https://i.stack.imgur.com/MJbq0.png" alt="enter image description here"></p>
  
  <p>Here is my code for this slide,</p>
  
  <pre><code>--- &amp;twocol
  
  ## Sample R Codes
  
  *** =left
  
  ```{r, echo=FALSE}
  options(width=30)
  ```
  
  
  ```{r, fig.height=5.5,highlight=TRUE, fig.show='hide',tidy=TRUE}
  mvreg.sim &lt;- function(xcov,beta1=matrix(c(0.7, 0.2, 0.2, 0.7), 
               nr = 2, nc = 2),  err.mu=c(0,0), 
               err.sigma=matrix(c(100,0,0,100), nr=2)){
    library(mvtnorm)
    N &lt;- nrow(xcov)
    e &lt;- rmvnorm(N, mean = err.mu, sigma = err.sigma)  
    y &lt;- matrix(NA, nrow = N, ncol = 2)
    for(i in 1:N){
      y[i,] &lt;- (xcov[i,])%*%beta1 + e[i,]
    }
    return(y)
  }
  ```
  
  *** =right
  
  This is the explanation of the plot.
  
  ```{r, fig.height=5.5,highlight=TRUE,echo=FALSE}
  x &lt;- seq(0,10, by = 0.01)
  y &lt;- x
  plot(x, sin(y), xlab = 'x-axis', ylab = 'sin(x)', main = 'Sample Plot')
  ```
  </code></pre>
  
  <p>I am new to slidify with little knowledge on html. I use <code>tidy=TRUE</code> with <code>options(width=60)</code> to control the width of the codes inside the box, but the alignment somehow is affected. I want the alignment set to right justified. Any help is greatly appreciated.</p>