[R] Mixed italic and non-italic in text

David Winsemius dwinsemius at comcast.net
Tue Apr 3 21:04:31 CEST 2012


On Apr 3, 2012, at 2:05 PM, lukevancleve wrote:

> mtext( "See Author1 and Author2 (2007) , \"Title\",  Journal of  
> Something ,
> pp. 1-50.", side = 3, outer = T,  line=-0.75, cex = 0.7, at= 0.04,  
> adj = 0,
> font = 1, family = "Times")


?plotmath  # especially the italic function

mtext(expression("See Author1 and Author2 (2007)  
Title"~italic("Journal of Something")~" ,
pp. 1-50."), side = 3, outer = T,  line=-0.75, cex = 0.7, at= 0.04,  
adj = 0,
font = 1, family = "Times")

You didn't indicate your OS. The choice of screen or pdf fonts may be  
installation specific but this seemed to work as expected with output  
in a serif font and the output in the upper left corner on a Mac with  
the quartz() device.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list