Hug*_*ans 4 pdf-generation r tex pandoc knitr
我正在与R studio markdown和knitr合作,这些都很棒.
我似乎无法将希腊符号编织成pdf.
相同的Rmd文件:
---
title: "Untitled"
author: "Hugo Koopmans"
date: "11-01-2015"
output: pdf_document
---
Test Greek symbol
----------------
P-value
In statistics, the p-value is a function of the observed sample results (a statistic) that is used for testing a statistical hypothesis. Before performing the test a threshold value is chosen, called the significance level of the test, traditionally 5% or 1% [1] and denoted as ?. If the p-value is equal or smaller than the significance level (\alpha)
Run Code Online (Sandbox Code Playgroud)
现在我在linx mint 17 texlive 2013 Rstudio版本0.98.1062
结果:
|.................................................................| 100%
ordinary text without R code
/usr/lib/rstudio/bin/pandoc/pandoc Preview-25df24aa1731.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output Preview-25df24aa1731.pdf --template /home/hugo/R/x86_64-pc-linux-gnu-library/3.0/rmarkdown/rmd/latex/default.tex --highlight-style tango --latex-engine pdflatex --variable 'geometry:margin=1in'
processing file: Preview-25df24aa1731.Rmd
output file: Preview-25df24aa1731.knit.md
! Package inputenc Error: Unicode char \u8:? not set up for use with LaTeX.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.73 denoted as ?
Try running pandoc with --latex-engine=xelatex.
pandoc: Error producing PDF from TeX source
Error: pandoc document conversion failed with error 43
Execution halted
Run Code Online (Sandbox Code Playgroud)
结果是pandoc抱怨alpha符号.所以产生的乳胶似乎无法处理这个符号......
我希望让R studio能够正确处理这个问题,而无需手动更改tex文件...理想情况下......
有小费吗?
雨果
And*_*rie 19
对于Rmarkdown中的希腊符号,您可以使用内联公式$ ... $,即两个$符号.
试试这个:
If the p-value is equal or smaller than the significance level $\alpha$

| 归档时间: |
|
| 查看次数: |
9242 次 |
| 最近记录: |