Line breaks in R Markdown text (not code blocks)

后端 未结 3 948
栀梦
栀梦 2021-02-02 14:00

Using the tufte_template rmarkdown file, I am trying to make a new paragraph (like \\newthought{}, but no caps.) I use two spaces, denoted here by *:



        
3条回答
  •  面向向阳花
    2021-02-02 14:45

    I tried these tests, it seems to be working:

    test.Rmd

    ---
    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 
    

提交回复
热议问题