mara thanks for reply and sorry for delay. This is a portion of the code (I think the rest it's not important) :
---
title: "Tufte Handout"
subtitle: "An implementation in R Markdown"
author: "JJ Allaire and Yihui Xie"
date: "`r Sys.Date()`"
output:
pdf_document:
\usepackage{xgreek}
\usepackage{fontspec}
\usepackage{xunicode}
\setromanfont{FreeSerif}
\setsansfont{FreeSans}
tufte::tufte_book:
citation_package: natbib
latex_engine: xelatex
tufte::tufte_handout:
citation_package: natbib
latex_engine: xelatex
tufte::tufte_html: default
# pdf_document:
bibliography: skeleton.bib
link-citations: yes
---
```{r setup, include=FALSE}
library(tufte)
# invalidate cache when the tufte version changes
knitr::opts_chunk$set(tidy = FALSE, cache.extra = packageVersion('tufte'))
options(htmltools.dir.version = FALSE)
# Introduction
Δοκιμη The Tufte handout style is a style that Edward Tufte uses in his books and handouts.
I just added the lines :
pdf_document:
\usepackage{xgreek}
\usepackage{fontspec}
\usepackage{xunicode}
\setromanfont{FreeSerif}
\setsansfont{FreeSans}
and the Greek word Δοκιμή (means test) in the beginning of the paragraph.
The compilation (knit) returns the error:
Error in yaml::yaml.load(string, ...) :
Parser error: while parsing a block mapping at line 1, column 1 did not find expected key at line 12, column 3
Calls: <Anonymous> ... parse_yaml_front_matter -> yaml_load_utf8 -> <Anonymous> -> .Call
Execution halted
Please take into account that I'm new in both R and Latex (and also don't know how to use this post editor)
Thanks in advance.