utf-8r-markdownspecial-charactersquarto

How to add special character i-umlaut in R Quarto?


I am preparing a textbook using Quarto. I have a problem changing the author name. This is what is written:

project:
  type: book

book:
  title: "biostatistics"
  author: "Sa\"{i}d M"
  date: "10/7/2023"
  chapters:
    - index.qmd
    - intro.qmd
    - summary.qmd
    - references.qmd

bibliography: references.bib

format:
  html:
    theme: cosmo
  pdf:
    documentclass: scrreprt

editor: visual

As you know, Sa\"{i}d should yield Saïd. But in Quarto it yields this instead:

enter image description here

Can someone tell me where is the problem? What do I need to change? Thank you very much in advance.


Solution

  • You can add special characters like Latin Small Letter I with Diaeresis like this (in visual editor use Insert + Special Characters). Works both in HTML and PDF:

    ---
    title: Untitled
    format: pdf
    author: "Saïd M"
    ---
    

    enter image description here