title |
---|
Testing svg in mathjax |
Run with:
pandoc -s --mathjax test-die.md -o test-die.html
library(purrr) | |
library(ggplot2) | |
library(tibble) | |
# https://community.wolfram.com/groups/-/m/t/2575939 | |
x <- function(t, m, gamma, epsilon0, q, epsilon) { | |
numerator <- m * epsilon0 * exp(-gamma * t / m) * ( | |
(epsilon * q * exp(gamma * t / m)) - (gamma * sin((epsilon * q * t) / m)) - (epsilon * q * cos((epsilon * q * t) / m)) | |
) |
--- | |
title: Wizard • pointy-hatted • pipe smoker | |
author: Gandalf the Grey | |
alsoknown: Olórin, Gandalf | |
nationality: Maia, bearer of Narya | |
age: Born before Arda was created | |
currentdate: fourth age | |
address: Valinor, Arda | |
mobile: flying moths | |
email: [email protected] |
library(ggplot2) | |
my_axis = function() { | |
structure("test", | |
class = c("element_custom","element_blank", "element") # inheritance test workaround | |
) | |
} | |
library(grid) | |
# returns a gTree with desired text |
--- | |
name: "Pumpkins and peanuts committee" | |
date: "03/01/2000" | |
time: "2 pm" | |
location: "baseball field" | |
invited: | |
- Sally | |
- Shroeder | |
- Pig-pen | |
- Marcie |
library(ggforce) | |
library(purrr) | |
library(tibble) | |
library(gganimate) | |
web_strand <- function(side = 1, bend = 0.5, angle = 0, start = c(0,0)){ | |
pos <- cbind(x=c(0, 1, 2), y = bend*c(0, 2, 0)) | |
post <- pos %*% matrix(c(cos(angle), -sin(angle), sin(angle), cos(angle)), ncol=2, byrow=TRUE) | |
xt <- post[,1] + start[1] | |
yt <- post[,2] + start[2] |
\documentclass[a4paper,10pt]{article} | |
\usepackage[a4paper]{geometry} | |
\geometry{textwidth=16cm} | |
\usepackage{enumitem} | |
\setlist[description]{font=\scshape\bfseries\rmfamily, leftmargin=2cm, | |
style=multiline,itemsep=6pt,parsep=2pt} | |
\begin{document} |
--- | |
title: "Untitled" | |
format: | |
pdf: | |
latex-tinytex: false | |
keep-md: true | |
keep-tex: true | |
fontsize: "11" | |
--- |
title |
---|
Testing svg in mathjax |
Run with:
pandoc -s --mathjax test-die.md -o test-die.html
library(ggplot2) | |
library(grid) | |
element_box_break <- function (fill=NULL, colour = NULL, linewidth = NULL, linetype = NULL, lineend = NULL, | |
color = NULL, arrow = NULL, inherit.blank = FALSE) { | |
if (!is.null(color)) | |
colour <- color | |
if (is.null(arrow)) | |
arrow <- FALSE |