Skip to content

Instantly share code, notes, and snippets.

@cannyboy
Last active November 23, 2020 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cannyboy/06bba697860466d642799197ec786b74 to your computer and use it in GitHub Desktop.
Save cannyboy/06bba697860466d642799197ec786b74 to your computer and use it in GitHub Desktop.

(use the raw version to test...)

Looking for a simple-to-set-up markdown workflow that incorporates all of the functionaily below - maths, diagrams, flowcharts, music, pagebreak.

test heading

The Gamma function satisfying $\Gamma(n) = (n-1)!\quad\forall n\in\mathbb N$ is via the Euler integral

$$ x = {-b \pm \sqrt{b^2-4ac} \over 2a}. $$

$$ \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt,. $$

Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
Note left of Alice: Alice responds
Alice->Bob: Where have you been?
pie
    "Calcium" : 55
    "Potassium" : 5
    "Magnesium" : 35
    "Iron" :  5
st=>start: Start
e=>end: End
op=>operation: My Operation
op2=>operation: lalala
cond=>condition: Yes or No?

st->op->op2->cond
cond(yes)->e
cond(no)->op2
gantt
    title A Gantt Diagram

    section Section
    A task           :a1, 2014-01-01, 30d
    Another task     :after a1  , 20d
    section Another
    Task in sec      :2014-01-12  , 12d
    anther task      : 24d
digraph graphname{
		a -> b;
		b -> c;
		a -> c;
	}
digraph hierarchy {

                nodesep=1.0 // increases the separation between nodes

                node [color=Red,fontname=Courier,shape=box] //All nodes will this shape and colour
                edge [color=Blue, style=dashed] //All the lines look like this

                Headteacher->{Deputy1 Deputy2 BusinessManager}
                Deputy1->{Teacher1 Teacher2}
                BusinessManager->ITManager
                {rank=same;ITManager Teacher1 Teacher2}  // Put them on the same level
}
X:1
T:Speed the Plough
M:4/4
C:Trad.
K:G
|:GABc dedB|dedB dedB|c2ec B2dB|c2A2 A2BA|
GABc dedB|dedB dedB|c2ec B2dB|A2F2 G4:|
|:g2gf gdBd|g2f2 e2d2|c2ec B2dB|c2A2 A2df|
g2gf g2Bd|g2f2 e2d2|c2ec B2dB|A2F2 G4:|
X:1
T:Chords
M:2/4
K:C
[CEGc] [C2G2] [CE][DF]|[D2F2][EG][FA] [A4d4]|]
graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D

\pagebreak

H:This file contains some example
  English tunes for abc2mtex

O:E                   % mark all tunes with an E (English) for the index

X:1                   % tune no 1
T:Dusty Miller, The   % title
T:Binny's Jig         % an alternative title
C:Trad.               % traditional
R:DH                  % double hornpipe
M:3/4                 % meter
E:8                   % note spacing
I:speed 300           % speed for playabc
K:G                   % key
B>cd BAG|FA Ac BA|B>cd BAG|DG GB AG:|\
Bdd gfg|aA Ac BA|Bdd gfa|gG GB AG:|
BG G/2G/2G BG|FA Ac BA|BG G/2G/2G BG|DG GB AG:|
W:Hey, the dusty miller, and his dusty coat;
W:He will win a shilling, or he spend a groat.
W:Dusty was the coat, dusty was the colour;
W:Dusty was the kiss, that I got frae the miller.

M:6/8                 % default meter for the following tunes
R:J                   % mark following tunes with a J (jig) for the index

X:2
T:Old Sir Simon the King
C:Trad.
S:Offord MSS          % from Offord manuscript
N:see also Playford   % notes
M:9/8
R:SJ                  % slip jig
Q:C3=120              % tempo
Z:originally in C     % transcription notes
K:G
D|GFG GAG G2D|GFG GAG F2D|EFE EFE EFG|A2G F2E D2:|
D|GAG GAB d2D|GAG GAB c2D|[1 EFE EFE EFG|A2G F2E D2:|\
M:12/8                % change meter for a bar
[2 E2E EFE E2E EFG|\
M:9/8                 % change back again
A2G F2E D2|]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment