Specifying transparent color in HTML and PDF output
问题 In an R markdown report rendered to both PDF and HTML, I would like to colorize text with different transparencies. For example, I would like to use the same orange with 3 different alpha values (0.3, 0.6, 1.0). Nicholas Hamilton provides a function to color text regardless of the output format (PDF/latex or HTML). An updated MWE of the fct. was provided by Mark Neal. To work with transparent colors, the colFmt() function needs to be adapted somehow as far as I see. What I tried gplots: