From 4c920b9d3c76c405619acffbba90ccf768085150 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 10 Apr 2023 13:19:30 -0400 Subject: [PATCH] Add an example showing footnote definitions and their associated trailing whitespace. --- org_mode_samples/footnote_definition/Makefile | 23 +++++++++++++++++++ .../footnote_definition/simple.org | 8 +++++++ 2 files changed, 31 insertions(+) create mode 100644 org_mode_samples/footnote_definition/Makefile create mode 100644 org_mode_samples/footnote_definition/simple.org diff --git a/org_mode_samples/footnote_definition/Makefile b/org_mode_samples/footnote_definition/Makefile new file mode 100644 index 0000000..c47a86c --- /dev/null +++ b/org_mode_samples/footnote_definition/Makefile @@ -0,0 +1,23 @@ +SHELL := bash +.ONESHELL: +.SHELLFLAGS := -eu -o pipefail -c +.DELETE_ON_ERROR: +MAKEFLAGS += --warn-undefined-variables +MAKEFLAGS += --no-builtin-rules +SRCFILES := $(wildcard *.org) +OUTFILES := $(patsubst %.org,%.tree.txt,$(SRCFILES)) + +ifeq ($(origin .RECIPEPREFIX), undefined) + $(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later) +endif +.RECIPEPREFIX = > + +.PHONY: all +all: $(OUTFILES) + +.PHONY: clean +clean: +> rm -rf $(OUTFILES) + +%.tree.txt: %.org ../common.el ../dump_org_ast.bash +> ../dump_org_ast.bash $< $@ diff --git a/org_mode_samples/footnote_definition/simple.org b/org_mode_samples/footnote_definition/simple.org new file mode 100644 index 0000000..0c7d856 --- /dev/null +++ b/org_mode_samples/footnote_definition/simple.org @@ -0,0 +1,8 @@ +[fn:1] A footnote. + +[fn:2] A multi- + +line footnote. + + +not in the footnote.