2

I'm trying to write about naïve modeling, and have written the following header:

## Na\"{i}ve Modeling

That, however, and all variations like it, produce only something that looks like this:

Na"{i}ve Modeling

What have I done wrong?

I'm using TeX Live 2017, version 3.14159265-2.6-1.40.18.

  • I thought I had done that with the line of code I had provided, had I not...? – Yehuda Aug 8 '18 at 1:13
  • @CampanIgnis RMarkdown is a way of combining Markdown with R code to produce PDF via conversion to LaTeX. So a traditional MWE is not applicable here. The fact that you can get a MWE LaTeX document to work is irrelevant to the question at hand. – Alan Munn Aug 8 '18 at 2:00
1

Although you can intersperse raw LaTeX and markdown in an .Rmd file, you can't put LaTeX into a markdown line itself, i.e., lines have to be either all markdown or all LaTeX.

A simple (and better) solution is to simply write the trema directly in the source:

## Naïve Modeling

Alternatively you could have written:

\section{Na\"ive Modeling}

or

\section{Naïve Modeling}

but obviously this defeats the purpose of using markdown.

output of code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.