title: In RMarkdown, how to include latex code when using an HTML or Word output
body: <p>I have a very basic question. I did not find an answer anywhere. My fear is that the answer is simply no.</p>
  <p>Using R Markdown, I would like to use LaTex code with an HTML or Word output.</p>
  <p>A very simple MVE :</p>
  <p>I would like to execute the following code :</p>
  <pre><code>This text has been written with both \LaTeX{} and Rmd codes.
  </code></pre>
  <p>With a LaTex/PDF output, no problem. I get 'This text has been written with both Latex and Rmd codes.' (with the nice LaTeX logo !)</p>
  <p>With an HTML or Word output, I get 'This text has been written with both and Rmd codes.'</p>
  <p>So the LateX code disappears with non-LateX output.</p>
  <p>Do you know if there is a way to fix this?</p>
  <p>Thanks in advance,</p>
  <p>Eric</p>
  <p>EDIT: Here is another example using a simple table</p>
  <pre><code>\begin{table}[h]
  \centering
  \caption{A simple table}
  \begin{tabular}{|l|c|c|}
  \hline
  a &amp; b &amp; c \\
  d &amp; e &amp; f \\
  \hline
  \end{tabular}
  \end{table}
  </code></pre>