我是LaTex和R Markdown的新手,我一直在拼命寻找解决方案而且没有找到任何有用的东西。我正在R Markdown文件下编写一个LaTex文档,我的YAML标题如下;
---
linestretch: 2
output: pdf_document
header-includes:
- \setlength{\parindent}{3em}
- \setlength{\parskip}{0em}
bibliography: bibliography.bib
---
# References
然而,当我编织我的文件时,我的参考书目没有呈现。一切都很好地编译而没有错误,但在# References
标题后没有打印任何内容。我的bibliography.bib文件被妥善保存在与保存此LaTex文档的文件相同的文件中。我似乎无法解决这个问题。
此外,如果这有助于bibliography.bib文件如下;
@Book{ref1,
title = {Survival Analysis: A Self-Learning Text},
publisher = {Springer},
year = {2005},
author = {David G. Kleinbaum, Mitchel Klein},
editor = {M. Gail, K. Krickeberg, J. Samet, A. Tsiatis, W. Wong},
edition = {2nd},
}
@Misc{ref2,
title = {pseudo: Pseudo - observations},
author = {{Maja Pohar Perme} and Mette Gerster},
year = {2012},
note = {R package version 1.1},
url = {https://CRAN.R-project.org/package=pseudo},
}
非常感谢这个问题的解决方案!