Конфигурирование сносок в emacs org режим

[116727] Use [117149]uname[117150]:

For more information, see

If you get [117151]x86[117152], it means you have 32 bit Linux OS and if you get [117153]x86_64[117154], it means you have 64 bit Linux.[116732].

2
13.04.2017, 15:36
1 ответ

Я решил эту проблему, изменив org/lisp/org-footnote.el

  • Прокомментируйте строку в определении 'org-footnote-re'
(defconst org-footnote-re
;; Only [1]-like footnotes are closed in this regexp, as footnotes
;; from other types might contain square brackets (i.e. links) in
;; their definition.
;;
;; `org-re' is used for regexp compatibility with XEmacs.
(concat "\\[\\(?:"
    ;; Match inline footnotes.
    (org-re "fn:\\([-_[:word:]]+\\)?:\\|")
    ;; Match other footnotes.
    "\\(?:\\([0-9]+\\)\\]\\)\\|"   ; <-------- comment out this line
    (org-re "\\(fn:[-_[:word:]]+\\)")
    "\\)")
  "Regular expression for matching footnotes.")
  • Измените здесь аргумент функции 'org-re'.
(defconst org-footnote-definition-re
  (org-re "^\\[\\([0-9]+\\|fn:[-_[:word:]]+\\)\\]")
  "Regular expression matching the definition of a footnote.")

Изменить строку

"^\\[\\([0-9]+\\|fn:[-_[:word:]]+\\)\\]" 

на

"^\\[\\(fn:[-_[:word:]]+\\)\\]"
0
27.01.2020, 23:00

Теги

Похожие вопросы