Skip to content

Instantly share code, notes, and snippets.

@Gavinok
Last active September 15, 2020 06:25
Show Gist options
  • Save Gavinok/6589acc3352fdf47f4e26a1cbfcecdb4 to your computer and use it in GitHub Desktop.
Save Gavinok/6589acc3352fdf47f4e26a1cbfcecdb4 to your computer and use it in GitHub Desktop.
Example for creating PDFs out of Markdown files using Groff and Pandoc

Heading Here

hello \Z'Is Some Text'\v'-.25m'\D'l \w'Is Some Text'u 0'\v'.25m' i am gavin

Sub Heading

  • Remember these points:
    1. All variables refer to data.
    2. All data resides in memory.
    3. Every memory location has an address.
    4. C exposes these details for us to use in our programs

Code Block

int ch, cnt = 0; 
do {
    ch = getchar();
    if (ch == BLANK)
	cnt += 1;
} while (ch != '\n');

Images

this wont work

this will work

.bp

Tables Work

T p
T q
- r
T F

Even Math Using Latex Works

$\neg$(p$\lor$q) $\Leftrightarrow$ ($\neg$p) $\land$ ($\neg$q)

$\neg$(p$\land$q) $\Leftrightarrow$ ($\neg$p) $\lor$ ($\neg$q)

(p $\lor$ 0) $\Leftrightarrow$ p

(p $\land$ 1) $\Leftrightarrow$ p

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment