![]() If your graphics device is postscript, we recommend that you disable this feature (see more info in the knitr issue #1365).įig_caption controls whether figures are rendered with captions (this is true by default).ĭev controls the graphics device used to render figures (defaults to pdf). The first official book authored by the core R Markdown developers that provides a comprehensive and accurate reference to the R Markdown ecosystem. For macOS users who have installed Homebrew, ghostscript can be installed via brew install ghostscript. You also have to make sure the system package ghostscript is available in your system for pdfcrop to work. Below we show an example to scale down a table to fit the page (otherwise it would be too wide): tab <- kable(tail(mtcars, 5), booktabs TRUE) tab original table (too wide) tab > kablestyling(latexoptions 'scaledown') You will not see any differences in the above two tables if you are viewing the HTML version.![]() If you are using TinyTeX as your LaTeX distribution, we recommend that you run tinytex::tlmgr_install("pdfcrop") to install the LaTeX package pdfcrop. There are a number of options that affect the output of figures within PDF documents:įig_width and fig_height can be used to control the default figure width and height (6.5x4.5 is used by default).įig_crop controls whether the pdfcrop utility, if available in your system, is automatically applied to PDF figures (this is true by default). see below for a screenshot of the last slide. When I set fontsize: 10pt (as desired) in the YAML it impacts the spacing in the navigation bar. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |