😎 Give your xaringan slides some style
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

108 lines
3.5KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/ggplot2.R
  3. \name{theme_xaringan_get_value}
  4. \alias{theme_xaringan_get_value}
  5. \title{Get the Value of xaringanthemer Style Setting}
  6. \usage{
  7. theme_xaringan_get_value(setting, css_file = NULL)
  8. }
  9. \arguments{
  10. \item{setting}{A xaringanthemer style setting}
  11. \item{css_file}{Path to a \pkg{xaringanthemer} CSS file, from which the
  12. theme variables and values will be inferred. In general, if you use the
  13. \pkg{xaringathemer} defaults, you will not need to set this. This feature
  14. lets you create a \pkg{ggplot2} theme for your \pkg{xaringan} slides, even
  15. if you have only saved your theme CSS file and you aren't creating your
  16. CSS theme with \pkg{xaringanthemer} in your slides' source file.}
  17. }
  18. \value{
  19. The value of the xaringanthemer style parameter.
  20. }
  21. \description{
  22. A helper function to retrieve the value of style settings as set by a
  23. xaringanthemer style function, for use in plotting and other circumstances.
  24. }
  25. \section{Style Settings}{
  26. Style settings used by xaringanthemer include:
  27. \itemize{
  28. \item \code{background_color}
  29. \item \code{background_image}
  30. \item \code{background_position}
  31. \item \code{background_size}
  32. \item \code{blockquote_left_border_color}
  33. \item \code{code_font_family}
  34. \item \code{code_font_family_fallback}
  35. \item \code{code_font_google}
  36. \item \code{code_font_is_google}
  37. \item \code{code_font_size}
  38. \item \code{code_font_url}
  39. \item \code{code_highlight_color}
  40. \item \code{code_inline_background_color}
  41. \item \code{code_inline_color}
  42. \item \code{code_inline_font_size}
  43. \item \code{extra_css}
  44. \item \code{extra_fonts}
  45. \item \code{footnote_color}
  46. \item \code{footnote_font_size}
  47. \item \code{footnote_position_bottom}
  48. \item \code{header_background_auto}
  49. \item \code{header_background_color}
  50. \item \code{header_background_content_padding_top}
  51. \item \code{header_background_ignore_classes}
  52. \item \code{header_background_padding}
  53. \item \code{header_background_text_color}
  54. \item \code{header_color}
  55. \item \code{header_font_family}
  56. \item \code{header_font_google}
  57. \item \code{header_font_is_google}
  58. \item \code{header_font_url}
  59. \item \code{header_font_weight}
  60. \item \code{header_h1_font_size}
  61. \item \code{header_h2_font_size}
  62. \item \code{header_h3_font_size}
  63. \item \code{inverse_background_color}
  64. \item \code{inverse_header_color}
  65. \item \code{inverse_text_color}
  66. \item \code{inverse_text_shadow}
  67. \item \code{left_column_selected_color}
  68. \item \code{left_column_subtle_color}
  69. \item \code{link_color}
  70. \item \code{padding}
  71. \item \code{table_border_color}
  72. \item \code{table_row_border_color}
  73. \item \code{table_row_even_background_color}
  74. \item \code{text_bold_color}
  75. \item \code{text_color}
  76. \item \code{text_font_base}
  77. \item \code{text_font_family}
  78. \item \code{text_font_family_fallback}
  79. \item \code{text_font_google}
  80. \item \code{text_font_is_google}
  81. \item \code{text_font_size}
  82. \item \code{text_font_url}
  83. \item \code{text_font_weight}
  84. \item \code{text_slide_number_color}
  85. \item \code{text_slide_number_font_size}
  86. \item \code{title_slide_background_color}
  87. \item \code{title_slide_background_image}
  88. \item \code{title_slide_background_position}
  89. \item \code{title_slide_background_size}
  90. \item \code{title_slide_text_color}
  91. }
  92. }
  93. \examples{
  94. # Create a xaringanthemer style in a temporary file for this example
  95. xaringan_themer_css <- tempfile("xaringan-themer", fileext = ".css")
  96. style_solarized_light(outfile = xaringan_themer_css)
  97. theme_xaringan_get_value("text_color")
  98. theme_xaringan_get_value("background_color")
  99. theme_xaringan_get_value("header_color")
  100. theme_xaringan_get_value("text_bold_color")
  101. }