|
|
|
@ -68,7 +68,7 @@
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\[fn:\\([0-9]*\\):\\([^•]*\\)•\\]" nil t)
|
|
|
|
|
(replace-match "@@html:<label for=\"\\1\" class=\"margin-toggle sidenote-number\"></label><input type=\"checkbox\" id=\"\\1\" class=\"margin-toggle\"/><span class=\"sidenote\">@@@@latex:\\\\footnote{@@\\2@@html:</span>@@@@latex:}@@"))
|
|
|
|
|
(let ((user-full-name "Tré")
|
|
|
|
|
(let ((user-full-name "“Tré”")
|
|
|
|
|
(org-html-head "<link rel=\"stylesheet\" href=\"/fic/tufte.css\"/>\n<link rel=\"stylesheet\" href=\"/home/mdd/Documents/proj/fic-archive/build/tufte.css\"/>\n<meta name=\"theme-color\" media=\"(prefers-color-scheme: light)\" content=\"#fffff8\" />\n<meta name=\"theme-color\" media=\"(prefers-color-scheme: dark)\" content=\"#151515\" />\n<meta property=\"og:title\" content=\"Tré’s fanfiction\">\n<meta property=\"og:type\" content=\"article\">\n<meta property=\"og:image\" content=\"https://tre.praze.net/ab.png\">\n<meta name=\"description\" property=\"og:description\" content=\"Fanfiction on tre.praze.net\">\n<meta property=\"og:locale\" content=\"en_GB\">\n<meta property=\"og:site_name\" content=\"tre.praze.net\">\n<meta name=\"fediverse:creator\" content=\"@tre@ple.praze.net\">")
|
|
|
|
|
(org-export-with-author t)
|
|
|
|
|
(org-latex-default-class "memoir"))
|
|
|
|
@ -210,38 +210,46 @@
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\\\begin{document}\n\\\\chapter\*{\\\\thetitle}"))))))
|
|
|
|
|
(if multichapter
|
|
|
|
|
(if title
|
|
|
|
|
(if chaptertitles
|
|
|
|
|
(if asal
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{empty}" nil t))
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\end{titlingpage}" nil t)
|
|
|
|
|
(replace-match "\\end{titlingpage}\n\\pagestyle{multititlechapters}\n\\tableofcontents\*" nil t)))
|
|
|
|
|
(if multichapter
|
|
|
|
|
(if title
|
|
|
|
|
(if chaptertitles
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multititlechapters}" nil t))
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\end{titlingpage}" nil t)
|
|
|
|
|
(replace-match "\\end{titlingpage}\n\\tableofcontents\*" nil t)))
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multititlechapters}" nil t))
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multititlenochapters}" nil t))))
|
|
|
|
|
(if chaptertitles
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\end{titlingpage}" nil t)
|
|
|
|
|
(replace-match "\\end{titlingpage}\n\\tableofcontents\*" nil t)))
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multititlenochapters}" nil t))))
|
|
|
|
|
(if chaptertitles
|
|
|
|
|
(progn
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multinotitlechapters}\n\\tableofcontents\*" nil t)))
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multinotitlechapters}\n\\tableofcontents\*" nil t)))
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multinotitlenochapters}" nil t)))))
|
|
|
|
|
(if title
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{multinotitlenochapters}" nil t)))))
|
|
|
|
|
(if title
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{singletitle}" nil t)))
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{singletitle}" nil t)))
|
|
|
|
|
(progn
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (re-search-forward "\\\\begin{document}" nil t)
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{plain}" nil t)))))
|
|
|
|
|
(replace-match "\\begin{document}\n\\pagestyle{plain}" nil t))))))
|
|
|
|
|
(goto-char (point-max))
|
|
|
|
|
(save-buffer)
|
|
|
|
|
;; (unless draftmode
|
|
|
|
|