On Thu, Aug 30, 2012 at 12:50 AM, Yihui Xie <x...@yihui.name> wrote: > Do you know what environments are allowed inside \subfloat{}? The > graphics example works because it is nothing but a simple > \includegraphics{} command. The table example you gave is much more > complicated than that. > > Regards, > Yihui > -- > Yihui Xie <xieyi...@gmail.com> > Phone: 515-294-2465 Web: http://yihui.name > Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA > > > On Wed, Aug 29, 2012 at 3:30 PM, Liviu Andronic <landronim...@gmail.com> > wrote: >> Hey Yihui >> >> >> On Wed, Aug 29, 2012 at 6:17 PM, Yihui Xie <x...@yihui.name> wrote: >>> Yes that is one possible solution, but the filename is hard-coded >>> somehow. The key to this problem is a missing new line before <<>>=, >>> which was addressed in >>> https://github.com/downloads/yihui/knitr/knitr-subfloats.pdf >>> >> Thanks a lot for the example. >> >> >>> The LyX and Rnw source files can be checked out with GIT under >>> https://github.com/yihui/knitr/tree/master/inst/examples If you open >>> knitr-subfloats.lyx, you will see an intentional new line in the ERT, >>> and that is to break \subfloat[asdfa]{<<>>= into >>> >>> \subfloat[asdfa]{ >>> <<>>= >>> >> This trick doesn't seem to work for table subfloats. I added a nearly >> identical example to your document, this time using table floats >> (instead of figure floats). [1] The document doesn't compile. Any >> ideas? >> >> Regards >> Liviu >> >> [1] http://s000.tinyupload.com/index.php?file_id=64085332583398153478
-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail ______________________________________________ R-help@r-project.org 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.