xaringanExtra::use_remark_macros(x) #72
Labels
priority: medium
Medium priority
status: considering
Considering if/how this should be implemented
type: new
New feature or enhancement
May I suggest a
xaringanExtra::use_remark_macros(x)
, which places a macros.js file into the slide directory with the functionality specified by character vector "x". Below are some suggested values and corresponding macros:Macro for scaling images, e.g.
![:scale 50%](/path/to/image)
, The discussion and code. Also discussed in the RMD bibleMacro for embedding tweets. Provided by Twitter, but may very well be wrapped for friendlier UI. Code and discussion
Macro for standard alerts and messages.
Excellent ideas by @emilyriederer for creating layout structure in macros
Some ideas by Yongfu Liao in the Chocolate theme. He is able to make round corners and image shadow with it.
For absolute placement of images. Again Yongfu Liao in his blogpost
There are some more ideas: sourcing JS scripts, calculating how long the current presentation should take, macro for adding macros (how meta!), random number generation
One thing to keep in mind: there should be clear separation between what can be done in tachyons and what spills here.
The text was updated successfully, but these errors were encountered: