2015-05-05 17 views
7

sonları ben * tarafından burada belirtilen iki boşluk kullanın (gibi \newthought{}, ancak hiçbir kapaklar.):Hattı Yeni paragraf yapmaya çalışıyorum, tufte_template rmarkdown dosyasını kullanarak R Markdown metin (kod blok)

# Introduction 

The Tufte-\LaTeX\ [^tufte_latex] document** 
** 
classes define a style similar to the style Edward Tufte uses in his books... 

ancak bu sonucu elde: I hem de boşluklar (**) ikinci çiftinin yer \n çalıştılar

enter image description here

ancak Pandoc bir hata verir.

pandoc.exe: Error producing PDF from TeX source 
Error: pandoc document conversion failed with error 43 

Son olarak, bir <br> etiketini kullanarak çalıştı, ancak bu hiçbir etkiye sahip gibi görünüyor - o metin veya PDF bir mola yazdırmaz.

Yeni bir paragraf istiyorum, girintisiz, \ newthought {} 'a benzer, ancak büyük harf olmadan ... bir yolu var mı?

Güncelleme sessionInfo() ile 1:

> sessionInfo() 
R version 3.1.2 (2014-10-31) 
Platform: x86_64-w64-mingw32/x64 (64-bit) 

locale: 
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C       
[5] LC_TIME=English_United States.1252  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

loaded via a namespace (and not attached): 
[1] digest_0.6.8 htmltools_0.2.6 rmarkdown_0.5.1 tools_3.1.2  yaml_2.1.13 

Güncelleme Bu Tufte şablonu kullanırken özellikle karşılaşmak bir sorun gibi görünüyor 2

:

enter image description here

+0

Kodunuz benim için çalışıyor, herhangi bir girinti, hiçbir harf kullanımı. – zx8754

+0

@ zx8754'te "Tufte LaTex Belgesi" ile "sınıflar tanımlanıyor ..." arasında tam ve boş bir satır var mı? – d8aninja

+0

Evet, boş satır. – zx8754

cevap

12

Bu testleri denedim, görünüyor çalışmaktan:

Bu oldukça eski bir soru, fakat "satır sonları googling zaman ilk vuruş beri bir yanıt gönder

--- 
output: pdf_document 
--- 

# test 1 
No spaces used 

line1 
line2 


# test 2 
2spaces at the end of line1 

line1 
line2 

# test 3 
2spaces at the end of line1, then 2 spaces on next line 

line1 

line2 

enter image description here

sessionInfo() 
R version 3.2.0 (2015-04-16) 
Platform: x86_64-w64-mingw32/x64 (64-bit) 
Running under: Windows 7 x64 (build 7601) Service Pack 1 

locale: 
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C       
[5] LC_TIME=English_United Kingdom.1252  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

loaded via a namespace (and not attached): 
[1] htmltools_0.2.6 tools_3.2.0  yaml_2.1.13  rmarkdown_0.5.1 digest_0.6.8 
+0

, bu farklı sonuçlara neden olan tufte_template gibi görünüyor ... ile güncellediğim yeni görseli gör - Neden böyle yapıyor? – d8aninja

3

test.Rmd rmarkdown içinde.

PDF dosyalarını derlediyseniz, lateks makroları kullanabilirsiniz. \hfill\break ile yeni hat ** değiştirin:

# Introduction 

The Tufte-\LaTeX\ [^tufte_latex] document** 
\hfill\break 
classes define a style similar to the style Edward Tufte uses in his books... 
İlgili konular