cameronbracken / pgfSweave

Quality graphics and speedy compilation with Sweave
http://r-forge.r-project.org/projects/pgfsweave/
29 stars 6 forks source link

Size of Braces Unchanged with Font #28

Closed ramnathv closed 13 years ago

ramnathv commented 13 years ago

When highlight = T, font changes in the latex document don't reflect on certain symbols like braces and &. Digging into the latex code, I realized that this is happening since braces get replaced by \hlnormalsizeboxopenbrace no matter what the font change is. This might be a bug, or is there an option to pass size as a parameter to highlights

cameronbracken commented 13 years ago

Not sure if this is a bug in the highlight package or not. Regardless I have added an "hidden" option highlight.size which can be used to access the size option in highlight(). It probably wont go on CRAN for a bit but you can install the dev version:

29a4b9

Also I have put up an example of how to use the feature:

https://gist.github.com/956177