Last active
October 15, 2018 13:01
-
-
Save melitanick/49dbd024ef4d34a6354cd86bedc581a6 to your computer and use it in GitHub Desktop.
missing croatian character in pdf produced from rnw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "test.croatian" | |
output: pdf_document | |
--- | |
đ Đ | |
š Š | |
č Č | |
ć Ć |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[utf8]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
% default font cmr10 suports croatian caracters, I checked | |
\begin{document} | |
\dj \DJ \v{s} \v{S} \v{c} \v{C} \'c \'C \v{z} \v{Z} | |
đ Đ | |
š Š | |
č Č | |
ć Ć | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is corrected rnw and the solution for all the characters to display correct in pdf is simple: set in RStudio Tools/Global Options/Sweawe to weave using knitr! Remove all the lines in rnw that mention sweave option.