|
@@ -2,6 +2,15 @@
|
2
|
2
|
#+AUTHOR: Emacs 27.1 (Org mode 9.3)
|
3
|
3
|
|
4
|
4
|
:CONFIG:
|
|
5
|
+#+BEGIN_EXPORT html
|
|
6
|
+
|
|
7
|
+<h2>Download</h2>
|
|
8
|
+<p> <a href="./recipes.pdf"> Recipes PDF</a> </p>
|
|
9
|
+<p> <a href="./recipes-book.pdf"> Recipes Booklet</a> </p>
|
|
10
|
+<p> <a href="./recipes.org"> Org Source</a> </p>
|
|
11
|
+
|
|
12
|
+#+END_EXPORT
|
|
13
|
+
|
5
|
14
|
# hide noexport sections
|
6
|
15
|
#+EXCLUDE_TAGS: noexport
|
7
|
16
|
|
|
@@ -60,11 +69,12 @@
|
60
|
69
|
# html
|
61
|
70
|
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="recipes.css" />
|
62
|
71
|
# #+HTML_HEAD_EXTRA: <link rel="alternate stylesheet" type="text/css" href="style2.css" />
|
|
72
|
+
|
63
|
73
|
:END:
|
64
|
74
|
|
65
|
75
|
* generate-booklet :noexport:
|
66
|
76
|
#+BEGIN_SRC elisp
|
67
|
|
-(shell-command-to-string "pdfbook2 recipes.pdf -b 10 -t 10 -o 10 -i 10 -n -p letterpaper")
|
|
77
|
+(shell-command-to-string "pdfbook2 recipes.pdf -b 10 -t 10 -o 10 -i 10 -n -p letterpaper && scp recipes.html recipes.pdf recipes-book.pdf recipes.org webserver:/var/www/html/")
|
68
|
78
|
#+END_SRC
|
69
|
79
|
|
70
|
80
|
#+RESULTS:
|
|
@@ -78,6 +88,12 @@
|
78
|
88
|
: Processing recipes.pdf
|
79
|
89
|
: Getting bounds... create booklet... done
|
80
|
90
|
|
|
91
|
+#+BEGIN_SRC elisp
|
|
92
|
+(shell-command-to-string "scp recipes.html recipes.pdf recipes-book.pdf recipes.org webserver:/var/www/html/")
|
|
93
|
+#+END_SRC
|
|
94
|
+
|
|
95
|
+#+RESULTS:
|
|
96
|
+
|
81
|
97
|
# add page breaks, find and replace with M-% to remove all page breaks
|
82
|
98
|
# #+LATEX: \newpage
|
83
|
99
|
|