diff --git a/MD_metadata.md b/MD_metadata.md new file mode 100644 index 0000000..3f83e22 --- /dev/null +++ b/MD_metadata.md @@ -0,0 +1,19 @@ +--- +title: Curious OCaml +author: Lukasz Stafiniak +header-includes: + - + - + - +--- diff --git a/README.md b/README.md index 3ea3004..d51bb3d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ +--- +title: Curious OCaml +author: Lukasz Stafiniak +header-includes: + - + - + - +--- # Curious OCaml # From logic rules to programming constructs diff --git a/dune b/dune index 22250c9..dc5f86f 100644 --- a/dune +++ b/dune @@ -2,6 +2,7 @@ (target README.md) (mode promote) (deps + MD_metadata.md chapter1/README.md chapter2/README.md chapter3/README.md @@ -17,6 +18,7 @@ (with-stdout-to README.md (progn + (cat MD_metadata.md) (echo "\n") (echo "# Curious OCaml\n") @@ -66,6 +68,7 @@ (with-stdout-to old_lectures_as_book.md (progn + (cat MD_metadata.md) (echo "\n") (echo "# Curious OCaml\n") diff --git a/old_lectures_as_book.md b/old_lectures_as_book.md index fd06c2d..b41b949 100644 --- a/old_lectures_as_book.md +++ b/old_lectures_as_book.md @@ -1,3 +1,22 @@ +--- +title: Curious OCaml +author: Lukasz Stafiniak +header-includes: + - + - + - +--- # Curious OCaml # Chapter 1 diff --git a/pdfs/dune b/pdfs/dune index aa5d0af..60c258a 100644 --- a/pdfs/dune +++ b/pdfs/dune @@ -25,7 +25,7 @@ (target new_book.pdf) (deps README.md) (action - (system "pandoc -s %{deps} -o %{target} --metadata title='Curious OCaml'"))) + (system "pandoc -s %{deps} -o %{target}"))) (rule (alias old_lectures_as_book) @@ -33,4 +33,4 @@ (target old_lectures_as_book.pdf) (deps old_lectures_as_book.md) (action - (system "pandoc -s %{deps} -o %{target} --metadata title='Functional Programming Course'"))) + (system "pandoc -s %{deps} -o %{target}"))) diff --git a/pdfs/new_book.pdf b/pdfs/new_book.pdf index e7f7724..0e46452 100644 Binary files a/pdfs/new_book.pdf and b/pdfs/new_book.pdf differ diff --git a/site/dune b/site/dune index 550c914..d197a39 100644 --- a/site/dune +++ b/site/dune @@ -31,7 +31,7 @@ (target new_book.html) (deps README.md) (action - (system "pandoc -s %{deps} -o %{target} --katex --metadata title='Curious OCaml'"))) + (system "pandoc -s %{deps} -o %{target}"))) (rule (alias old_lectures_as_book) @@ -40,4 +40,4 @@ (deps old_lectures_as_book.md) (action (system - "pandoc -s %{deps} -o %{target} --katex --metadata title='Functional Programming Course'"))) + "pandoc -s %{deps} -o %{target}"))) diff --git a/site/index.html b/site/index.html index 84a6bc2..218f0bd 100644 --- a/site/index.html +++ b/site/index.html @@ -4,28 +4,7 @@
How can we define them? Think in terms of derivation trees: -
-\frac{\begin{array}{ll} - \frac{\begin{array}{ll} - \frac{\,}{\text{a premise}} & \frac{\,}{\text{another premise}} - \end{array}}{\text{some fact}} & \frac{\frac{\,}{\text{this we have by default}}}{\text{another fact}} - \end{array}}{\text{final conclusion}}
-Define by providing rules for using the connectives: for example, a - rule \frac{\begin{array}{ll} a & b - \end{array}}{c} matches parts of the tree that have two premises, - represented by variables a and b, and have any - conclusion, represented by - variable c. -