[R] Tabs in PDF documents

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Mon Jul 30 23:36:25 CEST 2007



Dennis Fisher said the following on 7/30/2007 6:25 AM:
> Colleagues,
> 
> I am using R 2.5.1 on an Intel Mac (OS 10) to create PDF outputs  
> using pdf(); same problem exists in Linux (RedHat 9)
> 
> While adding text to the document with text() and mtext(), I  
> encounter the following problem:
> 
> In order to align the text, I have embedded tabs ("\t") in some of  
> the text.  Each time I do so, I get the following error messages:
> 	Warning: font metrics unknown for character 0x9
> 	Warning: font width unknown for character 0x9
> and the tabs are ignored.  I have tied par() with and without  
> family="mono".
> 
> Is there a work-around available for this?
> 
> Dennis
> 
> COMMANDS:
> 	pdf("junk.pdf")
> 	par(family="mono")
> 	plot(1,1)
> 	text(1,1, "\txx")
> 	mtext("\txx")
> 	dev.off()
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

Hi, Dennis,

See this thread:

http://finzi.psych.upenn.edu/R/Rhelp02a/archive/96028.html

HTH,

--sundar



More information about the R-help mailing list