My sample code is-


and code.R is -

m.datF <- read.csv("modified_dataF.csv", header=T)[,-1]
mod <- glm(salary ~ ., family=gaussian,  data=m.datF)

output shows - enter image description here

In this output the ~ is positioned little up.

  • 1
    That is font dependent... – TeXnician Nov 12 '17 at 17:07
  • @TeXnician then what can I do? – alhelal Nov 12 '17 at 17:11
  • Change the font. Personally I do not know which font fixes this, but I'll post a fix. – TeXnician Nov 12 '17 at 17:37
  • I don't know why people are asking to close currently as no duplicate invoking the listings context has been put forward so far. – user4686 Nov 12 '17 at 18:06
  • @jfbu See this answer to the question which is linked now. – TeXnician Nov 13 '17 at 6:06

You can use the literate feature to fix the tilde positioning (or compile your current code with lualatex that apparently fixes it too).



Not the answer you're looking for? Browse other questions tagged or ask your own question.