Data Science Desktop Survival Guide
by Graham Williams |
|||||
Sophisticated Captions |
Raw Captions can be formatted quite extensively with a little knowledge of LaTeX. For Table 22.6 we illustrate generating a string in R that is passed through to the caption=. We use base::paste() and base::Sys.time() and include some special symbols known to LaTeX as well as an occasion bold and italic font. Notice that because the caption is quite long we do not want the whole caption included in the list of tables in the contents pages. The second argument to caption= is the short title to use for the list of tables.