回复 第4楼 的 yanlinlin82:
的确如此,事实上我最开始使用的大多数是html的方法,后来简单的search一下,就给出了上面的那个答案,代码是在win的R3.0.0的RStudio上测试。第二种方法,由于是和第一种方法一起测试,所以是居中的,经你提示,删除第一种方法后,第二种的确无法达到相应效果,不过方法来自于下述链接中的相关回复(又仔细看了一下回复的回复,如你所说,具体内容见附录[s:19])。
如果,第一个代码仅仅是此图居中,而后面的其他内容依旧采取默认布局,可在其代码后再添加一个代码即可关闭居中设置,由于回复系统会吃代码,所以用中文进行表述语法:
<中心></中心>
注:其中的中心请用center替换,图片地址处填写相应链接即可。
其实,search的结果中还有其他几种,若有兴趣可自行测试:
a)
subject :Markdown and image alignment
http://stackoverflow.com/questions/255170/markdown-and-image-alignment
b)
subject :github README.md center image
http://stackoverflow.com/questions/12090472/github-readme-md-center-image
c)
subject :Using Markdown, how do I center an image and its caption?
http://stackoverflow.com/questions/3912694/using-markdown-how-do-i-center-an-image-and-its-caption
appendix:
This doesn't actually work... – Wingman4l7 Mar 26 at 2:37
hmm strange, it works for me screenshot – vdclouis Mar 26 at 11:20
What flavor of Markdown is that? – Wingman4l7 Mar 27 at 3:49