Italicizing the main word but not the subscripted word

耗尽温柔 提交于 2019-12-24 02:45:31

问题


I was wondering how to only make the main word d in my text() to appear in italic, but the subscripted word "unbiased" to remain as ordinary text?

Please see my R code below the following picture.

Here is my R code:

plot(1:10, ty="n")

text( 4, 4.5, bquote(italic(d[(unbiased)])), cex = 5)

回答1:


Keep the "unbiased" outside italic or use plain:

plot(1:10, ty = "n")
# original
text(5, 4, bquote(italic(d[(unbiased)])), cex = 5)
# use plain
text(5, 6, bquote(italic(d[(plain(unbiased))])), cex = 5)
# keep "unbiased" outside italic
text(5, 8, bquote(italic(d)[(unbiased)]), cex = 5)



来源:https://stackoverflow.com/questions/42937468/italicizing-the-main-word-but-not-the-subscripted-word

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!