Nicolas Goaziou <n.goaz...@gmail.com> writes:

[...]

> Indeed, this won't work anymore: `org-latex-translate-alist' has been
> removed. The equivalent would just be to use a defadvice:
>
> #+begin_src emacs-lisp
> (defadvice org-latex-headline (around my-latex-skip-headlines
>                                       (headline contents info) activate)
>   (if (member "ignoreheading" (org-element-property :tags headline))
>       (setq ad-return-value contents)
>     ad-do-it))
> #+end_src
>
> Another approach is, as mentioned by Charles Berry, to remove the first
> line of transcoded headline when it contains "ignoreheading".
>
> #+begin_src emacs-lisp
> (defun org-latex-ignore-heading-filter-headline (headline backend info)
>     "Strip headline from HEADLINE. Ignore BACKEND and INFO."
>     (when (and (org-export-derived-backend-p backend 'latex)
>                (string-match "\\`.*ignoreheading.*\n" headline))
>       (replace-match "" nil nil headline)))
> (add-to-list 'org-export-filter-headline-functions
>              'org-latex-ignore-heading-filter-headline)
> #+end_src

Nicolas,

this is exactly what I was looking for.  It works perfectly.  Many thanks!

eric
-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.3.50.1 and Org release_7.9.3f-1199-g3a0e55


Reply via email to