knitting IPA symbols to PDF

Hi,
I'm trying to use IPA symbols in rmarkdown, and I'm able to knit to HTML and Word but not PDF; some IPA sysmbols are missing when knitting to PDF.

compared to knitting to Word:

or HTML:

Here is my repreduciable example.

---
title: "IPA TEST"
author: "Your Name"
date: "The Date"
output:
  html_document: default
  word_document: default
  pdf_document:
    latex_engine: xelatex
---

ʈʔɾʀzʃβʰ

[kʰæt]
J\
n`
[ɪtsɹilijizitutaɪp]

ʈɟʁ

[ðɪsɪzsəmaɪpeɪ]

I would highly appreciate your help!

I got the same result as you. After searching around a bit I found this: How to use phonetic IPA characters in LaTeX, and then adding mainfont: Doulos SIL (starting in col 1) to the YAML. Now the PDF renders properly.

2 Likes

This post may help

2 Likes

Thank you, both solutions did the trick though the first one is straight forward.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.