From 918e5a245360a6d637dbd9738084bd2e490edba9 Mon Sep 17 00:00:00 2001 From: Joe Corneli Date: Mon, 10 Jul 2017 12:02:23 +0100 Subject: [PATCH] important fix in add-nema - Update the counter for long-term storage --- latex/arxana-merge.tex | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/latex/arxana-merge.tex b/latex/arxana-merge.tex index 3d1e4d4..2d4311b 100644 --- a/latex/arxana-merge.tex +++ b/latex/arxana-merge.tex @@ -409,6 +409,8 @@ is not implementation specific?} `(,uid . ,src) (gethash snk (nth 4 current-plexus) nil)) (nth 4 current-plexus)) + ;; Update the counter for long-term storage + (setcar (cdr current-plexus) uid) ;; Return the id of the new nema. uid)) \end{elisp} @@ -1601,17 +1603,18 @@ this section's non-note children.\todo{Would this same function work (progn (search-forward-regexp "\\\\end{notate}") (match-beginning 0))) - ;; this has to change + ;; get the uid for our new nema (coords (add-nema name "in" buffername))) + (scholium coords + "has content" + (buffer-substring-no-properties + beg end)) (setq index (1+ index)) + ;; current-parent is in scope inside import-within (scholium current-parent index coords buffername) - (scholium coords - "has content" - (buffer-substring-no-properties - beg end)) (import-code-continuations coords))) index)) \end{elisp} @@ -1674,7 +1677,7 @@ section at a higher level. \end{elisp} \begin{notate}{On `import-buffer'} -This function import a \LaTeX\ document, taking care of +This function imports a \LaTeX\ document, taking care of the high-level, non-recursive, aspects of this operation. It imports frontmatter (everything up to the first \verb+\begin{section}+), but assumes ``backmatter'' is -- 2.11.4.GIT