title: Bold Text Output in Loop with \\newpage in printr
body: <p>I'm trying to bold the output of names in a loop in my PDF document.  It works when I am simply looping, but fails when I introduce <code>\\newpage</code></p>
  
  <p>Here is some simple, sample code to produce what I'm talking about.</p>
  
  <pre><code>```{r results='asis',echo=FALSE}
  library(printr)
  test_group&lt;-c('Bob','Joan','Francois','Ximinea','Raga','Mohandas')
  sample_data&lt;-rnorm(6,mean=4.3123,sd=.123)
  
  for(cur_person in test_group){
    cat("\n")
    cat(paste("**",cur_person,"**",sep=""),'\n\n')
    print(sample_data)
    cat('\n')
  }
  
  ```
  </code></pre>
  
  <p>Here is the result I get:</p>
  
  <blockquote>
    <p><strong>Bob</strong><br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438<br>
    <strong>Joan</strong><br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438<br>
    <strong>Francois</strong><br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438<br>
    <strong>Ximinea</strong><br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438<br>
    <strong>Raga</strong><br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438<br>
    <strong>Mohandas</strong><br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438  </p>
  </blockquote>
  
  <p>However, when I add <code>\\newpage</code> so I can start each person on a new PDF page, I get a different output.</p>
  
  <pre><code>```{r results='asis',echo=FALSE}
  library(printr)
  test_group&lt;-c('Bob','Joan','Francois','Ximinea','Raga','Mohandas')
  sample_data&lt;-rnorm(6,mean=4.3123,sd=.123)
  
  for(cur_person in test_group){
    cat("\\newpage") ## HERE IS NEW LINE
    cat("\n")
    cat(paste("**",cur_person,"**",sep=""),'\n\n')
    print(sample_data)
    cat('\n')
  }
  
  ```
  </code></pre>
  
  <blockquote>
    <p>**Bob**<br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438  </p>
    
    <p>...  (this shows next page)  </p>
    
    <p>**Joan**<br>
    [1] 4.229853 4.281234 4.575009 4.265584 4.421579 4.445438  </p>
  </blockquote>
  
  <p><em>note: this is an artificially simple example to illustrate the problem.  Please don't get hung up on the data.  In my full code, I'm doing a lot more in each loop.</em></p>
  
  <p>You can see the output isn't bold but rather, shows the actual stars.  I've tried adding extra returns, taking returns out.  The only change is the introduction of <code>\\newpage</code>.</p>
  
  <p>I can't just add lines to space out the pages, as each loop is variable length, and defeats the whole point of <code>\\newpage</code>.</p>
  
  <p>Anyone have any idea what I can do to fix?</p>
  
  <p>tech notes:<br>
  - R version 3.2.3<br>
  - Knitr version: 1.11<br>
  - printr version: 0.0.4<br>
  - YAML version: 2.1.13<br>
  - Windows 7, x64<br>
  - Knitting via RStudio  </p>