Facilitate interactive exporting of one of my reports to LaTeX
* Add org=links for backwards compatibility with =org-ref=. * Allow interactive activation of my =ox-extra= compatible filters.
This commit is contained in:
parent
297801b7f7
commit
4eaeaa43b3
60
README.org
60
README.org
@ -705,11 +705,58 @@ below corrects this by advising to override ~TeX-brace-count-line~ with
|
||||
("v" . "verse"))))
|
||||
#+end_src
|
||||
|
||||
*** [[info:org#Citation export processors][Citation export processors (info)]]
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: sec:citation-export-processors
|
||||
:END:
|
||||
|
||||
#+attr_latex: :options bgcolor=LightGoldenrodYellow
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'oc
|
||||
(require 'oc-biblatex)
|
||||
(require 'oc-csl))
|
||||
#+end_src
|
||||
|
||||
*** [[info:org#External Links][Export external links (info)]]
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: sec:export-external-links
|
||||
:END:
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'ol
|
||||
(org-link-set-parameters
|
||||
"ac*" :export (lambda (path _desc backend _info)
|
||||
(pcase backend
|
||||
(`latex
|
||||
(format "\\gls*{%s}" path))
|
||||
(_ path))))
|
||||
(org-link-set-parameters
|
||||
"cite" :export (lambda (path _desc backend _info)
|
||||
(pcase backend
|
||||
(`latex
|
||||
(format "\\cite{%s}" path))
|
||||
(_ path))))
|
||||
(org-link-set-parameters
|
||||
"eqref" :export (lambda (path _desc backend _info)
|
||||
(pcase backend
|
||||
(`latex
|
||||
(format "\\eqref{%s}" path))
|
||||
(_ path))))
|
||||
(org-link-set-parameters
|
||||
"label" :export (lambda (path _desc backend _info)
|
||||
(pcase backend
|
||||
(`latex
|
||||
(format "\\label{%s}" path))
|
||||
(_ path))))
|
||||
(org-link-set-parameters
|
||||
"ref" :export (lambda (path _desc backend _info)
|
||||
(pcase backend
|
||||
(`latex
|
||||
(format "\\ref{%s}" path))
|
||||
(_ path)))))
|
||||
|
||||
#+end_src
|
||||
|
||||
In order to export the [[info:org#External Links][info links (info)]] in this document to =html= correctly,
|
||||
modify the constant ~org-info-other-documents~ defined in =ol-info.el=.
|
||||
|
||||
@ -728,18 +775,6 @@ Note: how to make it work without tangling?
|
||||
(cl-pushnew recipe org-info-other-documents :test #'equal)))))
|
||||
#+end_src
|
||||
|
||||
*** [[info:org#Citation export processors][Citation export processors (info)]]
|
||||
:PROPERTIES:
|
||||
:CUSTOM_ID: sec:citation-export-processors
|
||||
:END:
|
||||
|
||||
#+attr_latex: :options bgcolor=LightGoldenrodYellow
|
||||
#+begin_src emacs-lisp
|
||||
(with-eval-after-load 'oc
|
||||
(require 'oc-biblatex)
|
||||
(require 'oc-csl))
|
||||
#+end_src
|
||||
|
||||
*** [[https://tecosaur.github.io/emacs-config/#translate-capital-keywords][Translate capital keywords (old) to lower case (new)]]
|
||||
|
||||
#+attr_latex: :options bgcolor=LightGoldenrodYellow
|
||||
@ -815,6 +850,7 @@ Stolen from [[https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/ox-extra.
|
||||
|
||||
(defun my-activate-buffer-local-org-export-filters ()
|
||||
"Activate my export filters locally in the current buffer."
|
||||
(interactive)
|
||||
(add-hook 'org-export-before-parsing-hook
|
||||
#'my-org-export-ignore-headline-filter nil 'local)
|
||||
(add-hook 'org-export-before-parsing-hook
|
||||
|
Loading…
Reference in New Issue
Block a user