From a2b2ca0a96d1a028b006bbec002d37e5d1756436 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Sat, 9 Sep 2023 21:13:23 +0100 Subject: [PATCH] Link to fic single pages, include link to local stylesheet in fic HTML export --- custom/fic.el | 6 +++--- snippets/fundamental-mode/ficpraze | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/custom/fic.el b/custom/fic.el index 1f18511..72ff86a 100644 --- a/custom/fic.el +++ b/custom/fic.el @@ -4,7 +4,7 @@ ;; (org-format) (save-buffer) (goto-char (point-min)) - (while (re-search-forward "\\[fn:.*\\]" nil t) + (while (re-search-forward "\\[fn:[^•]*•\\]" nil t) (replace-match "")) (let ((org-export-with-title 'nil) (org-export-with-author 'nil) @@ -66,10 +66,10 @@ ;; (org-format) (save-buffer) (goto-char (point-min)) - (while (re-search-forward "\\[fn:\\([0-9]*\\):\\(.*\\)\\]" nil t) + (while (re-search-forward "\\[fn:\\([0-9]*\\):\\([^•]*\\)•\\]" nil t) (replace-match "@@html:@@@@latex:\\\\footnote{@@\\2@@html:@@@@latex:}@@")) (let ((user-full-name "ovely") - (org-html-head "") + (org-html-head "") (org-export-with-author t) (org-latex-default-class "memoir")) (org-html-export-to-html) diff --git a/snippets/fundamental-mode/ficpraze b/snippets/fundamental-mode/ficpraze index 8db4c22..240e8b1 100644 --- a/snippets/fundamental-mode/ficpraze +++ b/snippets/fundamental-mode/ficpraze @@ -1,4 +1,4 @@ # name: fic-hosted-on-praze # key: ficpraze # -- -https://tre.praze.net/fic/masterlist#fic$0 \ No newline at end of file +https://tre.praze.net/fic/single/$0 \ No newline at end of file