#+TITLE: LaTeX and Beamer #+TAGS: beameronly(b) latexonly(l) noexport(n) #+OPTIONS: tags:nil * Code :noexport: #+begin_src elisp (defun ltb-org-export-filter (backend) (let ((regex (cl-case backend (latex ":beameronly:") (beamer ":latexonly:") (t nil)))) (when regex (save-excursion (goto-char (point-min)) (while (search-forward-regexp regex nil t) (replace-match ":noexport:")))))) (add-hook 'org-export-before-processing-functions 'ltb-org-export-filter) #+end_src * Some Beamer stuff :beameronly: ** Frame 1 :B_frame: :PROPERTIES: :BEAMER_env: frame :END: * Some LaTeX stuff :latexonly: In the beginning, there was \TeX{}. * Other stuff The end